/* ORBITAL · ConceptCore Academy curriculum · design-lab direction 01 */

:root {
  --bg0: #05080f;
  --bg1: #0a0f1c;
  --bg2: #101728;
  --panel: rgba(11, 16, 29, 0.93);
  --panel2: rgba(15, 21, 38, 0.93);
  --ink: #e9eef8;
  --mut: #9aa7bf;
  --mut2: #5f6b83;
  --line: rgba(151, 169, 208, 0.16);
  --line2: rgba(151, 169, 208, 0.34);
  --lime: #ced600;
  --lime-dim: rgba(206, 214, 0, 0.13);
  --env: #3fcf8e;
  --prop: #f09a54;
  --char: #ef6f9f;
  --key: #5aa7e8;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --disp: 'Space Grotesk', system-ui, sans-serif;
  --hudH: 56px;
  --telH: 38px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--bg0);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--disp);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg0);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: #10130a; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- stage / 3D ---------- */

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: clip;
  background:
    radial-gradient(120vmax 80vmax at 62% 38%, var(--bg2) 0%, var(--bg1) 42%, var(--bg0) 78%);
  opacity: 0;
  transition: opacity 900ms ease 150ms;
}
body.ready #stage { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #stage { opacity: 1; transition: none; }
}

#stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* soft vignette so overlaid text stays legible */
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.62) 0%, rgba(5, 8, 15, 0) 16%),
    linear-gradient(0deg, rgba(5, 8, 15, 0.66) 0%, rgba(5, 8, 15, 0) 18%);
}

#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.olabel {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #8290ac;
  white-space: nowrap;
  will-change: transform;
}
.olabel.sem { color: var(--line2); }
.olabel.now-l {
  color: var(--lime);
  font-size: 10.5px;
  text-shadow: 0 0 14px rgba(206, 214, 0, 0.45);
}
.olabel.webgl-err {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--mut);
}

/* ---------- HUD ---------- */

#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: var(--hudH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hud-left { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-left .brand { color: var(--ink); font-weight: 600; }
.hud-left .dim { color: var(--mut2); margin-left: 8px; }

#years { display: flex; gap: 6px; }
#years button {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mut);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 13px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
#years button:hover { color: var(--ink); border-color: var(--line2); }
#years button[aria-pressed="true"] {
  color: var(--lime);
  border-color: rgba(206, 214, 0, 0.55);
  background: var(--lime-dim);
}
#years button .coh { color: var(--mut2); font-weight: 400; margin-left: 6px; }
#years button[aria-pressed="true"] .coh { color: rgba(206, 214, 0, 0.7); }

.hud-right { display: flex; align-items: center; gap: 16px; }
.now-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  text-transform: none;
  letter-spacing: 0.08em;
}
.lab-links { display: inline-flex; gap: 2px; }
.lab-links a {
  color: var(--mut2);
  text-decoration: none;
  padding: 6px 7px;
  transition: color 150ms ease;
}
.lab-links a:hover { color: var(--lime); }

.pulse {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 8px rgba(206, 214, 0, 0.8);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(206, 214, 0, 0.8); }
  50% { opacity: 0.45; box-shadow: 0 0 2px rgba(206, 214, 0, 0.3); }
}

/* ---------- telemetry strip (instructor days) ---------- */

#telemetry {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  height: var(--telH);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.t-label { color: var(--mut2); flex: none; }
.t-read { color: var(--ink); flex: none; letter-spacing: 0.1em; }
.t-read b { color: var(--lime); font-weight: 600; }
.t-meter {
  flex: 1;
  display: flex;
  gap: 2px;
  height: 7px;
  align-items: stretch;
}
.t-meter i {
  flex: 1;
  background: rgba(151, 169, 208, 0.18);
  min-width: 1px;
}
.t-meter i.on { background: var(--lime); }
body.ready .t-meter i { transition: background-color 400ms ease; }

/* ---------- track / sections ---------- */

#track {
  position: relative;
  z-index: 1;
  pointer-events: none; /* canvas hover passes through empty zones */
}
#track a, #track button, .dossier, .gate-in, .intro-in, .outro-in {
  pointer-events: auto;
}

.nojs { color: var(--mut); padding: 40vh 24px; text-align: center; }

section.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--hudH) + 4vh) 6vw var(--telH);
}
.intro-in { max-width: 720px; }

.kicker { color: var(--mut2); margin-bottom: 26px; }
.kicker .k-strong { color: var(--mut); }

.y-title {
  font-size: clamp(54px, 7.2vw, 108px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}
.y-title .session {
  display: block;
  font-weight: 300;
  color: var(--mut2);
  font-size: 0.42em;
  letter-spacing: 0.01em;
  margin-top: 10px;
}

.y-sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--mut);
  font-size: 16.5px;
  text-wrap: pretty;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
  margin-top: 28px;
}
.stats > div {
  padding: 2px 26px 2px 16px;
  border-left: 1px solid var(--line2);
}
.stats dt {
  color: var(--mut2);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.stats dd {
  font-family: var(--disp);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.stats dd.lime { color: var(--lime); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 30px;
  color: var(--mut2);
}
.legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw {
  width: 9px; height: 9px;
  background: var(--c);
  flex: none;
}
.legend .dot {
  width: 7px; height: 7px;
  border: 1px solid var(--mut2);
  border-radius: 50%;
  flex: none;
}
.legend .dot.br { border-style: dashed; opacity: 0.7; }

.resume {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid rgba(206, 214, 0, 0.4);
  background: var(--lime-dim);
  color: var(--ink);
  text-decoration: none;
  min-width: min(360px, 78vw);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.resume:hover {
  border-color: var(--lime);
  background: rgba(206, 214, 0, 0.19);
  transform: translateY(-2px);
}
.resume .r-k { color: var(--lime); display: inline-flex; align-items: center; gap: 8px; }
.resume .r-n { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.resume .r-d { color: var(--mut); text-transform: none; letter-spacing: 0.06em; }
.resume .r-d .arr { color: var(--lime); }

.hint { margin-top: 52px; color: var(--mut2); }

/* entrance choreography (once, on load) */
@media (prefers-reduced-motion: no-preference) {
  .intro-in > * { opacity: 0; transform: translateY(16px); }
  body.ready .intro-in > * {
    opacity: 1; transform: none;
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.ready .intro-in > *:nth-child(1) { transition-delay: 100ms; }
  body.ready .intro-in > *:nth-child(2) { transition-delay: 190ms; }
  body.ready .intro-in > *:nth-child(3) { transition-delay: 280ms; }
  body.ready .intro-in > *:nth-child(4) { transition-delay: 370ms; }
  body.ready .intro-in > *:nth-child(5) { transition-delay: 460ms; }
  body.ready .intro-in > *:nth-child(6) { transition-delay: 560ms; }
}

/* ---------- semester gates ---------- */

section.gate {
  min-height: 104vh;
  display: flex;
  align-items: center;
  padding: 10vh 6vw;
  position: relative;
  overflow: clip;
}
.gate-in { position: relative; max-width: 700px; }
.gate-in::before {
  content: "";
  position: absolute;
  inset: -70px -110px;
  background: radial-gradient(closest-side, rgba(5, 8, 15, 0.78), transparent);
  z-index: -2;
  pointer-events: none;
}

.gate-num {
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-54%);
  z-index: -1;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(180px, 34vw, 460px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(151, 169, 208, 0.3);
  user-select: none;
}
section.gate .gate-num { right: auto; left: 30vw; }

.gate-k { color: var(--mut2); margin-bottom: 18px; }
.gate-h {
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.gate-range { margin-top: 16px; color: var(--mut); }

.gate-meter {
  margin-top: 30px;
  width: min(440px, 76vw);
  height: 8px;
  border: 1px solid var(--line2);
  padding: 1px;
  position: relative;
}
.gate-meter .g-ticks {
  position: absolute;
  inset: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%);
  pointer-events: none;
}
.gate-meter .fill {
  height: 100%;
  width: 0%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(206, 214, 0, 0.35);
}
section.docked .gate-meter .fill { width: var(--pct); }
@media (prefers-reduced-motion: no-preference) {
  .gate-meter .fill { transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1) 150ms; }
}
.gate-pct { margin-top: 12px; color: var(--mut); }
.gate-pct b { color: var(--lime); font-weight: 600; font-size: 13px; }

/* ---------- course legs / dossiers ---------- */

section.leg {
  min-height: 98vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10vh 5.5vw 10vh 6vw;
}
section.leg.focus-leg { min-height: 140vh; }
section.leg.break-leg { min-height: 70vh; }

.dossier {
  width: min(478px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 22px 22px;
  position: relative;
  will-change: transform, opacity;
}
.dossier.hero {
  width: min(566px, 100%);
  background: var(--panel2);
  border-color: rgba(206, 214, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(206, 214, 0, 0.12), 0 0 60px rgba(206, 214, 0, 0.07);
  padding: 24px 26px 26px;
}

/* dock-in choreography */
@media (prefers-reduced-motion: no-preference) {
  section.leg .dossier, section.gate .gate-in > *, section.outro .outro-in {
    opacity: 0;
    transform: translateY(26px);
  }
  section.docked .dossier, section.gate.docked .gate-in > *, section.outro.docked .outro-in {
    opacity: 1;
    transform: none;
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  section.gate.docked .gate-in > *:nth-child(2) { transition-delay: 70ms; }
  section.gate.docked .gate-in > *:nth-child(3) { transition-delay: 140ms; }
  section.gate.docked .gate-in > *:nth-child(4) { transition-delay: 210ms; }
  section.gate.docked .gate-in > *:nth-child(5) { transition-delay: 280ms; }
}

.d-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mut2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.d-chips { display: inline-flex; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line2);
  color: var(--mut);
  font-size: 9.5px;
  letter-spacing: 0.13em;
}
.chip.st-current {
  color: var(--lime);
  border-color: rgba(206, 214, 0, 0.55);
  background: var(--lime-dim);
}
.chip.st-completed { color: var(--mut2); border-color: var(--line); }
.chip.st-upcoming { color: var(--mut); }
.chip.tbd { color: var(--prop); border-color: rgba(240, 154, 84, 0.4); }

/* cover / visual intel */
.intel {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: var(--bg1);
  margin-bottom: 14px;
}
.dossier.hero .intel { aspect-ratio: 21 / 9; }
.intel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.03);
}
.dossier.st-completed .intel img { filter: saturate(0.55) brightness(0.82) contrast(1.03); }
.dossier.st-completed { border-color: rgba(151, 169, 208, 0.1); }
.intel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(232, 238, 250, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(5, 8, 15, 0) 62%, rgba(5, 8, 15, 0.5) 100%);
}
.intel .c {
  position: absolute;
  width: 15px; height: 15px;
  border: 0 solid rgba(232, 238, 250, 0.75);
  z-index: 2;
  pointer-events: none;
}
.intel .ctl { top: 7px; left: 7px; border-top-width: 1px; border-left-width: 1px; }
.intel .ctr { top: 7px; right: 7px; border-top-width: 1px; border-right-width: 1px; }
.intel .cbl { bottom: 7px; left: 7px; border-bottom-width: 1px; border-left-width: 1px; }
.intel .cbr { bottom: 7px; right: 7px; border-bottom-width: 1px; border-right-width: 1px; }
.intel-cap {
  position: absolute;
  left: 12px; bottom: 9px;
  z-index: 2;
  color: rgba(232, 238, 250, 0.85);
  font-size: 9.5px;
  text-shadow: 0 1px 6px rgba(5, 8, 15, 0.8);
}

.type-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mut);
  margin-bottom: 10px;
}
.type-row .sw {
  width: 9px; height: 9px;
  background: var(--type);
  flex: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--type) 55%, transparent);
}

.d-name {
  font-size: clamp(23px, 1.9vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.12;
  text-wrap: balance;
}
.dossier.hero .d-name { font-size: clamp(27px, 2.3vw, 34px); }

.d-blurb {
  margin-top: 10px;
  color: var(--mut);
  font-size: 14.5px;
  text-wrap: pretty;
}

.meta {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 26px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.meta dt { color: var(--mut2); font-size: 9px; letter-spacing: 0.16em; }
.meta dd {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 4px;
}
.meta dd.tbd-t { color: var(--prop); }

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.skills li {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  border: 1px solid var(--line);
  padding: 4px 9px;
}

.days {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.days-l { color: var(--mut2); flex: none; }
.days-r { color: var(--mut); flex: none; text-transform: none; letter-spacing: 0.06em; }
.days-r b { color: var(--ink); font-weight: 600; }
.dossier.st-current .days-r b { color: var(--lime); }
.ticks { flex: 1; display: flex; gap: 3px; height: 9px; }
.ticks i { flex: 1; background: rgba(151, 169, 208, 0.16); border: 1px solid var(--line); }
.ticks i.on { background: var(--type, var(--mut)); border-color: transparent; }
.dossier.st-current .ticks i.on { background: var(--lime); box-shadow: 0 0 7px rgba(206, 214, 0, 0.4); }
.dossier.st-completed .ticks i.on { opacity: 0.5; }

.open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line2);
  padding: 10px 16px;
  transition: border-color 170ms ease, color 170ms ease, background-color 170ms ease;
}
.open .arr { transition: transform 170ms ease; }
.open:hover { border-color: var(--lime); color: var(--lime); background: var(--lime-dim); }
.open:hover .arr { transform: translateX(4px); }

/* NOW rail on the current course */
.now-rail {
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(206, 214, 0, 0.5);
}
.now-tag {
  position: absolute;
  left: -1px;
  top: -32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lime);
  white-space: nowrap;
}
.now-tag::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
  margin-left: 4px;
}

/* break block */
.dossier.break {
  background: rgba(9, 13, 24, 0.82);
  border: 1px dashed var(--line2);
  text-align: left;
}
.dossier.break .d-top { border-bottom-color: transparent; margin-bottom: 4px; }
.dossier.break .d-name { color: var(--mut); font-weight: 500; }
.dossier.break .b-dates { margin-top: 10px; color: var(--mut2); }
.dossier.break .d-blurb { color: var(--mut2); }
.drift-dots {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  opacity: 0.5;
}
.drift-dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mut2);
}
.drift-dots i:nth-child(2n) { opacity: 0.5; }
.drift-dots i:nth-child(3n) { width: 3px; height: 3px; }

/* ---------- outro ---------- */

section.outro {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 10vh 6vw calc(var(--telH) + 8vh);
}
.outro-in { max-width: 520px; }
.outro-k { color: var(--mut2); margin-bottom: 18px; }
.outro-h {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.outro-sub { margin-top: 16px; color: var(--mut); }
.outro-top {
  display: inline-flex;
  margin-top: 34px;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  transition: color 170ms ease, border-color 170ms ease;
}
.outro-top:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- tooltip ---------- */

#tip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  background: rgba(5, 8, 15, 0.92);
  border: 1px solid var(--line2);
  color: var(--ink);
  padding: 7px 11px;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translate(14px, 18px);
}
#tip .t-now { color: var(--lime); }
#tip .t-mut { color: var(--mut2); }
#tip .t-sw {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  vertical-align: 0;
}

/* ---------- mobile ---------- */

@media (max-width: 880px) {
  :root { --hudH: 50px; --telH: 34px; }

  #hud { padding: 0 12px; gap: 8px; }
  .hud-left .dim { display: none; }
  .hud-left .brand { font-size: 9.5px; }
  .hud-left .b2 { display: none; }
  .now-chip { display: none; }
  #years { gap: 4px; }
  #years button { padding: 8px 10px; }
  #years button .coh { display: none; }
  .lab-links a { padding: 8px 6px; }

  #stage {
    position: relative;
    inset: auto;
    height: 46vh;
    margin-top: var(--hudH);
    border-bottom: 1px solid var(--line);
  }
  #stage::after {
    background: linear-gradient(0deg, rgba(5, 8, 15, 0.5) 0%, rgba(5, 8, 15, 0) 14%);
  }

  #track { pointer-events: auto; }

  section.intro {
    min-height: 0;
    padding: 40px 20px 30px;
  }
  section.gate {
    min-height: 0;
    padding: 76px 20px;
  }
  .gate-num { left: auto; right: -4vw; font-size: 56vw; }
  section.leg, section.leg.focus-leg, section.leg.break-leg {
    min-height: 0;
    padding: 26px 16px;
    justify-content: center;
  }
  .dossier, .dossier.hero { width: 100%; }
  section.outro { min-height: 0; padding: 70px 20px calc(var(--telH) + 60px); }

  .y-title { font-size: clamp(44px, 13vw, 64px); }
  .stats > div { padding: 2px 18px 2px 12px; }
  .stats dd { font-size: 24px; }
  .olabel { font-size: 8.5px; letter-spacing: 0.14em; }
  .now-tag { position: static; transform: none; margin-bottom: 12px; display: inline-flex; }
  .now-rail { width: 3px; }
  .dossier.hero { padding-top: 22px; }
  .dossier.hero .now-tag { margin-top: 0; }

  #telemetry { padding: 0 12px; gap: 10px; }
  .t-label { display: none; }
  .t-meter { gap: 1px; }
}

/* touch targets */
@media (pointer: coarse) {
  #years button { min-height: 44px; min-width: 44px; }
  .lab-links a { padding: 12px 10px; }
  .open { padding: 13px 18px; }
}

/* reduced motion: everything readable, nothing moving */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
