:root {
  --bg: #03070d;
  --surface: rgba(5, 12, 22, .88);
  --surface-solid: #07101c;
  --line: rgba(139, 190, 232, .19);
  --line-hot: rgba(91, 207, 255, .55);
  --text: #edf6ff;
  --muted: #9aabbd;
  --blue: #58cfff;
  --green: #4cf0bd;
  --violet: #947cff;
  --red: #ff5f82;
  --gold: #f0bd58;
  --pad: clamp(24px, 4.2vw, 68px);
  --header: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, sans-serif; }
body[data-mode="explore"] { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(226, 240, 255, .7); }
.eyebrow { margin: 0 0 18px; color: var(--blue); font: 500 12px/1.5 "DM Mono", monospace; letter-spacing: .14em; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
#universe { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; transition: opacity .55s, filter .55s; }

.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); transition: opacity .65s, visibility .65s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot > strong { position: absolute; top: 40%; font: 700 clamp(48px, 8vw, 100px)/1 "Space Grotesk"; }
.boot strong span, .brand strong span, footer strong span { color: var(--blue); }
.boot > div { width: min(360px, 72vw); margin-top: 120px; text-align: center; }
.boot p { color: var(--muted); font: 12px "DM Mono"; letter-spacing: .12em; }
.boot i { display: block; height: 1px; background: #152538; }
.boot b { display: block; width: 35%; height: 1px; background: var(--blue); animation: load 1.5s ease forwards; }
@keyframes load { to { width: 100%; } }

.topbar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(3, 7, 13, .96), rgba(3, 7, 13, .72)); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand strong { font: 700 24px "Space Grotesk"; }
.brand > span { font: 600 12px "Space Grotesk"; letter-spacing: .15em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font: 10px "DM Mono"; letter-spacing: .1em; }
.mode-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 12, 22, .76); }
.mode-button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 10px 15px; font: 500 11px "DM Mono"; text-transform: uppercase; letter-spacing: .07em; }
.mode-button i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #566475; }
.mode-button.active { background: rgba(88, 207, 255, .12); color: var(--text); }
.mode-button.active i { background: var(--green); box-shadow: 0 0 12px var(--green); }

.explore-view { position: relative; height: 100svh; overflow: hidden; }
.read-view { display: none; }
.stage { position: fixed; inset: var(--header) 0 0; z-index: 10; padding: clamp(38px, 5vw, 76px) var(--pad) 132px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
body[data-stage="intro"] .intro-stage, body[data-stage="map"] .map-stage, body[data-stage="orbit"] .orbit-stage, body[data-stage="external"] .external-stage { opacity: 1; visibility: visible; transform: none; }

.cockpit { position: absolute; inset: var(--header) 0 0; z-index: 7; pointer-events: none; transition: opacity .7s; }
.strut { position: absolute; top: -4%; width: 11vw; height: 116%; border: 1px solid rgba(112, 164, 210, .18); background: linear-gradient(90deg, rgba(7, 15, 26, .97), rgba(15, 31, 49, .13)); clip-path: polygon(0 0, 48% 0, 100% 100%, 72% 100%); }
.strut-left { left: 0; }
.strut-right { right: 0; transform: scaleX(-1); }
.window-line { position: absolute; left: 10vw; right: 10vw; bottom: 114px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ship-status { position: absolute; right: var(--pad); top: 24px; display: flex; gap: 24px; color: #7890a5; font: 11px "DM Mono"; letter-spacing: .09em; text-transform: uppercase; }
.ship-status b { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
body[data-stage="external"] .cockpit { opacity: 0; }
body:not([data-stage="intro"]) .ship-status { opacity: 0; }

.intro-stage { display: grid; grid-template-columns: minmax(520px, 1.3fr) minmax(270px, .7fr); gap: clamp(40px, 8vw, 130px); align-items: center; }
.hero-copy { align-self: center; max-width: 820px; }
.hero-copy h1, .read-hero h1 { margin: 0; font: 600 clamp(58px, 7.2vw, 112px)/.84 "Space Grotesk"; letter-spacing: -.065em; }
.hero-lead { max-width: 610px; margin: 30px 0; color: #bac7d5; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; }
.hero-actions, .external-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-action, .ghost-action, .leave-bridge, .back-map, .drawer-route { min-height: 50px; padding: 0 19px; border: 1px solid var(--line); background: rgba(6, 14, 26, .76); font: 500 12px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.primary-action { border-color: var(--line-hot); background: rgba(88, 207, 255, .1); }
.primary-action span, .ghost-action span, .leave-bridge span, .drawer-route span { margin-left: 18px; color: var(--blue); }
.mission-card { align-self: center; padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(8, 18, 32, .88), rgba(5, 11, 20, .58)); backdrop-filter: blur(16px); }
.mission-card > span { color: var(--blue); font: 11px "DM Mono"; letter-spacing: .12em; }
.mission-card > strong { display: block; margin: 16px 0 25px; font: 500 clamp(25px, 2.6vw, 38px)/1.08 "Space Grotesk"; }
.mission-card div { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mission-card i { width: 7px; height: 7px; border: 1px solid var(--green); transform: rotate(45deg); }
.mission-card p { margin: 0; color: var(--muted); font-size: 13px; }

.map-stage { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 410px); column-gap: 40px; align-items: start; }
.stage-heading { max-width: 520px; padding-top: 20px; }
.stage-heading h2 { margin: 0 0 16px; font: 600 clamp(48px, 5.5vw, 82px)/.92 "Space Grotesk"; letter-spacing: -.055em; }
.stage-heading > p:last-child { color: var(--muted); font-size: 17px; }
.destination-rail { grid-column: 2; grid-row: 1 / span 2; width: 100%; border: 1px solid var(--line); background: rgba(5, 12, 22, .8); backdrop-filter: blur(18px); }
.destination-rail button { position: relative; display: grid; grid-template-columns: 38px 1fr 24px; grid-template-rows: auto auto; width: 100%; min-height: 82px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: background .25s, padding .25s; }
.destination-rail button:last-child { border-bottom: 0; }
.destination-rail button:hover, .destination-rail button:focus-visible { padding-left: 24px; outline: none; background: rgba(88, 207, 255, .09); }
.destination-rail span { grid-row: 1 / span 2; color: var(--blue); font: 12px "DM Mono"; }
.destination-rail b { font: 600 17px "Space Grotesk"; }
.destination-rail small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.destination-rail i { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--blue); font-style: normal; }
.leave-bridge { position: absolute; left: var(--pad); bottom: 132px; }

.orbit-stage { display: grid; grid-template-columns: minmax(310px, .8fr) minmax(500px, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.back-map { position: absolute; top: 32px; left: var(--pad); min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.back-map span { margin-right: 12px; color: var(--blue); }
.orbit-copy { align-self: end; padding-bottom: 26px; }
.orbit-copy h2 { max-width: 660px; margin: 0 0 22px; font: 600 clamp(54px, 6.5vw, 98px)/.86 "Space Grotesk"; letter-spacing: -.06em; }
.orbit-copy > p:not(.eyebrow) { max-width: 560px; color: #b9c7d5; font-size: 17px; line-height: 1.65; }
.orbit-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.orbit-tags span, .topic-row span { padding: 8px 10px; border: 1px solid var(--line); color: #bcd0e2; font: 11px "DM Mono"; letter-spacing: .06em; }
.transmission-panel { align-self: center; max-height: calc(100svh - 235px); overflow: auto; border: 1px solid var(--line); background: rgba(5, 12, 22, .9); backdrop-filter: blur(20px); scrollbar-width: thin; }
.transmission-panel > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(6, 14, 25, .96); color: var(--muted); font: 11px "DM Mono"; letter-spacing: .09em; }
.transmission-panel > header b { color: var(--green); font-weight: 500; }
.transmission-list button { display: grid; grid-template-columns: 52px 1fr 20px; width: 100%; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.transmission-list button:hover { background: rgba(88, 207, 255, .07); }
.transmission-list span { color: var(--blue); font: 11px "DM Mono"; }
.transmission-list b { font: 500 16px/1.25 "Space Grotesk"; }
.transmission-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.transmission-list i { color: var(--blue); font-style: normal; }
.commerce-slot { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin: 18px; padding: 20px; border: 1px solid rgba(148, 124, 255, .36); background: radial-gradient(circle at 10% 20%, rgba(148, 124, 255, .15), transparent 65%); }
.commerce-slot span { color: var(--violet); font: 11px "DM Mono"; letter-spacing: .08em; }
.commerce-slot h3 { margin: 10px 0 5px; font: 600 20px "Space Grotesk"; }
.commerce-slot p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.commerce-slot button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(148, 124, 255, .45); background: rgba(148, 124, 255, .1); font: 11px "DM Mono"; text-transform: uppercase; white-space: nowrap; }

.external-stage { display: flex; align-items: center; }
.external-copy { width: min(590px, 47vw); }
.external-copy h2 { margin: 0; font: 600 clamp(58px, 7vw, 104px)/.87 "Space Grotesk"; letter-spacing: -.06em; }
.external-copy > p:not(.eyebrow) { max-width: 570px; margin: 28px 0; color: #bac7d5; font-size: 18px; line-height: 1.65; }
.ship-readout { position: absolute; right: var(--pad); bottom: 145px; display: grid; text-align: right; }
.ship-readout span { color: var(--blue); font: 42px "Space Grotesk"; }
.ship-readout b { font: 12px "DM Mono"; letter-spacing: .15em; }
.ship-readout p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.module-dock { position: absolute; z-index: 35; left: 50%; bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(180px, 240px)); gap: 7px; width: min(760px, calc(100% - 2 * var(--pad))); transform: translateX(-50%); transition: opacity .35s, transform .35s; }
.module-dock > p { position: absolute; bottom: calc(100% + 8px); left: 0; margin: 0; color: #71869a; font: 10px "DM Mono"; letter-spacing: .11em; }
.module-dock button { display: grid; grid-template-columns: 38px 1fr; min-height: 72px; padding: 12px; border: 1px solid var(--line); background: rgba(5, 12, 22, .9); text-align: left; backdrop-filter: blur(16px); }
.module-dock button:hover, .module-dock button:focus-visible { outline: none; border-color: var(--line-hot); background: rgba(10, 25, 42, .94); }
.module-dock i { grid-row: 1; display: grid; place-items: center; margin-right: 10px; border-right: 1px solid var(--line); color: var(--blue); font: 13px "DM Mono"; font-style: normal; }
.module-dock span { min-width: 0; }
.module-dock b { display: block; font: 500 13px/1.15 "Space Grotesk"; }
.module-dock small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body[data-stage="external"] .module-dock { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

.module-drawer { position: fixed; z-index: 50; right: 0; top: var(--header); bottom: 0; width: min(520px, 44vw); padding: clamp(38px, 5vw, 70px); overflow: auto; border-left: 1px solid var(--line); background: rgba(5, 12, 22, .96); backdrop-filter: blur(24px); visibility: hidden; transform: translateX(102%); transition: transform .55s cubic-bezier(.2, .8, .2, 1), visibility .55s; }
.module-drawer.open { visibility: visible; transform: none; }
.drawer-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; }
.module-drawer h2 { margin: 0 0 22px; font: 600 clamp(46px, 5vw, 72px)/.9 "Space Grotesk"; letter-spacing: -.055em; }
.module-drawer > p:not(.eyebrow) { color: #b9c7d5; font-size: 17px; line-height: 1.65; }
.drawer-grid { display: grid; gap: 10px; margin: 28px 0; }
.drawer-grid article { padding: 18px; border: 1px solid var(--line); background: rgba(10, 20, 34, .65); }
.drawer-grid span { color: var(--blue); font: 11px "DM Mono"; }
.drawer-grid h3 { margin: 9px 0 5px; font: 600 19px "Space Grotesk"; }
.drawer-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.drawer-route { width: 100%; }

.hyperjump { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #02050a; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.hyperjump p { position: relative; z-index: 2; margin-top: -60px; color: var(--blue); font: 11px "DM Mono"; letter-spacing: .18em; }
.hyperjump strong { position: relative; z-index: 2; margin-top: 10px; font: 500 clamp(24px, 4vw, 48px) "Space Grotesk"; letter-spacing: .14em; }
.hyperjump > span { position: absolute; top: calc(50% + 55px); width: 180px; height: 1px; background: var(--blue); box-shadow: 0 0 20px var(--blue); }
.warp-lines { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, transparent 0deg 4deg, rgba(88, 207, 255, .2) 4.2deg 4.5deg); mask-image: radial-gradient(circle, transparent 0 4%, black 28%, transparent 68%); }
.jumping .hyperjump { opacity: 1; visibility: visible; }
.jumping .warp-lines { animation: warp .72s linear infinite; }
@keyframes warp { to { transform: rotate(12deg) scale(1.35); } }

body[data-mode="read"] #universe { opacity: .18; filter: saturate(.5); }
body[data-mode="read"] .explore-view { display: none; }
body[data-mode="read"] .read-view { display: block; }
.read-view { position: relative; padding-top: var(--header); }
.read-hero { min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad); background: radial-gradient(circle at 78% 32%, rgba(43, 109, 168, .2), transparent 36%); }
.read-hero > p:not(.eyebrow) { max-width: 680px; margin: 36px 0; color: #bac7d5; font-size: 20px; line-height: 1.65; }
.read-hero > div { display: flex; gap: 12px; flex-wrap: wrap; }
.read-hero a, .read-hero button, .contact button { min-height: 50px; padding: 0 18px; border: 1px solid var(--line-hot); background: rgba(88, 207, 255, .08); font: 12px "DM Mono"; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.read-hero a { display: flex; align-items: center; }
.read-hero span, .contact button span { margin-left: 18px; color: var(--blue); }
.read-index { position: sticky; top: var(--header); z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); background: rgba(3, 8, 15, .94); backdrop-filter: blur(16px); }
.read-index a { min-height: 68px; padding: 15px 18px; border-right: 1px solid var(--line); font: 500 13px "Space Grotesk"; text-decoration: none; }
.read-index a:last-child { border-right: 0; }
.read-index span { display: block; margin-bottom: 5px; color: var(--blue); font: 11px "DM Mono"; }
.reading-sector { min-height: 92svh; display: grid; grid-template-columns: 115px minmax(360px, 1.15fr) minmax(330px, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding: clamp(90px, 11vw, 160px) var(--pad); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(3, 7, 13, .97), rgba(3, 7, 13, .72)); }
.reading-sector.reverse { background: linear-gradient(270deg, rgba(3, 7, 13, .97), rgba(3, 7, 13, .72)); }
.section-mark { align-self: start; color: var(--muted); font: 11px "DM Mono"; letter-spacing: .09em; }
.section-mark span { display: block; color: var(--blue); font: 500 50px "Space Grotesk"; letter-spacing: -.05em; }
.reading-copy h2 { margin: 0 0 28px; font: 600 clamp(48px, 5.7vw, 84px)/.93 "Space Grotesk"; letter-spacing: -.055em; }
.reading-copy > p:not(.eyebrow) { max-width: 700px; color: #b7c4d2; font-size: 18px; line-height: 1.7; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.content-stack { display: grid; gap: 12px; }
.content-stack article { padding: 25px; border: 1px solid var(--line); background: rgba(7, 15, 27, .78); }
.content-stack article > span { color: var(--blue); font: 11px "DM Mono"; letter-spacing: .08em; }
.content-stack h3 { margin: 17px 0 10px; font: 600 clamp(23px, 2.3vw, 32px)/1.12 "Space Grotesk"; }
.content-stack p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.content-stack button { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--blue); font: 11px "DM Mono"; text-transform: uppercase; }
.content-stack .affiliate-card { border-color: rgba(148, 124, 255, .3); background: rgba(148, 124, 255, .06); }
.content-stack .affiliate-card > span { color: var(--violet); }
.operator { min-height: 82svh; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); gap: clamp(50px, 9vw, 140px); align-items: center; padding: clamp(90px, 11vw, 160px) var(--pad); }
.operator-portrait { position: relative; aspect-ratio: 4 / 5; max-width: 430px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle, rgba(88, 207, 255, .12), transparent 62%); }
.operator-portrait:before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(black, transparent); }
.operator-portrait strong { font: 600 clamp(60px, 9vw, 120px) "Space Grotesk"; color: transparent; -webkit-text-stroke: 1px rgba(88, 207, 255, .4); }
.operator-portrait span { position: absolute; bottom: 28px; color: var(--muted); font: 12px/1.6 "DM Mono"; text-align: center; }
.portrait-scan { position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(88, 207, 255, .18) 50%, transparent 52%); animation: scan 5s linear infinite; }
@keyframes scan { from { transform: translateY(-50%); } to { transform: translateY(50%); } }
.operator-copy h2 { margin: 0 0 20px; font: 600 clamp(50px, 6vw, 88px)/.93 "Space Grotesk"; letter-spacing: -.06em; }
.operator-copy .role { color: var(--blue); font: 12px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.operator-copy > p:not(.eyebrow, .role) { max-width: 650px; color: #b7c4d2; font-size: 19px; line-height: 1.7; }
.contact { min-height: 72svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px var(--pad); text-align: center; background: radial-gradient(circle, rgba(39, 105, 158, .2), transparent 45%); }
.contact h2 { margin: 0; font: 600 clamp(54px, 7vw, 102px)/.92 "Space Grotesk"; letter-spacing: -.06em; }
.contact > p:not(.eyebrow) { max-width: 600px; margin: 28px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
footer { min-height: 130px; display: flex; align-items: center; gap: 30px; padding: 28px var(--pad); border-top: 1px solid var(--line); }
footer strong { font: 700 25px "Space Grotesk"; }
footer p { flex: 1; color: var(--muted); font: 11px "DM Mono"; letter-spacing: .08em; }
footer > span { color: var(--muted); font: 11px "DM Mono"; }

@media (max-width: 1050px) {
  .intro-stage { grid-template-columns: 1fr; }
  .mission-card { display: none; }
  .hero-copy { max-width: 730px; }
  .orbit-stage { grid-template-columns: minmax(260px, .75fr) minmax(430px, 1.25fr); gap: 30px; }
  .module-dock { grid-template-columns: repeat(3, 1fr); }
  .reading-sector { grid-template-columns: 80px 1fr; }
  .content-stack { grid-column: 2; grid-template-columns: repeat(2, 1fr); }
}

@media (max-height: 700px) and (min-width: 761px) {
  .stage { padding-top: 28px; padding-bottom: 105px; }
  .hero-copy h1 { font-size: clamp(52px, 6vw, 78px); }
  .hero-lead { margin: 20px 0; font-size: 16px; }
  .mission-card { padding: 20px; }
  .mission-card > strong { margin: 12px 0 18px; font-size: 27px; }
  .mission-card div { padding: 8px 0; }
  .module-dock { bottom: 12px; }
  .module-dock > p { display: none; }
  .orbit-copy h2 { font-size: 58px; }
  .transmission-list button { padding-block: 14px; }
}

@media (max-height: 500px) and (min-width: 761px) {
  .stage { padding-top: 14px; padding-bottom: 94px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-lead { max-width: 560px; margin: 13px 0; font-size: 14px; line-height: 1.5; }
  .primary-action, .ghost-action, .leave-bridge, .back-map, .drawer-route { min-height: 44px; }
  .module-dock button { min-height: 64px; padding-block: 9px; }
  .external-copy h2 { font-size: 54px; }
  .external-copy > p:not(.eyebrow) { margin: 15px 0; font-size: 15px; }
}

@media (max-width: 760px) {
  :root { --header: 70px; --pad: 20px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 20px; }
  .brand > span { font-size: 10px; }
  .brand small { display: none; }
  .mode-button { padding: 9px 10px; font-size: 10px; }
  .explore-view { min-height: 620px; }
  .stage { padding: 34px var(--pad) 104px; }
  .ship-status, .strut, .window-line { display: none; }
  .hero-copy h1 { font-size: clamp(53px, 15vw, 78px); }
  .hero-lead { margin: 23px 0; font-size: 15px; }
  .hero-actions, .external-actions { display: grid; }
  .map-stage { display: block; overflow: auto; padding-bottom: 110px; }
  .stage-heading { padding: 0; }
  .stage-heading h2 { font-size: 46px; }
  .stage-heading > p:last-child { font-size: 14px; }
  .destination-rail { width: 100%; margin-top: 24px; }
  .destination-rail button { min-height: 68px; }
  .leave-bridge { position: static; width: 100%; margin-top: 12px; }
  .orbit-stage { display: block; overflow: auto; padding-top: 82px; padding-bottom: 112px; }
  .back-map { top: 22px; }
  .orbit-copy { padding: 0 0 25px; }
  .orbit-copy h2 { font-size: 52px; }
  .orbit-copy > p:not(.eyebrow) { font-size: 15px; }
  .transmission-panel { max-height: none; }
  .commerce-slot { grid-template-columns: 1fr; }
  .external-copy { width: 100%; }
  .external-copy h2 { font-size: clamp(55px, 15vw, 82px); }
  .external-copy > p:not(.eyebrow) { font-size: 16px; }
  .ship-readout { display: none; }
  .module-dock { left: 12px; right: 12px; bottom: 10px; width: auto; transform: none; overflow-x: auto; grid-template-columns: repeat(3, 175px); scrollbar-width: none; }
  body[data-stage="external"] .module-dock { transform: translateY(20px); }
  .module-dock button { min-height: 68px; }
  .module-drawer { top: auto; width: 100%; height: auto; max-height: 78svh; border-top: 1px solid var(--line); border-left: 0; padding: 40px var(--pad); transform: translateY(102%); }
  .module-drawer.open { transform: none; }
  .read-hero { padding: 80px var(--pad); }
  .read-hero h1 { font-size: clamp(55px, 15vw, 78px); }
  .read-hero > p:not(.eyebrow) { font-size: 17px; }
  .read-index { position: static; grid-template-columns: 1fr; }
  .read-index a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 12px var(--pad); border-right: 0; border-bottom: 1px solid var(--line); }
  .read-index span { margin: 0; }
  .reading-sector { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 92px var(--pad); }
  .section-mark { display: flex; gap: 12px; align-items: center; }
  .section-mark span { font-size: 38px; }
  .reading-copy h2 { font-size: clamp(46px, 13vw, 68px); }
  .reading-copy > p:not(.eyebrow) { font-size: 16px; }
  .content-stack { grid-column: auto; grid-template-columns: 1fr; }
  .operator { grid-template-columns: 1fr; }
  .operator-portrait { max-width: 360px; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  footer p { margin: 0; }
}

@media (max-width: 430px) {
  .brand > span { display: none; }
  .mode-button span { display: none; }
  .mode-button i { width: 9px; height: 9px; margin: 0; }
  .mode-button { width: 40px; height: 36px; }
  .intro-stage { align-items: center; }
  .hero-copy h1 { font-size: 44px; }
  .external-copy h2 { font-size: 48px; }
  .eyebrow { font-size: 10px; }
  .destination-rail b { font-size: 15px; }
  .destination-rail small { font-size: 11px; }
  .transmission-list button { grid-template-columns: 42px 1fr 15px; padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V3 · bridge, deep-space and mothership direction */
.space-matte { position: fixed; inset: 0; z-index: -3; background: #02050a url("./assets/ac-deep-space-v1.webp") center / cover no-repeat; opacity: .68; transform: scale(1.035); transition: opacity .6s, transform 1.2s ease; }
#universe { z-index: -2; }
body[data-stage="orbit"] .space-matte { opacity: .5; transform: scale(1.08) translateX(-1.5%); }
body[data-stage="external"] .space-matte { opacity: .86; transform: scale(1.02); }
body[data-mode="read"] .space-matte { opacity: .16; filter: saturate(.55); }

.cockpit:before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 20%, rgba(1, 4, 9, .13) 58%, rgba(1, 4, 9, .72) 100%); }
.ceiling-rig { position: absolute; z-index: 2; top: 0; left: 12vw; right: 12vw; height: 7.5vh; min-height: 38px; border-bottom: 1px solid rgba(125, 176, 217, .24); background: linear-gradient(180deg, rgba(9, 16, 26, .98), rgba(7, 14, 24, .84) 65%, transparent); clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.ceiling-rig:before, .ceiling-rig:after { content: ""; position: absolute; top: 15px; width: 24%; height: 9px; border-block: 1px solid rgba(88, 207, 255, .24); background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(88, 207, 255, .35) 20px 21px); }
.ceiling-rig:before { left: 10%; }.ceiling-rig:after { right: 10%; }
.ceiling-rig > i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(115, 155, 190, .18); transform: skewX(-24deg); }
.ceiling-rig > i:nth-child(1) { left: 22%; }.ceiling-rig > i:nth-child(2) { left: 50%; }.ceiling-rig > i:nth-child(3) { right: 22%; }
.ceiling-rig > span { position: absolute; left: 50%; bottom: 8px; width: 74px; height: 3px; transform: translateX(-50%); background: var(--blue); box-shadow: 0 0 16px rgba(88, 207, 255, .8); opacity: .6; }
.cockpit-wall { position: absolute; z-index: 3; top: 0; bottom: 82px; width: 10.5vw; min-width: 72px; overflow: hidden; background: linear-gradient(90deg, #060c15 0 42%, rgba(10, 21, 34, .92) 70%, rgba(12, 27, 43, .2)); }
.wall-left { left: 0; border-right: 1px solid rgba(124, 173, 214, .2); clip-path: polygon(0 0, 100% 0, 72% 28%, 88% 72%, 62% 100%, 0 100%); }
.wall-right { right: 0; transform: scaleX(-1); border-right: 1px solid rgba(124, 173, 214, .2); clip-path: polygon(0 0, 100% 0, 72% 28%, 88% 72%, 62% 100%, 0 100%); }
.cockpit-wall > i { position: absolute; left: 14%; width: 56%; height: 1px; background: rgba(114, 161, 198, .23); box-shadow: 0 13px rgba(114, 161, 198, .12), 0 26px rgba(114, 161, 198, .08); }
.cockpit-wall > i:nth-child(1) { top: 18%; }.cockpit-wall > i:nth-child(2) { top: 64%; }
.wall-screen { position: absolute; left: 8%; top: 38%; width: 55%; height: 94px; border: 1px solid rgba(88, 207, 255, .22); background: rgba(3, 14, 25, .72); transform: skewY(-8deg); }
.wall-screen b { display: block; width: 72%; height: 2px; margin: 17px 10px; background: linear-gradient(90deg, var(--blue), transparent); opacity: .55; }
.console-deck { position: absolute; z-index: 4; left: 8vw; right: 8vw; bottom: 0; height: 84px; display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr; gap: 6px; padding: 13px 9vw 0; border-top: 1px solid rgba(120, 174, 215, .28); background: linear-gradient(180deg, rgba(11, 22, 35, .72), rgba(4, 9, 16, .98)); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.console-deck > span, .console-deck > div { display: block; height: 38px; border: 1px solid rgba(88, 207, 255, .18); background: linear-gradient(145deg, rgba(17, 43, 65, .65), rgba(3, 10, 18, .9)); transform: perspective(150px) rotateX(8deg); }
.console-deck > div { display: flex; justify-content: center; align-items: center; gap: 11px; }
.console-deck i { width: 7px; height: 7px; border-radius: 50%; background: #162d40; box-shadow: inset 0 0 0 1px rgba(88, 207, 255, .25); }
.console-deck i:nth-child(2), .console-deck i:nth-child(5) { background: var(--blue); box-shadow: 0 0 9px rgba(88, 207, 255, .75); }
.window-reflection { position: absolute; z-index: 1; inset: 7vh 10vw 84px; background: linear-gradient(112deg, transparent 28%, rgba(170, 218, 255, .035) 43%, transparent 55%); clip-path: polygon(3% 0, 97% 0, 100% 88%, 90% 100%, 10% 100%, 0 88%); }
.strut { z-index: 4; width: 10.5vw; }
.window-line { bottom: 84px; }
.ship-status { z-index: 5; }
.module-dock { bottom: 13px; z-index: 36; }

.external-copy { position: relative; z-index: 4; }
.mothership-visual { position: absolute; z-index: 2; right: -4vw; top: 48%; width: min(66vw, 1050px); transform: translateY(-51%); pointer-events: none; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .7)); }
.mothership-visual img { display: block; width: 100%; height: auto; animation: shipDrift 8s ease-in-out infinite; }
.ship-aura { position: absolute; inset: 17% 9% 12% 15%; border-radius: 50%; background: radial-gradient(ellipse, rgba(55, 174, 236, .18), transparent 66%); filter: blur(22px); }
.escort { position: absolute; width: 58px; height: 9px; border-radius: 60% 10% 10% 60%; background: linear-gradient(90deg, #d5e3e9, #47687d 65%, var(--blue)); box-shadow: 15px 0 16px rgba(88, 207, 255, .65); opacity: .72; }
.escort-one { left: 12%; bottom: 11%; transform: rotate(-7deg) scale(.72); }.escort-two { right: 7%; bottom: 20%; transform: rotate(6deg) scale(.45); }.escort-three { right: 18%; top: 20%; transform: rotate(-5deg) scale(.3); }
@keyframes shipDrift { 0%, 100% { transform: translate3d(0, -5px, 0) rotate(-.3deg); } 50% { transform: translate3d(-8px, 6px, 0) rotate(.35deg); } }
.ship-readout { z-index: 5; text-shadow: 0 2px 12px #000; }

.hyperjump { isolation: isolate; background: #02050b; transition: opacity .16s, visibility .16s; }
.jump-stars { position: absolute; inset: -35%; opacity: .35; background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0 3.5deg, rgba(92, 190, 255, .28) 3.7deg 3.9deg); mask-image: radial-gradient(circle, transparent 0 8%, black 24%, transparent 64%); transform: scale(.25); }
.jump-window { position: absolute; z-index: 3; left: 50%; top: 50%; width: 78vw; height: 72vh; transform: translate(-50%, -50%) perspective(900px) rotateY(-12deg) scaleX(.015); border: 1px solid rgba(205, 244, 255, .95); background: linear-gradient(90deg, rgba(103, 202, 255, .06), rgba(186, 239, 255, .96) 49%, white 50%, rgba(94, 178, 255, .12) 53%, rgba(36, 75, 145, .05)); box-shadow: 0 0 28px #67d2ff, inset 0 0 80px rgba(115, 209, 255, .65); opacity: 0; }
.jump-window:before, .jump-window:after { content: ""; position: absolute; inset: -4%; border: 1px solid rgba(78, 186, 255, .55); box-shadow: 0 0 28px rgba(69, 168, 255, .5); }
.jump-window:after { inset: -9%; opacity: .34; }
.jump-window > i { position: absolute; inset: 3%; border: 1px solid rgba(255, 255, 255, .5); }
.jump-window > b { position: absolute; left: 50%; top: -10%; bottom: -10%; width: 2px; background: white; box-shadow: 0 0 30px 10px #82dfff; }
.jump-window > span { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, .12) 13px 14px); }
.jump-ship { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; }
.jump-ship img { width: min(70vw, 980px); filter: brightness(.62) saturate(.75) drop-shadow(0 0 28px rgba(73, 189, 255, .35)); opacity: 0; }
.jump-copy { position: absolute; z-index: 6; left: 50%; bottom: 8vh; width: min(520px, 82vw); transform: translateX(-50%); text-align: center; }
.jump-copy p { margin: 0 0 11px; color: var(--blue); font: 11px "DM Mono"; letter-spacing: .18em; }
.jump-copy strong { font: 500 clamp(19px, 3vw, 37px) "Space Grotesk"; letter-spacing: .12em; }
.jump-copy > span { display: block; width: 100%; height: 1px; margin-top: 18px; background: rgba(88, 207, 255, .18); }
.jump-copy > span i { display: block; width: 0; height: 1px; background: var(--blue); box-shadow: 0 0 13px var(--blue); }
.jumping .jump-stars { animation: jumpStars 1.9s cubic-bezier(.35, 0, .3, 1) both; }
.jumping .jump-window { animation: jumpWindow 1.9s cubic-bezier(.7, 0, .2, 1) both; }
.jumping .jump-ship img { animation: shipTransit 1.9s ease-in-out both; }
.jumping .jump-copy > span i { animation: jumpProgress 1.9s linear both; }
@keyframes jumpStars { 0% { opacity: 0; transform: scale(.2) rotate(0); } 45% { opacity: .5; } 100% { opacity: 0; transform: scale(1.35) rotate(11deg); } }
@keyframes jumpWindow { 0%, 12% { opacity: 0; transform: translate(-50%, -50%) perspective(900px) rotateY(-12deg) scaleX(.01) scaleY(.1); } 32% { opacity: 1; transform: translate(-50%, -50%) perspective(900px) rotateY(-8deg) scaleX(.035) scaleY(1); } 58% { opacity: 1; transform: translate(-50%, -50%) perspective(900px) rotateY(0) scaleX(1); } 82% { opacity: 1; filter: brightness(2.2); transform: translate(-50%, -50%) scaleX(1.25) scaleY(1.08); } 100% { opacity: 0; filter: brightness(3); transform: translate(-50%, -50%) scale(1.6); } }
@keyframes shipTransit { 0%, 18% { opacity: 0; transform: translateX(-3%) scale(.92); } 30%, 57% { opacity: .72; transform: translateX(0) scale(.92); clip-path: inset(0 0 0 0); } 74% { opacity: .85; filter: brightness(1.8) saturate(.3) drop-shadow(0 0 38px #6ed8ff); clip-path: inset(0 0 0 82%); } 100% { opacity: 0; transform: translateX(9%) scale(.72); clip-path: inset(0 0 0 100%); } }
@keyframes jumpProgress { to { width: 100%; } }

body.leaving .cockpit { opacity: 0; transform: scale(1.08); }
body.leaving #universe, body.leaving .space-matte { transform: scale(.78); filter: brightness(.65); }
.cockpit, #universe, .space-matte { transition: opacity .7s, transform 1s cubic-bezier(.2, .75, .15, 1), filter 1s; }

@media (max-width: 1050px) {
  .cockpit-wall { width: 8vw; min-width: 42px; }
  .wall-screen { display: none; }
  .mothership-visual { right: -16vw; width: 76vw; opacity: .72; }
  .external-copy { width: min(560px, 55vw); }
}

@media (max-width: 760px) {
  .space-matte { opacity: .48; }
  .ceiling-rig { left: 7vw; right: 7vw; }
  .cockpit-wall { width: 7vw; min-width: 22px; opacity: .75; }
  .console-deck { left: 0; right: 0; height: 76px; padding-inline: 8vw; }
  .window-reflection { inset-inline: 6vw; }
  .mothership-visual { inset: 14% -42% auto 22%; width: 118vw; opacity: .43; }
  .external-copy { width: 100%; }
  .jump-window { width: 88vw; height: 58vh; }
  .jump-ship img { width: 104vw; }
}

@media (max-height: 500px) and (min-width: 761px) {
  .ceiling-rig { height: 32px; min-height: 32px; }
  .cockpit-wall { bottom: 68px; }
  .console-deck { height: 68px; }
  .mothership-visual { width: min(58vw, 850px); }
}
