/* ==========================================================================
   Astronaut — Mission 2027
   ========================================================================== */
:root {
  --bg: #020306;
  --ink: #eef2f7;
  --ink-2: rgba(238, 242, 247, 0.72);
  --muted: rgba(238, 242, 247, 0.5);
  --faint: rgba(238, 242, 247, 0.28);
  --line: rgba(238, 242, 247, 0.12);
  --glass: rgba(10, 14, 22, 0.42);
  --gold: #ffc66b;
  --ember: #ff9a4d;
  --ice: #9fd0ff;
  --mint: #9cf5de;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Unbounded', 'Instrument Sans', sans-serif;
  --mono: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --hud-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16.5px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor select, body.has-cursor input { cursor: none; }
}

/* ------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 92px; height: 92px; color: var(--ink); }
.loader__mark .m-arc, .loader__mark .m-a, .loader__mark .m-tail { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.2s var(--ease) forwards; }
.loader__mark .m-a { animation-delay: 0.35s; }
.loader__mark .m-tail { animation-delay: 0.8s; }
.loader__mark .m-dot { opacity: 0; animation: pop 0.6s 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.2); transform-origin: 164px 62px; } to { opacity: 1; transform: scale(1); transform-origin: 164px 62px; } }
.loader__row { font-size: 13px; color: var(--muted); display: flex; gap: 6px; }
.loader__pct { color: var(--ink); min-width: 3ch; }
.loader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.4s var(--ease); }
.loader__msg { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.2em; margin: 0; }

/* ------------------------------------------------------------- layers */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(2,3,6,0.72), rgba(2,3,6,0.94)); opacity: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
main, .landing { position: relative; z-index: 2; }

.ring-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.ring-labels span {
  position: absolute; left: 0; top: 0; font: 500 10px/1 var(--sans); letter-spacing: 0.2em; color: var(--ice);
  opacity: 0; transform: translate(-50%, -50%); padding: 4px 6px; border: 1px solid rgba(159,208,255,0.25); border-radius: 2px;
  background: rgba(2,3,6,0.5); white-space: nowrap;
}

/* ------------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(238,242,247,0.45); transition: width .35s var(--ease), height .35s var(--ease), border-color .35s, background .35s; }
.cursor__dot { width: 4px; height: 4px; background: var(--ink); }
.cursor.is-link .cursor__ring { width: 58px; height: 58px; border-color: var(--gold); background: rgba(255,198,107,0.08); }
.cursor.is-star .cursor__ring { width: 46px; height: 46px; border-color: var(--gold); }
.cursor__label { position: absolute; left: 22px; top: 14px; font-size: 10px; color: var(--ice); white-space: nowrap; letter-spacing: 0.12em; opacity: 0; transition: opacity .3s; }
.cursor__label.on { opacity: 0.9; }

.astro-tip {
  position: fixed; left: 0; top: 0; z-index: 89; pointer-events: none; display: flex; gap: 12px; align-items: center;
  padding: 8px 14px 8px 8px; border: 1px solid rgba(255,198,107,0.35); border-radius: 999px;
  background: rgba(6,8,14,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translate(18px, -50%) scale(0.92); transition: opacity .25s, transform .25s var(--ease);
}
.astro-tip.on { opacity: 1; transform: translate(18px, -50%) scale(1); }
.astro-tip__img { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #111; flex: none; }
.astro-tip__img img { width: 100%; height: 100%; object-fit: cover; }
.astro-tip strong { display: block; font-weight: 400; font-size: 15px; }
.astro-tip span { font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* ---------------------------------------------------------------- HUD */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: transform .6s var(--ease), opacity .6s;
}
body.is-loading .hud { opacity: 0; transform: translateY(-20px); }
.hud__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hud__brand svg { width: 30px; height: 30px; color: var(--ink); }
.hud__brand span { font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; font-weight: 400; }
.hud__nav { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hud__nav a { position: relative; text-decoration: none; font-size: 12.5px; letter-spacing: 0.08em; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); transition: color .3s, background .3s; }
.hud__nav a i { font-style: normal; font-family: var(--sans); font-size: 9px; color: var(--faint); margin-right: 7px; vertical-align: 1px; }
.hud__nav a:hover { color: var(--ink); }
.hud__nav a.is-on { background: rgba(238,242,247,0.1); color: var(--ink); }
.hud__nav a.is-on i { color: var(--gold); }
.hud__right { display: flex; align-items: center; gap: 18px; }
.hud__clock { font-size: 11px; color: var(--muted); }
.hud__sound { display: flex; align-items: center; gap: 3px; height: 32px; width: 40px; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0; }
.hud__sound span { width: 2px; height: 4px; background: var(--ink-2); border-radius: 2px; transition: height .3s; }
.hud__sound[aria-pressed="true"] span { animation: eq 1s ease-in-out infinite; background: var(--gold); }
.hud__sound[aria-pressed="true"] span:nth-child(2) { animation-delay: -.3s; }
.hud__sound[aria-pressed="true"] span:nth-child(3) { animation-delay: -.6s; }
.hud__sound[aria-pressed="true"] span:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

.telemetry {
  position: fixed; right: var(--gutter); bottom: 28px; z-index: 30; font-size: 10.5px; color: var(--muted);
  padding: 12px 14px; border-right: 1px solid var(--line); text-align: right; transition: opacity .6s;
}
.telemetry__title { color: var(--ice); letter-spacing: 0.2em; margin-bottom: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.blink, .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: blink 1.6s infinite; display: inline-block; }
.pip { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes blink { 50% { opacity: 0.25; } }
.telemetry dl { display: grid; grid-template-columns: auto auto; gap: 3px 14px; margin: 0; }
.telemetry dt { color: var(--faint); }
.telemetry dd { margin: 0; color: var(--ink-2); min-width: 11ch; font-variant-numeric: tabular-nums; }
body.is-deep .telemetry { opacity: 0; pointer-events: none; }

.progress { position: fixed; right: 18px; top: 50%; z-index: 30; width: 1px; height: 120px; transform: translateY(-50%); background: var(--line); }
.progress i { position: absolute; left: -1px; top: 0; width: 3px; height: 0; background: var(--ink); }

/* -------------------------------------------------------- typography */
.label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.label span { color: var(--gold); }
.label::after { content: ''; height: 1px; width: 56px; background: var(--line); }
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-title { font-weight: 200; font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 18px; }
.section-sub { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 56ch; margin: 0; }
.gold { color: var(--gold); }

/* --------------------------------------------------------------- hero */
section { position: relative; padding: 0 var(--gutter); }
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--hud-h); }
.hero__inner { max-width: 1100px; position: relative; z-index: 2; }
.hero__title { margin: 0; line-height: 0.9; }
.hero__word {
  display: inline-block; font-weight: 200; font-size: clamp(46px, 8.4vw, 168px); letter-spacing: 0.06em; white-space: nowrap;
  color: #fff; margin-left: -0.05em;
}
.hero__word .ch { display: inline-block; will-change: transform, opacity, filter;
  background: linear-gradient(180deg, #fff 30%, rgba(238,242,247,0.5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__word .ch-a { position: relative; }
.hero__lede { font-size: clamp(18px, 1.6vw, 23px); max-width: 34ch; color: var(--ink-2); margin: 26px 0 44px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.4vw, 56px); }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.stat__k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.stat__v b { font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); font-variant-numeric: tabular-nums; }
#statNow { color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
.reveal { opacity: 0; transform: translateY(22px); }

/* ------------------------------------------------------------- launch */
.launch { min-height: 130vh; display: flex; align-items: center; justify-content: flex-start; padding-top: 12vh; padding-bottom: 12vh; }
.launch__panel { width: min(620px, 100%); }
.launch__status { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pill { font: 500 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 8px; }
.pill--go { border-color: rgba(156,245,222,0.45); color: var(--mint); }
.pill--tbd { border-color: rgba(255,198,107,0.4); color: var(--gold); }
.pill--hold { border-color: rgba(255,120,100,0.5); color: #ff8b78; }
.pill--live { border-color: rgba(255,90,90,0.6); color: #ff6b6b; }
.pill--live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1s infinite; }
.launch__name { font-weight: 200; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; margin: 0 0 12px; }
.launch__vehicle { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 36px; }

.countdown { display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 26px); margin-bottom: 40px; }
.countdown__sign { font-size: clamp(16px, 2vw, 22px); color: var(--gold); padding-top: 0.5em; }
.cd-group { display: flex; flex-direction: column; gap: 8px; }
.cd-group > span { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.cd-digits { display: flex; font-weight: 200; font-size: clamp(46px, 6.6vw, 104px); line-height: 1; font-variant-numeric: tabular-nums; }
.digit { position: relative; height: 1em; width: 0.62em; overflow: hidden; }
.digit__strip { position: absolute; left: 0; top: 0; width: 100%; display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.digit__strip span { height: 1em; display: flex; align-items: center; justify-content: center; }
.cd-group:not(:last-child)::after { display: none; }
.countdown.is-past .cd-digits { color: var(--gold); }

.launch__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 28px; }
.launch__facts > div { background: rgba(4,6,11,0.72); padding: 14px 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.launch__facts dt { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 4px; }
.launch__facts dd { margin: 0; font-size: 15px; }
.launch__desc { color: var(--ink-2); max-width: 58ch; margin: 0 0 16px; }
.launch__coords { font-size: 11px; color: var(--ice); letter-spacing: 0.14em; }

/* ----------------------------------------------------------- manifest */
.manifest { min-height: 120vh; padding-top: 18vh; padding-bottom: 30vh; }
.manifest__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 1180px; }
.m-row {
  position: relative; display: grid; grid-template-columns: 112px 1.6fr 1fr 1fr 120px; gap: 20px; align-items: center;
  padding: 20px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .4s, padding .4s var(--ease);
  background: rgba(3,5,10,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.m-row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,198,107,0.09), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.m-row:hover::before, .m-row.is-focus::before { opacity: 1; }
.m-row:hover { padding-left: 28px; }
.m-row.is-focus .m-name { color: var(--gold); }
.m-when { font-size: 11px; color: var(--muted); line-height: 1.5; }
.m-when b { display: block; color: var(--ink); font-weight: 400; font-size: 13px; }
.m-name { font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; transition: color .3s; }
.m-name small { display: block; font: 500 10.5px/1.6 var(--sans); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.m-meta { font-size: 13.5px; color: var(--ink-2); }
.m-meta small { display: block; font: 500 10px/1.6 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.m-t { font: 500 12px/1 var(--sans); text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.manifest__peek { position: fixed; left: 0; top: 0; z-index: 20; width: 260px; aspect-ratio: 4/3; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(0.85); transition: opacity .35s, transform .45s var(--ease); clip-path: inset(0 round 4px); }
.manifest__peek.on { opacity: 1; transform: scale(1); }
.manifest__peek img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- replay */
.replay { height: 460vh; padding: 0; }
.replay__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--hud-h) + 3vh) var(--gutter) 4vh;
  display: grid; grid-template-columns: minmax(0, 440px) 1fr minmax(0, 300px); grid-template-rows: auto 1fr auto auto; gap: 0 24px;
}
.replay__head { grid-column: 1; grid-row: 1; }
.replay__head .section-title { font-size: clamp(34px, 4.2vw, 62px); }
.replay__pick { grid-column: 3; grid-row: 1 / 3; align-self: start; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; scrollbar-width: none; }
.replay__pick::-webkit-scrollbar { display: none; }
.replay__pick button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(4,6,11,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer;
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.replay__pick button:hover { border-color: rgba(238,242,247,0.35); transform: translateX(-4px); }
.replay__pick button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,198,107,0.08); }
.replay__pick b { font-weight: 400; font-size: 14px; line-height: 1.25; }
.replay__pick em { grid-column: 1; font: 500 9.5px/1.5 var(--sans); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.replay__pick .res { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 500 9px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; border: 1px solid rgba(156,245,222,0.4); color: var(--mint); }
.replay__pick .res--fail { border-color: rgba(255,110,90,0.5); color: #ff8b78; }
.replay__hud { grid-column: 1; grid-row: 3; align-self: end; margin-bottom: 26px; }
.replay__mission { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 8px; }
.replay__clock { display: flex; align-items: baseline; gap: 10px; font-weight: 200; font-size: clamp(54px, 6.4vw, 104px); line-height: 1; font-variant-numeric: tabular-nums; }
.replay__clock .mono { font-size: 0.24em; color: var(--gold); }
.replay__event { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; margin: 10px 0 18px; min-height: 1.3em; transition: color .3s; }
.replay__event.is-flash { color: var(--gold); }
.replay__event.is-lost { color: #ff8b78; }
.replay__tele { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 0 0 22px; }
.replay__tele dt { font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.2em; }
.replay__tele dd { margin: 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 10ch; }
.play-ico { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn[aria-pressed="true"] .play-ico { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.replay__timeline { grid-column: 1 / -1; grid-row: 4; position: relative; padding-top: 6px; }
.replay__bar { height: 1px; background: var(--line); position: relative; }
.replay__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--ice), var(--gold)); box-shadow: 0 0 12px rgba(255,198,107,0.6); }
.replay__timeline ol { list-style: none; margin: 0; padding: 0; position: relative; height: 34px; }
.replay__timeline li { position: absolute; top: 0; transform: translateX(-50%); font: 500 9px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: center; white-space: nowrap; padding-top: 10px; transition: color .3s; }
.replay__timeline li::before { content: ''; position: absolute; left: 50%; top: -4px; width: 1px; height: 8px; background: var(--faint); }
.replay__timeline li.on { color: var(--ink); }
.replay__timeline li.on::before { background: var(--gold); }
.replay__timeline li.alt { padding-top: 22px; }
.replay__note { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; text-align: right; font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 30px; max-width: 30ch; }

/* ------------------------------------------------------ constellation */
.constellation { height: 260vh; padding: 0; }
.constellation__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--hud-h) + 4vh) var(--gutter) 6vh; display: grid; grid-template-columns: minmax(0, 470px) 1fr; grid-template-rows: auto 1fr auto; pointer-events: none; }
.constellation__sticky > * { pointer-events: auto; }
.constellation__head .section-title { font-size: clamp(34px, 4.4vw, 64px); }
.constellation__legend { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; align-self: end; margin-bottom: 18px; }
.lg { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lg--now { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.lg--active { background: #fff; }
.lg--retired { background: #c7dbff; }
.lg--memorial { background: #8c9ee6; opacity: 0.7; }
.constellation__ctrl { grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.hint { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.16em; margin: 0; }
.now-list { grid-column: 2; grid-row: 1 / 4; justify-self: end; align-self: center; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; width: min(300px, 100%); }
.now-list li button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 14px 7px 7px; border-radius: 999px;
  border: 1px solid rgba(255,198,107,0.25); background: rgba(6,8,14,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .4s var(--ease);
}
.now-list li button:hover { border-color: var(--gold); transform: translateX(-6px); }
.now-list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #111; }
.now-list b { display: block; font-weight: 400; font-size: 14px; }
.now-list em { display: block; font: 500 9.5px/1.4 var(--sans); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.now-list .now-title { font: 500 10.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(238,242,247,0.3); background: rgba(238,242,247,0.04); font-size: 13.5px; letter-spacing: 0.06em; cursor: pointer;
  transition: background .35s, border-color .35s, color .35s;
}
.btn:hover, .btn[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }

/* ---------------------------------------------------------- directory */
.directory { padding-top: 16vh; padding-bottom: 14vh; }
.dir-ctrl { display: grid; grid-template-columns: minmax(260px, 420px) 1fr auto; gap: 14px 20px; align-items: center; margin-bottom: 36px; position: sticky; top: calc(var(--hud-h) - 6px); z-index: 5; padding: 14px 0; }
.dir-ctrl::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(rgba(2,3,6,0.92) 70%, rgba(2,3,6,0)); z-index: -1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask: linear-gradient(#000 75%, transparent); }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 16px; background: rgba(238,242,247,0.03); transition: border-color .3s; }
.search:focus-within { border-color: rgba(238,242,247,0.45); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 15px; padding: 12px 0; }
.search kbd { font-size: 10px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 400 11.5px/1 var(--sans); letter-spacing: 0.06em; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .3s; }
.chip:hover { border-color: rgba(238,242,247,0.4); color: var(--ink); }
.chip.is-on { background: var(--ink); color: #000; border-color: var(--ink); }
.chips--agency { grid-column: 1 / -1; grid-row: 2; }
.dir-ctrl .sort { grid-column: 3; grid-row: 1; }
.sort { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; display: flex; align-items: center; gap: 10px; }
.sort select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); padding: 9px 30px 9px 14px; font: 400 13px var(--sans); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.sort select option { background: #0a0d14; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: 6px; overflow: hidden; background: #070a11; border: 1px solid var(--line); cursor: pointer;
  transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease); text-align: left; padding: 0; display: block; width: 100%;
  opacity: 0; transform: translateY(30px);
}
.card.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s; }
.card:hover { border-color: rgba(238,242,247,0.35); }
.card__img { aspect-ratio: 4/5; overflow: hidden; background: radial-gradient(circle at 50% 30%, #121a28, #05070c); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.86); transform: scale(1.04); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.card:hover .card__img img { filter: none; transform: scale(1.1); }
.card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,4,8,0.94)); }
.card__init { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 200; font-size: 64px; color: rgba(238,242,247,0.18); letter-spacing: 0.05em; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; }
.card__name { font-size: 19px; font-weight: 300; line-height: 1.15; margin: 0 0 6px; }
.card__meta { font: 500 10px/1.4 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.card__stats { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 10.5px/1 var(--sans); color: var(--ink-2); }
.card__stats b { font-weight: 500; color: var(--ink); margin-right: 3px; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; font: 500 9.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(3,4,8,0.6); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card__badge--now { color: var(--gold); border-color: rgba(255,198,107,0.5); }
.card__badge--now::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 0; animation: blink 1.4s infinite; }
.card__badge--memorial { color: #aab6ef; }
.card__flag { position: absolute; top: 10px; right: 12px; z-index: 1; font-size: 18px; }
.card__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.14), transparent 45%); opacity: 0; transition: opacity .4s; z-index: 2; }
.card:hover .card__glare { opacity: 1; }
.dir-more { display: flex; justify-content: center; padding: 40px 0; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.dir-more.done { visibility: hidden; }
.dir-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* --------------------------------------------------------------- news */
.news { padding-top: 6vh; padding-bottom: 20vh; }
.ticker { margin: 0 calc(var(--gutter) * -1) 12vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 16px 0; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: inline-flex; gap: 48px; animation: tick 90s linear infinite; font: 500 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ticker__track span::before { content: '◆'; color: var(--gold); margin-right: 16px; font-size: 8px; vertical-align: 2px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
#newsSites { margin-bottom: 36px; }
.news__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; }
.story { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; position: relative; }
.story--lead { grid-column: span 8; grid-row: span 2; }
.story--side { grid-column: span 4; }
.story__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16/10; background: #0a0d14; }
.story--lead .story__img { aspect-ratio: 16/9.4; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter .6s; filter: saturate(0.8) brightness(0.9); }
.story:hover .story__img img { transform: scale(1.12); filter: none; }
.story__img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--bg); transform-origin: top; transform: scaleY(1); transition: transform 1.1s var(--ease); }
.story.in .story__img::before { transform: scaleY(0); }
.story__src { font: 500 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.story__src b { color: var(--gold); font-weight: 400; }
.story__title { font-size: 20px; font-weight: 300; line-height: 1.25; margin: 0; transition: color .3s; }
.story--lead .story__title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 200; line-height: 1.1; }
.story:hover .story__title { color: var(--gold); }
.story__sum { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story--lead .story__sum { font-size: 17px; color: var(--ink-2); }
.story--text { grid-column: span 4; border-top: 1px solid var(--line); padding-top: 18px; }
.story--text .story__img { display: none; }

/* ------------------------------------------------------------ landing */
.landing { position: relative; background: #000; overflow: hidden; z-index: 3; }
.landing__stage { position: relative; aspect-ratio: 2600 / 1032; min-height: 340px; overflow: hidden; }
.landing__stage::before { content: ''; position: absolute; inset: 0 0 auto; height: 30%; z-index: 4; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.landing__bg, .landing__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.landing__bg { z-index: 0; }
.landing__fg { z-index: 2; }
.landing__word {
  position: absolute; left: 0; right: 0; top: 13%; z-index: 1; text-align: center;
  font-weight: 200; font-size: 17.5vw; letter-spacing: 0.05em; line-height: 0.8; white-space: nowrap; user-select: none;
  transform: translate3d(0, var(--rise, 70%), 0); will-change: transform;
  background: linear-gradient(180deg, #ffffff 0%, #b9c9d6 55%, #5f7383 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(159,208,255,0.18));
}
.landing__light { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(34vw 26vw at var(--lx, 25%) var(--ly, 45%), rgba(210,240,255,0.95), transparent 70%); opacity: 0.8; }
.landing__over { position: absolute; z-index: 5; bottom: 9%; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(238,242,247,0.7); margin: 0; }
.landing__base { position: relative; z-index: 2; padding: 28px var(--gutter) 40px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
.landing__mark { width: 74px; height: 74px; color: var(--ink); }
.landing__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; font-size: 15px; }
.landing__cols .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.landing__cols a { text-decoration: none; color: var(--ink-2); transition: color .3s; line-height: 1.8; }
.landing__cols a:hover { color: var(--gold); }
.landing__fine { grid-column: 1 / -1; font-size: 10px; color: var(--faint); letter-spacing: 0.2em; text-transform: uppercase; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ profile */
.profile {
  width: min(1040px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #05070c; color: var(--ink); display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden;
}
.profile:not([open]) { display: none; }
.profile::backdrop { background: rgba(1,2,4,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.profile[open] { animation: pIn .7s var(--ease); }
@keyframes pIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.profile__media { position: relative; background: radial-gradient(circle at 50% 35%, #121a28, #04060a); min-height: 320px; }
.profile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #05070c); }
.profile__badge { position: absolute; left: 18px; bottom: 18px; z-index: 1; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(3,4,8,0.7); border: 1px solid var(--line); }
.profile__body { padding: clamp(24px, 4vw, 48px); overflow-y: auto; }
.profile__kicker { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 10px; }
.profile__name { font-weight: 200; font-size: clamp(34px, 4vw, 54px); line-height: 1; margin: 0 0 26px; }
.profile__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 26px; }
.profile__stats div { background: #05070c; padding: 14px 12px; }
.profile__stats b { display: block; font-weight: 200; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.profile__stats span { font: 500 9px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; }
.profile__bio { color: var(--ink-2); margin: 0 0 24px; }
.profile__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0 0 28px; font-size: 14px; }
.profile__facts dt { font: 500 10px/1.9 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.16em; }
.profile__facts dd { margin: 0; color: var(--ink-2); }
.profile__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(3,4,8,0.6); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease), border-color .3s; }
.profile__close:hover { transform: rotate(90deg); border-color: var(--ink); }
.profile__close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.5; fill: none; }

/* -------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hud__nav a i { display: none; }
  .m-row { grid-template-columns: 96px 1.6fr 1fr 100px; }
  .m-row .m-meta--pad { display: none; }
  .story { grid-column: span 6; }
  .story--lead { grid-column: span 12; grid-row: auto; }
  .story--side, .story--text { grid-column: span 6; }
}
@media (max-width: 860px) {
  :root { --hud-h: 60px; }
  .launch__panel, .hero__inner, .constellation__head { text-shadow: 0 1px 18px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6); }
  .hud__nav { display: none; }
  .hud__clock { display: none; }
  .telemetry { display: none; }
  .progress { display: none; }
  .hero { align-items: flex-end; padding-bottom: 18vh; }
  .hero__inner { padding-top: 40vh; }
  .launch { align-items: flex-end; min-height: 150vh; }
  .launch__panel { padding-top: 48vh; }
  .launch__facts > div { padding: 12px; }
  .m-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 4px; }
  .m-row .m-meta { display: none; }
  .m-when { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .m-when b { display: inline; }
  .manifest__peek { display: none; }
  .replay__sticky { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; }
  .replay__head .section-sub { display: none; }
  .replay__pick { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; max-height: none; margin: 4px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
  .replay__pick li { flex: none; width: 210px; }
  .replay__hud { grid-row: 4; margin-bottom: 14px; text-shadow: 0 1px 18px rgba(0,0,0,0.85); }
  .replay__tele { gap: 4px 16px; }
  .replay__tele dd { font-size: 13px; min-width: 0; }
  .replay__timeline { grid-row: 5; }
  .replay__timeline li { display: none; }
  .replay__timeline ol { height: 10px; }
  .replay__note { display: none; }
  .constellation__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .now-list { grid-column: 1; grid-row: 4; flex-direction: row; overflow-x: auto; width: 100%; justify-self: stretch; padding-bottom: 6px; }
  .now-list li { flex: none; }
  .now-list .now-title { display: none; }
  .constellation__ctrl { margin-bottom: 14px; }
  .dir-ctrl { grid-template-columns: 1fr; position: static; }
  .dir-ctrl .sort, .chips--agency { grid-column: 1; grid-row: auto; }
  .dir-ctrl::before { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__name { font-size: 16px; }
  .card__stats { display: none; }
  .story, .story--side, .story--text { grid-column: span 12; }
  .profile { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
  .profile__media { min-height: 300px; }
  .profile__media::after { background: linear-gradient(180deg, transparent 60%, #05070c); }
  .profile__body { overflow: visible; }
  .profile__stats { grid-template-columns: repeat(2, 1fr); }
  .landing__base { grid-template-columns: 1fr; gap: 24px; }
  .landing__cols { grid-template-columns: 1fr; gap: 20px; }
  .landing__word { font-size: 24vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .card { opacity: 1; transform: none; }
}


/* ==========================================================================
   v10 — type roles
   ========================================================================== */
.hero__word, .section-title, .page-title, .launch__name, .cd-digits, .replay__clock, .profile__name,
.landing__word, .stat__v b, .profile__stats b, .roster__facts b, .page-facts b, .lp-next__t, .lp-h2,
.story--lead .story__title, .day__h span, .lp-next__name { font-family: var(--display); }

.label, .eyebrow, .stat__k, .pill, .cd-group > span, .launch__facts dt, .launch__vehicle, .launch__coords, .m-when, .m-name small,
.m-meta small, .m-t, .card__meta, .card__stats, .card__badge, .story__src, .ticker__track, .hud__clock, .hud__brand span,
.telemetry, .replay__mission, .replay__tele, .replay__note, .replay__timeline li, .replay__pick em, .replay__pick .res,
.profile__kicker, .profile__badge, .profile__stats span, .profile__facts dt, .landing__cols .k, .landing__fine, .landing__over,
.hint, .constellation__legend, .now-list em, .now-list .now-title, .ring-labels span, .loader__row, .loader__msg, .sort,
.astro-tip span, .cursor__label, .lrow small, .lrow__when, .lrow__t, .lp-next__k, .lp-pin, .dir-count, .day__h i, .inspace__title,
.roster__facts span, .page-facts span, .faces span, .scroll-cue, .more, .mnav a {
  font-family: var(--sans); font-stretch: 82%; font-weight: 500;
}
.telemetry, .m-t, .lrow__t, .hud__clock, .replay__tele dd, .met { font-variant-numeric: tabular-nums; }

.hero__word { font-weight: 200; font-size: clamp(38px, 7.1vw, 138px); letter-spacing: 0.035em; }
.section-title, .page-title { font-weight: 300; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
.constellation__head .section-title, .replay__head .section-title { font-size: clamp(28px, 3.4vw, 52px); }
.launch__name { font-weight: 300; font-size: clamp(30px, 3.8vw, 58px); letter-spacing: -0.02em; }
.cd-digits { font-weight: 200; font-size: clamp(40px, 5.4vw, 90px); }
.digit { width: 0.8em; }
.digit__strip span { height: 1em; line-height: 1; }
.replay__clock { font-weight: 200; font-size: clamp(42px, 5.2vw, 86px); }
.profile__name { font-weight: 300; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.profile__stats b { font-weight: 200; font-size: 24px; }
.stat__v b { font-weight: 200; font-size: clamp(22px, 2vw, 32px); }
.landing__word { font-weight: 200; font-size: 13.6vw; letter-spacing: 0.03em; }
.story--lead .story__title { font-weight: 300; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.story__title { font-weight: 500; font-size: 18px; letter-spacing: -0.005em; }
.card__name { font-weight: 500; font-size: 17px; }
.m-name, .launch__facts dd, .replay__event { font-weight: 450; }
.hud__brand span { letter-spacing: 0.5em; font-size: 12px; }
.hud__nav a { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.hud__nav a i { display: none; }
.label { font-size: 11.5px; letter-spacing: 0.2em; }

/* ------------------------------------------------------------ nav additions */
.hud__sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.hud__menu { display: none; width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: none; padding: 0; position: relative; cursor: pointer; }
.hud__menu span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.hud__menu span:first-child { top: 12px; } .hud__menu span:last-child { top: 18px; }
.hud__menu[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.hud__menu[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 39; background: rgba(2,3,6,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter); }
.mnav[hidden] { display: none; }
.mnav a { font-family: var(--display); font-stretch: normal; font-weight: 300; font-size: 34px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
body.menu-open { overflow: hidden; }
@media (max-width: 1240px) { .hud__clock { display: none; } }
@media (max-width: 1080px) { .hud__nav a { padding: 7px 10px; font-size: 12.5px; } }

/* ------------------------------------------------------------- "see all" */
.more { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-decoration: none; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.more i { font-style: normal; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(238,242,247,0.3); transition: transform .5s var(--ease), background .3s, color .3s; font-size: 15px; letter-spacing: 0; }
.more:hover i { transform: translateX(6px); background: var(--ink); color: #000; }
.more--big { margin-top: 48px; font-size: 13px; }
.more--big i { width: 56px; height: 56px; }

/* ----------------------------------------------------------- roster teaser */
.roster { padding-top: 18vh; padding-bottom: 12vh; }
.roster__facts, .page-facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 64px); margin-bottom: 48px; }
.roster__facts div, .page-facts div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.roster__facts b, .page-facts b { font-weight: 200; font-size: clamp(28px, 3vw, 46px); line-height: 1; }
.roster__facts span, .page-facts span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.faces { margin: 0 calc(var(--gutter) * -1); display: flex; flex-direction: column; gap: 14px; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.faces__row { overflow: hidden; }
.faces__track { display: flex; gap: 14px; width: max-content; animation: faces 70s linear infinite; }
.faces__row--rev .faces__track { animation-direction: reverse; animation-duration: 84s; }
.faces:hover .faces__track { animation-play-state: paused; }
@keyframes faces { to { transform: translateX(-50%); } }
.face { position: relative; flex: none; width: 150px; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: #0a0d14; border: 1px solid var(--line); }
.face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.8); transition: filter .6s var(--ease), transform 1s var(--ease); }
.face:hover img { filter: none; transform: scale(1.08); }
.face span { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); text-shadow: 0 1px 8px #000; }
.face:hover span { opacity: 1; transform: none; }
.news__grid--home .story--text { display: none; }

/* --------------------------------------------------------------- subpages */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page main { padding-top: calc(var(--hud-h) + 8vh); }
.page-hero { padding-bottom: 6vh; }
.page-title { font-size: clamp(44px, 8vw, 132px); font-weight: 200; letter-spacing: -0.035em; margin: 0 0 40px; }
.page .label span { color: var(--gold); }
.dir-count { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); grid-column: 1 / -1; }
.chip i { font-style: normal; opacity: 0.5; margin-left: 4px; font-size: 10.5px; }
.page .landing { margin-top: 10vh; }
.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--ghost { background: transparent; border-color: var(--line); }
.profile__badge.is-now { color: var(--gold); }

.inspace { padding-bottom: 8vh; }
.inspace__title { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.inspace__title b { font-weight: 500; }
.inspace__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.inspace__list button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid rgba(255,198,107,0.28); background: rgba(6,8,14,0.6); cursor: pointer; transition: border-color .3s, background .3s; }
.inspace__list button:hover { border-color: var(--gold); background: rgba(255,198,107,0.06); }
.inspace__list img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #111; }
.inspace__list b { display: block; font-weight: 500; font-size: 15px; }
.inspace__list em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-stretch: 82%; font-weight: 500; }
.page .directory { padding-top: 0; }
.page .dir-ctrl { grid-template-columns: minmax(240px, 400px) 1fr auto; }
.page .dir-ctrl .sort { grid-column: 3; grid-row: 1; }
.dir-ctrl--news { grid-template-columns: minmax(240px, 400px) 1fr !important; }

/* news page */
.news--page { padding-top: 0; }
.page-hero .ticker { margin: 0 calc(var(--gutter) * -1); }
.day { margin-bottom: 9vh; }
.day__h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day__h span { font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; }
.day__h i { font-style: normal; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }

/* launches page */
.page--launches #gl { z-index: 0; }
.lp-fade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(2,3,6,0.96) 0%, rgba(2,3,6,0.88) 42%, rgba(2,3,6,0.15) 70%, transparent); }
.lp { position: relative; z-index: 2; }
.lp > section { max-width: min(860px, 62vw); }
.lp-pin { position: fixed; right: var(--gutter); bottom: 28px; z-index: 3; margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-stretch: 82%; font-weight: 500; text-align: right; max-width: 34ch; }
.lp-next { display: grid; gap: 6px; }
.lp-next__k { margin: 0; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.lp-next__name { margin: 0; font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; }
.lp-next__name span { display: block; font-family: var(--sans); font-stretch: 82%; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.lp-next__t { margin: 8px 0 0; font-weight: 200; font-size: clamp(34px, 4vw, 60px); font-variant-numeric: tabular-nums; }
.lp-section { padding-top: 8vh; }
.lp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.lp-h2 { margin: 0; font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.02em; }
.lp-h2 b { font-weight: 200; color: var(--muted); margin-left: 8px; }
.lp-sub { margin: 0; color: var(--muted); }
.lp-sub a { color: var(--gold); }
.lrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lrow { border-bottom: 1px solid var(--line); position: relative; outline-offset: -1px; }
.lrow::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,198,107,0.09), transparent 75%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.lrow:hover::before, .lrow.is-focus::before, .lrow.is-open::before { opacity: 1; }
.lrow__main { display: grid; grid-template-columns: 92px 1.7fr 1.1fr 92px 84px; gap: 16px; align-items: center; padding: 16px 10px; cursor: pointer; }
.lrow__when { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.lrow__when b { display: block; color: var(--ink); font-weight: 500; font-size: 12px; }
.lrow__name { font-weight: 500; font-size: 16.5px; line-height: 1.3; }
.lrow.is-focus .lrow__name { color: var(--gold); }
.lrow small { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.lrow__where { font-size: 14px; color: var(--ink-2); }
.lrow__status .pill { padding: 6px 9px; font-size: 9.5px; }
.lrow__t { text-align: right; font-size: 12px; color: var(--ink-2); }
.lrow__more { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 4px 10px 24px; }
.lrow__more[hidden] { display: none; }
.lrow__more img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.lrow__more p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.lrow__more dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0 0 16px; }
.lrow__more dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-stretch: 82%; font-weight: 500; }
.lrow__more dd { margin: 0; font-size: 14px; }
.met { color: var(--ink-2); }

@media (max-width: 860px) {
  .hud__nav { display: none; }
  .hud__menu { display: block; }
  .hud__sound { display: none; }
  .page main { padding-top: calc(var(--hud-h) + 4vh); }
  .face { width: 112px; }
  .page .dir-ctrl { grid-template-columns: 1fr; }
  .page .dir-ctrl .sort { grid-column: 1; grid-row: auto; }
  .lp-fade { background: linear-gradient(180deg, rgba(2,3,6,0.3) 0%, rgba(2,3,6,0.92) 38%, rgba(2,3,6,0.97)); }
  .lp > section { max-width: none; }
  .page--launches .page-hero { padding-top: 34vh; }
  .lrow__main { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .lrow__when { grid-column: 1 / -1; display: flex; gap: 10px; }
  .lrow__when b { display: inline; }
  .lrow__where { display: none; }
  .lrow__status { grid-column: 2; grid-row: 2; }
  .lrow__t { grid-column: 2; grid-row: 3; }
  .lrow__more { grid-template-columns: 1fr; }
  .lp-pin { left: var(--gutter); top: calc(var(--hud-h) + 8px); bottom: auto; text-align: left; }
}

/* ==========================================================================
   v11 — Exo 2 (display + labels) / Cabin (text)
   ========================================================================== */
:root { --display: 'Exo 2', 'Segoe UI', sans-serif; --sans: 'Cabin', 'Segoe UI', sans-serif; --mono: 'Cabin', sans-serif; }
body { font-family: var(--sans); font-size: 17px; }

/* labels & micro-type: Exo 2, uppercase, wide tracking */
.label, .eyebrow, .stat__k, .pill, .cd-group > span, .launch__facts dt, .launch__vehicle, .launch__coords, .m-name small,
.m-meta small, .card__meta, .card__badge, .story__src, .ticker__track, .hud__brand span, .telemetry__title,
.replay__mission, .replay__tele dt, .replay__note, .replay__timeline li, .replay__pick em, .replay__pick .res,
.profile__kicker, .profile__badge, .profile__stats span, .profile__facts dt, .landing__cols .k, .landing__fine, .landing__over,
.hint, .constellation__legend, .now-list em, .now-list .now-title, .ring-labels span, .loader__msg, .sort,
.astro-tip span, .lrow small, .lp-next__k, .lp-pin, .dir-count, .day__h i, .inspace__title, .inspace__list em,
.roster__facts span, .page-facts span, .faces span, .scroll-cue, .more, .lrow__more dt, .btn, .chip, .lp-next__name span {
  font-family: var(--display); font-stretch: normal; font-weight: 500;
}
.btn, .chip { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; }
.chip { padding: 10px 15px; }
.telemetry dd, .m-t, .lrow__t, .lrow__when, .m-when, .hud__clock, .replay__tele dd, .met, .cursor__label, .loader__row {
  font-family: var(--display); font-stretch: normal; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
}
.hud__nav a { font-family: var(--display); font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.mnav a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 300; }
.hud__brand span { letter-spacing: 0.55em; font-size: 12.5px; }

/* display sizes tuned for Exo 2 */
.hero__word { font-weight: 200; font-size: clamp(40px, 7vw, 140px); letter-spacing: 0.14em; margin-left: -0.02em; }
.hero__word .ch { text-shadow: none; filter: drop-shadow(-1.5px 0 0 rgba(255,70,70,0.32)) drop-shadow(1.5px 0 0 rgba(70,170,255,0.32)); }
.section-title, .page-title { font-weight: 300; font-size: clamp(34px, 5vw, 80px); line-height: 1.02; letter-spacing: -0.01em; }
.page-title { font-weight: 200; font-size: clamp(48px, 9vw, 150px); text-transform: uppercase; letter-spacing: 0.08em;
  text-shadow: -1.5px 0 rgba(255,70,70,0.28), 1.5px 0 rgba(70,170,255,0.28); }
.constellation__head .section-title, .replay__head .section-title { font-size: clamp(30px, 3.8vw, 58px); }
.launch__name { font-weight: 300; font-size: clamp(34px, 4.4vw, 66px); letter-spacing: 0; }
.cd-digits { font-weight: 200; font-size: clamp(46px, 6.2vw, 104px); }
.digit { width: 0.64em; }
.replay__clock { font-weight: 200; font-size: clamp(48px, 6vw, 100px); }
.profile__name { font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: 0; }
.profile__stats b { font-weight: 200; font-size: 30px; }
.stat__v b, .roster__facts b, .page-facts b { font-weight: 200; }
.stat__v b { font-size: clamp(26px, 2.4vw, 38px); }
.roster__facts b, .page-facts b { font-size: clamp(32px, 3.4vw, 54px); }
.landing__word { font-weight: 200; font-size: 15.5vw; letter-spacing: 0.12em; }
.story--lead .story__title { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.5vw, 38px); letter-spacing: 0; line-height: 1.12; }
.story__title { font-family: var(--sans); font-weight: 600; font-size: 18.5px; letter-spacing: 0; }
.card__name { font-family: var(--display); font-weight: 400; font-size: 18px; }
.m-name, .lrow__name, .now-list b, .inspace__list b, .replay__pick b, .astro-tip strong { font-family: var(--display); font-weight: 400; }
.replay__event, .lp-next__name, .day__h span, .lp-h2 { font-family: var(--display); font-weight: 300; }
.lp-next__t { font-weight: 200; }
.day { padding: 0; }
.dir-ctrl--news { position: static; margin-bottom: 48px; }
.dir-ctrl--news::before { display: none; }

/* v14 — footer: moonscape anchored to the bottom, content laid over it */
.landing { position: relative; overflow: hidden; background: var(--bg); min-height: max(580px, 46vw); display: flex; flex-direction: column; justify-content: flex-end; }
.landing__stage { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; z-index: 0; overflow: hidden; }
.landing__stage::before { height: 45%; z-index: 3; }
.landing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; will-change: transform; }
.landing__light { z-index: 1; }
.landing__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(2,3,6,0.92) 0%, rgba(2,3,6,0.62) 30%, rgba(2,3,6,0.12) 58%, transparent 72%); }
.landing__base { position: relative; z-index: 4; margin-top: 0; padding: 0 var(--gutter) 34px; }
.landing__base a, .landing__cols { text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.landing__over { position: static; grid-column: 1 / -1; text-align: left; margin: 0 0 6px; color: var(--ink-2); letter-spacing: 0.32em; }
.landing__fine { border-top-color: rgba(238,242,247,0.18); }
.page .landing { margin-top: 10vh; }
@media (max-width: 860px) {
  .landing { min-height: 760px; }
  .landing__bg { object-position: 28% 100%; }
  .landing__shade { background: linear-gradient(to top, rgba(2,3,6,0.94) 0%, rgba(2,3,6,0.7) 50%, rgba(2,3,6,0.1) 80%, transparent); }
}
.landing__cols .k { color: var(--ink-2); }
.landing__over { color: var(--ink); }

/* v15 — loader logo is static (no stroke-draw animation) */
.loader__mark .m-arc, .loader__mark .m-a, .loader__mark .m-tail { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.loader__mark .m-dot { animation: none; opacity: 1; }

/* v16 — typed date/time on the loader */
.loader__date { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 76px; margin-top: 4px; font-family: var(--display); text-transform: uppercase; position: relative; }
.ld-day { font-weight: 400; font-size: 13px; letter-spacing: 0.34em; color: var(--ink-2); min-height: 1.2em; padding-left: 0.34em; }
.ld-time { font-weight: 200; font-size: 34px; letter-spacing: 0.12em; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.1em; line-height: 1.1; text-shadow: -1px 0 rgba(255,70,70,0.3), 1px 0 rgba(70,170,255,0.3); }
.ld-caret { position: absolute; width: 2px; height: 14px; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: caret 0.9s steps(1) infinite; display: none; }
.loader__date .ld-caret { display: none; }
.ld-day::after, .ld-time::after { content: ''; display: inline-block; width: 2px; height: 0.9em; margin-left: 6px; vertical-align: -0.1em; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: caret 0.9s steps(1) infinite; }
.loader__date:not(.on-time) .ld-time::after, .loader__date.on-time .ld-day::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 480px) { .ld-day { font-size: 11px; letter-spacing: 0.24em; } .ld-time { font-size: 28px; } }
