/* Aquiline — aquiline.co · brand v3
   Single-viewport hero: monochrome smoke field, flat mono wordmark,
   one statement line. Square corners, hairlines, single amber accent. */

/* Space Grotesk — nav, statement, body, 404 (OFL). 500 medium is the
   baseline; 700 for the active service-index item. No 400 (light). */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2?v=3") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2?v=3") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Geist — wordmark only (OFL) */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #EEEEEE;
  --dim: #9A9A96;
  --amber: #D9A84E;
  --line-strong: rgba(238, 238, 238, 0.3);
  --sans: "Space Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --edge: clamp(20px, 3.2vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p, ul { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font: 500 0.95rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--edge); }

h1 { font-family: var(--sans); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

.tag {
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- hero: the entire site ---------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero canvas.on { opacity: 1; }
.hero::after {
  /* soft scrim — the veil drifts, the statement must stay legible */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: min(32vh, 280px);
  background: linear-gradient(to top, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0));
  pointer-events: none;
}

.wordmark {
  position: absolute; top: calc(var(--edge) + 4px); left: var(--edge);
  z-index: 1;
  font: 500 0.9rem/1 var(--display);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
  transition: color 0.15s var(--ease);
}
.wordmark:hover { color: var(--amber); }

.hero-nav {
  position: absolute; top: calc(var(--edge) + 4px); right: var(--edge);
  z-index: 1;
}
.hero-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  text-align: right; line-height: 1;
}
.hero-nav a {
  display: block;
  font: 500 0.9rem/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
  transition: color 0.15s var(--ease);
}
.hero-nav a:hover { color: var(--amber); }

.statement {
  position: absolute; left: var(--edge); right: var(--edge); bottom: calc(var(--edge) - 8px);
  z-index: 1;
  font: 500 clamp(1rem, 1.4vw, 1.25rem)/1.6 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 72ch;
  text-wrap: balance;
}

/* ---------- about overlay ---------- */
.hero::before {
  /* upper-left scrim — only while About is open, so the copy stays legible */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(108deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.55) 34%, rgba(17, 17, 17, 0) 64%);
  opacity: 0; z-index: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
body.show-about .hero::before { opacity: 1; }

.about {
  position: absolute; z-index: 1;
  left: var(--edge); right: var(--edge);
  top: clamp(92px, 15vh, 156px);
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vh, 44px);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
body.show-about .about { opacity: 1; visibility: visible; transform: none; }

/* lead line — sentence case and dim, deliberately quiet. Evan compared it
   against an uppercase treatment and chose this: the line is direct address,
   and caps make direct address read like signage. It sits close in size and
   colour to .about-panel by design; a variant that pulled them apart on size
   was built and rejected. The <br> sets the break, so no max-width or
   text-wrap:balance here — either would fight it. */
.about-lead {
  margin: 0;
  font: 500 0.95rem/1.6 var(--sans);
  letter-spacing: 0.01em;
  color: var(--dim);
}

/* index + panels sit side by side beneath the lead */
.about-body {
  display: flex;
  gap: clamp(28px, 6vw, 96px);
}

/* left-hand service index */
.about-index {
  flex: 0 0 auto;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.55em;
}
.about-item {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 0; text-align: left;
  font: 500 0.9rem/1 var(--sans);   /* medium, matching the nav */
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper);   /* all four the same colour */
}
.about-item.is-active { font-weight: 700; }   /* clicked = bold; the rest stay medium (500) */

/* swapping copy panels */
.about-panels { flex: 1 1 auto; max-width: 44ch; }
.about-panel {
  display: none;
  font: 500 clamp(0.95rem, 1.2vw, 1.1rem)/1.6 var(--sans);
  color: rgba(238, 238, 238, 0.82);
}
.about-panel.is-active { display: block; }

@media (max-width: 640px) {
  .about-body { flex-direction: column; gap: 26px; }
  .about-lead { max-width: none; }
  .about-panels { max-width: none; }
}

/* home statement yields to About */
.statement { transition: opacity 0.4s var(--ease), visibility 0.4s; }
body.show-about .statement { opacity: 0; visibility: hidden; }

/* active nav item dims to signal the current view */
.hero-nav a[data-about] { transition: color 0.15s var(--ease); }
body.show-about .hero-nav a[data-about] { color: var(--dim); }
body.show-about .hero-nav a[data-about]:hover { color: var(--paper); }

/* ---------- button (404) ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 1em 1.4em;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); background: transparent;
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- 404 ---------- */
.err {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 18px;
}
.err h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.err p { color: var(--dim); }
.err .btn { margin-top: 10px; }
