/* Sunken Choir · roadmap site
   One idea runs through the page: scrolling is diving. The water darkens with depth (--dark, 0 at the surface,
   1 at the bottom, set by site.js), the light rays fade out, and the readouts count the metres. */

@font-face { font-family: 'VT323'; src: url('/fonts/vt323.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --dark: 0;
  --surface: #0c4058;
  --mid: #062236;
  --deep: #01060b;
  --ink: #dcf2f5;
  --ink-2: #9dbcc4;
  --ink-3: #64848d;
  --line: rgba(159, 243, 255, .14);
  --line-2: rgba(159, 243, 255, .28);
  --cyan: #9ff3ff;
  --cyan-d: #2fb8cc;
  --green: #6fe3a0;
  --amber: #ffc163;
  --amber-d: #c9862a;
  --violet: #b49cff;
  --panel: rgba(4, 22, 33, .78);
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --pixel: 'VT323', ui-monospace, monospace;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--deep);
  background-image:
    linear-gradient(180deg,
      color-mix(in oklab, var(--surface), var(--deep) calc(var(--dark) * 100%)) 0%,
      color-mix(in oklab, var(--mid), var(--deep) calc(var(--dark) * 100%)) 55%,
      var(--deep) 100%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--amber); color: #1a0e00; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--amber); color: #1a0e00; font: 500 14px var(--mono); text-decoration: none; border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- ambient layers */
.sea { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.rays {
  position: fixed; inset: 0 0 auto 0; height: 110vh; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: calc(.9 - var(--dark) * 1.8);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%);
}
.rays i {
  position: absolute; top: -20vh; width: 9vw; height: 140vh;
  background: linear-gradient(180deg, rgba(190, 245, 255, .16), rgba(190, 245, 255, 0) 80%);
  transform-origin: 50% 0; filter: blur(6px);
  animation: sway 14s var(--ease-io) infinite alternate;
}
.rays i:nth-child(1) { left: 8%;  transform: rotate(14deg); animation-duration: 13s; }
.rays i:nth-child(2) { left: 27%; width: 4vw; transform: rotate(10deg); animation-duration: 17s; animation-delay: -4s; opacity: .7; }
.rays i:nth-child(3) { left: 46%; width: 12vw; transform: rotate(16deg); animation-duration: 15s; animation-delay: -8s; }
.rays i:nth-child(4) { left: 68%; width: 5vw; transform: rotate(12deg); animation-duration: 19s; animation-delay: -2s; opacity: .6; }
.rays i:nth-child(5) { left: 84%; width: 8vw; transform: rotate(15deg); animation-duration: 16s; animation-delay: -11s; opacity: .8; }
@keyframes sway { from { rotate: -3deg; opacity: .55; } to { rotate: 4deg; opacity: 1; } }

main, .foot { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background-color: rgba(2, 13, 20, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(80, 220, 255, .45)); transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-name { font: 30px/1 var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); text-shadow: 2px 2px 0 #04151d, 0 0 18px rgba(80, 220, 255, .35); }

.nav-readout {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s var(--ease-out);
}
.nav.is-solid .nav-readout { opacity: 1; transform: none; }
.nav-readout .val { font: 26px/1 var(--pixel); letter-spacing: .06em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.nav-readout .val::before { content: '−'; margin-right: 1px; }
.nav-readout .val small { font: 500 11px var(--mono); margin-left: 3px; color: var(--ink-3); }
.nav-readout .sep { width: 18px; height: 1px; background: var(--line-2); }
.nav-readout .phase { color: var(--ink-2); min-width: 9ch; }

.nav-links { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nl {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; text-decoration: none; color: var(--ink-2);
  border-radius: 999px; transition: color .25s, background-color .25s;
}
.nl svg { width: 18px; height: 18px; flex: none; }
.nl:hover { color: var(--ink); background-color: rgba(159, 243, 255, .08); }
.nl-steam {
  margin-left: 6px; color: #1b1100; background: var(--amber);
  box-shadow: 0 0 0 1px rgba(255, 193, 99, .5), 0 6px 22px -6px rgba(255, 170, 60, .6);
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .25s;
}
.nl-steam em { font-style: normal; opacity: .75; }
.nl-steam:hover { color: #1b1100; background: #ffd08a; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 193, 99, .7), 0 10px 28px -6px rgba(255, 170, 60, .75); }

.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.nav-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--amber) 30%, var(--cyan) 60%, var(--violet)); }

/* ---------------------------------------------------------------- depth gauge (wide screens) */
.gauge {
  position: fixed; z-index: 40; left: clamp(14px, 2vw, 34px); top: 50%; height: 56vh; width: 46px;
  transform: translateY(-46%); pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.gauge.is-on { opacity: 1; }
.gauge-scale {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background:
    repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 10px) left / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(159,243,255,.5) 0 1px, transparent 1px 50px) left / 10px 100% no-repeat;
}
.gauge-fill { position: absolute; left: 0; top: 0; width: 2px; height: 100%; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, var(--green), var(--amber) 30%, var(--cyan) 60%, var(--violet)); box-shadow: 0 0 10px rgba(159, 243, 255, .5); }
.gauge-tick { position: absolute; left: -3px; width: 16px; height: 16px; margin-top: -8px; }
.gauge-tick::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--ink-3); transform: rotate(45deg); background: var(--deep); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.gauge-tick.is-past::before { background: var(--tone, var(--cyan)); border-color: var(--tone, var(--cyan)); box-shadow: 0 0 10px var(--tone, var(--cyan)); }
.gauge-marker { position: absolute; left: 14px; top: 0; transform: translateY(-50%); will-change: transform;
  font: 20px/1 var(--pixel); color: var(--cyan); letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-marker::before { content: ''; position: absolute; left: -12px; top: 50%; width: 8px; height: 1px; background: var(--cyan); }
.gauge-marker span::before { content: '−'; }
.gauge-marker span::after { content: ' m'; font: 500 10px var(--mono); color: var(--ink-3); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: -3% 0 16% 0; z-index: -2; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; animation: heroIn 2.4s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.12); filter: brightness(.3) saturate(.6); } to { opacity: 1; transform: none; filter: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 70% 30%, transparent 0%, rgba(2, 12, 19, .35) 60%, rgba(2, 12, 19, .75) 100%),
    linear-gradient(90deg, rgba(2, 12, 19, .62) 0%, rgba(2, 12, 19, .2) 38%, transparent 60%),
    linear-gradient(180deg, rgba(3, 16, 25, .55) 0%, transparent 22%, transparent 52%, rgba(4, 22, 34, .8) 80%, color-mix(in oklab, var(--mid), var(--deep) calc(var(--dark) * 100%)) 100%); }

.hero-hud { position: absolute; inset: calc(var(--nav-h) + 18px) var(--gutter) 28px; pointer-events: none; z-index: 0; }
.hud-c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(159, 243, 255, .45); animation: hudIn 1.2s .8s var(--ease-out) both; }
.hud-c.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-c.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-c.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-c.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
@keyframes hudIn { from { opacity: 0; scale: 1.6; } to { opacity: 1; scale: 1; } }
.hud-line { position: absolute; font: 500 11px/1 var(--mono); letter-spacing: .18em; color: rgba(190, 235, 245, .6); animation: fadeIn 1s 1.3s both; }
.hud-a { top: 6px; left: 34px; }
.hud-b { top: 6px; right: 34px; text-align: right; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-copy { position: relative; padding: 0 var(--gutter) clamp(56px, 11vh, 120px) calc(var(--gutter) + clamp(0px, 5vw, 70px)); max-width: 1180px; will-change: transform, opacity; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); animation: rise 1s .5s var(--ease-out) both; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-title { margin-top: 18px; font: clamp(58px, 8.2vw, 124px)/.84 var(--pixel); letter-spacing: .02em; text-transform: uppercase; color: #f2fdff; text-shadow: 4px 4px 0 rgba(2, 14, 22, .8), 0 0 40px rgba(80, 220, 255, .25); }
.hero-title span { display: block; }
.ht-1 { animation: rise 1.1s .65s var(--ease-out) both; }
.ht-2 { color: var(--cyan); padding-left: .9em; white-space: nowrap; animation: rise 1.1s .8s var(--ease-out) both; }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); animation: rise 1.1s 1s var(--ease-out) both; }
.lede strong { color: var(--ink); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.dive { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); animation: rise 1.1s 1.2s var(--ease-out) both; }
.dive-ring { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .3s, background-color .3s; }
.dive-ring::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0; animation: ping 2.6s 2s var(--ease-out) infinite; }
.dive-ring svg { width: 18px; height: 18px; animation: bob 2.2s var(--ease-io) infinite; }
.dive:hover .dive-ring { border-color: var(--cyan); background-color: rgba(159, 243, 255, .08); }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

/* ---------------------------------------------------------------- route (the roadmap) */
.route { --rail: clamp(56px, 9vw, 150px); position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter) 40px calc(var(--gutter) + var(--rail)); }
.cable { position: absolute; top: 0; bottom: 120px; left: calc(var(--gutter) + var(--rail) / 2); width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
.cable-fill { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, var(--green) 0%, var(--amber) 30%, var(--cyan) 62%, var(--violet) 92%);
  box-shadow: 0 0 14px rgba(159, 243, 255, .45); }

.stop { --tone: var(--green); --tone-rgb: 111, 227, 160; --pad: clamp(80px, 15vh, 150px); position: relative; padding: var(--pad) 0 clamp(30px, 5vh, 60px); }
.stop-launch { --tone: var(--amber); --tone-rgb: 255, 193, 99; }
.stop-cyan { --tone: var(--cyan); --tone-rgb: 159, 243, 255; }
.stop-violet { --tone: var(--violet); --tone-rgb: 180, 156, 255; }

.stop-node { position: absolute; top: calc(var(--pad) + 40px); left: calc(var(--rail) / -2); width: 26px; height: 26px; margin-left: -13px; z-index: 2; }
.stop-node::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #031019; border: 2px solid var(--ink-3); box-shadow: 0 0 0 6px rgba(1, 8, 13, .85); transition: border-color .5s, box-shadow .5s; }
.stop-node i { position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-3); transition: background-color .5s, box-shadow .5s; }
.stop-node::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--tone); opacity: 0; }
.stop.is-reached .stop-node::before { border-color: var(--tone); box-shadow: 0 0 0 6px rgba(1, 8, 13, .85), 0 0 24px rgba(var(--tone-rgb), .7); }
.stop.is-reached .stop-node i { background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.stop.is-reached .stop-node::after { animation: sonar 2.8s var(--ease-out) 2; }
@keyframes sonar { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }

.stop-ghost {
  position: absolute; right: 0; top: 0; z-index: -1; pointer-events: none; user-select: none;
  font: clamp(96px, 15vw, 230px)/.8 var(--pixel); letter-spacing: -.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--tone-rgb), .22);
  transform: translateY(calc(-8% + var(--p, 0) * -70px)); will-change: transform;
}
.stop-ghost::after { content: 'M'; font-size: .38em; margin-left: .08em; }

.stop-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 40, 58, .7), var(--panel));
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: border-color .4s;
}
.stop-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); box-shadow: 0 0 18px rgba(var(--tone-rgb), .55); z-index: 2; }
.stop-card:hover { border-color: rgba(var(--tone-rgb), .38); }

.stop-text { position: relative; z-index: 1; padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3.4vw, 46px); }
.stop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tone); }
.chip { padding: 5px 9px 4px; background: var(--tone); color: #04121a; border-radius: 2px; letter-spacing: .2em; }
.depth-tag { margin-left: auto; color: var(--ink-3); letter-spacing: .1em; }
.stop h2 { margin: 18px 0 20px; font: clamp(40px, 5vw, 66px)/.9 var(--pixel); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
.stop li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--ink); line-height: 1.45; }
.stop li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; background: var(--tone); transform: rotate(45deg); box-shadow: 0 0 8px rgba(var(--tone-rgb), .8); }

.stop-pic { position: relative; min-height: 260px; overflow: hidden; background: #020b11; }
.stop-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.stop-pic::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 24, 36, .96) 0%, rgba(5, 24, 36, 0) 34%),
              repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); }
.stop-pic::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--tone-rgb), .28) 48%, rgba(var(--tone-rgb), .6) 50%, transparent 52%); }
.stop-card:hover .stop-pic img { transform: scale(1.04); }

/* launch: the stop everything leads to */
.stop-launch .stop-card { border-color: rgba(255, 193, 99, .45); background: linear-gradient(160deg, rgba(64, 42, 10, .6) 0%, rgba(10, 30, 42, .9) 42%, var(--panel) 100%);
  box-shadow: 0 0 0 1px rgba(255, 193, 99, .15), 0 0 80px -10px rgba(255, 170, 60, .25), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.stop-launch h2 { color: var(--amber); text-shadow: 3px 3px 0 #2a1600, 0 0 26px rgba(255, 170, 60, .35); }
.stop-launch .stop-node { width: 34px; height: 34px; margin-left: -17px; top: calc(var(--pad) + 36px); }
.stop-launch .stop-node i { inset: 9px; }

.countdown { margin: 26px 0 6px; padding-top: 20px; border-top: 1px dashed rgba(255, 193, 99, .3); }
.cd-label { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.cd-digits { display: flex; gap: 20px; margin-top: 10px; }
.cd-digits span { display: flex; align-items: baseline; gap: 6px; }
.cd-digits b { font: 400 54px/1 var(--pixel); color: var(--amber); font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(255, 170, 60, .35); }
.cd-digits small { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; margin-top: 22px;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-decoration: none; border-radius: 3px;
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s, color .3s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { color: #1b1100; background: var(--amber); box-shadow: 4px 4px 0 var(--amber-d); }
.btn-amber:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--amber-d), 0 0 34px rgba(255, 170, 60, .4); }
.btn-amber:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--amber-d); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(4, 22, 33, .5); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; background: rgba(159, 243, 255, .08); transform: translateY(-2px); }
.btn-lg { height: 54px; padding: 0 24px; font-size: 14px; }

/* ---------------------------------------------------------------- developer note */
.note { padding: 60px var(--gutter) 40px; }
.note-inner { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: rgba(2, 14, 22, .7); border-radius: 4px; }
.note-inner::before, .note-inner::after { content: ''; position: absolute; width: 14px; height: 14px; border: 0 solid var(--cyan); }
.note-inner::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.note-inner::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 10px #ff5f57; animation: blink 1.6s steps(2, jump-none) infinite; }
.note-inner p:not(.note-head) { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink); margin-top: 12px; }
.note-inner .note-sign { margin-top: 26px; font: 26px/1 var(--pixel); letter-spacing: .06em; color: var(--ink-2); }

/* ---------------------------------------------------------------- outro + footer */
.outro { padding: clamp(100px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); text-align: center; }
.outro-title { font: clamp(56px, 10vw, 150px)/.86 var(--pixel); letter-spacing: .03em; text-transform: uppercase; color: var(--amber); text-shadow: 5px 5px 0 #2a1600, 0 0 60px rgba(255, 170, 60, .3); }
.outro-title span { display: block; }
.outro-title span + span { color: #fff1d6; }
.outro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 46px; }
.outro-actions .btn { margin-top: 0; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(1, 6, 10, .6); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 22px/1 var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.foot-small { font: 400 12px/1.5 var(--mono); color: var(--ink-3); }

/* ---------------------------------------------------------------- scroll reveals (only with JS) */
.js [data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .stop-card .stop-pic { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s .25s var(--ease-io); }
.js .stop-card.is-in .stop-pic { clip-path: inset(0 0 0 0); }
.js .stop-card.is-in .stop-pic::after { animation: scan 1.5s .3s var(--ease-io) both; }
@keyframes scan { 0% { opacity: 1; transform: translateX(100%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100%); } }
.js .stop-card li, .js .stop-card h2, .js .stop-card .stop-meta, .js .stop-card .countdown, .js .stop-card .btn { opacity: 0; transform: translateX(-14px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.js .stop-card.is-in :is(li, h2, .stop-meta, .countdown, .btn) { opacity: 1; transform: none; }
.js .stop-card.is-in .stop-meta { transition-delay: .15s; }
.js .stop-card.is-in h2 { transition-delay: .25s; }
.js .stop-card.is-in li:nth-child(1) { transition-delay: .38s; }
.js .stop-card.is-in li:nth-child(2) { transition-delay: .46s; }
.js .stop-card.is-in li:nth-child(3) { transition-delay: .54s; }
.js .stop-card.is-in li:nth-child(4) { transition-delay: .62s; }
.js .stop-card.is-in li:nth-child(5) { transition-delay: .70s; }
.js .stop-card.is-in .countdown { transition-delay: .8s; }
.js .stop-card.is-in .btn { transition-delay: .9s; }
.js .note-inner p { opacity: 0; transition: opacity .9s var(--ease-out); }
.js .note-inner.is-in p { opacity: 1; }
.js .note-inner.is-in p:nth-of-type(2) { transition-delay: .2s; }
.js .note-inner.is-in p:nth-of-type(3) { transition-delay: .5s; }
.js .note-inner.is-in p:nth-of-type(4) { transition-delay: .8s; }
.js .note-inner.is-in p:nth-of-type(5) { transition-delay: 1.1s; }
.js .outro-title span { opacity: 0; transform: translateY(.3em); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .outro-title.is-in span { opacity: 1; transform: none; }
.js .outro-title.is-in span + span { transition-delay: .18s; }
.js .outro-title[data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .gauge { display: none; }
  .nav-readout { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 860px) {
  .stop-card { grid-template-columns: 1fr; }
  .stop-pic { order: -1; min-height: 0; aspect-ratio: 16 / 8.5; }
  .stop-pic::before { background: linear-gradient(0deg, rgba(5, 24, 36, .95) 0%, rgba(5, 24, 36, 0) 40%), repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); }
  .js .stop-card .stop-pic { clip-path: inset(0 0 100% 0); }
  .stop-node, .stop-launch .stop-node { top: calc(var(--pad) + 18px); }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nl span { display: none; }
  .nl { padding: 0; width: 40px; justify-content: center; }
  .nl-steam { width: auto; padding: 0 14px; }
  .nl-steam span { display: inline; }
  .nl-steam em { display: none; }
  .brand-name { font-size: 24px; }
  .route { --rail: 34px; }
  .stop-node { width: 18px; height: 18px; margin-left: -9px; }
  .stop-node i { inset: 4px; }
  .stop-launch .stop-node { width: 24px; height: 24px; margin-left: -12px; }
  .stop-launch .stop-node i { inset: 6px; }
  .depth-tag { margin-left: 0; }
  .hud-line { display: none; }
  .ht-2 { padding-left: 0; }
  .cd-digits b { font-size: 44px; }
  .outro-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* ---------------------------------------------------------------- reduced motion: same page, no movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .stop-card :is(li, h2, .stop-meta, .countdown, .btn), .js .note-inner p, .js .outro-title span { opacity: 1; transform: none; }
  .js .stop-card .stop-pic { clip-path: none; }
  .stop-ghost { transform: translateY(-8%); }
}

/* ---------------------------------------------------------------- 404 */
.lost { display: grid; place-items: center; min-height: 100vh; }
.lost-main { padding: 40px var(--gutter); max-width: 900px; }
.lost .hero-title { font-size: clamp(54px, 10vw, 120px); }
