/* ═══════════════════════════════════════════════════════════
   APOGEE — Civilian Space Agency
   Design tokens
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #07070a;
  --bg-2: #0b0b11;
  --ink: #edeae3;
  --dim: #9c978d;
  --line: rgba(237, 234, 227, 0.1);
  --accent: #ff4d00;
  --green: #7dffb0;
  --amber: #ffc24d;
  --f-display: "Clash Display", "Futura", "Helvetica Neue", sans-serif;
  --f-body: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 72px);
}

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

html { scroll-behavior: auto; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

html { scrollbar-color: #2a2a32 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262e; border-radius: 8px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

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

.has-cursor, .has-cursor * { cursor: none !important; }

.mono { font-family: var(--f-mono); }

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}

.telemetry { color: var(--green); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.1em 2em;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: #140700; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: #07070a; }
.btn--ghost { color: var(--ink); border-color: rgba(237, 234, 227, 0.25); }
.btn--ghost:hover { background: var(--ink); color: #07070a; border-color: var(--ink); }
.btn--sm { padding: 0.85em 1.5em; font-size: 0.64rem; }
.btn--lg { padding: 1.3em 2.6em; font-size: 0.78rem; }

/* ── Grain & cursor ───────────────────────────────────────── */
.grain {
  position: fixed; inset: -60px;
  z-index: 120;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -10px); }
  75% { transform: translate(-8px, -16px); }
  100% { transform: translate(0, 0); }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; opacity: 0; }
.cursor-dot {
  position: fixed; top: -3px; left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
}
.cursor-ring {
  position: fixed; top: -19px; left: -19px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(237, 234, 227, 0.4);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.cursor.is-hover .cursor-ring {
  transform: scale(1.7);
  background: rgba(255, 77, 0, 0.12);
  border-color: rgba(255, 77, 0, 0.6);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-block: 13px;
}
.site-header.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.logo-mark .logo-planet { fill: var(--accent); }
.logo-word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.14em;
}

.main-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.main-nav a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s ease;
  padding-block: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-right { display: flex; align-items: center; gap: 18px; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  align-items: center;
}
.menu-btn span {
  display: block; width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Menu overlay ─────────────────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow: hidden;
}
.menu-links a em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--accent);
}
.menu-links a span { display: inline-block; transition: color 0.3s; }
.menu-links a:hover span { color: var(--accent); }
.menu-foot {
  position: absolute;
  bottom: 34px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim);
}

/* ── Preloader ────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
}
.pre-top { display: flex; justify-content: space-between; }
.pre-center { display: flex; align-items: center; justify-content: center; flex: 1; }
.pre-bar {
  width: min(420px, 70vw); height: 1px;
  background: rgba(237, 234, 227, 0.14);
  position: relative;
}
.pre-bar-fill {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 16px rgba(255, 77, 0, 0.7);
}
.pre-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.pre-status { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--green); min-height: 5.2em; }
.pre-status li { opacity: 0.85; }
.pre-count {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background:
    radial-gradient(50% 42% at 18% 8%, rgba(38, 52, 94, 0.22), transparent 70%),
    radial-gradient(42% 38% at 85% 18%, rgba(84, 40, 78, 0.13), transparent 70%),
    var(--bg);
}

.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-orbit {
  position: absolute;
  left: 50%; top: 54%;
  width: min(120vw, 1500px);
  transform: translate(-50%, -50%) rotate(-9deg);
  color: var(--dim);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--gutter) 9vh;
  max-width: 1200px;
}

.hero-eyebrow { justify-content: center; margin-bottom: clamp(18px, 3vh, 34px); }

.hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 15vw, 14.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.ht-line { display: block; }
.ht-line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .ht-line--outline { color: var(--ink); }
}

.hero-sub {
  max-width: 560px;
  margin: clamp(22px, 3.4vh, 40px) auto 0;
  color: var(--dim);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.hero-ctas {
  display: flex; gap: 14px;
  justify-content: center;
  margin-top: clamp(26px, 4vh, 46px);
  flex-wrap: wrap;
}

/* orbital horizon */
.hero-horizon {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-horizon > div {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.horizon-body {
  width: var(--hz-size);
  height: var(--hz-size);
  top: var(--hz-top);
  background:
    radial-gradient(115% 115% at 50% 118%, transparent 55%, rgba(255, 116, 44, 0.06) 72%, rgba(255, 140, 60, 0.12) 82%, rgba(20, 16, 22, 0.6) 92%),
    radial-gradient(100% 100% at 50% 130%, #101018 0%, #0c0c13 55%, #08080d 78%, #060609 100%);
  box-shadow:
    inset 0 60px 120px -40px rgba(255, 130, 60, 0.18),
    inset 0 8px 24px rgba(237, 234, 227, 0.05);
}
.horizon-glow {
  width: calc(var(--hz-size) + 6px);
  height: calc(var(--hz-size) + 6px);
  top: calc(var(--hz-top) - 3px);
  background: radial-gradient(closest-side, transparent 97.2%, rgba(255, 94, 22, 0.9) 98.9%, transparent 100%);
  filter: blur(6px);
}
.horizon-atmo {
  width: calc(var(--hz-size) + 120px);
  height: calc(var(--hz-size) + 120px);
  top: calc(var(--hz-top) - 60px);
  background: radial-gradient(closest-side, transparent 94.5%, rgba(255, 104, 32, 0.16) 97.5%, transparent 100%);
  filter: blur(22px);
}
.hero { --hz-size: max(200vw, 1300px); --hz-top: calc(100% - 23vh); }

.hero-hud {
  position: absolute;
  z-index: 4;
  bottom: 26px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-hud b { font-weight: 700; }
.countdown { font-variant-numeric: tabular-nums; }
.hud-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.hud-scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--dim), transparent);
  overflow: hidden;
  position: relative;
}
.hud-scroll-line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scroll-cue { 60%, 100% { top: 100%; } }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: clip;
  background: var(--bg-2);
}
.marquee-track { display: flex; width: max-content; animation: marq 36s linear infinite; }
.marquee-group {
  display: flex; align-items: center;
  gap: 3.2em; padding-right: 3.2em;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group i { color: var(--accent); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── Manifesto ────────────────────────────────────────────── */
.manifesto { padding: clamp(110px, 16vh, 200px) var(--gutter); max-width: 1250px; margin: 0 auto; }

.sec-head { margin-bottom: clamp(34px, 6vh, 64px); }

.manifesto-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 3.3rem);
  line-height: 1.28;
  letter-spacing: 0.002em;
  max-width: 1080px;
}
.manifesto-text .mw { opacity: 0.14; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  margin-top: clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.stat { padding-top: 26px; position: relative; }
.stat::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 44px; height: 1px;
  background: var(--accent);
}
.stat-num, .stat-suffix {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--accent); margin-left: 2px; }
.stat-label { display: block; margin-top: 14px; font-size: 0.62rem; letter-spacing: 0.15em; color: var(--dim); }

/* ── Missions (horizontal) ────────────────────────────────── */
.missions { background: var(--bg-2); border-block: 1px solid var(--line); }
.missions-pin {
  height: 100vh;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.missions-head {
  position: absolute;
  top: clamp(76px, 11vh, 120px); left: var(--gutter); right: var(--gutter);
  z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.missions-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  position: absolute;
  left: 0; top: 34px;
}
.missions-head .mono-tag { position: absolute; left: 0; top: 0; }
.missions-count { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--dim); margin-left: auto; }
.missions-count b { color: var(--ink); }

.missions-track {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
  align-items: flex-end;
  will-change: transform;
}

.mcard {
  position: relative;
  flex: none;
  width: clamp(300px, 36vw, 520px);
  height: min(62vh, 620px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, #0e0e15, #08080d 70%);
  padding: clamp(20px, 2vw, 32px);
  display: flex;
  flex-direction: column;
  overflow: clip;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.mcard:hover { border-color: rgba(237, 234, 227, 0.3); }

.mv { position: relative; flex: 1; min-height: 0; }
.mv-orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--dim); }

.mini {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(46%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mcard:hover .mini { transform: translate(-50%, -50%) scale(1.05); }
.mini--moon {
  background:
    radial-gradient(circle at 33% 30%, #d8d8de 0%, #a3a4ac 32%, #4c4d57 66%, #16171e 100%);
  box-shadow: inset -18px -14px 40px rgba(0, 0, 0, 0.75), 0 0 50px rgba(160, 170, 210, 0.12);
}
.mini--mars {
  background:
    radial-gradient(circle at 33% 30%, #ffb27d 0%, #d96b3f 36%, #79301d 68%, #190b07 100%);
  box-shadow: inset -18px -14px 40px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 110, 50, 0.14);
}
.mini--europa {
  background:
    radial-gradient(circle at 33% 30%, #eef6ff 0%, #a9c9e9 34%, #47698f 68%, #0a1420 100%);
  box-shadow: inset -18px -14px 40px rgba(0, 0, 0, 0.75), 0 0 50px rgba(140, 190, 255, 0.16);
}

.station { position: absolute; inset: 0; display: grid; place-items: center; }
.station-core {
  width: min(30%, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, #cfd2da 0%, #8d919c 40%, #3c3f4a 72%, #14151c 100%);
  box-shadow: inset -14px -10px 30px rgba(0, 0, 0, 0.75), 0 0 44px rgba(180, 190, 220, 0.12);
}
.station-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: min(78%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid rgba(237, 234, 227, 0.14);
  border-top-color: rgba(237, 234, 227, 0.34);
  transform: translate(-50%, -50%) rotateX(70deg);
  animation: station-spin 18s linear infinite;
}
@keyframes station-spin {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

.mcard-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.mcard-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  margin-top: 10px;
  text-transform: uppercase;
}
.mcard-role { color: var(--dim); font-size: 0.92rem; max-width: 40ch; margin-top: 6px; }
.mcard-index {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 227, 0.18);
}

/* ── Destinations ─────────────────────────────────────────── */
.dest {
  position: relative;
  --tint: rgba(32, 34, 46, 0.5);
  --glow: rgba(140, 150, 190, 0.34);
}
.dest-pin {
  height: 100vh;
  height: 100svh;
  overflow: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  background: radial-gradient(60% 52% at 32% 55%, var(--tint), transparent 72%);
}
.dest-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(84px, 12vh, 130px) var(--gutter) 0;
}
.dest-count { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--dim); }
.dest-count b { color: var(--ink); }

.dest-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  gap: clamp(20px, 4vw, 60px);
  min-height: 0;
}

.dest-stage { display: grid; place-items: center; min-height: 0; }
.planet-wrap {
  position: relative;
  width: min(38vw, 62vh);
  aspect-ratio: 1;
}
.planet-ringback {
  position: absolute;
  left: 50%; top: 50%;
  width: 160%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid transparent;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-16deg);
  border-color: rgba(255, 194, 77, 0);
  transition: none;
  pointer-events: none;
}
.planet-atmo {
  position: absolute;
  inset: -11%;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 62%, var(--glow) 82%, transparent 96%);
  filter: blur(16px);
}
.planet {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: clip;
  transform: translateZ(0);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.planet-skin { position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
.planet-skin.skin--luna { opacity: 1; }

.skin--luna {
  background:
    radial-gradient(14% 14% at 62% 38%, rgba(0, 0, 0, 0.5), transparent 100%),
    radial-gradient(10% 10% at 40% 60%, rgba(0, 0, 0, 0.45), transparent 100%),
    radial-gradient(8% 8% at 55% 72%, rgba(0, 0, 0, 0.4), transparent 100%),
    radial-gradient(18% 18% at 30% 30%, rgba(255, 255, 255, 0.06), transparent 100%),
    radial-gradient(circle at 32% 30%, #d9d9de 0%, #9fa0a8 32%, #4a4b54 64%, #17181e 100%);
}
.skin--mars {
  background:
    radial-gradient(22% 16% at 58% 46%, rgba(60, 16, 8, 0.55), transparent 100%),
    radial-gradient(16% 12% at 38% 62%, rgba(60, 16, 8, 0.45), transparent 100%),
    radial-gradient(20% 20% at 66% 24%, rgba(255, 220, 190, 0.1), transparent 100%),
    radial-gradient(circle at 32% 30%, #ffb27d 0%, #d96b3f 36%, #7a2f1d 66%, #1a0b08 100%);
}
.skin--europa {
  background:
    repeating-linear-gradient(104deg, transparent 0 26px, rgba(90, 46, 34, 0.22) 26px 27.5px, transparent 27.5px 60px),
    repeating-linear-gradient(66deg, transparent 0 34px, rgba(90, 46, 34, 0.16) 34px 35.2px, transparent 35.2px 74px),
    radial-gradient(circle at 32% 30%, #eef6ff 0%, #a8c8e8 34%, #4a6d99 66%, #0b1524 100%);
}
.skin--titan {
  background:
    radial-gradient(30% 22% at 50% 30%, rgba(255, 236, 200, 0.14), transparent 100%),
    radial-gradient(circle at 32% 30%, #ffd9a0 0%, #e8a45e 38%, #8a4f22 68%, #1c0e05 100%);
}

.planet-noise {
  position: absolute;
  inset: -25%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.55;
  animation: planet-rotate 140s linear infinite;
}
@keyframes planet-rotate { to { transform: rotate(360deg); } }

.planet-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, transparent 42%, rgba(4, 4, 8, 0.42) 68%, rgba(4, 4, 8, 0.92) 100%);
}

.dest-items { position: relative; height: min(52vh, 560px); }
.dest-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dest-eyebrow { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--accent); }
.dest-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 14px 0 16px;
}
.dest-copy { color: var(--dim); font-size: clamp(0.98rem, 1.2vw, 1.12rem); max-width: 42ch; line-height: 1.7; }
.dest-data {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px clamp(24px, 3vw, 56px);
  margin-top: clamp(24px, 4vh, 44px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.dest-data dt { font-size: 0.58rem; letter-spacing: 0.18em; color: var(--dim); }
.dest-data dd { font-size: 0.86rem; letter-spacing: 0.06em; margin-top: 6px; color: var(--ink); }

/* ── The Belt ─────────────────────────────────────────────── */
.belt {
  position: relative;
  min-height: 150vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.belt-ghost {
  position: absolute;
  top: clamp(40px, 8vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 227, 0.13);
  pointer-events: none;
}
.belt-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.belt-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1.4;
}
.belt-link {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 0, 0.4);
  padding-bottom: 6px;
  transition: border-color 0.3s;
}
.belt-link:hover { border-color: var(--accent); }

.rock { position: absolute; z-index: 2; opacity: 0.9; }
.rock-1 { width: clamp(90px, 12vw, 190px); left: 6%; top: 16%; }
.rock-2 { width: clamp(120px, 16vw, 250px); right: 7%; top: 26%; }
.rock-3 { width: clamp(56px, 7vw, 110px); left: 16%; bottom: 22%; }
.rock-4 { width: clamp(80px, 10vw, 160px); right: 18%; bottom: 12%; }
.rock-5 { width: clamp(36px, 4.6vw, 74px); left: 42%; top: 9%; }

.rock-label {
  position: absolute;
  z-index: 3;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.6);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.rock-label-1 { right: calc(7% + 20px); top: calc(26% - 34px); }
.rock-label-2 { left: calc(6% + 12px); top: calc(16% - 34px); }

.comet { position: absolute; z-index: 1; width: min(44vw, 520px); height: 2px; transform: rotate(-16deg); }
.comet-tail {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(190, 224, 255, 0.85));
  filter: blur(1px);
}
.comet-head {
  position: absolute;
  right: -5px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #eaf6ff;
  box-shadow: 0 0 20px 7px rgba(150, 200, 255, 0.75);
}
.comet-1 { top: 34%; left: -50vw; }
.comet-2 { top: 68%; left: -60vw; width: min(26vw, 300px); opacity: 0.65; }

/* ── Manifest ─────────────────────────────────────────────── */
.manifest { padding: clamp(110px, 16vh, 200px) var(--gutter); max-width: 1350px; margin: 0 auto; }
.manifest-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 18px;
}
.manifest-list { border-top: 1px solid var(--line); }
.mrow {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1.1fr 1fr 1.4fr 120px 40px;
  align-items: center;
  gap: 18px;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s ease;
}
.mrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 77, 0, 0.09), rgba(255, 77, 0, 0.02));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.mrow:hover::before { transform: scaleY(1); }
.mrow:hover { padding-left: 22px; }
.mr-date { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--dim); }
.mr-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.7rem); letter-spacing: 0.02em; }
.mr-pad { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--dim); }
.mr-payload { color: var(--dim); font-size: 0.92rem; }
.mr-status { font-size: 0.64rem; letter-spacing: 0.16em; color: var(--dim); text-align: right; }
.mr-status.st-go { color: var(--green); }
.mr-status.st-hold { color: var(--amber); }
.mr-arrow { text-align: right; color: var(--dim); transition: transform 0.35s ease, color 0.35s ease; }
.mrow:hover .mr-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(24px, 4vh, 42px);
  padding: 120px var(--gutter);
  overflow: clip;
  background: radial-gradient(56% 44% at 50% 108%, rgba(255, 77, 0, 0.14), transparent 72%);
}
.cta-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 10.5rem);
  line-height: 0.94;
  text-transform: uppercase;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-note { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--dim); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vh, 110px) var(--gutter) 30px;
  overflow: clip;
  background: var(--bg-2);
}
.footer-mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(4rem, 14.5vw, 15rem);
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 227, 0.22);
  user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 40px;
  margin: clamp(50px, 8vh, 90px) 0;
}
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol-head { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--dim); margin-bottom: 8px; }
.fcol a { color: var(--ink); opacity: 0.78; font-size: 0.95rem; transition: opacity 0.3s, color 0.3s; width: fit-content; }
.fcol a:hover { opacity: 1; color: var(--accent); }
.fcol-copy { color: var(--dim); font-size: 0.9rem; line-height: 1.8; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.to-top { color: var(--ink); }
.to-top:hover { color: var(--accent); }

/* ── Split text scaffolding ───────────────────────────────── */
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split] .c { display: inline-block; overflow: clip; vertical-align: top; }
[data-split] .ci { display: inline-block; will-change: transform; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 900px) {
  .dest-grid {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
    padding-top: 8px;
  }
  .dest-stage { order: 0; }
  .planet-wrap { width: min(58vw, 30vh); }
  .dest-items { order: 1; height: 46vh; }
  .dest-name { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .dest-data { grid-template-columns: repeat(3, auto); gap: 10px 20px; }

  .mrow {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "date status"
      "name name"
      "pad pad"
      "payload arrow";
    gap: 8px;
    padding: 22px 4px;
  }
  .mr-date { grid-area: date; }
  .mr-status { grid-area: status; }
  .mr-name { grid-area: name; }
  .mr-pad { grid-area: pad; }
  .mr-payload { grid-area: payload; }
  .mr-arrow { grid-area: arrow; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }

  .mcard { width: min(82vw, 420px); height: min(58vh, 560px); }

  .hero { --hz-size: max(260vw, 900px); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .rock-label-1 { right: 4%; }
  .rock-label-2 { left: 4%; }
}

@media (max-width: 640px) {
  .header-right .btn { display: none; }
  .hero-ctas .btn { width: min(100%, 320px); }
  .hero-hud .hud-left { display: none; }
  .belt { min-height: 120vh; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain, .hud-scroll-line::after { animation: none; }
  .marquee-track { animation-duration: 160s; }
  .station-ring, .planet-noise { animation: none; }
  html { scroll-behavior: auto; }
}
