/* ==========================================================================
   omarmansi.com: cosmic theme
   ========================================================================== */
:root {
  --bg: #05030f;
  --ink: #eef0ff;
  --muted: #b0b3dc;
  --dim: #7376a6;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(16, 11, 42, .55);
  --pink: #ff4fb0;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --green: #34d399;
  --coral: #fb7185;
  --display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --arabic: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --grad: linear-gradient(100deg, #ff4fb0 0%, #c084fc 28%, #22d3ee 58%, #fbbf24 88%, #ff4fb0 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 79, 176, .45); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 500; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- backdrop layers ---------- */
.space-bg {
  position: fixed; inset: 0; z-index: -4;
  background:
    radial-gradient(1100px 700px at 78% -8%, #1d0c44 0%, transparent 62%),
    radial-gradient(900px 650px at -5% 105%, #06213f 0%, transparent 60%),
    radial-gradient(700px 500px at 105% 80%, #2a0830 0%, transparent 60%),
    linear-gradient(180deg, #05030f 0%, #070418 50%, #05030f 100%);
}
.nebula { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.nebula i { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; animation: drift 46s ease-in-out infinite alternate; }
.nebula i:nth-child(1) { width: 70vmax; height: 70vmax; left: -22vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(255, 79, 176, .22), rgba(255, 79, 176, 0)); }
.nebula i:nth-child(2) { width: 60vmax; height: 60vmax; right: -20vmax; top: 10vh; background: radial-gradient(closest-side, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0)); animation-duration: 58s; animation-delay: -12s; }
.nebula i:nth-child(3) { width: 55vmax; height: 55vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(167, 139, 250, .22), rgba(167, 139, 250, 0)); animation-duration: 64s; animation-delay: -30s; }
.nebula i:nth-child(4) { width: 36vmax; height: 36vmax; left: 55vw; top: 40vh; background: radial-gradient(closest-side, rgba(251, 191, 36, .10), rgba(251, 191, 36, 0)); animation-duration: 52s; animation-delay: -6s; }
.nebula i:nth-child(5) { width: 40vmax; height: 40vmax; left: -10vw; top: 45vh; background: radial-gradient(closest-side, rgba(52, 211, 153, .09), rgba(52, 211, 153, 0)); animation-duration: 70s; animation-delay: -20s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 5vh, 0) scale(.94); }
}
#cosmos { position: fixed; inset: 0; z-index: -2; width: 100vw; height: 100vh; pointer-events: none; }

/* scroll "fuel gauge" */
.fuel { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.fuel span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px rgba(255, 79, 176, .8); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 4vw, 44px);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 4, 20, .62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; animation: spin-slow 18s linear infinite; }
.brand b { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .25s, background .25s;
}
.nav-links a i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-right: 6px; transition: color .25s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active i { color: var(--pink); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.nav-toggle { display: none; }

/* ---------- shared section bits ---------- */
.wrap { width: min(1200px, 100% - clamp(32px, 8vw, 96px)); margin-inline: auto; }
.center { text-align: center; }
.section { position: relative; padding: clamp(90px, 16vh, 170px) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.kicker span { color: var(--pink); }
.kicker.center { display: flex; justify-content: center; }
.title {
  margin: 0 0 22px; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
}
.title.huge { font-size: clamp(2.6rem, 8vw, 6.6rem); }
.grad {
  background: var(--grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.lede { max-width: 640px; margin: 0 0 10px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); }
.lede.center { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   LAUNCH / HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.noscript-name { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--display); font-size: 12vw; font-weight: 800; }
.hud { position: absolute; top: calc(var(--nav-h) + 14px); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; line-height: 1.9; color: var(--muted); text-transform: uppercase; pointer-events: none; }
.hud-tl { left: clamp(16px, 4vw, 44px); }
.hud-tr { right: clamp(16px, 4vw, 44px); text-align: right; }
.hud-dim { color: var(--dim); }
.blink { color: var(--green); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 20px; text-align: center; pointer-events: none; }
.hero-bottom a { pointer-events: auto; }
.hero-sub { margin: 0; font-family: var(--mono); font-size: clamp(11px, 1.3vw, 13.5px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade-up 1.2s 1.6s var(--ease) forwards; }
.wave-text { margin: 0; min-height: 1.5em; max-width: 92vw; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.75rem); line-height: 1.35; letter-spacing: .01em; }
.wave-text .w > span { display: inline-block; color: hsl(calc(var(--h, 300) * 1deg) 95% 74%); text-shadow: 0 0 18px hsla(calc(var(--h, 300) * 1deg), 95%, 60%, .55); animation: wave-in .8s var(--ease) both, bob 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 32ms), calc(var(--i) * 90ms + .8s); }
.wave-text.out .w > span { animation: wave-out .55s ease-in both; animation-delay: calc(var(--i) * 14ms); }
@keyframes wave-in { from { opacity: 0; transform: translateY(.9em) rotate(10deg) scale(.7); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wave-out { to { opacity: 0; transform: translateY(-.8em) rotate(-8deg) scale(.8); filter: blur(5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.2em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade-up 1.2s 2.4s var(--ease) forwards; transition: color .2s; }
.scroll-cue:hover { color: #fff; }
.scroll-cue svg { width: 18px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.scroll-cue .dot { fill: var(--pink); stroke: none; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero-hint { position: absolute; right: clamp(16px, 4vw, 44px); bottom: 22px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); opacity: 0; animation: fade-up 1s 3.4s forwards; }

/* ==========================================================================
   01 ORIGIN
   ========================================================================== */
.origin-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.origin-left .lede { max-width: 560px; color: #d6d8f5; }
.quote { margin: 42px 0 0; padding: 26px 28px 22px; border-radius: 22px; position: relative; background: linear-gradient(135deg, rgba(255, 79, 176, .12), rgba(34, 211, 238, .06)); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.quote::before { content: "“"; position: absolute; right: 14px; top: -34px; font-family: var(--display); font-size: 170px; line-height: 1; color: rgba(255, 255, 255, .06); }
.quote blockquote { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.25; }
.quote figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.readout { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.rl { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.rl-label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); opacity: 0; transition: opacity .6s; }
.rl.lit .rl-label { opacity: 1; }
.rl-text {
  font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.4;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, hsl(var(--h) 95% 75%) 50%, #fff 60%, #fff 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(-20% 100% -20% 0);
}
.rl.lit .rl-text { animation: text-glint 5s 1.4s ease-in-out infinite; }
@keyframes text-glint { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }
.comet {
  position: absolute; top: 50%; left: 0; width: 220px; height: 3px; margin-top: -1.5px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, hsla(var(--h), 100%, 70%, .25) 40%, hsla(var(--h), 100%, 78%, .9) 92%, #fff);
  border-radius: 3px; filter: drop-shadow(0 0 6px hsl(var(--h) 100% 65%));
}
.comet::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px hsl(var(--h) 100% 70%), 0 0 30px 10px hsla(var(--h), 100%, 60%, .5); }
.readout-note { margin: 18px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); }

/* solar wind skills ribbon */
.solar-wind { margin-top: clamp(80px, 12vh, 140px); overflow: hidden; }
#wind { width: 100%; height: clamp(190px, 26vw, 300px); overflow: hidden; }
.wglow { fill: none; stroke-width: 26; opacity: .07; stroke-linecap: round; }
.wline { fill: none; stroke-width: 1.4; opacity: .55; }
.wtext { font-family: var(--display); font-weight: 700; font-size: 33px; letter-spacing: .02em; }
.wtext.t1 { fill: #fff; }
.wtext.t2 { fill: #e9e2ff; font-size: 26px; font-family: var(--body); font-weight: 600; opacity: .9; }
.wtext tspan.sep { fill: var(--pink); }
.wtext.t2 tspan.sep { fill: var(--gold); }

/* ==========================================================================
   02 SYSTEM
   ========================================================================== */
.system { padding-bottom: clamp(60px, 10vh, 120px); }
.stage { position: relative; width: min(1320px, 100%); height: clamp(560px, 86vh, 880px); margin: 10px auto 0; touch-action: pan-y; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbits ellipse { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 1; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.orbits ellipse.hot { stroke: var(--oc); stroke-width: 1.8; filter: drop-shadow(0 0 6px var(--oc)); }
.orbits ellipse.belt { stroke: rgba(255, 255, 255, .22); stroke-width: 2.2; stroke-dasharray: 1 9; stroke-linecap: round; animation: belt 60s linear infinite; }
@keyframes belt { to { stroke-dashoffset: -400; } }
.belt-label { position: absolute; margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); pointer-events: none; white-space: nowrap; transform: translate(-50%, 0); }

.sun { position: absolute; left: 50%; top: 50%; z-index: 100; width: var(--sun, 120px); height: var(--sun, 120px); margin: calc(var(--sun, 120px) / -2) 0 0 calc(var(--sun, 120px) / -2); border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.sun-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0%, #fff7d6 22%, #ffd36b 42%, #ff8a3d 66%, #ff3f8e 88%, rgba(255, 63, 142, 0) 100%); box-shadow: 0 0 60px 18px rgba(255, 166, 61, .45), 0 0 140px 50px rgba(255, 79, 176, .25); animation: sun-pulse 5s ease-in-out infinite; }
.corona { position: absolute; inset: -55%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 210, 110, 0), rgba(255, 210, 110, .55), rgba(255, 79, 176, 0) 12%, rgba(255, 140, 60, .5) 22%, rgba(255, 210, 110, 0) 30%, rgba(255, 79, 176, .45) 45%, rgba(255, 210, 110, 0) 55%, rgba(251, 191, 36, .5) 68%, rgba(255, 79, 176, 0) 78%, rgba(255, 160, 80, .45) 90%, rgba(255, 210, 110, 0)); -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%); filter: blur(6px); animation: spin-slow 26s linear infinite; opacity: .9; }
@keyframes sun-pulse { 50% { transform: scale(1.05); box-shadow: 0 0 80px 26px rgba(255, 166, 61, .5), 0 0 170px 70px rgba(255, 79, 176, .28); } }
.sun-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 16px); display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; }
.sun-label b { font-family: var(--display); font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: #ffe6a8; text-shadow: 0 0 14px rgba(255, 180, 70, .8); }
.sun-label small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.sun:hover .sun-label small, .sun:focus-visible .sun-label small { opacity: 1; transform: none; }
.sun:hover .sun-core { filter: brightness(1.15); }

.planet {
  position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); padding: 0; border: 0; background: none; cursor: pointer;
  --lx: 30%; --ly: 30%; --sx: -.18; --sy: -.12;
  will-change: transform;
}
.pl-body {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 2;
  background: radial-gradient(circle at var(--lx) var(--ly), var(--c1) 0%, var(--c2) 38%, var(--c3) 78%, #050312 100%);
  box-shadow: inset calc(var(--sx) * var(--size)) calc(var(--sy) * var(--size)) calc(var(--size) * .28) rgba(0, 0, 0, .62), 0 0 calc(var(--size) * .55) var(--glow);
  transition: box-shadow .35s, filter .35s;
}
.pl-body::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; opacity: .55; mix-blend-mode: overlay; background-size: 200% 100%; animation: surface 14s linear infinite; }
@keyframes surface { to { background-position: -200% 0; } }
.planet:hover .pl-body, .planet:focus-visible .pl-body, .planet.hot .pl-body { filter: brightness(1.18) saturate(1.15); box-shadow: inset calc(var(--sx) * var(--size)) calc(var(--sy) * var(--size)) calc(var(--size) * .28) rgba(0, 0, 0, .55), 0 0 calc(var(--size) * 1.1) var(--glow), 0 0 0 2px rgba(255, 255, 255, .25); }
.planet:focus-visible { outline: none; }
.pl-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; pointer-events: none; z-index: 3; opacity: var(--lo, 1); transition: opacity .3s; }
.pl-label b { font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--c1); text-shadow: 0 0 12px var(--glow); }
.pl-label small { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }

/* surfaces */
.d-pulsar .pl-body::before { background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .7) 0 9%, rgba(0, 0, 0, .55) 9% 21%, rgba(255, 255, 255, .55) 21% 27%, rgba(0, 0, 0, .5) 27% 40%); animation-duration: 9s; }
.d-approach .pl-body::before { background-image: radial-gradient(circle at 30% 60%, rgba(255, 255, 255, .55) 0 9%, transparent 10%), radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .45) 0 6%, transparent 7%), repeating-linear-gradient(170deg, rgba(255, 255, 255, .25) 0 6%, transparent 6% 16%); }
.d-ring .pl-body::before { background-image: repeating-linear-gradient(176deg, rgba(255, 255, 255, .5) 0 5%, rgba(0, 0, 0, .35) 5% 9%, rgba(255, 230, 170, .45) 9% 15%, rgba(0, 0, 0, .25) 15% 22%); animation-duration: 20s; }
.d-moons .pl-body::before { background-image: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, .7) 0 14%, transparent 30%), radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, .5) 0 10%, transparent 24%), repeating-linear-gradient(160deg, rgba(255, 255, 255, .3) 0 4%, transparent 4% 13%); animation-duration: 11s; }
.d-track .pl-body::before { background-image: radial-gradient(ellipse at 25% 35%, rgba(0, 40, 30, .7) 0 16%, transparent 17%), radial-gradient(ellipse at 65% 65%, rgba(0, 40, 30, .65) 0 20%, transparent 21%), radial-gradient(ellipse at 80% 25%, rgba(0, 40, 30, .6) 0 9%, transparent 10%); animation-duration: 16s; }

/* decorations */
.pl-decor { position: absolute; inset: 0; pointer-events: none; }
/* osu: approach circles */
.d-approach .pl-decor i { position: absolute; inset: -40%; border-radius: 50%; border: 2px solid var(--c1); opacity: 0; animation: approach 2.4s ease-in infinite; }
.d-approach .pl-decor i:nth-child(2) { animation-delay: 1.2s; }
@keyframes approach { 0% { transform: scale(1.5); opacity: 0; } 30% { opacity: .8; } 100% { transform: scale(.72); opacity: 0; } }
/* quad: four moons = four rotors */
.d-moons .pl-decor { inset: -42%; animation: spin-slow 7s linear infinite; }
.d-moons .pl-decor i { position: absolute; width: 18%; height: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c2) 60%, #0b3a6e); box-shadow: 0 0 8px var(--glow); }
.d-moons .pl-decor i:nth-child(1) { left: 0; top: 0; }
.d-moons .pl-decor i:nth-child(2) { right: 0; top: 0; }
.d-moons .pl-decor i:nth-child(3) { left: 0; bottom: 0; }
.d-moons .pl-decor i:nth-child(4) { right: 0; bottom: 0; }
/* gravity: rings (back half behind body, front half in front) */
.d-ring .pl-decor { inset: auto; left: 50%; top: 50%; width: 230%; height: 230%; margin: -115% 0 0 -115%; transform: rotate(-16deg) scaleY(.3); }
.d-ring .pl-decor i { position: absolute; inset: 0; border-radius: 50%; border: calc(var(--size) * .07) solid rgba(255, 214, 120, .75); box-shadow: 0 0 14px rgba(251, 191, 36, .6), inset 0 0 0 calc(var(--size) * .045) rgba(255, 240, 200, .25); }
.d-ring .pl-decor i:nth-child(2) { inset: 9%; border-width: calc(var(--size) * .03); border-color: rgba(255, 180, 90, .55); }
.d-ring .pl-decor.front { z-index: 3; -webkit-clip-path: inset(50% 0 0 0); clip-path: inset(50% 0 0 0); }
/* apex: race track ring with a car */
.d-track .pl-decor { inset: auto; left: 50%; top: 50%; width: 200%; height: 200%; margin: -100% 0 0 -100%; transform: rotate(-12deg) scaleY(.36); }
.d-track .pl-decor .trk { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(210, 255, 234, .55); }
.d-track .pl-decor .spin { position: absolute; inset: 0; animation: spin-slow 3.2s linear infinite; }
.d-track .pl-decor .car { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--c2); }
.d-track .pl-decor.front { z-index: 3; -webkit-clip-path: inset(50% 0 0 0); clip-path: inset(50% 0 0 0); }
/* kerr: pulsar beams */
.d-pulsar .pl-decor { inset: auto; left: 50%; top: 50%; width: 10px; height: 420%; margin: -210% 0 0 -5px; animation: spin-slow 4s linear infinite; }
.d-pulsar .pl-decor i { position: absolute; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(240, 230, 255, .85), rgba(167, 139, 250, 0)); -webkit-clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); filter: blur(1px); }
.d-pulsar .pl-decor i:nth-child(2) { top: 50%; transform: scaleY(-1); }

.planet-tip {
  position: absolute; left: 0; top: 0; z-index: 300; width: 270px; padding: 14px 16px 13px; border-radius: 16px; pointer-events: none;
  background: rgba(10, 7, 30, .9); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px var(--tc, transparent) inset;
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .25s, transform .25s var(--ease);
}
.planet-tip.show { opacity: 1; transform: none; }
.planet-tip .tk { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tc); }
.planet-tip h3 { margin: 4px 0 6px; font-family: var(--display); font-size: 17px; line-height: 1.2; }
.planet-tip p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.planet-tip .go { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #fff; }

.mission-index { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px auto 0; padding: 0; }
.mission-index button {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--ink); font-size: 14px; font-weight: 500;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.mission-index button:hover, .mission-index button:focus-visible { background: rgba(255, 255, 255, .08); border-color: var(--c2); transform: translateY(-2px); }
.mission-index .dot { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 50%, var(--c3)); box-shadow: 0 0 10px var(--glow); }
.mission-index small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .08em; }

/* ==========================================================================
   03 CONSTELLATIONS
   ========================================================================== */
.const-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.const {
  position: relative; padding: 22px 22px 18px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(170deg, hsla(var(--h), 90%, 60%, .09), rgba(10, 7, 30, .55) 45%);
  border: 1px solid rgba(255, 255, 255, .08);
}
.const::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.const-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.const-head h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; letter-spacing: .01em; color: hsl(var(--h) 95% 80%); }
.const-head .ar { font-family: var(--arabic); font-size: 1.6rem; line-height: 1; color: hsl(var(--h) 90% 75%); text-shadow: 0 0 16px hsla(var(--h), 90%, 60%, .6); }
.const-sub { margin: 2px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.const svg { width: 100%; height: auto; overflow: visible; }
.const .edge { fill: none; stroke: hsla(var(--h), 90%, 78%, .55); stroke-width: 1.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s var(--ease), stroke .3s; }
.const.in .edge { stroke-dashoffset: 0; }
.const .star { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.const.in .star { opacity: 1; transform: none; }
.const .star .halo { fill: hsla(var(--h), 95%, 70%, .22); animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.const .star .core { fill: #fff; filter: drop-shadow(0 0 4px hsl(var(--h) 95% 70%)); }
.const .star .num { font-family: var(--mono); font-size: 10px; fill: hsla(var(--h), 90%, 85%, .85); }
.const .star.hot .halo { fill: hsla(var(--h), 95%, 70%, .55); }
.const .star.hot .core { filter: drop-shadow(0 0 8px hsl(var(--h) 95% 70%)) drop-shadow(0 0 2px #fff); }
@keyframes twinkle { 50% { transform: scale(1.5); opacity: .5; } }
.const ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.const li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 10px; border-radius: 12px; cursor: default; transition: background .25s; }
.const li.hot { background: hsla(var(--h), 90%, 60%, .1); }
.const li .n { font-family: var(--mono); font-size: 11px; color: hsl(var(--h) 90% 75%); padding-top: 3px; }
.const li b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.const li b em { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--dim); margin-left: 6px; letter-spacing: .06em; }
.const li span.d { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ==========================================================================
   04 MISSION LOG
   ========================================================================== */
.timeline { position: relative; margin-top: 50px; }
.tl-wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl-ghost { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.tl-path { fill: none; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 79, 176, .7)); }
.tl-comet { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 6px rgba(255, 255, 255, .7), 0 0 40px 16px rgba(255, 79, 176, .55), 0 0 90px 30px rgba(34, 211, 238, .25); pointer-events: none; z-index: 2; will-change: transform; }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.tl-item { position: relative; width: 50%; padding: 18px 0; min-height: 120px; }
.tl-item:nth-child(odd) { padding-right: 70px; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding-left: 70px; }
.tl-node { position: absolute; top: 34px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #0b0820; border: 2px solid rgba(255, 255, 255, .3); transition: background .5s, border-color .5s, box-shadow .5s; }
.tl-item.lit .tl-node { background: #fff; border-color: #fff; box-shadow: 0 0 0 5px rgba(255, 79, 176, .25), 0 0 18px 4px rgba(255, 79, 176, .8); }
.tl-item.future .tl-node { border-style: dashed; }
.tl-card { display: inline-block; max-width: 440px; padding: 16px 20px; border-radius: 18px; text-align: left; background: rgba(12, 9, 34, .6); border: 1px solid rgba(255, 255, 255, .07); opacity: .45; transform: translateY(10px); transition: opacity .7s, transform .7s var(--ease), border-color .5s; }
.tl-item.lit .tl-card { opacity: 1; transform: none; border-color: rgba(255, 255, 255, .13); }
.tl-item.future .tl-card { border-style: dashed; background: rgba(12, 9, 34, .35); }
.tl-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.tl-item.future .tl-when { color: var(--gold); }
.tl-item.future .tl-when::after { content: " · planned"; color: var(--dim); }
.tl-card h3 { margin: 4px 0 4px; font-family: var(--display); font-size: 1.22rem; line-height: 1.2; }
.tl-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.tl-card .fly { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; cursor: pointer; transition: border-color .25s, background .25s; }
.tl-card .fly:hover { border-color: var(--c2); background: rgba(255, 255, 255, .08); }
.tl-card .fly i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: 0 0 8px var(--glow); }

/* ==========================================================================
   05 SIGNAL
   ========================================================================== */
.signal { padding-bottom: clamp(110px, 18vh, 200px); overflow: hidden; }
.beacon { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; pointer-events: none; z-index: -1; }
.beacon i { position: absolute; left: 50%; top: 50%; width: 90vmin; height: 90vmin; margin: -45vmin 0 0 -45vmin; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .35); opacity: 0; animation: ping 6s ease-out infinite; }
.beacon i:nth-child(2) { animation-delay: 2s; border-color: rgba(255, 79, 176, .35); }
.beacon i:nth-child(3) { animation-delay: 4s; border-color: rgba(251, 191, 36, .3); }
.beacon b { position: absolute; left: 50%; top: 50%; width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(167, 139, 250, .18), transparent); }
@keyframes ping { 0% { transform: scale(.1); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: 15.5px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { border: 0; color: #0a0618; background: linear-gradient(100deg, #ff8fd0, #c4b5fd 40%, #67e8f9 80%); box-shadow: 0 10px 40px rgba(255, 79, 176, .35), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn.primary:hover { box-shadow: 0 14px 50px rgba(34, 211, 238, .45); }
.btn.copy { font-family: var(--mono); font-size: 13px; font-weight: 400; padding: 15px 18px; }
.btn.copy.done { border-color: var(--green); color: var(--green); }

.foot { position: relative; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.foot-dim { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.to-top { text-decoration: none; color: var(--muted); transition: color .2s; }
.to-top:hover { color: #fff; }

/* ==========================================================================
   LANDING (project file)
   ========================================================================== */
.landing {
  position: fixed; inset: 0; z-index: 400; overflow: hidden; color: var(--ink);
  background: radial-gradient(1200px 900px at 85% 0%, var(--c3) 0%, transparent 60%), radial-gradient(900px 700px at 0% 100%, color-mix(in srgb, var(--c3) 55%, transparent) 0%, transparent 60%), var(--lbg, #070414);
  -webkit-clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%)); clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 1s cubic-bezier(.75, 0, .2, 1), -webkit-clip-path 1s cubic-bezier(.75, 0, .2, 1);
}
.landing.open { -webkit-clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.landing-sky { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #fff, transparent), radial-gradient(1.4px 1.4px at 44% 36%, #fff, transparent),
    radial-gradient(1px 1px at 63% 84%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 52%, #fff, transparent), radial-gradient(1px 1px at 91% 12%, #fff, transparent),
    radial-gradient(1px 1px at 8% 92%, #fff, transparent), radial-gradient(1.3px 1.3px at 52% 8%, #fff, transparent), radial-gradient(1px 1px at 36% 55%, #fff, transparent);
  background-size: 420px 420px; animation: sky 120s linear infinite; }
@keyframes sky { to { background-position: -420px 210px; } }
.landing::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 78px; z-index: 4; pointer-events: none; background: linear-gradient(var(--lbg, #070414) 30%, transparent); }
.landing-planet { position: absolute; right: -22vmin; top: -26vmin; width: 78vmin; height: 78vmin; pointer-events: none; animation: lp-in 1.6s .3s var(--ease) both; }
.landing.swap .landing-planet { animation-delay: 0s; animation-duration: 1s; }
@keyframes lp-in { from { opacity: 0; transform: scale(.6) translateY(10vmin); } to { opacity: .9; transform: none; } }
.lp-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 70%, var(--c1) 0%, var(--c2) 30%, var(--c3) 68%, #030210 100%); box-shadow: inset 4vmin -3vmin 10vmin rgba(255, 255, 255, .12), inset -14vmin 10vmin 22vmin rgba(0, 0, 0, .75), 0 0 12vmin var(--glow); }
.lp-body::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay; background-image: repeating-linear-gradient(168deg, rgba(255, 255, 255, .6) 0 3%, transparent 3% 8%, rgba(0, 0, 0, .4) 8% 11%, transparent 11% 17%); background-size: 200% 100%; animation: surface 60s linear infinite; }
.lp-atmo { position: absolute; inset: -3%; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c1) 50%, transparent), 0 0 6vmin 1vmin var(--glow); opacity: .6; }
.landing-close {
  position: absolute; top: 18px; left: clamp(16px, 4vw, 44px); z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: rgba(5, 3, 15, .55); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, transform .25s;
}
.landing-close:hover { background: rgba(255, 255, 255, .1); border-color: var(--c2); transform: translateX(-3px); }
.landing-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 90px 0 70px; }
.lf { position: relative; width: min(1200px, 100% - clamp(32px, 8vw, 96px)); margin: 0 auto; opacity: 0; }
.landing.open .lf { animation: lf-in 1.1s .5s var(--ease) forwards; }
.landing.open.swap .lf { animation-delay: .05s; animation-duration: .8s; }
@keyframes lf-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.lf-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--c1); opacity: .85; }
.lf-kicker .ar { font-family: var(--arabic); font-size: 20px; letter-spacing: 0; margin-left: 10px; color: var(--c2); text-transform: none; }
.lf h2 { margin: 10px 0 12px; max-width: 900px; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.lf-one { max-width: 680px; margin: 0 0 22px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #e8e9ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 13px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); color: #e7e8ff; }
.chip .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); }
.chip.live .pip { background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: live 1.8s infinite; }
.chip.build .pip { background: var(--pink); animation: live-p 1.8s infinite; }
.chip.gold .pip, .chip.done .pip { background: var(--gold); }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes live-p { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 176, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 79, 176, 0); } }
.where { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.award { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 24px; padding: 11px 18px 11px 12px; border-radius: 16px; background: linear-gradient(100deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .05)); border: 1px solid rgba(251, 191, 36, .45); color: #ffe7a6; font-weight: 600; font-size: 14.5px; box-shadow: 0 0 30px rgba(251, 191, 36, .12); }
.award svg { width: 26px; height: 26px; flex: none; }
.lf-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); margin-top: 18px; align-items: start; }
.lf-story p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.72; color: #dfe1fb; }
.lf-story h3, .lf-sec h3 { margin: 30px 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c1); }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hl li { position: relative; padding-left: 26px; font-size: 15.5px; color: #e4e6ff; }
.hl li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 10px var(--glow); }
.figure { position: sticky; top: 20px; margin: 0; }
.diagram { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .04), transparent 70%), rgba(3, 2, 12, .72); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .03); }
.diagram canvas { width: 100%; aspect-ratio: 4 / 3.1; }
.diagram-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.diagram-bar .live-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c1); display: inline-flex; align-items: center; gap: 8px; }
.diagram-bar .live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; animation: blink 1.4s steps(2) infinite; }
.dbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.dbtn { padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.dbtn:hover { background: rgba(255, 255, 255, .1); }
.dbtn[aria-pressed="true"] { background: var(--c2); color: #05030f; border-color: var(--c2); font-weight: 600; }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 46px 0 0; }
.stat { padding: 18px 18px 16px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.05; background: linear-gradient(100deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.phases { display: flex; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: ph; }
.phases li { position: relative; flex: 1; padding: 30px 12px 0 0; font-size: 13.5px; color: var(--muted); }
.phases li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c2); background: transparent; z-index: 1; }
.phases li::after { content: ""; position: absolute; left: 14px; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--c2), rgba(255, 255, 255, .12)); }
.phases li:last-child::after { display: none; }
.phases li.done::before { background: var(--c2); box-shadow: 0 0 10px var(--glow); }
.phases li.now::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 40%, transparent), 0 0 14px var(--glow); animation: pulse-now 1.8s ease-in-out infinite; }
.phases li.next::before { border-style: dashed; }
.phases li.next::after { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 4px, transparent 4px 9px); }
.phases li b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); font-weight: 600; margin-bottom: 2px; }
.phases li.next b { color: var(--dim); }
@keyframes pulse-now { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c2) 15%, transparent), 0 0 18px var(--glow); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags span { padding: 5px 12px; border-radius: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--c1); background: color-mix(in srgb, var(--c2) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c2) 30%, transparent); }
.private { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding: 16px 20px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 255, 255, .18); font-size: 14.5px; color: var(--muted); }
.private svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--c1); stroke-width: 1.7; }
.private b { color: #fff; }
.lf-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lf-nav button { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-align: left; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.lf-nav button:hover { background: rgba(255, 255, 255, .08); border-color: var(--nc2); transform: translateY(-2px); }
.lf-nav button.next { text-align: right; flex-direction: row-reverse; margin-left: auto; }
.lf-nav .dot { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, var(--nc1), var(--nc2) 55%, var(--nc3)); box-shadow: 0 0 14px var(--nglow); }
.lf-nav small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lf-nav strong { font-family: var(--display); font-size: 16px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .const-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lf-grid { grid-template-columns: 1fr; }
  .figure { position: relative; top: 0; order: -1; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav-toggle { display: grid; place-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: fixed; top: calc(var(--nav-h) + 6px); right: 12px; left: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(8, 5, 24, .94); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: 12px; }
  .nav-links a.active::after { display: none; }
  .origin-grid { grid-template-columns: 1fr; }
  .rl { grid-template-columns: 1fr; gap: 2px; }
  .hud-tr { display: none; }
  .hero-hint { display: none; }
  .tl-item, .tl-item:nth-child(even), .tl-item:nth-child(odd) { width: 100%; margin-left: 0; padding: 14px 0 14px 50px; text-align: left; min-height: 0; }
  .lf-nav { flex-direction: column; }
  .lf-nav button.next { margin-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .title { font-size: clamp(1.85rem, 8.4vw, 2.7rem); overflow-wrap: break-word; }
  .title.huge { font-size: clamp(2.1rem, 10vw, 3rem); }
  .lf h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); overflow-wrap: break-word; }
  .const-grid { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .phases { flex-direction: column; gap: 14px; }
  .phases li { padding: 0 0 0 28px; }
  .phases li::before { top: 2px; }
  .phases li::after { left: 6px; right: auto; top: 18px; width: 2px; height: calc(100% - 2px); }
  .landing-planet { right: -30vmin; top: -34vmin; width: 90vmin; height: 90vmin; }
  .landing-scroll { padding-top: 80px; }
  .pl-label small { display: none; }
  .pl-label b { font-size: 10.5px; letter-spacing: .16em; }
  .planet-tip { display: none; }
  .wave-text { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lf { opacity: 1; }
  .rl-text { clip-path: none; }
  .rl-label { opacity: 1; }
}
