:root {
  --space: #04060f;
  --bg: #05070f;
  --bg-2: #0a0e1d;
  --surface: #0d1224;
  --surface-2: #121a33;
  --line: rgba(150, 170, 230, 0.13);
  --line-2: rgba(150, 170, 230, 0.24);
  --text: #edf1ff;
  --muted: #9aa5c7;
  --faint: #66708f;
  --accent: #8fb4ff;
  --glass: rgba(10, 14, 30, 0.72);
  --live: #5ef0a0;
  --active: #ffc861;
  --prototype: #5fdcff;
  --idea: #a9b4e6;
  --paused: #8a93ad;
  --archived: #6b7387;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --gutter: 32px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fc;
    --bg-2: #eaeef9;
    --surface: #ffffff;
    --surface-2: #f6f8ff;
    --line: rgba(25, 40, 90, 0.1);
    --line-2: rgba(25, 40, 90, 0.18);
    --text: #121831;
    --muted: #536083;
    --faint: #8a93ad;
    --accent: #3361e0;
    --live: #0f9d58;
    --active: #c27c00;
    --prototype: #0b8fb3;
    --idea: #5a68a8;
    --paused: #6b7387;
    --archived: #8a93ad;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.card[hidden] { display: flex !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); color: #edf1ff;
  transition: background .3s, backdrop-filter .3s, padding .3s, color .3s;
}
.site-nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.logo-orb {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff 0 8%, #ffd88a 22%, #ff8f5c 55%, #a8326a 100%);
  box-shadow: 0 0 14px rgba(255, 170, 90, .65), 0 0 0 4px rgba(255, 170, 90, .08);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; opacity: .82; transition: opacity .2s, background .2s; }
.nav-links a:hover { opacity: 1; background: rgba(150, 170, 230, .12); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--space); overflow: hidden; color: #edf1ff; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hero canvas.grabbing { cursor: grabbing; }
.hero canvas.pointing { cursor: pointer; }
body.exploring .hero canvas { touch-action: none; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; background: linear-gradient(180deg, rgba(4, 6, 15, .75), transparent); pointer-events: none; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(4, 6, 15, .85)); pointer-events: none; z-index: 1; }

.hero-copy {
  position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%);
  max-width: 470px; pointer-events: none; transition: opacity .5s, transform .5s;
}
.hero-copy > * { pointer-events: auto; }
body.focused .hero-copy, body.exploring .hero-copy { opacity: 0; transform: translateY(-50%) translateX(-24px); pointer-events: none; }
body.focused .hero-copy > *, body.exploring .hero-copy > * { pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { color: #a9c2ff; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5ef0a0; box-shadow: 0 0 0 0 rgba(94, 240, 160, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94, 240, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 240, 160, 0); } }
h1 {
  margin: 0; font: 700 clamp(46px, 6.4vw, 92px)/.95 var(--display); letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #b7c6f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(140, 170, 255, .15);
}
.sub { margin: 18px 0 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; color: #c3cbe6; max-width: 30em; }
.stats { margin: 16px 0 0; font: 500 14px/1.4 var(--font); color: #8f9bc2; font-variant-numeric: tabular-nums; }
.stats b { color: #fff; font-weight: 600; }
.stats .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 4px 1px 0; vertical-align: middle; }
.cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #ffffff, #dfe6ff); color: #0b1024; box-shadow: 0 8px 30px -8px rgba(160, 190, 255, .55); }
.btn.primary:hover { box-shadow: 0 10px 36px -6px rgba(160, 190, 255, .75); }
.btn.ghost { background: rgba(150, 170, 230, .08); border-color: rgba(150, 170, 230, .25); color: #e3e9ff; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(150, 170, 230, .16); }
.btn.done { position: absolute; z-index: 6; top: 76px; right: var(--gutter); background: rgba(255, 255, 255, .92); color: #0b1024; }

.hud { position: absolute; z-index: 4; right: var(--gutter); bottom: 34px; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s; }
.hud button {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(150, 170, 230, .22); background: rgba(10, 14, 30, .6);
  color: #dfe6ff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center;
}
.hud button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hud button:hover { background: rgba(40, 56, 110, .7); }
.hint { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); margin: 0; color: #8f9bc2; font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .4s; text-shadow: 0 1px 8px #000; }
body.focused .hint { opacity: 0; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 58px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(200, 210, 255, .35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #c9d4ff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
body.focused .scroll-cue, body.exploring .scroll-cue { opacity: 0; pointer-events: none; }

.tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 280px;
  padding: 10px 14px; border-radius: 14px; background: rgba(8, 11, 26, .82); border: 1px solid rgba(150, 170, 230, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7);
  transform: translate(-50%, calc(-100% - 14px)); color: #edf1ff;
}
.tip b { display: block; font: 600 15px/1.25 var(--display); }
.tip span { display: block; color: #a7b2d6; font-size: 13px; line-height: 1.4; margin-top: 3px; }
.tip i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc, #a9b4e6); }

/* keyboard planet index: invisible until it receives focus */
.planet-index { position: absolute; z-index: 6; left: var(--gutter); bottom: 24px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.planet-index:focus-within {
  width: auto; height: auto; clip: auto; overflow: auto; max-height: 50%; max-width: min(360px, calc(100% - 2 * var(--gutter)));
  background: rgba(8, 11, 26, .92); border: 1px solid rgba(150, 170, 230, .25); border-radius: 16px; padding: 10px;
}
.planet-index h3 { margin: 6px 6px 4px; font: 600 11px/1.2 var(--font); text-transform: uppercase; letter-spacing: .12em; color: #8f9bc2; }
.planet-index button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: #dfe6ff; font-size: 14px; }
.planet-index button:focus { background: rgba(150, 170, 230, .16); }

/* ---------- project card / bottom sheet ---------- */
.card {
  position: fixed; z-index: 50; right: 24px; top: 84px; max-height: calc(100% - 108px); width: 430px;
  display: flex; flex-direction: column; color: #edf1ff;
  background: linear-gradient(180deg, rgba(16, 21, 44, .88), rgba(8, 11, 26, .92));
  border: 1px solid rgba(150, 170, 230, .2); border-radius: 26px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  overflow: hidden; transform: translateX(30px); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.card[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.card.open { transform: none; opacity: 1; visibility: visible; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none; background: radial-gradient(380px 200px at 20% -20%, color-mix(in srgb, var(--g, #8fb4ff) 35%, transparent), transparent 70%); }
.card-close {
  position: absolute; z-index: 3; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(150, 170, 230, .25); background: rgba(10, 14, 30, .55); font-size: 22px; line-height: 1; color: #fff; backdrop-filter: blur(8px);
}
.card-close:hover { background: rgba(40, 56, 110, .8); }
.card-body { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 26px; flex: 1; }
.sheet-handle { display: none; }
.c-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.c-planet { width: 64px; height: 64px; flex: none; }
.c-title { min-width: 0; }
.c-title h2 { margin: 0; font: 700 27px/1.1 var(--display); letter-spacing: -0.02em; }
.c-title h2 .ic { font-size: 22px; margin-right: 6px; }
.c-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; font-size: 13px; color: #9aa5c7; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid rgba(150, 170, 230, .2); color: #b9c3e3; }
.ph-live { --pc: #5ef0a0; } .ph-active { --pc: #ffc861; } .ph-prototype { --pc: #5fdcff; }
.ph-idea { --pc: #a9b4e6; } .ph-paused { --pc: #8a93ad; } .ph-archived { --pc: #6b7387; }
.c-tagline { margin: 18px 0 0; font: 500 18px/1.45 var(--display); color: #fff; }
.c-desc { margin: 10px 0 0; color: #b3bddc; font-size: 15px; }
.gallery { position: relative; margin: 20px -24px 0; }
.g-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px; scrollbar-width: none; scroll-padding: 0 24px; }
.g-track::-webkit-scrollbar { display: none; }
.g-track figure { margin: 0; flex: none; width: 100%; scroll-snap-align: start; }
.g-track img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: #0b1022 linear-gradient(110deg, #0b1022 30%, #141c3a 50%, #0b1022 70%) 0 0 / 200% 100%; border: 1px solid rgba(150, 170, 230, .15); animation: shimmer 1.6s infinite linear; }
.g-track img.loaded { animation: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.g-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; border: 0; background: rgba(200, 210, 255, .3); cursor: pointer; transition: width .25s, background .25s; }
.g-dots button[aria-current="true"] { width: 20px; background: #fff; }
.g-nav { position: absolute; top: calc(50% - 22px); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 11, 26, .6); color: #fff; cursor: pointer; backdrop-filter: blur(6px); font-size: 18px; line-height: 1; }
.g-nav.prev { left: 32px; } .g-nav.next { right: 32px; }
.c-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.c-actions .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.code { background: rgba(150, 170, 230, .1); border-color: rgba(150, 170, 230, .28); color: #e3e9ff; }
.btn.code:hover { background: rgba(150, 170, 230, .18); }
.c-facts { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(150, 170, 230, .14); }
.c-facts .k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7d88ad; font-weight: 600; }
.c-facts .v { font: 500 15px/1.35 var(--font); color: #e6ebff; margin-top: 3px; }
.c-spark { width: 150px; height: 40px; display: block; }
.c-moons { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.moon-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid rgba(150, 170, 230, .22); background: rgba(150, 170, 230, .06); cursor: pointer; font-size: 13.5px; color: #dfe6ff; }
.moon-btn:hover { background: rgba(150, 170, 230, .14); }
.moon-btn canvas { width: 18px; height: 18px; }
.c-sys-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.c-sys-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 10px 12px; border-radius: 16px;
  border: 1px solid rgba(150, 170, 230, .14); background: rgba(150, 170, 230, .05); transition: background .2s, border-color .2s;
}
.c-sys-list button:hover { background: rgba(150, 170, 230, .12); border-color: rgba(150, 170, 230, .3); }
.c-sys-list canvas { width: 40px; height: 40px; flex: none; }
.c-sys-list .t { flex: 1; min-width: 0; }
.c-sys-list b { display: block; font: 600 15px/1.25 var(--display); }
.c-sys-list small { display: block; color: #9aa5c7; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 8px; }
.c-nav button { flex: 1; height: 38px; border-radius: 12px; border: 1px solid rgba(150, 170, 230, .16); background: transparent; color: #9aa5c7; cursor: pointer; font-size: 13px; }
.c-nav button:hover { color: #fff; background: rgba(150, 170, 230, .08); }

/* ---------- systems section ---------- */
.systems { position: relative; padding: 110px 0 60px; background: var(--bg); }
.systems::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; background: radial-gradient(700px 240px at 50% 0, color-mix(in srgb, #6f8cff 12%, transparent), transparent 70%); pointer-events: none; }
.section-head { max-width: 680px; margin-bottom: 26px; position: relative; }
.section-head h2 { margin: 0; font: 700 clamp(32px, 4vw, 50px)/1.05 var(--display); letter-spacing: -0.03em; }
.lede { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.sys { margin-top: 64px; }
.sys-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sys-sun { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 50%, #fff 0 14%, var(--g) 46%, color-mix(in srgb, var(--g) 0%, transparent) 72%); box-shadow: 0 0 34px color-mix(in srgb, var(--g) 55%, transparent); }
.sys-head h3 { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }
.sys-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.sys-head .count { margin-left: auto; color: var(--faint); font-size: 14px; font-weight: 500; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; min-width: 0;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--g) 50%, rgba(0, 0, 0, .6)); border-color: color-mix(in srgb, var(--g) 40%, var(--line)); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 70% 20%, color-mix(in srgb, var(--g) 26%, #060914), #04060f 70%); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.pcard:hover .thumb img { transform: scale(1.04); }
.thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb .badge { position: absolute; left: 12px; top: 12px; background: rgba(6, 9, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pbody h4 { margin: 0; font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.pbody p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pmeta { margin-top: auto !important; padding-top: 6px; font-size: 13px !important; color: var(--faint) !important; }
.pactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pbtn {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s;
}
.pbtn:hover { border-color: var(--g); }
.pbtn.main { background: color-mix(in srgb, var(--g) 18%, var(--surface)); border-color: color-mix(in srgb, var(--g) 45%, transparent); }
.pbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); background: var(--bg); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand b { display: block; font: 600 16px/1.2 var(--display); }
.foot-brand span:not(.logo-orb) { color: var(--faint); font-size: 13px; }
.foot-links { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.foot-links a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .site-nav { padding: 14px var(--gutter); }
  .nav-links a { padding: 6px 9px; font-size: 13.5px; }
  .nav-links a[href="#top"] { display: none; }
  .hero-copy { top: 74px; transform: none; max-width: none; right: var(--gutter); }
  body.focused .hero-copy, body.exploring .hero-copy { transform: translateY(-16px); }
  h1 { font-size: 44px; }
  .sub { font-size: 15.5px; margin-top: 10px; }
  .stats { margin-top: 8px; font-size: 13px; }
  .cta { margin-top: 16px; }
  .btn { height: 42px; padding: 0 17px; font-size: 14.5px; }
  .hud { right: var(--gutter); bottom: 24px; }
  body:not(.exploring) .hud { opacity: 0; pointer-events: none; }
  .hud button { width: 40px; height: 40px; }
  .hint { bottom: 20px; font-size: 12px; left: var(--gutter); transform: none; white-space: normal; right: var(--gutter); }
  body.exploring .hint { right: 70px; }
  .scroll-cue { display: none; }
  .btn.done { top: 66px; }

  .card {
    left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72svh; max-height: 72vh;
    border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(40px);
  }
  @supports (height: 1svh) { .card { max-height: 72svh; } }
  .card.open { transform: translateY(var(--drag, 0px)); }
  .card.dragging { transition: none; }
  .sheet-handle { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; cursor: grab; flex: none; }
  .sheet-handle span { width: 42px; height: 5px; border-radius: 9px; background: rgba(200, 210, 255, .35); }
  .card-close { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 20px; }
  .card-body { padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); }
  .c-planet { width: 52px; height: 52px; }
  .c-title h2 { font-size: 23px; }
  .c-tagline { font-size: 16.5px; margin-top: 14px; }
  .gallery { margin: 16px -18px 0; }
  .g-track { padding: 0 18px; scroll-padding: 0 18px; }
  .g-track figure { width: 88%; }
  .g-nav { display: none; }
  .c-spark { width: 110px; }

  .systems { padding-top: 72px; }
  .sys { margin-top: 48px; }
  .sys-head h3 { font-size: 22px; }
  .sys-head .count { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
