:root {
  color-scheme: dark;
  --background: #151619;
  --panel: #1f2024;
  --text: #f7f5ef;
  --muted: #c0c0c6;
  --accent: #d7ff73;
  --rule: #414248;
  --header-offset: 6rem;
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
html { scroll-padding-top: var(--header-offset); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.055em; }
p { color: var(--muted); }
.shell { width: min(74rem, 100% - 3rem); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: 1rem; transform: translateY(-180%); padding: .5rem 1rem; background: var(--background); z-index: 2; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  min-height: 5rem;
  padding-block: .75rem;
  background: var(--background);
  border-bottom: 1px solid var(--rule);
}

.brand { font-family: ui-monospace, monospace; font-weight: 700; text-decoration: none; }
.brand span, h1 span, h2 span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(1rem, 3vw, 2rem); }
nav a { padding-block: .25rem; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}

h1 { max-width: 12ch; font-size: clamp(2.75rem, 7vw, 6.5rem); }
.hero-copy p { max-width: 43ch; margin: 1.5rem 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.button { display: inline-block; padding: .8rem 1.4rem; background: var(--accent); color: var(--background); font-weight: 700; text-decoration: none; }
.button:hover { background: var(--text); color: var(--background); }

.hero-art {
  position: relative;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 1px solid var(--rule);
  background-color: var(--panel);
  background-image: linear-gradient(#41424870 1px, transparent 1px), linear-gradient(90deg, #41424870 1px, transparent 1px);
  background-size: 1.65rem 1.65rem;
}

.mark { position: absolute; left: 24%; width: 49%; height: 30%; border: clamp(.5rem, 2vw, 1.6rem) solid var(--accent); border-radius: 0 50% 50% 0; transform: skewY(-12deg); }
.mark-top { top: 17%; width: 41%; }
.mark-bottom { top: 49%; }
.mark-dot { position: absolute; left: 75%; top: 68%; width: 7%; aspect-ratio: 1; background: var(--accent); }

.section { padding-block: clamp(2.75rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.services, .team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.services { margin-top: 2rem; }
.services article, .team article { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--rule); background: var(--panel); }
.services p, .team p { max-width: 43ch; margin-top: .9rem; }
.about, .contact { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem 3rem; }
.about > p, .contact p { max-width: 48ch; font-size: 1.125rem; }
.team { grid-column: 1 / -1; margin-top: .75rem; }
.team .role { color: var(--text); font-weight: 600; }
.contact { padding: clamp(1.5rem, 5vw, 4rem); background: var(--panel); border-top: 3px solid var(--accent); }
.contact a { display: inline-block; margin-top: .65rem; color: var(--accent); overflow-wrap: anywhere; }
.contact a:hover { color: var(--text); }
.site-footer { padding-block: 1.75rem; color: var(--muted); }

@media (max-width: 45rem) {
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 27rem); }
}

@media (max-width: 32rem) {
  :root { --header-offset: 7rem; }
  .shell { width: calc(100% - 2rem); }
  .services, .team { grid-template-columns: 1fr; }
}
