/* ============================================================
   PERIGEE — Orbital Disposal
   One idea: the page is the descent. Scroll is altitude.
   Everything below is a consequence of that.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* surfaces — near-black with a green temperature, three steps */
  --bg: #0A0B0A;
  --bg-2: #0F1110;
  --bg-3: #161918;

  /* ink — one warm neutral, dimmed for body */
  --ink: #E6E2D9;
  --ink-dim: rgba(230, 226, 217, 0.74);
  --ink-faint: rgba(230, 226, 217, 0.42);
  --ink-strong: #F4F1EA;

  /* hairline */
  --line: rgba(230, 226, 217, 0.13);
  --line-strong: rgba(230, 226, 217, 0.34);

  /* the one accent */
  --accent: #CCFF00;
  --accent-glow: rgba(204, 255, 0, 0.65);

  /* reentry — the fire section flips to paper-white */
  --fire-bg: #F1EDE1;
  --fire-ink: #0A0B0A;
  --fire-dim: rgba(10, 11, 10, 0.68);
  --fire-line: rgba(10, 11, 10, 0.16);

  /* type */
  --font-sans: 'Geist', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --fs-hero: clamp(3.1rem, 11.5vw, 14.5rem);
  --fs-h2: clamp(2.4rem, 6vw, 7rem);
  --fs-lede: clamp(1.05rem, 1.35vw, 1.25rem);

  /* space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(7rem, 15vh, 12rem);

  /* instrument colors (switched by .phase-fire) */
  --tape-ink: var(--ink);
  --tape-faint: var(--ink-faint);
  --tape-line: var(--line-strong);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-color: #2A2E2B var(--bg);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100svh;
}

::selection { background: var(--accent); color: #0A0B0A; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
em { font-style: normal; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.mono em { font-style: normal; color: var(--ink); }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  margin-right: 8px;
  vertical-align: 1px;
}

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--accent); color: #0A0B0A;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-decoration: none; padding: 0.7rem 1.1rem;
}
.skip:focus { top: 1rem; }

/* ---------- MATERIALS ---------- */
.grain {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
  background-image: url('assets/grain.svg');
  background-size: 220px;
  opacity: 0.05;
}
.vignette {
  position: fixed; inset: 0; z-index: 65;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(0,0,0,0.42) 100%);
}
body.phase-fire .vignette {
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(10,11,10,0.07) 100%);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem var(--gutter);
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.08em; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
}
.nav__ring { width: 18px; height: 18px; color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 2rem; }
.nav__book {
  font-size: 11px; letter-spacing: 0.12em; color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1rem;
  transition: border-color 0.3s, color 0.3s;
}
.nav__book:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- ENTRY ---------- */
.entry {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.entry__lines { width: min(560px, 82vw); }
.entry__line {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink-dim);
  padding: 7px 0;
}
.entry__line--ok { color: var(--ink); }
.entry__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
  margin-right: 10px; vertical-align: 1px;
}
.entry__scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.22;
  animation: entry-scan 0.9s ease-out both;
}
@keyframes entry-scan { from { top: 32%; } to { top: 66%; } }

/* ---------- SHARED SECTION PIECES ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.h2 {
  font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -0.025em; line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
}
.lede {
  color: var(--ink-dim);
  font-size: var(--fs-lede);
  max-width: 52ch;
}

/* ---------- 01 HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 7.5rem 0 0;
  overflow: clip;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
  position: relative; z-index: 2;
  padding: 4vh var(--gutter) 0;
  width: 100%;
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.88;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: var(--fill, 100%) 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__sub {
  margin-top: 3rem; max-width: 46ch;
  color: var(--ink-dim); font-size: var(--fs-lede);
}
.hero__rig {
  position: absolute; right: -2.5vw; bottom: 17vh;
  width: clamp(300px, 34vw, 600px);
  z-index: 1;
}
.tug-svg { width: 100%; height: auto; }
.svg-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  fill: var(--ink-faint);
}
.svg-tag--accent { fill: var(--accent); }
.hero .tug-asm {
  transform-box: fill-box;
  animation: tug-drift 14s ease-in-out infinite;
}
@keyframes tug-drift {
  0%, 100% { transform: translate(300px, 240px) rotate(-6deg); }
  50%      { transform: translate(300px, 240px) rotate(-3deg); }
}
.hero__instruments {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
  background: rgba(10, 11, 10, 0.55);
}
.hero__instruments p {
  padding: 1.1rem 1.4rem;
  border-left: 1px solid var(--line);
}
.hero__instruments p:first-child { border-left: none; }
.hero__instruments span {
  display: block; font-size: 9px; letter-spacing: 0.18em;
  color: var(--ink-faint); margin-bottom: 0.35rem;
}
.hero__instruments strong {
  font-weight: 500; font-size: 12px; color: var(--ink);
  letter-spacing: 0.04em;
}

/* ---------- 02 PROBLEM ---------- */
.problem {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}
.problem__head { grid-column: 1 / 13; display: flex; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
.problem__head .h2 { max-width: 13ch; flex: 0 1 auto; }
.problem__head .lede { margin: 0 0 0.6rem 0; }
.problem__number {
  grid-column: 7 / 13;
  padding-right: var(--gutter);
  text-align: right; align-self: end;
  margin: 4rem 0 3rem;
}
.problem__number-value {
  display: block;
  font-size: clamp(4rem, 9vw, 11rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 0.9;
  color: var(--ink-strong);
}
.problem__number-label {
  display: block; margin-top: 1rem;
  font-size: 10px; letter-spacing: 0.18em; color: var(--ink-faint);
}
.problem__stats { grid-column: 1 / 6; }
.problem__stats p {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint);
}
.problem__stats p:last-child { border-bottom: 1px solid var(--line); }
.problem__stats span {
  display: block;
  font-size: clamp(2rem, 3.6vw, 4rem); font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 0.5rem;
}
.problem__events { grid-column: 7 / 13; margin-top: 5rem; }
.problem__events-title {
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint);
  margin-bottom: 1rem;
}
.problem__events li {
  display: grid; grid-template-columns: 9em 1fr 10em; gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  font-size: 11px; letter-spacing: 0.08em;
}
.ev-date { color: var(--ink-faint); }
.ev-what { color: var(--ink); }
.ev-frags { color: var(--ink-faint); text-align: right; }
.problem__events-coda {
  margin-top: 1.6rem; color: var(--ink-dim);
  font-size: 1rem; max-width: 40ch;
}

/* ---------- 03 TUG ---------- */
.tug {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: start;
}
.tug__visual {
  grid-column: 1 / 8;
  position: sticky; top: 12vh;
}
.tug-svg--exploded .part { transform-box: fill-box; transform-origin: center center; }
.dim-line { transform-box: fill-box; transform-origin: left center; }
.tug__copy { grid-column: 8 / 13; }
.tug__copy .h2 { max-width: 12ch; }
.spec { margin-top: 3rem; }
.spec li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  font-size: 11px; letter-spacing: 0.1em;
}
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec span { color: var(--ink-faint); }
.spec strong { font-weight: 500; color: var(--ink); text-align: right; }

/* ---------- 04 BURN ---------- */
.burn {
  background: var(--bg-2);
  padding: 0;
  overflow: clip;
}
.burn__track { display: flex; }
.burn-panel {
  flex: 0 0 100vw;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
}
.burn-panel__inner { width: min(1200px, 84vw); }
.burn-panel__hint {
  margin-top: 3rem;
  font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint);
}
.burn-panel__hint--ok { color: var(--ink-dim); }
.burn-display {
  font-size: clamp(3rem, 8vw, 9rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.burn-display--small { font-size: clamp(2.4rem, 6vw, 6.5rem); }
.burn-panel__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.burn-readout { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.burn-readout__label {
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint);
  margin-bottom: 0.8rem;
}
.burn-readout__big {
  font-size: clamp(2.2rem, 5vw, 5.5rem); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.burn-status { color: var(--ink-faint); }
.dv-bar {
  margin: 1.6rem 0;
  height: 14px;
  border: 1px solid var(--line-strong);
  padding: 3px;
}
.dv-bar__fill {
  height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 14px var(--accent-glow);
}
.burn-readout__sub { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-faint); }
.burn-orbit { text-align: center; }
#orbit-svg { width: min(430px, 66vw); margin: 0 auto; }
.burn-orbit__note {
  font-size: 9px; letter-spacing: 0.14em; color: var(--ink-faint);
  margin-top: 1rem;
}
.burn-panel--intro .burn-panel__inner,
.burn-panel--outro .burn-panel__inner { text-align: left; }
.burn-summary {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem; margin-top: 3rem;
}
.burn-summary p {
  display: flex; flex-wrap: wrap; gap: 1rem 3.5rem;
  font-size: 13px; letter-spacing: 0.12em; color: var(--ink);
}

/* ---------- 05 RECORD ---------- */
.record__head { padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 4rem; flex-wrap: wrap; }
.record__head .h2 { margin-bottom: 0; }
.record__head .lede { margin-bottom: 0.4rem; }
.record__tables {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  padding: 5rem var(--gutter) 0;
}
.table-title {
  font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint);
  margin-bottom: 1.2rem; font-weight: 400;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; vertical-align: top;
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 0.85rem 0;
  font-weight: 400;
  font-size: 11px; letter-spacing: 0.08em;
}
.table th { color: var(--ink-faint); width: 11em; }
.table td { color: var(--ink); }
.table-note {
  margin-top: 1.6rem;
  font-size: 9px; letter-spacing: 0.14em; color: var(--ink-faint);
  max-width: 46ch;
}

/* ---------- 06 COAST ---------- */
.coast {
  min-height: 150vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.coast__line {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
.coast__line em { font-style: italic; }
.coast__foot {
  position: absolute; bottom: 3rem;
  font-size: 9px; letter-spacing: 0.18em; color: var(--ink-faint);
}

/* ---------- 07 REENTRY ---------- */
.reentry {
  --fire-bg: #F1EDE1;
  --fire-ink: #0A0B0A;
  --fire-dim: rgba(10, 11, 10, 0.68);
  --fire-line: rgba(10, 11, 10, 0.16);
  background: var(--fire-bg);
  color: var(--fire-ink);
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(8rem, 18vh, 14rem) 0;
  overflow: clip;
}
.reentry__counter { padding: 0 var(--gutter); }
.reentry__counter-label {
  font-size: 10px; letter-spacing: 0.22em; color: var(--fire-dim);
  margin-bottom: 1.4rem;
}
.reentry__counter-value {
  font-size: clamp(4.5rem, 16vw, 17rem); font-weight: 500;
  letter-spacing: -0.045em; line-height: 0.9;
  color: var(--fire-ink);
}
.reentry__title {
  font-size: clamp(2.4rem, 6vw, 7rem); font-weight: 600;
  letter-spacing: -0.025em; line-height: 0.98;
  text-transform: uppercase;
  padding: 0 var(--gutter);
  margin: 5rem 0 4rem;
  max-width: 15ch;
}
.reentry__descent {
  margin-left: auto;
  width: min(640px, 60vw);
  padding: 0 var(--gutter) 0 2rem;
}
.reentry__descent p {
  display: grid; grid-template-columns: 8em 1fr; gap: 1rem;
  border-top: 1px solid var(--fire-line);
  padding: 0.9rem 0;
  font-size: 11px; letter-spacing: 0.12em; color: var(--fire-dim);
}
.reentry__descent p:last-child { border-bottom: 1px solid var(--fire-line); }
.reentry__descent span { color: var(--fire-ink); font-weight: 500; }
.reentry__status {
  padding: 3rem var(--gutter) 0;
  font-size: 11px; letter-spacing: 0.2em; color: var(--fire-dim);
}
.debris {
  position: absolute;
  width: 2px; height: 14px;
  background: var(--fire-ink); opacity: 0.45;
}
.debris:nth-child(1) { left: 12%; top: 16%; height: 16px; }
.debris:nth-child(2) { left: 78%; top: 30%; height: 10px; }
.debris:nth-child(3) { left: 32%; top: 10%; height: 18px; }
.debris:nth-child(4) { left: 62%; top: 46%; height: 12px; }
.debris:nth-child(5) { left: 20%; top: 62%; height: 15px; }
.debris:nth-child(6) { left: 84%; top: 56%; height: 11px; }
.debris:nth-child(7) { left: 48%; top: 24%; height: 13px; }
.debris:nth-child(8) { left: 70%; top: 72%; height: 10px; }

/* ---------- 08 CLOSE ---------- */
.close__title {
  font-size: clamp(2.6rem, 6.5vw, 8rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 0.96;
  text-transform: uppercase;
  padding: 0 var(--gutter);
  max-width: 14ch;
  margin-bottom: 2.5rem;
}
.close__lede { margin: 0 var(--gutter); max-width: 52ch; }
.close__cta { padding: 5rem var(--gutter) 0; }
.cta {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 4rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 0.15em;
  transition: color 0.35s, border-color 0.35s;
}
.cta:hover { color: var(--accent); border-color: var(--accent); }
.close__meta {
  margin-top: 1.2rem;
  font-size: 10px; letter-spacing: 0.16em; color: var(--ink-faint);
}
.close__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
  border-top: 1px solid var(--line);
  margin: 7rem var(--gutter) 0;
  padding-top: 2.5rem;
}
.close__grid span {
  display: block; font-size: 9px; letter-spacing: 0.2em;
  color: var(--ink-faint); margin-bottom: 0.8rem;
}
.close__grid p { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-dim); line-height: 1.9; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;
  align-items: center;
  padding: 0 var(--gutter);
  font-size: 9px; letter-spacing: 0.14em; line-height: 1.9;
  color: var(--ink-faint);
}
.footer__grid p:last-child { text-align: right; }
.footer__status { color: var(--ink-dim); text-align: center; }

/* ---------- DESCENT INSTRUMENT ---------- */
.descent-instrument {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
}
.altimeter {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 88px;
  display: flex; flex-direction: column; align-items: center;
  padding: 6.5rem 0 1.6rem;
}
.altimeter__ticks {
  position: relative; flex: 1; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--tape-line) 0 1px, transparent 1px 9px);
}
.altimeter__marker {
  position: absolute; top: 0; left: -4px;
  width: 9px; height: 1px;
  background: var(--tape-ink);
  transform: translateY(var(--marker-px, 0px));
  box-shadow: 0 0 6px rgba(230, 226, 217, 0.35);
}
.altimeter__readout {
  margin-top: 20px; text-align: center;
  color: var(--tape-ink);
}
.altimeter__label {
  font-size: 9px; letter-spacing: 0.24em; color: var(--tape-faint);
  margin-bottom: 6px;
}
.altimeter__value { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.altimeter__unit { font-size: 10px; color: var(--tape-faint); margin-left: 3px; letter-spacing: 0.06em; }
.altimeter__clock { margin-top: 6px; font-size: 10px; color: var(--tape-faint); letter-spacing: 0.1em; }
.chip {
  display: none;
  position: absolute; left: 16px; bottom: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 10px; letter-spacing: 0.12em;
  gap: 12px; align-items: baseline;
}
.chip__label { color: var(--ink-faint); }
.chip__val { color: var(--ink); font-weight: 500; }
.chip__clock { color: var(--ink-faint); }

body.phase-fire .altimeter {
  --tape-ink: var(--fire-ink);
  --tape-faint: var(--fire-dim);
  --tape-line: var(--fire-line);
}
body.phase-fire .chip {
  background: var(--fire-bg);
  border-color: var(--fire-line);
}
body.phase-fire .chip__label,
body.phase-fire .chip__clock { color: var(--fire-dim); }
body.phase-fire .chip__val { color: var(--fire-ink); }

/* ---------- RESPONSIVE: TABLET & DOWN ---------- */
@media (max-width: 1100px) {
  .problem__number { grid-column: 7 / 13; }
}

@media (max-width: 900px) {
  .altimeter { display: none; }
  .chip { display: flex; }

  .section { padding: clamp(5rem, 12vh, 8rem) 0; }

  /* hero */
  .hero { padding-top: 6.5rem; }
  .hero__rig { position: static; margin: 3rem auto 0; width: min(78vw, 420px); }
  .hero__instruments { grid-template-columns: repeat(2, 1fr); }
  .hero__instruments p:nth-child(3) { border-left: none; }
  .hero__instruments p:nth-child(4),
  .hero__instruments p:nth-child(5),
  .hero__instruments p:nth-child(6) { border-top: 1px solid var(--line); }

  /* problem */
  .problem { display: block; }
  .problem__number { text-align: left; margin: 4rem 0 3rem; }
  .problem__stats { margin-bottom: 4rem; }
  .problem__stats p:last-child { border-bottom: none; }

  /* tug */
  .tug { display: block; }
  .tug__visual { position: static; margin-bottom: 3.5rem; }
  .tug-svg--exploded .xlabel { display: none; }

  /* burn: vertical, unpinned */
  .burn { overflow: visible; background: var(--bg); }
  .burn__track { flex-direction: column; }
  .burn-panel {
    flex: none; width: 100%;
    height: auto; min-height: 82svh;
    display: flex; align-items: center;
    padding: 4rem 0;
    border-top: 1px solid var(--line);
  }
  .burn-panel:first-child { border-top: none; }
  .burn-panel__inner--split { grid-template-columns: 1fr; gap: 2.5rem; }
  .burn-readout { border-left: none; border-top: 1px solid var(--line); padding: 1.8rem 0 0; }
  #orbit-svg { width: min(400px, 78vw); }

  /* record */
  .record__tables { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3.5rem; }

  /* coast */
  .coast { min-height: 120vh; }

  /* reentry */
  .reentry__descent { width: auto; max-width: 620px; margin-left: 0; padding: 0 var(--gutter); }

  /* close */
  .close__grid { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 5rem; }

  /* footer */
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
  .footer__grid p:last-child { text-align: left; }
  .footer__status { text-align: left; }
}

@media (max-width: 600px) {
  .nav__right { gap: 1.2rem; }

  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4.4rem); letter-spacing: -0.03em; }
  .hero__line--outline { -webkit-text-stroke: 1px var(--ink); }
  .hero__sub { margin-top: 2.2rem; }
  .hero__instruments strong { font-size: 11px; }

  .problem__head { display: block; }
  .problem__head .lede { margin-top: 0; }
  .problem__events li { grid-template-columns: 7.5em 1fr; }
  .ev-frags { grid-column: 2; text-align: left; }
  .problem__events { margin-top: 3.5rem; }

  .burn-panel__inner { width: 88vw; }
  .burn-display { font-size: clamp(2.3rem, 12vw, 4rem); }
  .burn-display--small { font-size: clamp(2rem, 10vw, 3.2rem); }
  .burn-summary p { gap: 0.6rem 2rem; font-size: 11px; }

  .table th { width: 8.5em; }
  .table th, .table td { padding: 0.8rem 0.7rem 0.8rem 0; font-size: 10px; }

  .coast__line { font-size: clamp(2.1rem, 10vw, 3.4rem); }

  .reentry__counter-value { font-size: clamp(3.6rem, 19vw, 6.5rem); }
  .reentry__title { font-size: clamp(1.9rem, 8.5vw, 3rem); margin: 3.5rem 0 3rem; }
  .reentry__descent p { grid-template-columns: 6.5em 1fr; font-size: 10px; }
  .reentry__status { padding-top: 2.2rem; }

  .close__title { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .entry__line { font-size: 10px; letter-spacing: 0.1em; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero .tug-asm { animation: none; }
  .entry { display: none; }
  .entry__scan { display: none; }
  html { scroll-behavior: auto; }
}
