:root {
  --ink: #182016;
  --ink-2: #23271e;
  --paper: #d5c5af;
  --paper-light: #f0e7d8;
  --lime: #b8ff39;
  --lime-dark: #6c9820;
  --blue: #2448d8;
  --peach: #e08d6d;
  --cream: #fff4de;
  --line: rgba(24, 32, 22, .28);
  --route-turn: 0deg;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; cursor: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
body.visor-on { --lime: #c8ff50; }
body.visor-on main { filter: contrast(1.08) saturate(1.18); }
body.visor-on .visor-overlay { opacity: 1; visibility: visible; }
body.visor-on .hero-world { filter: sepia(.1) hue-rotate(28deg) saturate(1.25) contrast(1.06); }
body.secret-open { overflow: hidden; }
button, a, input { font: inherit; }
button, a { cursor: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { color: var(--lime); font-style: normal; }
::selection { color: var(--ink); background: var(--lime); }

.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 18px; text-align: center; background: var(--ink); transition: transform .85s cubic-bezier(.76,0,.24,1), visibility .85s; }
.boot.done { transform: translateY(-102%); visibility: hidden; }
.boot-mark { font: 900 84px/.8 Impact, Arial Black, sans-serif; letter-spacing: -.08em; }
.boot-mark span { color: var(--lime); }
.boot p { margin: 0; font: 800 10px/1.2 'Courier New', monospace; letter-spacing: .18em; }
.boot-line { width: 260px; height: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.boot-line i { display: block; width: 50%; height: 100%; background: var(--lime); animation: booting .8s ease-in-out infinite alternate; }
@keyframes booting { to { transform: translateX(100%); } }

.cursor-dot, .cursor-ring { position: fixed; z-index: 999; top: 0; left: 0; border-radius: 50%; pointer-events: none; transform: translate(-50%,-50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--lime); transition: width .2s, height .2s, background .2s, border-color .2s; }
.cursor-ring.hover { width: 58px; height: 58px; background: rgba(184,255,57,.1); border-color: var(--cream); }
.transition-curtain { position: fixed; inset: 0; z-index: 800; background: var(--lime); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.transition-curtain.go { animation: curtain .72s cubic-bezier(.8,0,.2,1); }
@keyframes curtain { 0% { transform: scaleY(0); transform-origin: bottom; } 45% { transform: scaleY(1); transform-origin: bottom; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }

.site-header { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.25); background: rgba(19,24,16,.74); backdrop-filter: blur(14px); transition: background .3s, transform .4s; }
.site-header.paper-mode { color: var(--ink); background: rgba(220,205,183,.82); border-color: rgba(24,32,22,.25); }
.brand { justify-self: start; display: flex; align-items: baseline; gap: 8px; font-weight: 900; letter-spacing: -.03em; }
.brand strong { font-size: 20px; }
.brand small { font: 800 8px/1 'Courier New', monospace; letter-spacing: .08em; opacity: .72; }
.brand-orb { align-self: center; width: 15px; height: 15px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px rgba(184,255,57,.85); animation: air 1.5s ease-in-out infinite; }
@keyframes air { 50% { opacity: .42; transform: scale(.72); } }
.on-air { justify-self: center; display: flex; align-items: center; gap: 8px; margin: 0; font: 800 9px/1 monospace; letter-spacing: .12em; }
.on-air i { width: 6px; height: 6px; border-radius: 50%; background: #f6533d; box-shadow: 0 0 10px #f6533d; }
.on-air span { opacity: .55; }
.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; margin-top: 35px; opacity: 0; pointer-events: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 7px; }
.header-actions a, .sound-toggle { min-height: 38px; display: grid; place-content: center; padding: 0 14px; border: 1px solid rgba(255,255,255,.4); color: inherit; background: transparent; font: 900 9px/1 monospace; letter-spacing: .08em; }
.sound-toggle span { color: var(--peach); margin-left: 3px; }
.buy-button { color: var(--ink) !important; background: var(--lime) !important; border-color: var(--ink) !important; box-shadow: 3px 3px 0 var(--blue); }
.site-header.paper-mode .header-actions a, .site-header.paper-mode .sound-toggle { border-color: rgba(24,32,22,.4); }

.hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background: #39372f; }
.hero-world { position: absolute; z-index: -5; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: calc(50% + var(--mouse-x, 0px)) calc(50% + var(--mouse-y, 0px)); filter: saturate(.82) contrast(1.04); transition: filter .5s; }
.hero-shadow { position: absolute; z-index: -4; inset: 0; background: linear-gradient(90deg, rgba(18,23,15,.94) 0%, rgba(18,23,15,.72) 35%, rgba(18,23,15,.06) 72%), linear-gradient(0deg, rgba(15,19,12,.45), transparent 55%); }
.hero-copy { position: absolute; z-index: 4; left: clamp(24px, 6vw, 92px); top: 50%; width: min(710px, 72vw); transform: translateY(-45%); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; font: 900 9px/1.15 'Courier New', monospace; letter-spacing: .11em; }
.eyebrow span { padding: 7px 9px 5px; color: var(--ink); background: var(--peach); transform: rotate(-1deg); }
.eyebrow.ink { color: var(--ink); }
.hero h1, .origin h2, .lab h2, .route h2, .finale h2 { margin: 0; text-transform: uppercase; font: 900 clamp(55px, 8.3vw, 130px)/.77 Impact, Arial Narrow, sans-serif; letter-spacing: -.06em; }
.hero h1 em { -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--blue); }
.hero-intro { width: min(500px, 100%); margin: 25px 0 23px; font: 700 clamp(14px, 1.3vw, 19px)/1.42 'Courier New', monospace; }
.hero-intro strong { color: var(--lime); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; }
.enter-button, .visor-button { min-height: 52px; padding: 0 18px; border: 2px solid var(--ink); font: 900 11px/1 monospace; letter-spacing: .07em; box-shadow: 5px 5px 0 var(--ink); transition: color .2s, background .2s; }
.enter-button { color: var(--ink); background: var(--lime); }
.visor-button { color: var(--cream); border-color: var(--cream); background: rgba(24,32,22,.4); box-shadow: 5px 5px 0 var(--blue); }
.visor-button[aria-pressed="true"] { color: var(--ink); background: var(--lime); }
.enter-button b, .visor-button b { margin-left: 26px; font-size: 17px; }
.hero-note { position: absolute; z-index: 3; padding: 7px 9px 5px; color: var(--ink); background: var(--peach); font: 900 9px/1.08 'Courier New', monospace; box-shadow: 3px 3px 0 var(--ink); }
.note-one { left: 56%; top: 17%; transform: rotate(-5deg); }
.note-two { right: 5%; top: 32%; transform: rotate(4deg); background: var(--lime); }
.hero-stamp { position: absolute; z-index: 3; right: 4vw; bottom: 4vh; width: 128px; height: 128px; display: grid; place-content: center; gap: 6px; border: 3px solid var(--peach); border-radius: 50%; color: var(--peach); text-align: center; transform: rotate(9deg); user-select: none; touch-action: none; }
.hero-stamp b { font: 900 23px/.9 Impact, sans-serif; }
.hero-stamp span { font: 900 8px/1.2 monospace; letter-spacing: .08em; }
.signal-ripple { position: absolute; z-index: 1; left: 69%; top: 49%; width: 130px; height: 130px; border: 1px solid rgba(184,255,57,.55); border-radius: 50%; transform: translate(-50%,-50%); animation: ripple 4s linear infinite; pointer-events: none; }
.signal-ripple.r2 { animation-delay: -1.33s; }
.signal-ripple.r3 { animation-delay: -2.66s; }
@keyframes ripple { from { opacity: .65; transform: translate(-50%,-50%) scale(.2); } to { opacity: 0; transform: translate(-50%,-50%) scale(5); } }
.artifact { position: absolute; z-index: 9; width: 48px; height: 48px; display: grid; place-items: center; border: 1px dashed var(--lime); border-radius: 50%; color: var(--lime); background: rgba(24,32,22,.58); box-shadow: 0 0 0 0 rgba(184,255,57,.3); animation: artifactPulse 2s ease-in-out infinite; transition: opacity .35s, transform .35s, background .25s; }
.artifact span { font-size: 20px; }
.artifact small { position: absolute; top: 54px; opacity: 0; font: 900 7px/1 monospace; letter-spacing: .1em; transition: opacity .2s; }
.artifact:hover small, .artifact:focus-visible small { opacity: 1; }
.artifact.found { opacity: .25; transform: scale(.7) rotate(30deg); pointer-events: none; background: var(--lime); color: var(--ink); }
.a-phone { right: 23%; top: 23%; }
.a-cross { left: 23%; top: 14%; animation-delay: -.5s; }
.a-headphones { right: 11%; bottom: 23%; animation-delay: -1s; }
.a-hat { left: 21%; bottom: 12%; animation-delay: -1.5s; }
.a-tape { right: 40%; bottom: 9%; animation-delay: -.8s; }
@keyframes artifactPulse { 50% { box-shadow: 0 0 0 9px rgba(184,255,57,0); transform: translateY(-4px); } }
.hunt-panel { position: absolute; z-index: 7; right: 25px; top: 92px; width: 145px; padding: 12px; color: var(--ink); background: rgba(240,231,216,.88); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--blue); transform: rotate(1deg); }
.hunt-panel p, .hunt-panel strong, .hunt-panel small { display: block; margin: 0; }
.hunt-panel p { font: 900 8px/1 monospace; letter-spacing: .12em; }
.hunt-panel strong { margin: 5px 0; font: 900 25px/1 Impact, sans-serif; }
.hunt-panel small { margin-top: 7px; font: 700 8px/1.25 monospace; }
.hunt-pips { display: flex; gap: 4px; }
.hunt-pips i { width: 18px; height: 4px; background: rgba(24,32,22,.18); }
.hunt-pips i.on { background: var(--lime-dark); }
.visor-overlay { position: absolute; z-index: 5; inset: 72px 0 0; opacity: 0; visibility: hidden; overflow: hidden; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(184,255,57,.02) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 160px rgba(184,255,57,.18); transition: opacity .4s, visibility .4s; }
.visor-overlay::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 15%, rgba(12,30,5,.48) 100%); }
.v-message { position: absolute; z-index: 1; margin: 0; padding: 5px 8px; color: var(--lime); border: 1px solid var(--lime); background: rgba(12,24,6,.72); font: 800 9px/1 monospace; letter-spacing: .08em; animation: flicker 2.2s steps(2) infinite; }
.v1 { left: 12%; top: 28%; }
.v2 { right: 18%; top: 16%; animation-delay: -.4s; }
.v3 { right: 11%; bottom: 22%; animation-delay: -.9s; }
.v4 { left: 31%; bottom: 12%; animation-delay: -1.4s; }
@keyframes flicker { 48% { opacity: 1; } 50% { opacity: .3; } 52% { opacity: 1; } }
.scroll-cue { position: absolute; z-index: 6; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 12px; color: var(--cream); border: 0; background: transparent; transform: translateX(-50%); font: 900 8px/1 monospace; letter-spacing: .12em; }
.scroll-cue i { width: 36px; height: 1px; background: var(--lime); animation: cue 1.5s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 50% { transform: scaleX(.3); } }

.ticker { position: relative; z-index: 20; overflow: hidden; padding: 11px 0 9px; color: var(--ink); background: var(--lime); border-block: 2px solid var(--ink); transform: rotate(-.5deg) scale(1.01); }
.ticker div { width: max-content; font: 900 12px/1 Impact, sans-serif; letter-spacing: .07em; white-space: nowrap; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-paper { position: relative; color: var(--ink); background: var(--paper); }
.section-dark { position: relative; color: var(--cream); background: var(--ink); }
.origin, .lab, .route { min-height: 100vh; padding: 120px clamp(22px, 6vw, 95px); }
.section-index { position: absolute; top: 110px; right: clamp(22px, 6vw, 95px); display: flex; align-items: flex-start; gap: 9px; }
.section-index span { font: 900 54px/.8 Impact, sans-serif; }
.section-index p { margin: 0; font: 900 8px/1.2 monospace; letter-spacing: .1em; }
.section-index.light { color: var(--cream); }
.origin-heading, .route-heading { width: min(820px, 84%); }
.origin-heading h2, .route-heading h2 { font-size: clamp(66px, 9.4vw, 140px); }
.origin-heading > p:last-child, .route-heading > p:last-child { max-width: 430px; font: 700 13px/1.45 monospace; }
.story-console { margin-top: 70px; border-top: 2px solid var(--ink); }
.story-viewport { overflow: hidden; touch-action: pan-y; }
.story-track { display: flex; will-change: transform; transition: transform .7s cubic-bezier(.76,0,.24,1); }
.story-card { flex: 0 0 100%; min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 45px; align-items: center; padding: 45px 0; }
.story-image { position: relative; height: 520px; border: 2px solid var(--ink); overflow: hidden; background: var(--ink); box-shadow: 12px 12px 0 rgba(24,32,22,.18); }
.story-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) sepia(.1); }
.story-image::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 100px rgba(24,32,22,.22); pointer-events: none; }
.story-image span { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 7px 9px 5px; color: var(--cream); background: var(--ink); font: 900 8px/1 monospace; }
.story-copy { max-width: 520px; }
.story-number { margin: 0 0 20px; font: 900 10px/1 monospace; letter-spacing: .12em; }
.story-copy h3 { margin: 0 0 20px; font: 900 clamp(48px, 5.5vw, 86px)/.82 Impact, sans-serif; letter-spacing: -.04em; }
.story-copy > p:not(.story-number) { margin: 0; font: 700 clamp(15px, 1.3vw, 19px)/1.5 Georgia, serif; }
.story-copy > small { display: block; margin-top: 22px; padding-left: 14px; border-left: 4px solid var(--lime-dark); font: 800 10px/1.4 monospace; }
.world-card { padding: 55px; color: var(--cream); background: linear-gradient(90deg, rgba(18,23,15,.9), rgba(18,23,15,.28)), url('assets/naswif-signal-room.png') center/cover; border: 2px solid var(--ink); }
.big-code { justify-self: center; color: var(--lime); text-align: center; font: 900 clamp(100px, 16vw, 240px)/.53 Impact, sans-serif; letter-spacing: -.09em; text-shadow: 6px 6px 0 var(--blue); transform: rotate(5deg); }
.big-code i { color: var(--peach); }
.gear-card { grid-template-columns: 1.1fr .9fr; }
.gear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gear-grid button { min-height: 185px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 18px; border: 2px solid var(--ink); color: var(--ink); text-align: left; background: rgba(240,231,216,.52); box-shadow: 5px 5px 0 rgba(24,32,22,.15); transition: background .25s, transform .25s; }
.gear-grid button:hover, .gear-grid button.active { background: var(--lime); transform: translate(-3px,-3px) rotate(-1deg); }
.gear-grid b { font: 900 10px/1 monospace; }
.gear-grid span { font: 900 22px/.9 Impact, sans-serif; }
.gear-grid i { font: 700 10px/1.35 monospace; opacity: .7; }
.card-now { background-position: 64% center; }
.now-signal { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 320px; }
.now-signal span { width: 18px; height: 30%; background: var(--lime); animation: bars .8s ease-in-out infinite alternate; }
.now-signal span:nth-child(2) { height: 68%; animation-delay: -.2s; }
.now-signal span:nth-child(3) { height: 42%; animation-delay: -.4s; }
.now-signal span:nth-child(4) { height: 88%; animation-delay: -.6s; }
.now-signal span:nth-child(5) { height: 56%; animation-delay: -.3s; }
.now-signal span:nth-child(6) { height: 74%; animation-delay: -.5s; }
.now-signal span:nth-child(7) { height: 34%; animation-delay: -.1s; }
@keyframes bars { to { height: 15%; opacity: .35; } }
.story-controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--ink); }
.story-controls button { width: 46px; height: 46px; border: 2px solid var(--ink); color: var(--ink); background: transparent; font-size: 20px; transition: background .2s; }
.story-controls button:hover { background: var(--lime); }
.story-controls p { margin: 0; font: 900 10px/1 monospace; }
.story-progress { height: 4px; background: rgba(24,32,22,.18); overflow: hidden; }
.story-progress i { display: block; width: 25%; height: 100%; background: var(--blue); transition: width .6s; }

.lab { overflow: hidden; }
.lab::before { content: 'SIGNAL / SIGNAL / SIGNAL'; position: absolute; right: -40px; top: 340px; color: rgba(255,255,255,.035); font: 900 10vw/.8 Impact, sans-serif; transform: rotate(90deg); transform-origin: center; white-space: nowrap; }
.lab-heading { width: min(940px, 84%); }
.lab-heading h2 { font-size: clamp(66px, 9.4vw, 140px); }
.lab-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 70px; }
.tuner-card, .memory-machine, .gear-terminal { border: 1px solid rgba(255,255,255,.32); background: #252a20; box-shadow: 10px 10px 0 #10140e; }
.tuner-card { min-height: 470px; padding: 22px; }
.card-label, .machine-label { display: flex; justify-content: space-between; margin: 0 0 18px; font: 900 8px/1 monospace; letter-spacing: .12em; }
.card-label i { color: var(--lime); font-style: normal; }
#waveCanvas { width: 100%; height: 240px; display: block; background: #121610; border: 1px solid rgba(184,255,57,.22); }
.frequency-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin-top: 15px; font: 800 9px/1 monospace; }
.frequency-row span:last-child { text-align: right; }
.frequency-row strong { font: 900 18px/1 Impact, sans-serif; letter-spacing: .03em; }
.frequency-row strong b { color: var(--lime); font-size: 34px; }
input[type="range"] { width: 100%; height: 4px; margin: 19px 0 26px; border: 0; outline: none; background: linear-gradient(90deg, var(--lime) var(--freq,55.6%), rgba(255,255,255,.18) var(--freq,55.6%)); appearance: none; }
input[type="range"]::-webkit-slider-thumb { width: 24px; height: 34px; border: 2px solid var(--ink); border-radius: 0; background: var(--peach); box-shadow: 3px 3px 0 var(--blue); appearance: none; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 34px; border: 2px solid var(--ink); border-radius: 0; background: var(--peach); box-shadow: 3px 3px 0 var(--blue); }
.tuner-actions { display: flex; align-items: center; gap: 20px; }
.scan-button, .memory-button { min-height: 50px; padding: 0 17px; border: 2px solid var(--ink); color: var(--ink); background: var(--lime); box-shadow: 4px 4px 0 var(--blue); font: 900 10px/1 monospace; letter-spacing: .07em; }
.scan-button span { margin-left: 30px; font-size: 18px; }
.tuner-actions p { flex: 1; margin: 0; font: 700 10px/1.4 monospace; opacity: .76; }
.tuner-card.scanning canvas { animation: scanning .3s steps(2) infinite; }
@keyframes scanning { 50% { filter: brightness(2); } }
.memory-machine { position: relative; min-height: 470px; padding: 22px; overflow: hidden; background: var(--peach); color: var(--ink); }
.memory-machine::before { content: ''; position: absolute; inset: 50px 18px 18px; border: 2px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(24,32,22,.06) 12px 13px); }
.memory-ticket { position: relative; z-index: 1; min-height: 235px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px 24px; background: var(--paper-light); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(24,32,22,.3); transform: rotate(-1.2deg); transition: transform .35s, opacity .25s; }
.memory-ticket.dispense { opacity: 0; transform: translateY(70px) rotate(4deg); }
.memory-ticket small, .memory-ticket span { font: 900 8px/1 monospace; letter-spacing: .1em; }
.memory-ticket p { margin: 24px 0; font: 700 21px/1.28 Georgia, serif; }
.memory-button { position: relative; z-index: 1; width: 100%; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--lime); }
.machine-slots { position: absolute; bottom: 7px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.machine-slots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.gear-terminal { grid-column: 1 / -1; padding: 22px; }
.gear-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.gear-buttons button { min-height: 150px; display: grid; grid-template-rows: 1fr auto auto; place-items: start; padding: 17px; border: 1px solid rgba(255,255,255,.24); color: var(--cream); background: #171b15; text-align: left; font: 900 17px/1 Impact, sans-serif; transition: color .2s, background .2s, transform .2s; }
.gear-buttons button:hover, .gear-buttons button.active { color: var(--ink); background: var(--lime); transform: translateY(-5px); }
.gear-buttons span { align-self: center; font-size: 38px; }
.gear-buttons small { margin-top: 7px; font: 800 7px/1 monospace; letter-spacing: .12em; opacity: .65; }
.gear-terminal output { display: block; margin-top: 15px; padding: 11px; color: var(--lime); background: #0f120e; font: 800 9px/1.3 monospace; letter-spacing: .07em; }

.route { min-height: 1260px; overflow: hidden; }
.route-heading { position: relative; z-index: 4; }
.orbit-stage { position: relative; width: min(900px, 88vw); height: min(900px, 88vw); min-height: 700px; margin: 70px auto 0; --orbit: min(720px, 72vw); }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 2px solid var(--ink); border-radius: 50%; transform: translate(-50%,-50%) rotate(var(--route-turn)); transition: transform 1s cubic-bezier(.76,0,.24,1); }
.orbit-ring.outer { width: var(--orbit); height: var(--orbit); border-style: dashed; }
.orbit-ring.inner { width: calc(var(--orbit) * .68); height: calc(var(--orbit) * .68); border-color: rgba(24,32,22,.24); }
.orbit-ring.inner::before, .orbit-ring.inner::after { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.orbit-ring.inner::after { top: auto; bottom: -6px; background: var(--peach); }
.orbit-path { position: absolute; inset: 50%; transform: rotate(var(--route-turn)); transition: transform 1s cubic-bezier(.76,0,.24,1); }
.orbit-path i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); transform: rotate(calc(var(--i) * 45deg)) translateX(calc(var(--orbit) * .5)); }
.orbit-path i:nth-child(1) { --i: 0; } .orbit-path i:nth-child(2) { --i: 1; } .orbit-path i:nth-child(3) { --i: 2; } .orbit-path i:nth-child(4) { --i: 3; } .orbit-path i:nth-child(5) { --i: 4; } .orbit-path i:nth-child(6) { --i: 5; } .orbit-path i:nth-child(7) { --i: 6; } .orbit-path i:nth-child(8) { --i: 7; }
.orbit-node { position: absolute; z-index: 5; width: 160px; min-height: 62px; padding: 10px; border: 2px solid var(--ink); color: var(--ink); background: var(--paper-light); box-shadow: 5px 5px 0 var(--ink); text-align: left; transition: background .2s, color .2s, transform .3s; }
.orbit-node:hover, .orbit-node.active { color: var(--ink); background: var(--lime); transform: rotate(-2deg) scale(1.06); }
.orbit-node span, .orbit-node b { display: block; }
.orbit-node span { color: var(--blue); font: 900 11px/1 monospace; }
.orbit-node b { margin-top: 7px; font: 900 10px/1.15 monospace; }
.orbit-node.n1 { left: 50%; top: 3%; transform: translateX(-50%); }
.orbit-node.n1:hover, .orbit-node.n1.active { transform: translateX(-50%) rotate(-2deg) scale(1.06); }
.orbit-node.n2 { right: 2%; top: 47%; }
.orbit-node.n3 { left: 50%; bottom: 2%; transform: translateX(-50%); }
.orbit-node.n3:hover, .orbit-node.n3.active { transform: translateX(-50%) rotate(-2deg) scale(1.06); }
.orbit-node.n4 { left: 2%; top: 47%; }
.orbit-core { position: absolute; z-index: 4; left: 50%; top: 50%; width: calc(var(--orbit) * .38); height: calc(var(--orbit) * .38); min-width: 240px; min-height: 240px; border: 7px solid var(--blue); border-radius: 50%; padding: 0; overflow: hidden; background: var(--ink); transform: translate(-50%,-50%); box-shadow: 0 0 0 12px var(--lime), 0 0 0 14px var(--ink); }
.orbit-core img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, filter .7s; }
.orbit-core:hover img { transform: scale(1.13) rotate(3deg); filter: saturate(1.3); }
.orbit-core span { position: absolute; inset: auto 0 19px; margin: auto; color: var(--ink); background: var(--lime); padding: 8px; font: 900 9px/1.1 monospace; }
.route-card { position: absolute; z-index: 8; right: -7%; bottom: -14%; width: min(390px, 46vw); padding: 22px; border: 2px solid var(--ink); color: var(--cream); background: var(--ink); box-shadow: 10px 10px 0 var(--peach); transform: rotate(2deg); }
.route-card > p:first-child { margin: 0 0 12px; color: var(--lime); font: 900 8px/1 monospace; letter-spacing: .1em; }
.route-card h3 { margin: 0; font: 900 35px/.85 Impact, sans-serif; letter-spacing: -.02em; }
.route-card > p:not(:first-child) { font: 700 11px/1.45 monospace; opacity: .8; }
.route-card > div { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.route-card > div span { font: 900 10px/1 monospace; }
.route-card > div i { flex: 1; height: 5px; background: rgba(255,255,255,.15); }
.route-card > div b { display: block; width: 17%; height: 100%; background: var(--lime); transition: width .7s; }

.finale { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 100px 24px; overflow: hidden; isolation: isolate; }
.finale > img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.74) brightness(.56); transform: scale(1.04); }
.finale::after { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 55% 45%, transparent, rgba(12,16,10,.75) 70%); }
.finale-copy { width: min(1100px, 100%); text-align: center; }
.finale-copy .eyebrow { justify-content: center; }
.finale h2 { font-size: clamp(68px, 10vw, 155px); }
.finale-copy > p:not(.eyebrow) { width: min(560px, 92%); margin: 26px auto; font: 700 14px/1.45 monospace; }
.finale-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.big-buy, .big-x { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 19px; border: 2px solid var(--ink); font: 900 11px/1 monospace; box-shadow: 5px 5px 0 var(--blue); }
.big-buy { color: var(--ink); background: var(--lime); }
.big-x { border-color: var(--cream); background: rgba(24,32,22,.55); box-shadow: 5px 5px 0 var(--peach); }
.contract { width: min(620px, 100%); min-height: 43px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 30px auto 0; padding: 0 12px; border: 1px dashed rgba(255,255,255,.48); color: var(--cream); background: rgba(10,13,9,.5); text-align: left; }
.contract span, .contract i { font: 900 8px/1 monospace; font-style: normal; }
.contract span { color: var(--lime); }
.contract b { overflow: hidden; font: 700 9px/1 monospace; text-overflow: ellipsis; }
.final-whisper { position: absolute; left: 50%; bottom: 25px; width: min(620px, 88%); margin: 0; text-align: center; font: 700 8px/1.3 monospace; opacity: .55; transform: translateX(-50%); }
footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 25px; color: var(--ink); background: var(--peach); border-top: 2px solid var(--ink); font: 900 8px/1.2 monospace; letter-spacing: .07em; }

.toast { position: fixed; z-index: 950; left: 50%; bottom: 24px; padding: 12px 18px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--blue); font: 900 9px/1 monospace; letter-spacing: .1em; opacity: 0; transform: translate(-50%,20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.secret { position: fixed; z-index: 900; inset: 0; display: grid; place-content: center; padding: 24px; color: var(--ink); text-align: center; background: var(--lime); opacity: 0; visibility: hidden; clip-path: circle(0 at 50% 50%); transition: clip-path .8s cubic-bezier(.76,0,.24,1), opacity .2s, visibility .8s; }
.secret.open { opacity: 1; visibility: visible; clip-path: circle(80% at 50% 50%); }
.secret button { position: absolute; right: 25px; top: 20px; border: 0; color: var(--ink); background: transparent; font-size: 52px; }
.secret p { font: 900 9px/1 monospace; letter-spacing: .14em; }
.secret h2 { margin: 16px 0; font: 900 clamp(70px, 11vw, 170px)/.72 Impact, sans-serif; letter-spacing: -.06em; }
.secret h2 em { color: var(--blue); }
.secret span { font: 800 12px/1.4 monospace; }
.spark { position: absolute; z-index: 3; width: 10px; height: 18px; pointer-events: none; animation: scatter 1.5s cubic-bezier(.15,.65,.25,1) forwards; }
@keyframes scatter { to { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); } }
.reveal { opacity: 0; transform: translateY(35px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .on-air { display: none; }
  .hero-copy { width: min(700px, 84vw); }
  .note-one, .note-two { display: none; }
  .story-card { grid-template-columns: 1fr; min-height: 0; }
  .story-image { height: 480px; }
  .world-card, .gear-card { grid-template-columns: 1fr; min-height: 780px; }
  .big-code { justify-self: start; }
  .lab-grid { grid-template-columns: 1fr; }
  .gear-terminal { grid-column: auto; }
  .route { min-height: 1100px; }
  .orbit-stage { --orbit: min(660px, 74vw); }
  .route-card { right: 0; bottom: -12%; }
}

@media (max-width: 700px) {
  body, button, a { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .site-header { height: 60px; padding: 0 13px; }
  .brand small, .sound-toggle, .x-button { display: none !important; }
  .brand strong { font-size: 17px; }
  .header-actions a { min-height: 34px; padding: 0 12px; }
  .hero { min-height: 850px; }
  .hero-world { inset: 0; width: 100%; height: 58%; object-position: 57% center; }
  .hero-shadow { background: linear-gradient(0deg, var(--ink) 36%, rgba(24,32,22,.12) 80%); }
  .hero-copy { left: 18px; right: 18px; top: auto; bottom: 78px; width: auto; transform: none; }
  .eyebrow { align-items: flex-start; font-size: 7px; }
  .hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-intro { width: 94%; margin: 17px 0; font-size: 12px; }
  .hero-cta { align-items: stretch; }
  .enter-button, .visor-button { flex: 1 1 100%; min-height: 46px; }
  .hunt-panel { top: 74px; right: 12px; transform: scale(.84); transform-origin: top right; }
  .hero-stamp { display: none; }
  .artifact { width: 42px; height: 42px; }
  .a-phone { right: 14%; top: 23%; } .a-cross { left: 8%; top: 17%; } .a-headphones { right: 5%; bottom: 44%; } .a-hat { left: 8%; bottom: 42%; } .a-tape { right: 36%; bottom: 38%; }
  .scroll-cue { bottom: 20px; }
  .origin, .lab, .route { padding: 90px 18px; }
  .section-index { top: 24px; right: 18px; }
  .section-index span { font-size: 38px; }
  .origin-heading, .route-heading, .lab-heading { width: 100%; }
  .origin-heading h2, .route-heading h2, .lab-heading h2 { font-size: clamp(58px, 17vw, 92px); }
  .story-console, .lab-grid { margin-top: 40px; }
  .story-card { gap: 24px; padding: 28px 0; align-content: start; }
  .story-image { height: 360px; }
  .story-copy h3 { font-size: 49px; }
  .story-copy > p:not(.story-number) { font-size: 14px; }
  .world-card { padding: 28px 21px; min-height: 660px; }
  .big-code { font-size: 130px; }
  .gear-card { min-height: 880px; }
  .gear-grid { grid-template-columns: 1fr; }
  .gear-grid button { min-height: 115px; }
  .story-controls { grid-template-columns: auto auto 1fr auto; gap: 10px; }
  .tuner-card, .memory-machine, .gear-terminal { padding: 15px; }
  #waveCanvas { height: 190px; }
  .tuner-actions { align-items: stretch; flex-direction: column; }
  .gear-buttons { grid-template-columns: 1fr 1fr; }
  .gear-buttons button { min-height: 125px; }
  .route { min-height: 1000px; }
  .orbit-stage { width: 100%; height: 680px; min-height: 680px; --orbit: 440px; margin-top: 25px; transform: scale(.9); }
  .orbit-node { width: 125px; min-height: 55px; padding: 8px; }
  .orbit-node.n2 { right: -6%; } .orbit-node.n4 { left: -6%; }
  .orbit-core { min-width: 180px; min-height: 180px; }
  .route-card { right: 50%; bottom: -8%; width: 310px; transform: translateX(50%) rotate(2deg); }
  .finale h2 { font-size: clamp(64px, 18vw, 95px); }
  .finale-actions a { width: 100%; }
  footer { min-height: 96px; flex-direction: column; justify-content: center; text-align: center; }
  footer p { margin: 0; }
}

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