/* ════════════════════════════════════════════════════════════════
   TRUE NORTH IT — "NIGHT NAVIGATION"
   Palette: pounamu nocturne · phosphor instrument green · chart paper
   Type (unchanged): Getai Grotesk Display / IBM Plex Sans / IBM Plex Mono
   ════════════════════════════════════════════════════════════════ */

/* ---------- fonts ---------- */
@font-face { font-family: "Getai Grotesk Display"; src: url("../assets/fonts/GetaiGroteskDisplay-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/IBMPlexSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* night */
  --ink:        #070C14;
  --abyss:      #0A1422;
  --pine:       #14253C;
  --text-night: #EAF0F8;
  --mute-night: #93A3BC;
  --line-night: rgba(214, 230, 248, 0.10);

  /* paper */
  --paper:      #F1EDE2;
  --vellum:     #FBF8F0;
  --ink-paper:  #131D2C;
  --mute-paper: #5A6577;
  --line-paper: rgba(19, 29, 44, 0.14);

  /* signal */
  --phos:       #F2B23E;
  --phos-hi:    #FFCE6B;
  --phos-deep:  #8F6A10;
  --phos-dim:   rgba(242, 178, 62, 0.16);
  --gold:       #7FA8D8;

  --logo-accent: var(--phos);

  /* type */
  --display: "Getai Grotesk Display", "Arial Black", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-body: 16px;
  --fs-small: 13px;
  --fs-eyebrow: 12px;
  --tr-eyebrow: 0.18em;
  --measure: 62ch;

  --r-button: 9px;
  --r-card: 16px;
  --r-chip: 7px;

  --wrap: 1140px;
  --gut: clamp(20px, 4.5vw, 48px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.18, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-night);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--phos); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.measure { max-width: var(--measure); text-wrap: pretty; }

/* themes */
.theme-night { background: var(--ink); color: var(--text-night); }
.theme-paper { background: var(--paper); color: var(--ink-paper); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.012em;
}
.d-h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 24px; }
.eyebrow, .waypoint {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
}
.lead { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.body { font-size: var(--fs-body); }
.body-l { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.acc { color: var(--phos); font-style: normal; }
.theme-paper .acc { color: var(--phos-deep); }

/* waypoint label */
.waypoint {
  display: flex; align-items: center; gap: 14px;
  color: var(--phos-deep);
  margin-bottom: 22px;
}
.theme-night .waypoint, .wp-night { color: var(--phos); }
.wp-rule { width: 34px; height: 1px; background: currentColor; opacity: 0.6; flex: none; }

/* bearing tick (brand diamond) */
.tick {
  display: inline-block; width: 8px; height: 8px; flex: none;
  background: var(--phos);
  transform: rotate(45deg);
  margin-right: 12px;
  animation: tickPulse 3.2s ease-in-out infinite;
}
@keyframes tickPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 26px; border-radius: var(--r-button);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
  overflow: hidden; isolation: isolate;
  will-change: transform;
}
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-lg { padding: 19px 34px; font-size: 16px; }
.btn-primary {
  background: var(--phos); color: #161003;
  box-shadow: 0 0 0 0 rgba(242, 178, 62, 0);
}
.btn-primary:hover { background: var(--phos-hi); box-shadow: 0 6px 32px -6px rgba(242, 178, 62, 0.45); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-ghost {
  color: var(--text-night);
  box-shadow: inset 0 0 0 1px var(--line-night);
  background: rgba(234, 240, 248, 0.02);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 206, 107, 0.5); color: var(--phos-hi); }
.theme-paper .btn-ghost { color: var(--ink-paper); box-shadow: inset 0 0 0 1px var(--line-paper); }
.btn .arw { font-family: var(--mono); transition: transform 0.3s var(--ease-out); }
.btn:hover .arw { transform: translateY(2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--phos); outline-offset: 3px; border-radius: 4px; }

/* text links */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--phos-deep);
}
.tlink .arw { font-family: var(--mono); transition: transform 0.3s var(--ease-out); }
.tlink:hover .arw { transform: translateX(5px); }
.tlink-night { color: var(--phos); }

/* ---------- progress hairline ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--phos-deep), var(--phos)); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease;
  color: var(--text-night);
}
.site-header.is-scrolled {
  background: rgba(7, 12, 20, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-night);
}
.site-header.on-paper { color: var(--ink-paper); }
.site-header.on-paper.is-scrolled {
  background: rgba(241, 237, 226, 0.78);
  box-shadow: 0 1px 0 var(--line-paper);
}
.hwrap {
  max-width: 1400px; margin-inline: auto;
  padding: 18px var(--gut);
  display: flex; align-items: center; gap: 36px;
}
.brand { color: currentColor; }
.brand-lockup { width: 176px; height: 49px; transition: opacity 0.25s ease; }
.brand:hover .brand-lockup { opacity: 0.8; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
  position: relative; font-size: 14px; font-weight: 500;
  padding: 6px 0; opacity: 0.82;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-link .n {
  font-family: var(--mono); font-size: 10px; vertical-align: super;
  margin-right: 5px; opacity: 0.55; letter-spacing: 0.06em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--phos);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { opacity: 1; }
.site-header.on-paper .nav-link::after { background: var(--phos-deep); }

.menu-btn { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.menu-btn span { width: 24px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 12, 20, 0.97);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 8px; padding: 96px var(--gut);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet > a:not(.btn) {
  font-family: var(--display); font-weight: 900; font-size: clamp(36px, 9vw, 56px);
  color: var(--text-night); padding: 6px 0;
}
.sheet > a:not(.btn):hover { color: var(--phos); }
.sheet .btn { margin-top: 28px; }

/* ════════════════════════════════════════════
   SCENE 1 · HERO
   ════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; animation: canvasIn 2.2s ease 0.25s forwards;
}
@keyframes canvasIn { to { opacity: 1; } }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 28% 42%, transparent 38%, rgba(7, 12, 20, 0.62) 100%),
    linear-gradient(180deg, rgba(7,16,13,0.55) 0%, transparent 22%, transparent 72%, var(--ink) 100%);
}
.hero-copy { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 64px; }

.hero-eyebrow {
  display: flex; align-items: center;
  color: var(--phos); margin-bottom: 30px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}
.caret {
  width: 7px; height: 14px; margin-left: 8px; background: var(--phos);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero-h1 {
  font-size: clamp(42px, 6.5vw, 92px);
  margin-bottom: 34px;
}
.hl { display: block; overflow: clip; padding-block: 0.04em; }
.hl-in {
  display: inline-block; transform: translateY(112%);
  animation: lineUp 1.1s var(--ease-snap) forwards;
}
.hl:nth-child(1) .hl-in { animation-delay: 0.55s; }
.hl:nth-child(2) .hl-in { animation-delay: 0.68s; }
.hl:nth-child(3) .hl-in { animation-delay: 0.81s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lead {
  color: var(--mute-night); max-width: 54ch;
  margin-bottom: 38px;
  opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.15s forwards;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.3s forwards; }
.hero-sub {
  display: flex; align-items: center;
  font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 0.08em;
  color: var(--mute-night); margin-top: 44px;
  opacity: 0; animation: fadeUp 0.9s var(--ease-out) 1.5s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* instrument HUD */
.hud {
  position: absolute; top: 104px; right: var(--gut); z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--mute-night);
  display: grid; gap: 6px;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 1.7s forwards;
}
.hud-row { display: flex; gap: 14px; justify-content: flex-end; }
.hud-k { opacity: 0.55; }
.hud-v { color: var(--text-night); min-width: 110px; text-align: right; }
.hud-ok { color: var(--phos); }

/* hero compass instrument */
.hero-compass {
  position: absolute; z-index: 1;
  right: clamp(-120px, 2vw, 90px); top: 50%;
  width: clamp(380px, 42vw, 660px); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0; animation: compassIn 2.4s var(--ease-out) 0.9s forwards;
}
@keyframes compassIn { to { opacity: 1; } }
.hero-compass svg { width: 100%; height: 100%; }
.hc-ring { fill: none; stroke: rgba(214, 230, 248, 0.13); stroke-width: 0.55; }
.hc-ring-in { stroke: rgba(214, 230, 248, 0.07); stroke-dasharray: 0.5 2.2; }
.hc-ticks line { stroke: rgba(214, 230, 248, 0.20); stroke-width: 0.55; }
.hc-ticks line.maj { stroke: rgba(255, 206, 107, 0.55); stroke-width: 0.8; }
.hc-needle { transform-origin: 50px 50px; animation: needleSettle 5.5s var(--ease-out) 1.2s both; }
@keyframes needleSettle {
  0% { transform: rotate(-132deg); }
  42% { transform: rotate(14deg); }
  62% { transform: rotate(-7deg); }
  78% { transform: rotate(3.4deg); }
  90% { transform: rotate(-1.4deg); }
  100% { transform: rotate(0deg); }
}
.hc-n { fill: var(--phos); filter: drop-shadow(0 0 6px rgba(242, 178, 62, 0.55)); }
.hc-s { fill: none; stroke: rgba(214, 230, 248, 0.35); stroke-width: 0.7; stroke-linejoin: round; }
.hc-dot { fill: var(--text-night); }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeUp 1s ease 2s forwards;
}
.sc-line { width: 1px; height: 44px; background: var(--line-night); position: relative; overflow: hidden; }
.sc-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--phos);
  animation: cueDrop 1.9s var(--ease-snap) infinite;
}
@keyframes cueDrop { 0% { top: -50%; } 65%, 100% { top: 110%; } }
.sc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute-night); }

/* ════════════════════════════════════════════
   SCENE 2 · THE NOISE — pinned kinetic statement
   ════════════════════════════════════════════ */
.scene-noise { position: relative; background: linear-gradient(180deg, var(--ink) 0%, var(--abyss) 60%, var(--ink) 100%); }
.noise-pin { height: 320vh; }
.noise-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: clip;
}
.noise-h2 {
  font-size: clamp(30px, 4.9vw, 64px);
  max-width: 21ch; margin-bottom: 56px;
}
.noise-h2 .w { opacity: 0.13; transition: opacity 0.18s linear, color 0.3s ease; }
.noise-h2 .w.lit { opacity: 1; }
.noise-h2 .w.key.lit { color: var(--phos); }

.figs { display: flex; align-items: stretch; gap: clamp(28px, 5vw, 64px); opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.figs.in { opacity: 1; transform: none; }
.fig { display: grid; gap: 6px; }
.fig-n { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; color: var(--phos); font-variant-numeric: tabular-nums; }
.fig-l { font-size: 14px; color: var(--mute-night); max-width: 21ch; }
.fig-divider { width: 1px; background: var(--line-night); }
.noise-after { padding: 0 var(--gut) clamp(110px, 14vh, 170px); }
.noise-after .body-l { color: var(--mute-night); }
.noise-after strong { color: var(--text-night); font-weight: 600; }

/* ════════════════════════════════════════════
   SCENE 3 · THE ROUTE — chart paper deck
   ════════════════════════════════════════════ */
.scene-route {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(21,36,29,0.045) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21,36,29,0.045) 79px 80px),
    var(--paper);
}
.route-pin { height: 420vh; }
.route-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: clip; }
.route-grid {
  width: 100%;
  display: grid; grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.route-h2 { font-size: clamp(38px, 4.8vw, 62px); margin-bottom: 20px; }
.route-head .lead { color: var(--mute-paper); }

/* route rail */
.route-rail { list-style: none; margin-top: 40px; display: grid; gap: 0; position: relative; }
.route-rail::before {
  content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-paper) 0 5px, transparent 5px 10px);
}
.rr-stop {
  position: relative; padding: 10px 0 10px 32px;
  display: flex; align-items: baseline; gap: 12px;
  color: var(--mute-paper);
  transition: color 0.35s ease;
}
.rr-stop i {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--mute-paper); background: var(--paper);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.rr-stop b { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; }
.rr-stop span { font-size: 14.5px; font-weight: 500; }
.rr-stop.is-here { color: var(--ink-paper); }
.rr-stop.is-here i { background: var(--phos); border-color: var(--phos-deep); box-shadow: 0 0 0 5px var(--phos-dim); }

/* deck */
.deck { position: relative; height: min(560px, 72svh); perspective: 1400px; }
.deck-card {
  position: absolute; inset: 0;
  background: var(--vellum);
  border: 1px solid var(--line-paper);
  border-radius: var(--r-card);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 6px rgba(19, 29, 44, 0.05), 0 24px 64px -18px rgba(19, 29, 44, 0.18);
  will-change: transform, opacity;
}
.deck-card-prem { background: var(--pine); border-color: rgba(214, 230, 248, 0.14); color: var(--text-night); }
.deck-card-prem .dc-role { color: var(--phos); }
.deck-card-prem .dc-body { color: var(--mute-night); }
.deck-card-prem .tlink { color: var(--phos); }
.deck-card-prem .dc-num { -webkit-text-stroke-color: rgba(214, 230, 248, 0.3); }

.dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dc-num {
  font-size: clamp(56px, 6vw, 84px); line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(19, 29, 44, 0.34);
}
.chip {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: var(--r-chip);
  border: 1px solid var(--line-paper); color: var(--mute-paper);
  white-space: nowrap;
}
.chip-ai { color: var(--phos-deep); border-color: rgba(143, 106, 16, 0.35); background: rgba(242, 178, 62, 0.08); }
.chip-prem { color: var(--gold); border-color: rgba(127, 168, 216, 0.4); background: rgba(127, 168, 216, 0.08); }
.dc-h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.dc-role { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--phos-deep); text-transform: uppercase; }
.dc-body { color: var(--mute-paper); font-size: 15.5px; max-width: 58ch; }
.deck-card .tlink { margin-top: auto; }

.ladder-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line-paper);
  padding-top: 40px; padding-bottom: clamp(90px, 12vh, 150px);
}
.lc-q { font-size: 17px; font-weight: 500; max-width: 44ch; }

/* ════════════════════════════════════════════
   SCENE 4 · THE DIFFERENCE
   ════════════════════════════════════════════ */
.scene-diff { padding-block: clamp(110px, 15vh, 190px); }
.diff-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.diff-copy .body { color: var(--mute-paper); }
.pullquote {
  position: relative;
  padding: clamp(8px, 2vw, 16px) 0 0 clamp(30px, 3vw, 44px);
}
.pullquote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--phos), transparent 90%);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.2s var(--ease-out) 0.2s;
}
.pullquote.in::before { transform: scaleY(1); }
.pq-mark {
  position: absolute; left: clamp(14px, 1.6vw, 26px); top: -34px;
  font-size: 130px; line-height: 1; color: var(--phos-dim);
  user-select: none;
}
.pullquote blockquote {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(23px, 2.5vw, 33px); line-height: 1.18; letter-spacing: -0.008em;
  margin-bottom: 20px;
}
.pullquote figcaption { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-paper); }

/* ════════════════════════════════════════════
   SCENE 5 · THE RECORD — night ledger
   ════════════════════════════════════════════ */
.scene-record {
  padding-block: clamp(110px, 15vh, 190px) clamp(90px, 12vh, 150px);
  background: linear-gradient(180deg, var(--ink), var(--abyss) 35%, var(--ink));
  overflow: clip;
}
.record-head .d-h2 { margin-bottom: 34px; }
.record-qualifier { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vh, 84px); }
.count-big { font-size: clamp(64px, 8vw, 120px); line-height: 0.9; color: var(--phos); font-variant-numeric: tabular-nums; }
.rq-copy { font-size: 16px; color: var(--mute-night); max-width: 34ch; }

.namerow {
  border-block: 1px solid var(--line-night);
  padding-block: clamp(26px, 4vh, 44px);
  padding-inline: 24px;
}
.nr-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 22px;
  row-gap: 20px;
}
.nr-list li {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(22px, 2.8vw, 36px); line-height: 1;
  white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.1px rgba(214, 230, 248, 0.42);
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.nr-list li:hover { color: var(--phos); -webkit-text-stroke-color: transparent; }
.nr-list li:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 22px;
  background: var(--phos);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.record-foot { margin-top: clamp(48px, 7vh, 84px); display: grid; gap: 24px; }
.body-on-night { color: var(--mute-night); }

/* ════════════════════════════════════════════
   SCENE 6 · REAL WINS — phrase swap
   ════════════════════════════════════════════ */
.scene-trades { padding-block: clamp(110px, 15vh, 190px); }
.trade-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.trade-card {
  border: 1px solid var(--line-paper); border-radius: var(--r-card);
  background: var(--vellum); padding: clamp(24px, 2.6vw, 34px);
}
.trade-card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.02;
  color: var(--ink-paper);
  margin-bottom: 16px;
}
.trade-card p { color: var(--mute-paper); font-size: 15.5px; }
@media (max-width: 900px) { .trade-cards { grid-template-columns: 1fr; } }
.trades-close { margin-top: 44px; color: var(--mute-paper); border-top: 1px solid var(--line-paper); padding-top: 28px; }

/* ════════════════════════════════════════════
   SCENE 7 · POSITION — geography chart
   ════════════════════════════════════════════ */
.scene-geo {
  padding-block: clamp(110px, 15vh, 190px);
  background: var(--vellum);
  overflow: clip;
}
.geo-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.geo-chart svg { width: 100%; height: auto; overflow: visible; }
.geo-gridlines line { stroke: var(--line-paper); stroke-width: 0.6; stroke-dasharray: 2 5; }
.geo-ring {
  fill: none; stroke: rgba(143, 106, 16, 0.42); stroke-width: 1;
  transform-origin: 150px 120px;
  opacity: 0; transform: scale(0.62);
}
.geo-chart.in .geo-ring { animation: ringIn 1.4s var(--ease-out) forwards; }
.geo-chart.in .geo-ring:nth-of-type(1) { animation-delay: 0.1s; }
.geo-chart.in .geo-ring:nth-of-type(2) { animation-delay: 0.25s; }
.geo-chart.in .geo-ring:nth-of-type(3) { animation-delay: 0.4s; }
.geo-chart.in .geo-ring:nth-of-type(4) { animation-delay: 0.55s; }
@keyframes ringIn { to { opacity: 1; transform: scale(1); } }
.geo-bearing {
  stroke: var(--phos-deep); stroke-width: 1.3; stroke-dasharray: 6 6;
  stroke-dashoffset: 420;
}
.geo-chart.in .geo-bearing { animation: bearingDraw 1.6s var(--ease-out) 0.7s forwards; }
@keyframes bearingDraw { to { stroke-dashoffset: 0; } }
.geo-home { fill: var(--phos-deep); }
.geo-pulse { fill: none; stroke: var(--phos-deep); stroke-width: 1.2; opacity: 0; }
.geo-chart.in .geo-pulse { animation: geoPulse 2.8s ease-out 1s infinite; }
@keyframes geoPulse {
  0% { opacity: 0.85; transform: scale(1); transform-origin: 150px 120px; }
  100% { opacity: 0; transform: scale(9); transform-origin: 150px 120px; }
}
.geo-label text {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  fill: var(--ink-paper); opacity: 0.75;
}
.geo-label-home text { fill: var(--phos-deep); opacity: 1; font-weight: 600; }
.geo-label { opacity: 0; }
@keyframes labelIn { to { opacity: 1; } }
.geo-chart.in .geo-label { animation: labelIn 0.8s ease 1s forwards; }
.geo-chart.in .geo-label-2 { animation-delay: 1.25s; }
.geo-chart.in .geo-label-3 { animation-delay: 1.5s; }
.geo-chart.in .geo-label-4 { animation-delay: 1.75s; }
.geo-copy .body { color: var(--mute-paper); }

/* ════════════════════════════════════════════
   SCENE 8 · ARRIVAL — beacon
   ════════════════════════════════════════════ */
.scene-arrival {
  position: relative; overflow: clip;
  padding-block: clamp(140px, 20vh, 240px);
  text-align: center;
  background: radial-gradient(90% 110% at 50% 118%, var(--pine) 0%, var(--abyss) 42%, var(--ink) 100%);
}
.beacon { position: absolute; left: 50%; bottom: -28vh; transform: translateX(-50%); width: 130vh; aspect-ratio: 1; pointer-events: none; }
.beacon span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(242, 178, 62, 0.34);
  animation: beacon 7s var(--ease-out) infinite;
}
.beacon span:nth-child(2) { animation-delay: 2.33s; }
.beacon span:nth-child(3) { animation-delay: 4.66s; }
@keyframes beacon {
  0% { transform: scale(0.06); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
.arrival-compass {
  width: 74px; margin-inline: auto; margin-bottom: 36px;
  color: var(--text-night);
  filter: drop-shadow(0 0 18px rgba(242, 178, 62, 0.25));
}
.arrival-compass svg { width: 100%; height: auto; }
.arrival-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.arrival-copy .waypoint { justify-content: center; margin-bottom: 0; }
.arrival-h2 { font-size: clamp(40px, 5.6vw, 76px); }
.arrival-copy .body-on-night { max-width: 48ch; }
.arrival-alt { font-size: 14.5px; color: var(--mute-night); }
.arrival-alt a { color: var(--phos); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.arrival-alt a .arw { font-family: var(--mono); transition: transform 0.3s var(--ease-out); }
.arrival-alt a:hover .arw { transform: translateX(4px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-night); padding-block: clamp(64px, 9vh, 110px) 36px; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 56px;
}
.foot-lockup { width: 200px; height: 56px; color: var(--text-night); margin-bottom: 20px; }
.foot-brand p { font-size: 14px; color: var(--mute-night); line-height: 1.7; }
.foot-col { display: grid; gap: 11px; align-content: start; font-size: 14.5px; color: var(--mute-night); }
.foot-col h5 {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-night); margin-bottom: 6px;
}
.foot-col a { transition: color 0.25s ease; width: fit-content; }
.foot-col a:hover { color: var(--phos); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
  border-top: 1px solid var(--line-night); padding-top: 26px;
  font-size: 12.5px; color: var(--mute-night);
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-compass { opacity: 0.5; right: -18vw; }
  .hud { display: none; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .site-header .btn { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .brand-lockup { width: 148px; height: 41px; }

  /* unpin the deck: simple stacked cards */
  .route-pin { height: auto; }
  .route-stage { position: static; height: auto; padding-block: clamp(90px, 12vh, 140px) 40px; display: block; }
  .route-grid { grid-template-columns: 1fr; gap: 40px; }
  .route-rail { display: none; }
  .deck { height: auto; display: grid; gap: 18px; }
  .deck-card { position: relative; inset: auto; transform: none !important; opacity: 1 !important; }

  .noise-pin { height: 240vh; }
  .diff-grid, .geo-grid { grid-template-columns: 1fr; }
  .geo-chart { max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .fig-divider { display: none; }
  .figs { flex-direction: column; gap: 28px; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(34px, 10vw, 52px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .hl-in { transform: none; }
  .hero-canvas, .hero-eyebrow, .hero-lead, .hero-cta, .hero-sub, .hud, .hero-compass, .scroll-cue { opacity: 1; animation: none; }
  .noise-pin { height: auto; }
  .noise-stage { position: static; height: auto; padding-block: 120px; }
  .noise-h2 .w { opacity: 1; }
  .figs { opacity: 1; transform: none; }
  .route-pin { height: auto; }
  .route-stage { position: static; height: auto; padding-block: 120px; display: block; }
  .deck { height: auto; display: grid; gap: 18px; }
  .deck-card { position: relative; inset: auto; }
  .reveal { opacity: 1; transform: none; }
}
