/* ==========================================================================
   ODYSSÉE — angemarius.com
   ========================================================================== */
:root {
  --void: #020814;
  --void-2: #070d22;
  --blue: #4f6ef7;
  --violet: #9d7bff;
  --teal: #3de0c8;
  --ember: #ff7a45;
  --star: #f2eee6;
  --star-dim: rgba(242, 238, 230, 0.64);
  --star-faint: rgba(242, 238, 230, 0.12);
  --accent: #4f6ef7;
  --glass: rgba(10, 16, 40, 0.42);
  --line: rgba(242, 238, 230, 0.11);
  --display: "Syne", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --g: clamp(16px, 4.2vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--void); color: var(--star);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-booting, body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #fff; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent); transition: color 1.2s var(--ease); }
strong { font-weight: 500; color: var(--star); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- Space layers ---------- */
#space { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
body.no-webgl {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #cfd6ff, transparent), radial-gradient(1px 1px at 85% 15%, #fff, transparent),
    radial-gradient(60% 50% at 70% 20%, rgba(79, 110, 247, .25), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(157, 123, 255, .2), transparent 70%), var(--void);
  background-attachment: fixed;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(2, 8, 20, .75) 100%);
}
.grain { position: fixed; inset: -100px; z-index: 60; pointer-events: none; opacity: .055; animation: grain .8s steps(3) infinite; will-change: transform; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-40px, 30px); } 66% { transform: translate(30px, -50px); } 100% { transform: translate(0, 0); } }
.flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff, rgba(200, 210, 255, .6) 40%, transparent 75%); opacity: 0; }
#comet { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
main { position: relative; z-index: 5; overflow-x: clip; }
html { overflow-x: clip; }

/* ---------- Ignition ---------- */
.ignition { position: fixed; inset: 0; z-index: 100; background: var(--void); display: grid; place-items: center; overflow: hidden; }
.ignition__grid {
  position: absolute; inset: -50%; opacity: .14;
  background-image: linear-gradient(var(--star-faint) 1px, transparent 1px), linear-gradient(90deg, var(--star-faint) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(600px) rotateX(62deg) translateY(10%);
  animation: gridrun 3s linear infinite;
}
@keyframes gridrun { to { background-position: 0 64px; } }
.ignition__log { position: absolute; left: var(--g); top: calc(var(--g) * .8); display: grid; gap: 6px; color: var(--star-dim); font-size: 10px; max-width: 80vw; }
.ignition__log p { margin: 0; }
.ignition__log p b { color: var(--teal); font-weight: 500; }
.ignition__core { position: relative; display: grid; justify-items: center; gap: 20px; width: min(340px, 78vw); }
.ignition__logo { width: 62%; opacity: 0; }
.ignition__count {
  font-family: var(--display); font-weight: 800; font-size: clamp(110px, 26vw, 240px); line-height: .85; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff 20%, var(--blue) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ignition__bar { width: 100%; height: 1px; background: var(--star-faint); overflow: hidden; }
.ignition__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal), var(--ember)); transform: scaleX(0); transform-origin: left; }
.ignition__pct { margin: 0; color: var(--star-dim); }

/* ---------- Comet cursor ---------- */
@media (hover: hover) and (pointer: fine) { html, a, button, summary, label { cursor: none; } input, textarea { cursor: text; } }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 18px var(--g); pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.hud-logo img { height: 36px; width: auto; }
.hud-chapter { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); white-space: nowrap; }
.hud-chapter__num { color: var(--accent); transition: color 1s var(--ease); }
.hud-chapter__sep { color: var(--star-faint); }
.hud-chapter__name { min-width: 14ch; }
.hud-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.map-btn {
  display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color .4s;
}
.map-btn:hover { border-color: var(--accent); }
.map-btn__orbit { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px dashed rgba(242, 238, 230, .35); animation: spin 6s linear infinite; }
.map-btn__orbit::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: background 1s; }
.map-btn__orbit i { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--star); }
@keyframes spin { to { transform: rotate(360deg); } }
.mission-btn {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: linear-gradient(120deg, var(--blue), var(--violet)); box-shadow: 0 0 30px rgba(79, 110, 247, .45); overflow: hidden; isolation: isolate;
}
.mission-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--ember), #ffb36b); opacity: 0; transition: opacity .5s; }
.mission-btn:hover::after { opacity: 1; }
.mission-btn__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.hud-side { position: fixed; right: var(--g); top: 50%; z-index: 40; transform: translateY(-50%); display: grid; justify-items: end; gap: 6px; }
.hud-side__label { color: var(--star-dim); font-size: 9px; }
.hud-side__dist { font-size: 15px; letter-spacing: .04em; color: var(--star); text-align: right; }
.hud-side__dist small { display: block; font-size: 9px; color: var(--star-dim); letter-spacing: .14em; }
.hud-track { list-style: none; margin: 18px 0 0; padding: 0 0 0 0; display: grid; gap: 4px; position: relative; }
.hud-track::before { content: ""; position: absolute; right: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.hud-track li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: rgba(242, 238, 230, .35); transition: color .5s; cursor: pointer; pointer-events: auto; }
.hud-track li span { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--ease); text-transform: uppercase; }
.hud-track li:hover span, .hud-track li.is-active span { opacity: 1; transform: none; }
.hud-track li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; background: var(--void); position: relative; transition: all .5s var(--ease); }
.hud-track li.is-active { color: var(--star); }
.hud-track li.is-active::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scale(1.4); }
.hud-track li.is-past { color: rgba(242, 238, 230, .6); }

.hud-coords { position: fixed; left: var(--g); bottom: 20px; z-index: 40; display: flex; gap: 18px; color: var(--star-dim); font-size: 10px; }
.hud-coords b { font-weight: 400; color: var(--star); }
.hud-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 40; }
.hud-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal), var(--ember)); transform-origin: left; transform: scaleX(0); }

/* ---------- Star map ---------- */
.starmap {
  position: fixed; inset: 0; z-index: 90; background: rgba(2, 8, 20, .82); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  clip-path: circle(0 at var(--ox, 90%) var(--oy, 40px)); visibility: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 22px var(--g);
}
.starmap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--star-dim); }
.starmap__head p { margin: 0; }
.starmap__close { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.starmap__close:hover { border-color: var(--ember); color: var(--ember); }
.starmap__lines { position: absolute; inset: 90px var(--g) 70px; width: calc(100% - 2 * var(--g)); height: calc(100% - 160px); overflow: visible; }
.starmap__lines path { fill: none; stroke: rgba(242, 238, 230, .25); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.starmap__nodes { position: absolute; inset: 90px var(--g) 70px; }
.star-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; text-align: center; width: max-content; }
.star-node__dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--star); box-shadow: 0 0 18px var(--c, #fff), 0 0 40px var(--c, #fff); transition: transform .5s var(--ease); }
.star-node__dot::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--c, #fff); opacity: .35; transition: inset .5s var(--ease), opacity .5s; }
.star-node:hover .star-node__dot { transform: scale(1.5); }
.star-node:hover .star-node__dot::after { inset: -22px; opacity: .9; }
.star-node.is-current .star-node__dot::after { animation: ping-ring 1.6s infinite; opacity: 1; }
@keyframes ping-ring { from { inset: -6px; opacity: 1; } to { inset: -30px; opacity: 0; } }
.star-node__n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--c); }
.star-node__t { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1; }
.star-node__s { font-family: var(--serif); font-style: italic; color: var(--star-dim); font-size: 16px; }
.starmap__foot { margin: 0; color: var(--star-dim); text-align: center; align-self: end; }
kbd { font-family: var(--mono); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }

/* ---------- Typography ---------- */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform, filter; }
.kicker { color: var(--accent); margin: 0 0 26px; display: flex; align-items: center; gap: 12px; transition: color 1s; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h-xxl, .h-xl, .h-lg, .h-md { font-family: var(--display); font-weight: 800; margin: 0; }
.h-xxl { font-size: clamp(54px, 12.5vw, 220px); line-height: .86; letter-spacing: -.055em; }
.h-xl { font-size: clamp(42px, 8.4vw, 150px); line-height: .9; letter-spacing: -.05em; }
.h-lg { font-size: clamp(36px, 5.6vw, 92px); line-height: .94; letter-spacing: -.045em; }
.h-md { font-size: clamp(28px, 3.4vw, 52px); line-height: 1; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--star-dim); max-width: 600px; margin: 28px 0 0; }
[data-words] .wd { opacity: .16; }

/* ---------- Buttons ---------- */
.btn-launch {
  position: relative; display: inline-grid; place-items: center; width: 152px; height: 152px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; isolation: isolate;
}
.btn-launch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 35% 30%, #7d93ff, var(--blue) 45%, #2a2f9e); box-shadow: 0 0 60px rgba(79, 110, 247, .6), inset 0 0 30px rgba(255, 255, 255, .25); transition: transform .7s var(--ease), background .6s; }
.btn-launch:hover::before { transform: scale(1.08); background: radial-gradient(circle at 35% 30%, #ffc49e, var(--ember) 45%, #b33a12); box-shadow: 0 0 80px rgba(255, 122, 69, .7), inset 0 0 30px rgba(255, 255, 255, .25); }
.btn-launch__ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(242, 238, 230, .35); animation: spin 14s linear infinite; }
.btn-launch__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.btn-launch--wide { width: 100%; height: auto; border-radius: 999px; padding: 22px 30px; font-size: 18px; }
.btn-launch--wide::before { border-radius: 999px; }
.btn-launch--wide .btn-launch__ring { border-radius: 999px; inset: -8px; animation: none; border-style: solid; border-color: rgba(242, 238, 230, .12); }
.btn-launch--wide .btn-launch__ring::after { display: none; }
.btn-line { display: inline-flex; align-items: center; gap: 14px; padding: 14px 4px; font-weight: 500; font-size: 15px; position: relative; }
.btn-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.btn-line:hover::after { transform: scaleX(0); }
.btn-line i { font-style: normal; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .6s var(--ease), background .4s, color .4s; }
.btn-line:hover i { transform: rotate(45deg); background: var(--accent); color: #fff; }

/* ---------- Chapters ---------- */
.ch { position: relative; padding: 0 var(--g); }

/* 00 hero */
.ch-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 70% at 15% 70%, rgba(2, 8, 20, .7), transparent 70%); }
.ch-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 70px; }
.hero-meta { color: var(--star-dim); margin: 0 0 26px; max-width: 70ch; min-height: 1.6em; }
.hero-title { font-family: var(--display); font-weight: 800; margin: 0; font-size: clamp(48px, 10.6vw, 196px); line-height: .88; letter-spacing: -.055em; }
.hero-title .ln--serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; font-size: .46em; line-height: 1.15; margin-top: .25em; color: var(--star-dim); }
.hero-title .ln--serif em { color: var(--ember); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px 40px; margin-top: 42px; }
.hero-sub { max-width: 520px; margin: 0; color: var(--star-dim); font-size: clamp(16px, 1.3vw, 19px); }
.hero-actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-proof { list-style: none; padding: 22px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 36px; color: var(--star-dim); }
.hero-proof b { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--star); margin-right: 6px; text-transform: none; }
.scroll-cue { position: absolute; right: var(--g); bottom: 80px; display: none; }

/* I big bang */
.ch-bang { min-height: 175vh; padding-top: 22vh; padding-bottom: 14vh; }
.debris { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.debris span {
  position: absolute; font-family: var(--display); font-weight: 700; white-space: nowrap; color: rgba(242, 238, 230, .14);
  -webkit-text-stroke: 1px rgba(242, 238, 230, .22); color: transparent; will-change: transform;
}
.bang-intro { position: relative; max-width: 1100px; }
.alerts { list-style: none; padding: 0; margin: 14vh 0 0 auto; max-width: 620px; display: grid; gap: 14px; position: relative; }
.alert { padding: 24px 28px; border: 1px solid rgba(255, 122, 69, .28); border-left: 3px solid var(--ember); border-radius: 4px 18px 18px 4px; background: linear-gradient(90deg, rgba(255, 122, 69, .1), rgba(10, 16, 40, .45)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.alert span { color: var(--ember); }
.alert p { margin: 8px 0 0; font-size: clamp(17px, 1.5vw, 21px); }
.bang-turn { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 104px); line-height: .98; letter-spacing: -.045em; margin: 20vh 0 0; max-width: 15ch; }

/* II guide */
.ch-guide { min-height: 170vh; padding-top: 18vh; padding-bottom: 14vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-content: start; }
.guide-col { grid-column: 1; }
.laws { grid-column: 1; margin-top: 22vh; display: grid; gap: 16px; }
.law { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 26px 26px 26px 20px; border-radius: 22px; border: 1px solid rgba(157, 123, 255, .22); background: linear-gradient(120deg, rgba(157, 123, 255, .12), rgba(7, 13, 34, .5)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.law__n { font-family: var(--serif); font-style: italic; font-size: 52px; line-height: .9; color: var(--violet); text-align: center; }
.law h3 { margin: 0 0 6px; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.law p { margin: 0; color: var(--star-dim); font-size: 15px; }

/* III system */
.ch-system { height: 440vh; padding: 0; }
.system-pin { position: relative; height: 100svh; overflow: hidden; }
.system-panels { position: absolute; left: var(--g); top: 50%; transform: translateY(-50%); width: min(520px, 42vw); }
.sys-panel { position: absolute; inset: auto 0; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; }
.sys-panel.is-active { visibility: visible; }
.sys-panel .h-lg { font-size: clamp(32px, 4vw, 62px); }
.sys-panel .lead { margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); }
.sys-panel[data-planet="-1"].is-active { opacity: 1; }
.sys-panel > p:not(.kicker):not(.sys-panel__meta) { color: var(--star-dim); font-size: 17px; margin: 20px 0 0; }
.sys-panel__meta { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; color: var(--star-dim); }
.sys-panel__meta b { font-weight: 500; color: #04131a; background: var(--accent); padding: 5px 10px; border-radius: 999px; transition: background 1s; }
.included { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pack { margin-top: 26px; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(255, 122, 69, .35); background: linear-gradient(120deg, rgba(255, 122, 69, .14), rgba(7, 13, 34, .55)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pack__tag { margin: 0; color: var(--ember); }
.pack__txt { margin: 8px 0 4px; font-size: 15px; color: var(--star-dim); }
.pack__actions { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.included li, .tags li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--star-dim); }
.sys-panel__foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.sys-panel__foot img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.sys-panel__foot img.contain { object-fit: contain; background: #0c1430; padding: 6px; }
.sys-steps { position: absolute; left: var(--g); bottom: 40px; list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sys-steps li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--star-dim); font-size: 9px; transition: all .5s var(--ease); }
.sys-steps li.is-active { color: #04131a; background: var(--accent); border-color: var(--accent); }
.planet-tags { position: absolute; inset: 0; pointer-events: none; }
.planet-tag { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--star-dim); white-space: nowrap; padding-left: 16px; will-change: transform; }
.planet-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: currentColor; }

/* IV nebula tunnel */
.ch-nebula { height: 480vh; padding: 0; }
.nebula-pin { position: relative; height: 100svh; overflow: hidden; }
.nebula-head { position: absolute; z-index: 3; left: var(--g); top: 15vh; max-width: 640px; }
.tunnel { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 50%; }
.tunnel__world { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.shot {
  --sw: min(270px, max(160px, 44vw));
  position: absolute; width: var(--sw); aspect-ratio: 9 / 16; left: calc(var(--sw) / -2); top: calc(var(--sw) * -.889);
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(242, 238, 230, .16); background: #0b1230;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 50px -10px var(--glow, rgba(157, 123, 255, .5)); will-change: transform, opacity;
}
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 20, .9)); }
.shot__tag { position: absolute; z-index: 2; top: 12px; left: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(2, 8, 20, .6); backdrop-filter: blur(6px); }
.shot__tag--video { background: var(--ember); color: #1a0800; }
.shot__name { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -.01em; }
.tunnel-caption { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 3; color: var(--star-dim); white-space: nowrap; }

/* V signals */
.ch-signals { min-height: 100vh; padding-top: 18vh; padding-bottom: 14vh; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8vh 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counter { padding: 44px 18px 40px; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter b { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6.8vw, 120px); letter-spacing: -.055em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(242, 238, 230, .45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter sup { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 52px); color: var(--accent); vertical-align: top; margin-left: 4px; transition: color 1s; }
.counter span { display: block; margin-top: 14px; color: var(--star-dim); font-size: 10px; }
.transmissions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10vh; }
.tx { margin: 0; padding: 30px 32px 34px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(79, 110, 247, .14), rgba(7, 13, 34, .55)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tx header { display: flex; justify-content: space-between; color: var(--star-dim); font-size: 10px; }
.tx__live { color: var(--teal); }
.tx__wave { width: 100%; height: 36px; margin: 18px 0 8px; }
.tx__wave path { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; animation: wave 1.4s linear infinite; transition: stroke 1s; }
@keyframes wave { to { stroke-dashoffset: -40; } }
.tx blockquote { margin: 0 0 26px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; }
.tx figcaption b { display: block; font-weight: 500; }
.tx figcaption span { color: var(--star-dim); font-size: 14px; }
.cert-orbit { position: relative; height: min(62vh, 560px); margin-top: 8vh; display: grid; place-items: center; perspective: 1400px; }
.cert-orbit__core { position: relative; z-index: 2; margin: 0; text-align: center; display: grid; gap: 8px; }
.cert-orbit__core b { font-family: var(--display); font-weight: 800; font-size: clamp(70px, 12vw, 190px); line-height: .8; letter-spacing: -.06em; }
.cert-orbit__core span { color: var(--star-dim); }
.cert-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-16deg); }
.cert-ring span { position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 13, 34, .7); font-size: clamp(12px, 1.1vw, 15px); will-change: transform, opacity; }

/* enterprises */
.b2b { margin-top: 16vh; padding: clamp(28px, 4vw, 56px); border-radius: 32px; border: 1px solid rgba(79, 110, 247, .3);
  background: radial-gradient(80% 120% at 100% 0%, rgba(79, 110, 247, .22), transparent 60%), rgba(7, 13, 34, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.b2b__head { max-width: 760px; }
.b2b__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.b2b__card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(2, 8, 20, .45); transition: border-color .4s, transform .6s var(--ease); }
.b2b__card:hover { border-color: var(--blue); transform: translateY(-4px); }
.b2b__card .mono { color: var(--blue); }
.b2b__card h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 10px 0 8px; }
.b2b__card p { margin: 0; color: var(--star-dim); font-size: 15px; }
.b2b__cta { margin-top: 28px; }
.btn-launch--book { margin-top: 36px; }

/* VI paths + logbook */
.ch-paths { min-height: 100vh; padding-top: 18vh; padding-bottom: 12vh; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8vh; }
.path { position: relative; padding: 30px 28px 32px; border-radius: 26px; border: 1px solid var(--line); background: rgba(7, 13, 34, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; transition: border-color .5s, transform .7s var(--ease); }
.path:hover { border-color: var(--teal); transform: translateY(-6px); }
.path__orbit { width: 130px; height: 90px; margin: -10px 0 4px -14px; overflow: visible; }
.path__orbit ellipse { fill: none; stroke: rgba(242, 238, 230, .2); stroke-dasharray: 3 5; }
.path__orbit circle { fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
.path:hover .path__orbit ellipse { stroke: var(--teal); }
.path__id { color: var(--teal); margin: 0 0 10px; }
.path h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 0 0 10px; }
.path > p:not(.mono) { color: var(--star-dim); font-size: 15px; margin: 0 0 22px; }
.path__route { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); text-transform: none; letter-spacing: .02em; font-size: 12px; line-height: 1.9; }
.path__route span { color: var(--star-dim); text-transform: uppercase; letter-spacing: .16em; font-size: 9px; margin-right: 6px; }
.path__route i { font-style: normal; color: var(--teal); margin: 0 6px; }
.logbook { max-width: 980px; margin: 14vh auto 0; }
.logbook details { border-top: 1px solid var(--line); }
.logbook details:last-child { border-bottom: 1px solid var(--line); }
.logbook summary { list-style: none; display: grid; grid-template-columns: 80px 1fr 30px; align-items: baseline; gap: 12px; padding: 26px 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.9vw, 26px); letter-spacing: -.02em; transition: color .3s; }
.logbook summary::-webkit-details-marker { display: none; }
.logbook summary::after { content: "+"; font-family: var(--body); font-weight: 300; font-size: 30px; color: var(--accent); transition: transform .5s var(--ease); justify-self: end; }
.logbook details[open] summary::after { transform: rotate(135deg); }
.logbook summary .mono { color: var(--star-dim); font-size: 10px; }
.logbook summary:hover { color: var(--teal); }
.logbook details p { margin: 0 0 28px 92px; color: var(--star-dim); max-width: 64ch; }

/* VII horizon */
.ch-horizon { min-height: 100vh; padding-top: 20vh; padding-bottom: 30px; background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(2, 8, 20, .7) 75%, rgba(2, 8, 20, .92)); }
.horizon-head { min-height: 70vh; align-content: end; padding-bottom: 6vh; }
.horizon-head .h-xxl { text-shadow: 0 10px 60px rgba(2, 8, 20, .8); }
.horizon-head { text-align: center; display: grid; justify-items: center; }
.horizon-head .kicker::before { display: none; }
.horizon-head .lead { margin-inline: auto; }
.mission { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin-top: 10vh; align-items: start; }
.mission__form { padding: 34px; border-radius: 30px; border: 1px solid var(--line); background: rgba(7, 13, 34, .62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; gap: 30px; }
.mission__type { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mission__type legend { width: 100%; color: var(--star-dim); margin-bottom: 14px; padding: 0; }
.mission__type label { position: relative; }
.mission__type input { position: absolute; opacity: 0; pointer-events: none; }
.mission__type span { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; transition: all .4s var(--ease); cursor: pointer; }
.mission__type input:checked + span { background: var(--ember); border-color: var(--ember); color: #1a0800; box-shadow: 0 0 24px rgba(255, 122, 69, .5); }
.mission__type input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.mission__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.mission__fields label { display: grid; gap: 8px; }
.mission__fields label.full { grid-column: 1 / -1; }
.mission__fields .mono { color: var(--star-dim); }
.mission__fields input, .mission__fields textarea { font: inherit; color: var(--star); background: transparent; border: 0; border-bottom: 1px solid rgba(242, 238, 230, .2); padding: 10px 0; outline: none; border-radius: 0; resize: vertical; transition: border-color .4s; }
.mission__fields input::placeholder, .mission__fields textarea::placeholder { color: rgba(242, 238, 230, .28); }
.mission__fields input:focus, .mission__fields textarea:focus { border-color: var(--ember); }
.channels { display: grid; gap: 14px; }
.channel { position: relative; display: grid; gap: 6px; padding: 28px 70px 28px 28px; border-radius: 26px; border: 1px solid var(--line); background: rgba(7, 13, 34, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; transition: border-color .4s, transform .7s var(--ease); }
.channel span { color: var(--star-dim); }
.channel b { font-family: var(--display); font-size: clamp(20px, 2vw, 30px); letter-spacing: -.02em; word-break: break-word; }
.channel i { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; transition: transform .6s var(--ease); }
.channel:hover { transform: translateY(-4px); border-color: var(--accent); }
.channel:hover i { transform: translateY(-50%) rotate(45deg); }
.channel--pack { background: linear-gradient(130deg, rgba(255, 122, 69, .22), rgba(7, 13, 34, .6)); border-color: rgba(255, 122, 69, .4); }
.channel--wa { background: linear-gradient(130deg, rgba(61, 224, 200, .2), rgba(7, 13, 34, .6)); border-color: rgba(61, 224, 200, .35); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.socials a { font-size: 13px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--star-dim); transition: all .35s; }
.socials a:hover { background: var(--star); color: var(--void); }
.footer { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; margin-top: 18vh; padding: 24px 0 50px; border-top: 1px solid var(--line); color: var(--star-dim); font-size: 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { color: var(--star); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; padding: 70px 16px 60px; background: rgba(2, 8, 20, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); visibility: hidden; opacity: 0; }
.lightbox__stage { height: min(78vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 120px rgba(157, 123, 255, .35); }
.lightbox__stage img, .lightbox__stage iframe, .lightbox__stage video { width: 100%; height: 100%; border: 0; object-fit: contain; }
.lightbox__stage.is-wide { height: auto; width: min(1100px, 92vw); aspect-ratio: 16 / 9; }
.lightbox__close { position: absolute; top: 22px; right: var(--g); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.lightbox__caption { position: absolute; bottom: 16px; margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--star-dim); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hud-side { display: none; }
  .hud-coords { display: none; }
  .paths { grid-template-columns: 1fr; }
  .b2b__grid { grid-template-columns: 1fr; }
  .transmissions { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hud-top { grid-template-columns: auto 1fr auto; padding: 14px var(--g); gap: 10px; }
  .hud-logo img { height: 28px; }
  .hud-chapter { justify-self: center; padding: 8px 12px; font-size: 9px; gap: 6px; }
  .hud-chapter__name { min-width: 0; max-width: 28vw; overflow: hidden; text-overflow: ellipsis; }
  .map-btn { padding: 5px; }
  .map-btn__label { display: none; }
  .mission-btn { padding: 12px; }
  .mission-btn__label { display: none; }
  .ch-guide { grid-template-columns: 1fr; }
  .guide-col { position: relative; top: 0; }
  .laws { margin-top: 50vh; }
  .alerts { margin-top: 18vh; }
  .system-panels { left: var(--g); right: var(--g); width: auto; top: auto; bottom: 86px; transform: none; }
  .sys-panel { top: auto; bottom: 0; transform: none; padding: 22px; border-radius: 22px; background: rgba(4, 10, 28, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
  .sys-panel > p:not(.kicker):not(.sys-panel__meta) { font-size: 15px; margin-top: 10px; }
  .sys-panel .lead { margin-top: 12px; font-size: 15px; }
  .sys-panel .included { margin-top: 14px; font-size: 9px; }
  .sys-panel .pack { margin-top: 14px; padding: 14px 16px; }
  .sys-panel .pack__txt { font-size: 13px; }
  .sys-panel .h-lg { font-size: 34px; }
  .sys-panel .tags { margin-top: 12px; font-size: 12px; }
  .sys-panel .tags li { padding: 5px 10px; }
  .sys-panel__foot { margin-top: 14px; }
  .sys-panel__foot img { width: 56px; height: 56px; border-radius: 12px; }
  .sys-steps { bottom: 30px; right: var(--g); flex-wrap: nowrap; overflow: hidden; }
  .sys-steps li:not(.is-active) { font-size: 0; padding: 4px; width: 9px; height: 9px; }
  .planet-tags { display: none; }
  .nebula-head { top: 13vh; right: var(--g); }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter:nth-child(2) { border-right: 0; }
  .counter:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mission { grid-template-columns: 1fr; }
  .mission__form { padding: 24px; }
  .starmap__lines { display: none; }
  .starmap__nodes { display: grid; align-content: center; gap: 4px; position: relative; inset: auto; }
  .star-node { position: relative; left: auto !important; top: auto !important; transform: none; grid-template-columns: 22px 42px 1fr; justify-items: start; align-items: center; text-align: left; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .star-node__dot { width: 10px; height: 10px; }
  .star-node__dot::after { inset: -8px; }
  .star-node__s { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ch-hero::before { background: linear-gradient(180deg, rgba(2, 8, 20, .15), rgba(2, 8, 20, .62) 35%, rgba(2, 8, 20, .7)); }
  .h-xxl { font-size: 12.5vw; }
  .horizon-head .lead { text-shadow: 0 2px 18px rgba(2, 8, 20, .95); }
  .hero-actions { gap: 26px; }
  .btn-launch { width: 118px; height: 118px; font-size: 14px; }
  .hero-proof { gap: 8px 20px; font-size: 9px; }
  .hero-proof b { font-size: 15px; }
  .mission__fields { grid-template-columns: 1fr; }
  .logbook summary { grid-template-columns: 1fr 24px; }
  .logbook summary .mono { grid-column: 1 / -1; }
  .logbook details p { margin-left: 0; }
  .channel { padding: 22px 56px 22px 22px; }
  .law { grid-template-columns: 44px 1fr; padding: 20px 18px 20px 12px; }
  .law__n { font-size: 38px; }
  .counter { padding: 30px 10px; }
  .tx { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .map-btn__orbit, .btn-launch__ring, .tx__wave path, .ignition__grid { animation: none; }
}
