/* ============================================================
   v2 HERO: Sam's prototype/css/site.css, adapted. The hero now lives in a
   fixed layer (#hero); #dialSlot holds the dial's place in the grid and the
   dial itself floats above so it can be glued to the 3D barrel bottom.
   PROTOTYPE SITE: page styles
   Colors come from the intro tokens (--ai-*) in
   altimeter-intro.css so the page and the dial stay in sync.
   ============================================================ */
:root {
  color-scheme: dark;
  --line: #2c2c30;
  --sans: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
html, body { background: var(--ai-bg); color: var(--ai-text); }
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; margin: 0; -webkit-text-size-adjust: 100%; }
#hero { position: fixed; inset: 0; padding-inline: 16px; z-index: 6; pointer-events: none; }
#hero a, #hero button { pointer-events: auto; }
.wrap { max-width: 720px; margin: 0 auto; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.logo { font-weight: 600; font-style: italic; font-size: 18px; letter-spacing: -.02em; }
.logo span { color: var(--ai-muted); font-style: normal; font-weight: 400; }
.logo sup { color: var(--ai-red); font-size: 9px; }
.burger { width: 20px; display: grid; gap: 4px; }
.burger i { display: block; height: 1.5px; background: var(--ai-muted); }
.nav { display: none; }
.nav a {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ai-muted); text-decoration: none; padding: 8px 0;
}
.nav a:hover { color: var(--ai-text); }
.nav a:focus-visible { outline: 2px solid var(--ai-red); outline-offset: 3px; color: var(--ai-text); }

/* ---------- hero stage (mobile: stacked, same spacing as the original single column) ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero { padding-block: 22px 0; display: grid; gap: 10px; }
.stage #dialSlot { width: min(92vw, 460px); aspect-ratio: 1; margin: 28px auto 26px; max-width: none; } /* 92vw dial overhangs the 16px gutter, as in the original */
h1 { font-weight: 600; font-size: clamp(30px, 8.6vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
h1 .dot { color: var(--ai-red); }
.sub { color: #c8c8cc; font-size: 14px; max-width: 30ch; margin: 0; }

.foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-block: 10px 28px; }
.btn {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ai-text); background: transparent; border: 1px solid #3a3a40; border-radius: 4px;
  padding: 11px 12px; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--ai-red); outline-offset: 3px; }
.meta { font: 500 10px/1.4 var(--mono); color: var(--ai-muted); text-align: right; letter-spacing: .06em; }

/* ============================================================
   DESKTOP: full-screen instrument stage, modeled on animejs.com.
   Only layout changes here; the dial is sized by CSS alone, so
   the intro still never shifts anything while it plays.
   ============================================================ */
@media (min-width: 900px) {
  body { margin: 0; font-size: 16px; }
  #hero { padding-inline: 0; }
  .wrap { max-width: 1600px; padding-inline: clamp(32px, 4.4vw, 64px); }

  .top { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  header { padding-block: 22px; border-bottom: 0; }
  .logo { font-size: 20px; }
  .nav { display: flex; gap: 32px; }
  .burger { display: none; }

  /* two columns until there's room to center the dial */
  .stage {
    --dial: min(50vw, 66svh, 560px);
    flex: 1;
    display: grid; column-gap: 32px;
    grid-template-columns: minmax(0, 1fr) var(--dial);
    grid-template-rows: auto 1fr auto;
    padding-block: 12px 40px;
  }
  .hero { grid-column: 1; grid-row: 1; padding-top: clamp(24px, 6svh, 64px); align-content: start; gap: 20px; }
  .stage #dialSlot { grid-column: 2; grid-row: 1 / 3; align-self: center; width: var(--dial); margin: 0; }
  .foot { grid-column: 1 / -1; grid-row: 3; padding-block: 24px 0; }

  h1 { font-size: clamp(40px, 3.9vw, 64px); line-height: 1.02; }
  .sub { font-size: 17px; max-width: 26ch; color: #d4d4d8; }
  .btn { padding: 15px 18px; }
  .meta { font-size: 11px; }

}

/* wide: dial centered on the page, headline and foot framing it */
@media (min-width: 1200px) {
  .stage {
    --dial: min(44vw, 64svh, 680px);
    grid-template-columns: minmax(0, 1fr) var(--dial) minmax(0, 1fr);
  }
}
