:root {
  --ink: #eaf7ff;
  --muted: #91a5bc;
  --blue: #00a8ff;
  --blue-2: #0766ff;
  --red: #ec153f;
  --gold: #f2b75c;
  --navy: #06122b;
  --deep: #02060f;
  --panel: rgba(6, 18, 43, .72);
  --line: rgba(120, 203, 255, .22);
  --scene-index: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; margin: 0; background: var(--deep); }

body {
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 72% 15%, rgba(0, 153, 255, .12), transparent 28%),
    linear-gradient(120deg, #02060f 0%, #071a3d 48%, #030711 100%);
  z-index: -3;
}

.ambient, .grain, .scanlines { position: fixed; inset: 0; pointer-events: none; }
.ambient { z-index: 50; overflow: hidden; }
.grain { opacity: .14; 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='.93' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); }
.scanlines { opacity: .1; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(31, 160, 255, .25) 5px); }
.cursor-aura { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 168, 255, .13), transparent 64%); transform: translate(-50%, -50%); left: 50%; top: 50%; transition: width .3s, height .3s; }
.scanner-on .cursor-aura { width: 520px; height: 520px; border: 1px solid rgba(0, 222, 255, .28); background: radial-gradient(circle, rgba(0, 168, 255, .11) 0 22%, transparent 23% 49%, rgba(0, 168, 255, .08) 50% 50.5%, transparent 51%); }

.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 43%, #103c78 0, #06142d 30%, #02050d 72%);
  transition: opacity .9s ease, visibility .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.boot::before, .boot::after { content: ""; position: absolute; inset: 4%; border: 1px solid rgba(70, 186, 255, .17); clip-path: polygon(0 0, 22% 0, 22% 1px, 78% 1px, 78% 0, 100% 0, 100% 100%, 82% 100%, 82% calc(100% - 1px), 18% calc(100% - 1px), 18% 100%, 0 100%); }
.boot::after { inset: 7%; border-color: rgba(230, 21, 63, .14); }
.boot.is-gone { opacity: 0; visibility: hidden; transform: scale(1.08); }
.boot-noise { position: absolute; inset: 0; opacity: .18; background: linear-gradient(90deg, transparent 48%, rgba(0,168,255,.2) 49%, transparent 51%); animation: bootScan 4s linear infinite; }
@keyframes bootScan { to { transform: translateX(30%); } }
.boot-mark { position: relative; width: 110px; height: 110px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(0, 190, 255, .45); transform: rotate(45deg); box-shadow: 0 0 45px rgba(0, 127, 255, .22); }
.boot-mark::before, .boot-mark::after { content: ""; position: absolute; top: -21px; width: 38px; height: 40px; border: 1px solid rgba(0, 190, 255, .45); border-bottom: 0; background: #07172f; }
.boot-mark::before { left: 4px; transform: skew(-18deg); }
.boot-mark::after { right: 4px; transform: skew(18deg); }
.boot-mark b { transform: rotate(-45deg); font: 900 30px/1 "Arial Narrow", sans-serif; letter-spacing: -2px; color: white; text-shadow: 0 0 14px var(--blue); }
.boot-mark span { position: absolute; inset: 10px; border: 1px solid rgba(234, 21, 63, .5); }
.boot h1 { max-width: 950px; margin: 8px 0 16px; font: 900 clamp(2.5rem, 6vw, 6.4rem)/.88 "Arial Narrow", Impact, sans-serif; letter-spacing: -.06em; text-transform: uppercase; }
.boot-copy { max-width: 560px; color: #9eb5cd; font-size: 1rem; line-height: 1.6; }
.boot-hint { margin-top: 16px; color: #668099; font: 700 .7rem/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 7, 18, .92), rgba(2, 7, 18, .5));
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.brand-ears { position: relative; display: block; width: 40px; height: 40px; border: 2px solid var(--blue); transform: rotate(45deg); box-shadow: inset 0 0 15px rgba(0, 168, 255, .18), 0 0 18px rgba(0, 168, 255, .18); }
.brand-ears::before, .brand-ears::after { content: ""; position: absolute; width: 13px; height: 17px; top: -9px; border: 2px solid var(--red); border-bottom: 0; background: var(--deep); }
.brand-ears::before { left: -2px; }
.brand-ears::after { right: -2px; }
.brand b, .brand small { display: block; }
.brand b { font: 900 .82rem/1 "Arial Narrow", sans-serif; letter-spacing: .18em; }
.brand small { margin-top: 5px; color: var(--blue); font: 700 .58rem/1 ui-monospace, monospace; letter-spacing: .16em; }
.statusline { margin-right: auto; display: flex; gap: 10px; align-items: center; color: #7c96b0; font: 700 .66rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .buy-button, .primary, .ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(128, 204, 255, .28);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.icon-button { min-width: 44px; padding: 0 12px; background: rgba(5, 23, 52, .72); color: #a9bed2; font: 800 .68rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: white; border-color: var(--blue); background: rgba(0, 122, 255, .15); box-shadow: inset 0 0 24px rgba(0, 168, 255, .12); }
.scan-icon { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0,168,255,.08); }
.buy-button { padding: 0 19px; border-color: var(--red); background: var(--red); color: white; font: 900 .76rem/1 ui-monospace, monospace; letter-spacing: .12em; box-shadow: 0 8px 35px rgba(236, 21, 63, .25); }
.buy-button span { color: #ffd1da; }
.buy-button:hover { background: #ff2853; box-shadow: 0 9px 40px rgba(236, 21, 63, .45); }

.experience { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.scene {
  position: absolute;
  inset: 0;
  padding: 108px 110px 95px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(7%, 0, 0) scale(.98);
  filter: blur(9px);
  transition: opacity .7s ease, visibility .7s, transform .85s cubic-bezier(.16,.84,.2,1), filter .65s ease;
}
.scene.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0,0,0) scale(1); filter: none; }
.scene.was-active { transform: translate3d(-6%, 0, 0) scale(.97); }
.eyebrow { margin: 0 0 15px; color: var(--blue); font: 800 .72rem/1.3 ui-monospace, SFMono-Regular, monospace; letter-spacing: .2em; text-transform: uppercase; }
.primary, .ghost { padding: 0 20px; background: var(--blue); border-color: var(--blue); color: #001123; font: 900 .76rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.primary:hover { background: #5fd3ff; box-shadow: 0 0 30px rgba(0, 168, 255, .35); }
.ghost { background: rgba(3, 14, 33, .5); color: white; border-color: rgba(151, 211, 255, .36); }
.ghost:hover { border-color: white; background: rgba(255,255,255,.08); }

.scene-hero { background: #020914; }
.world-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,6,14,.74) 0%, rgba(1,6,14,.25) 46%, rgba(1,6,14,.16)), url('assets/csi-night-city.png') center/cover no-repeat; transform: scale(1.08); transition: transform .2s ease-out; }
.scene-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(2,6,16,.75), transparent 48%, rgba(2,6,16,.2)), linear-gradient(0deg, #020711 0%, transparent 25%); }
.red-sweep { position: absolute; right: -14vw; bottom: -14vh; width: 73vw; height: 42vh; border-radius: 50%; background: radial-gradient(ellipse, rgba(238, 15, 56, .25), transparent 64%); filter: blur(15px); transform: rotate(-10deg); animation: capeBreath 5s ease-in-out infinite; }
@keyframes capeBreath { 50% { transform: rotate(-7deg) scale(1.08); opacity: .7; } }
.hero-copy { position: relative; z-index: 5; width: min(620px, 47vw); margin-top: 10vh; }
.hero-copy h2, .scene h2 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; text-transform: uppercase; }
.hero-copy h2 { font-size: clamp(3.6rem, 7.2vw, 8.6rem); line-height: .76; letter-spacing: -.065em; text-shadow: 0 10px 50px #01050e; }
.hero-copy h2 span { display: inline-block; color: transparent; -webkit-text-stroke: 1px rgba(222, 242, 255, .67); }
.hero-lede { max-width: 560px; margin: 28px 0; color: #b4c7d9; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sync-meter { margin-top: 28px; width: min(470px, 100%); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: #7890a9; font: 700 .65rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.sync-meter > div { height: 3px; background: rgba(135,194,229,.16); overflow: hidden; }
.sync-meter i { display: block; width: 7%; height: 100%; background: linear-gradient(90deg, var(--blue), #87edff); box-shadow: 0 0 12px var(--blue); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.sync-meter b { color: #d7f3ff; }
.hero-portrait { position: absolute; z-index: 4; right: 7vw; bottom: -4vh; width: min(48vw, 720px); aspect-ratio: 1/1; transition: transform .2s ease-out; }
.hero-portrait::before { content: ""; position: absolute; inset: -1px; clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 83%, 83% 100%, 17% 100%, 0 83%, 0 15%); background: linear-gradient(135deg, var(--gold), var(--blue) 34%, transparent 49%, var(--red) 73%, var(--gold)); filter: drop-shadow(0 0 25px rgba(0, 119, 255, .35)); }
.hero-portrait img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 83%, 83% 100%, 17% 100%, 0 83%, 0 15%); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 83%, 83% 100%, 17% 100%, 0 83%, 0 15%); box-shadow: inset 0 0 90px rgba(1,6,16,.75); pointer-events: none; }
.portrait-halo { position: absolute; inset: -13%; border: 1px solid rgba(0, 168, 255, .25); border-radius: 50%; animation: haloSpin 15s linear infinite; }
.portrait-halo::before { content: ""; position: absolute; width: 13px; height: 13px; top: 13%; left: 8%; background: var(--red); box-shadow: 0 0 18px var(--red); }
@keyframes haloSpin { to { transform: rotate(360deg); } }
.portrait-tag { position: absolute; z-index: 3; right: -2px; top: 15%; padding: 9px 12px; border-left: 2px solid var(--red); background: rgba(2,7,17,.8); backdrop-filter: blur(6px); }
.portrait-tag small, .portrait-tag b { display: block; }
.portrait-tag small { color: #6f8297; font: 700 .55rem/1 ui-monospace, monospace; letter-spacing: .14em; }
.portrait-tag b { margin-top: 4px; font: 800 .76rem/1 ui-monospace, monospace; }
.core-button { position: absolute; z-index: 5; left: 50%; top: 69%; width: 74px; height: 74px; margin: -37px; border: 1px solid rgba(0, 205, 255, .7); border-radius: 50%; background: radial-gradient(circle, rgba(0, 222, 255, .35), transparent 52%); cursor: pointer; opacity: .28; transition: opacity .2s, transform .2s; }
.core-button:hover, .core-button.is-pulsing { opacity: 1; transform: scale(1.16); }
.core-button span { position: absolute; inset: 26px; border-radius: 50%; background: #d9fbff; box-shadow: 0 0 24px 8px #00b7ff; }
.core-button.is-pulsing::after { content: ""; position: absolute; inset: -25px; border: 1px solid var(--blue); border-radius: 50%; animation: corePulse .8s ease-out; }
@keyframes corePulse { to { transform: scale(2.3); opacity: 0; } }

.collectibles { position: absolute; z-index: 8; inset: 0; pointer-events: none; }
.prop { position: absolute; width: 130px; height: 110px; padding: 0; border: 0; background-color: transparent; background-image: url('assets/csi-props-clean.png'); background-repeat: no-repeat; background-size: 400% 200%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); pointer-events: auto; cursor: crosshair; animation: propFloat 5s ease-in-out infinite; transition: filter .3s, opacity .4s, transform .4s; }
.prop:hover { filter: drop-shadow(0 0 22px rgba(0, 183, 255, .65)); }
.prop.is-collected { opacity: 0; transform: scale(.2) rotate(20deg); pointer-events: none; }
.prop-phone { background-position: 0 0; left: 50%; top: 17%; animation-delay: -.5s; }
.prop-headphones { background-position: 33.333% 0; right: 2%; top: 21%; animation-delay: -2s; }
.prop-beanie { background-position: 66.666% 0; left: 4%; bottom: 13%; animation-delay: -3.2s; }
.prop-cross { background-position: 100% 0; right: 43%; bottom: 8%; animation-delay: -1.3s; }
@keyframes propFloat { 50% { transform: translateY(-16px) rotate(2deg); } }
.collect-status { position: absolute; z-index: 7; right: 27px; bottom: 85px; padding: 8px 10px; color: #879cb1; background: rgba(2,7,16,.62); font: 700 .58rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.collect-status span { color: var(--blue); }

.edge-next { position: absolute; z-index: 15; right: 22px; bottom: 25px; display: flex; align-items: center; gap: 16px; border: 0; background: none; cursor: pointer; }
.edge-next span { color: #72879e; font: 700 .6rem/1 ui-monospace, monospace; letter-spacing: .16em; }
.edge-next b { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--blue); background: rgba(0,168,255,.08); font: 800 .75rem/1 ui-monospace, monospace; }
.edge-next:hover b { background: var(--blue); color: #001329; }

.scan-mark { position: absolute; z-index: 20; width: 34px; height: 34px; border: 1px solid rgba(0,168,255,.2); border-radius: 50%; background: rgba(1,8,18,.42); color: transparent; opacity: 0; cursor: crosshair; transition: opacity .3s, color .3s, box-shadow .3s; }
.scanner-on .scan-mark { opacity: .9; color: var(--blue); box-shadow: 0 0 20px rgba(0,168,255,.35); animation: markPulse 1.4s infinite; }
@keyframes markPulse { 50% { transform: scale(1.17); } }
.mark-one { left: 37%; top: 33%; }
.mark-two { right: 19%; top: 19%; }
.mark-three { left: 47%; bottom: 15%; }
.mark-four { right: 5%; top: 28%; }

.scene-origin { background: radial-gradient(circle at 23% 22%, rgba(0,104,255,.18), transparent 27%), linear-gradient(135deg, #020713, #07182f 55%, #030711); }
.scene-origin::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(50,140,220,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(50,140,220,.1) 1px, transparent 1px); background-size: 42px 42px; transform: perspective(600px) rotateX(60deg) scale(1.6); transform-origin: bottom; }
.chapter-number { position: absolute; left: 4vw; top: 10vh; color: rgba(74,156,224,.07); font: 900 32vw/.8 Impact, sans-serif; }
.origin-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; height: 70%; }
.origin-title-block h2 { font-size: clamp(2.7rem, 5vw, 6.5rem); line-height: .92; letter-spacing: -.05em; }
.origin-title-block h2 em { color: var(--red); font-style: normal; }
.origin-title-block > p:last-child { max-width: 630px; color: #a6b9cb; line-height: 1.7; font-size: clamp(.95rem, 1.1vw, 1.12rem); }
.story-panel { min-height: 430px; display: grid; grid-template-columns: .95fr 1.05fr; border: 1px solid var(--line); background: rgba(6,18,43,.64); box-shadow: 0 30px 90px rgba(0,0,0,.35); overflow: hidden; }
.story-visual { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 44%, #1256a3, #030b1b 57%); }
.story-visual::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 45%, transparent 0 31px, rgba(0,168,255,.1) 32px 33px); animation: radar 5s linear infinite; }
@keyframes radar { to { transform: scale(1.25); } }
.signal-dog { position: absolute; left: 50%; top: 48%; width: 140px; height: 170px; transform: translate(-50%,-50%); border: 2px solid rgba(53,194,255,.65); clip-path: polygon(19% 22%, 3% 0, 37% 13%, 50% 8%, 63% 13%, 97% 0, 81% 24%, 88% 52%, 74% 78%, 51% 100%, 27% 78%, 12% 52%); box-shadow: inset 0 0 60px rgba(0,168,255,.22); }
.signal-dog::before, .signal-dog::after { content: ""; position: absolute; top: 67px; width: 25px; height: 8px; border-radius: 50%; background: #baf6ff; box-shadow: 0 0 18px 6px #00a8ff; }
.signal-dog::before { left: 24px; }.signal-dog::after { right: 24px; }
.story-wave { position: absolute; left: 10%; right: 10%; bottom: 10%; height: 40px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60l12-20 15 40 20-33 15 26 12-13h64l12-28 17 55 20-44 20 34 12-17h63l10-15 16 29 13-20 13 6h90' fill='none' stroke='%2300a8ff' stroke-width='3'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.story-copy { padding: clamp(25px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.story-copy p { color: #a9bdcf; line-height: 1.72; }
.story-copy strong { color: white; }
.inline-link { margin-top: 20px; padding: 0 0 7px; align-self: flex-start; border: 0; border-bottom: 1px solid var(--red); background: none; color: white; font: 800 .7rem/1.4 ui-monospace, monospace; letter-spacing: .1em; cursor: pointer; }
.reason-stack { position: absolute; z-index: 4; left: 7vw; right: 7vw; bottom: 55px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reason-card { min-height: 88px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 12px; padding: 16px; text-align: left; border: 1px solid var(--line); background: rgba(3,13,29,.8); cursor: pointer; }
.reason-card span { grid-row: span 2; color: var(--blue); font: 800 .65rem/1 ui-monospace, monospace; }
.reason-card b { font: 900 .78rem/1 "Arial Narrow", sans-serif; letter-spacing: .13em; }
.reason-card small { color: #7890a6; line-height: 1.35; }
.reason-card:hover, .reason-card.is-open { border-color: var(--red); background: rgba(45,7,19,.78); }
.reason-detail { position: absolute; z-index: 5; left: 50%; bottom: 155px; width: min(740px, 70vw); transform: translateX(-50%); padding: 13px 18px; border-left: 2px solid var(--red); background: rgba(2,8,18,.91); color: #b8cbdc; line-height: 1.45; opacity: 0; transition: opacity .25s, transform .25s; }
.reason-detail.show { opacity: 1; transform: translate(-50%, -8px); }

.scene-archive { background: linear-gradient(115deg, #030710, #071a34 58%, #10050a); }
.scene-archive::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 77% 44%, rgba(236,21,63,.16), transparent 30%); }
.archive-heading { position: relative; z-index: 2; width: 40%; }
.archive-heading h2 { font-size: clamp(2.8rem, 5vw, 6rem); line-height: .9; letter-spacing: -.045em; }
.archive-heading > p:last-child { color: #8fa5ba; line-height: 1.55; max-width: 520px; }
.memory-deck { position: absolute; z-index: 4; left: 7vw; bottom: 11vh; width: 34%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.memory-card { min-height: 110px; padding: 17px; text-align: left; border: 1px solid var(--line); background: rgba(4,14,31,.74); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.memory-card span, .memory-card b, .memory-card small { display: block; }
.memory-card span { color: #688096; font: 700 .58rem/1 ui-monospace, monospace; }
.memory-card b { margin: 14px 0 6px; font: 900 .9rem/1 "Arial Narrow", sans-serif; letter-spacing: .1em; }
.memory-card small { color: #8298ac; }
.memory-card:hover { transform: translateY(-3px); }
.memory-card.is-selected { border-color: var(--blue); background: linear-gradient(135deg, rgba(0,121,255,.18), rgba(4,14,31,.78)); box-shadow: inset 0 -2px var(--blue); }
.projector { position: absolute; z-index: 3; right: 6vw; top: 18vh; width: 50vw; height: 62vh; display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid rgba(108,197,255,.3); background: rgba(2,8,18,.65); box-shadow: 0 40px 100px rgba(0,0,0,.45); overflow: hidden; }
.projector-image { position: relative; overflow: hidden; }
.projector-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.12); transition: filter .45s, transform .6s; }
.projector-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, rgba(2,8,18,.85)), repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,168,255,.08) 6px); }
.projection-slice { position: absolute; z-index: 3; left: 0; right: 0; top: 40%; height: 2px; background: #b8f5ff; box-shadow: 0 0 18px 5px var(--blue); animation: slice 4.5s linear infinite; }
@keyframes slice { 0% { top: -3%; } 100% { top: 103%; } }
.projector-copy { padding: 42px 32px; display: flex; flex-direction: column; justify-content: center; }
.projector-copy > span { color: var(--red); font: 800 .6rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.projector-copy h3 { margin: 20px 0; font: 900 clamp(1.8rem, 2.8vw, 3.8rem)/.96 "Arial Narrow", Impact, sans-serif; text-transform: uppercase; }
.projector-copy p { color: #9eb3c7; line-height: 1.65; }
.memory-progress { height: 3px; margin-top: 20px; background: rgba(120,190,230,.16); }
.memory-progress i { display: block; width: 25%; height: 100%; background: var(--red); transition: width .35s; }

.scene-roadmap { background: radial-gradient(circle at 58% 50%, #092e65 0, #061327 28%, #02060e 63%); }
.scene-roadmap::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(circle, rgba(85,188,255,.75) 0 1px, transparent 1.5px); background-size: 44px 44px; mask-image: radial-gradient(circle, black, transparent 80%); }
.roadmap-copy { position: relative; z-index: 4; width: 31%; margin-top: 7vh; }
.roadmap-copy h2 { font-size: clamp(3rem, 5.7vw, 7rem); line-height: .82; letter-spacing: -.05em; }
.roadmap-copy > p:last-child { color: #93aabe; line-height: 1.65; }
.orbit-wrap { position: absolute; z-index: 3; width: min(69vw, 850px); aspect-ratio: 1; right: 3vw; top: 52%; transform: translateY(-48%); touch-action: none; cursor: grab; }
.orbit-wrap:active { cursor: grabbing; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(68,181,255,.3); }
.ring-a { inset: 9%; box-shadow: inset 0 0 50px rgba(0,113,255,.08), 0 0 50px rgba(0,113,255,.07); }
.ring-b { inset: 18%; border-style: dashed; animation: haloSpin 28s linear infinite reverse; }
.ring-a::before, .ring-a::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border-top: 3px solid var(--red); border-right: 3px solid transparent; transform: rotate(38deg); opacity: .65; }
.ring-a::after { inset: 17%; border-top-color: var(--gold); transform: rotate(180deg); }
.orbit-core { position: absolute; z-index: 5; left: 50%; top: 50%; width: 35%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(0,183,255,.55); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; background: radial-gradient(circle, rgba(0,124,255,.24), rgba(3,11,27,.96) 64%); box-shadow: 0 0 70px rgba(0,105,255,.2); }
.orbit-core::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(0,183,255,.24); border-radius: inherit; animation: haloSpin 18s linear infinite; }
.orbit-core span, .orbit-core small { color: #718da5; font: 700 .55rem/1.4 ui-monospace, monospace; letter-spacing: .14em; }
.orbit-core b { margin: 13px 0 8px; font: 900 clamp(1rem, 1.65vw, 1.8rem)/.95 "Arial Narrow", sans-serif; letter-spacing: .05em; }
.orbit-core p { min-height: 56px; margin: 0 0 7px; color: #a7bbcd; font-size: clamp(.72rem, .85vw, .9rem); line-height: 1.45; }
.orbit-nodes { position: absolute; inset: 0; transform: rotate(var(--orbit-rotation, 0deg)); transition: transform .15s linear; }
.orbit-node { position: absolute; z-index: 6; width: 64px; height: 64px; margin: -32px; padding: 0; border: 1px solid rgba(0,168,255,.38); border-radius: 50%; background: #061630; color: white; cursor: pointer; transform: rotate(calc(-1 * var(--orbit-rotation, 0deg))); transition: transform .15s linear, border-color .2s, background .2s, box-shadow .2s; }
.orbit-node span { position: relative; z-index: 2; font: 800 .72rem/1 ui-monospace, monospace; }
.orbit-node i { position: absolute; inset: 7px; border: 1px solid rgba(102,205,255,.26); border-radius: 50%; }
.orbit-node:hover, .orbit-node.is-active { border-color: var(--red); background: #371020; box-shadow: 0 0 30px rgba(236,21,63,.35); }
.n1 { left: 50%; top: 9%; }.n2 { left: 85.5%; top: 29%; }.n3 { left: 85.5%; top: 70%; }.n4 { left: 50%; top: 91%; }.n5 { left: 14.5%; top: 70%; }.n6 { left: 14.5%; top: 29%; }
.orbit-comet { position: absolute; left: 50%; top: 50%; width: 39%; height: 2px; transform-origin: left; animation: comet 9s linear infinite; }
.orbit-comet::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 17px 5px var(--blue); }
@keyframes comet { to { transform: rotate(360deg); } }
.roadmap-legend { position: absolute; left: 7vw; bottom: 12vh; display: flex; flex-direction: column; gap: 10px; color: #6e859b; font: 700 .6rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.roadmap-legend span::before { content: "+"; margin-right: 9px; color: var(--blue); }

.scene-identity { background: linear-gradient(135deg, #02060e, #081d3d 58%, #08040b); }
.scene-identity::before { content: "CSI"; position: absolute; right: -2vw; bottom: -8vh; color: transparent; -webkit-text-stroke: 1px rgba(0,168,255,.08); font: 900 34vw/.8 Impact, sans-serif; }
.identity-copy { position: relative; z-index: 2; width: 43%; }
.identity-copy h2 { font-size: clamp(3rem, 6.4vw, 7rem); line-height: .83; letter-spacing: -.05em; }
.identity-copy > p:last-child { color: #92a9be; }
.name-machine { position: relative; z-index: 3; width: 58%; margin-top: 5vh; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.name-key { position: relative; min-height: 210px; padding: 22px 17px; border: 1px solid var(--line); background: rgba(4,14,31,.74); text-align: left; cursor: pointer; overflow: hidden; transition: transform .25s, border-color .25s, background .25s; }
.name-key::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.name-key > b { display: block; color: rgba(85,182,255,.16); font: 900 5rem/.85 Impact, sans-serif; }
.name-key > span { display: block; margin: 20px 0 12px; font: 900 .8rem/1 "Arial Narrow", sans-serif; letter-spacing: .12em; }
.name-key small { color: #7890a6; line-height: 1.45; }
.name-key:hover { transform: translateY(-6px); border-color: rgba(0,168,255,.6); }
.name-key.is-unlocked { border-color: var(--red); background: linear-gradient(145deg, rgba(83,9,29,.8), rgba(4,14,31,.8)); }
.name-key.is-unlocked::after { background: var(--red); transform: scaleX(1); }
.name-key.is-unlocked > b { color: rgba(236,21,63,.28); }
.decoded-name { position: absolute; z-index: 4; right: 7vw; top: 18vh; width: 31vw; min-height: 190px; padding: 30px; border: 1px solid rgba(0,168,255,.35); background: radial-gradient(circle at 50% 10%, rgba(0,121,255,.18), rgba(3,12,27,.93)); text-align: center; }
.decoded-name span { color: #6f899f; font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .14em; }
.decoded-name b { display: block; margin: 25px 0 12px; font: 900 clamp(2rem, 3.7vw, 4rem)/1 Impact, sans-serif; letter-spacing: .11em; }
.decoded-name p { margin: 0; color: #849bb0; }
.decoded-name.is-complete { border-color: var(--red); box-shadow: 0 0 50px rgba(236,21,63,.14); }
.decoded-name.is-complete b { color: white; text-shadow: 0 0 22px var(--blue); }
.terminal { position: absolute; z-index: 5; right: 7vw; bottom: 11vh; width: 31vw; height: 260px; border: 1px solid rgba(121,198,255,.25); background: rgba(1,7,17,.9); box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.terminal-bar { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid rgba(121,198,255,.16); color: #628098; font: 700 .58rem/1 ui-monospace, monospace; }
.terminal-bar span { margin-right: auto; }.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: #183651; }.terminal-bar i:first-of-type { background: var(--red); }
.terminal-output { height: 170px; padding: 12px 15px; overflow-y: auto; color: #84a0b6; font: .72rem/1.55 ui-monospace, monospace; }
.terminal-output p { margin: 0 0 8px; }.terminal-output b { color: var(--blue); }
.terminal form { height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 12px; border-top: 1px solid rgba(121,198,255,.16); }
.terminal label { color: var(--blue); font-family: ui-monospace, monospace; }.terminal input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font: .78rem/1 ui-monospace, monospace; }.terminal form button { border: 0; background: none; color: var(--red); font: 800 .65rem/1 ui-monospace, monospace; cursor: pointer; }
.final-actions { position: absolute; z-index: 5; left: 7vw; bottom: 8vh; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.text-button { padding: 10px; border: 0; background: none; color: #7890a6; font: 700 .65rem/1 ui-monospace, monospace; letter-spacing: .1em; cursor: pointer; }
.text-button:hover { color: white; }

.scene-nav { position: fixed; z-index: 90; left: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.scene-nav button { position: relative; width: 68px; height: 48px; padding: 0 0 0 16px; text-align: left; border: 0; border-left: 1px solid rgba(116,190,233,.22); background: none; cursor: pointer; transition: width .2s, border-color .2s; }
.scene-nav button span, .scene-nav button b { display: block; font-family: ui-monospace, monospace; }
.scene-nav button span { color: #506a82; font-size: .58rem; }.scene-nav button b { margin-top: 4px; color: transparent; font-size: .58rem; letter-spacing: .08em; transition: color .2s; }
.scene-nav button:hover, .scene-nav button.is-active { width: 88px; border-left: 3px solid var(--blue); }
.scene-nav button:hover b, .scene-nav button.is-active b { color: #cbeaff; }
.scene-nav button.is-active span { color: var(--red); }

.toast { position: fixed; z-index: 150; left: 50%; bottom: 30px; max-width: min(600px, 84vw); padding: 13px 18px; border: 1px solid var(--blue); background: rgba(2,10,24,.94); color: #c9edff; font: 700 .68rem/1.5 ui-monospace, monospace; letter-spacing: .04em; box-shadow: 0 15px 50px rgba(0,0,0,.45), 0 0 30px rgba(0,168,255,.15); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.swipe-hint { display: none; }

@media (max-width: 1100px) {
  .scene { padding: 100px 80px 86px; }
  .scene-nav { left: 12px; }
  .button-label, .desktop-only { display: none; }
  .hero-portrait { right: 2vw; width: 53vw; }
  .hero-copy { width: 48vw; }
  .projector { right: 3vw; width: 55vw; }
  .decoded-name, .terminal { right: 4vw; width: 34vw; }
}

@media (max-width: 780px) {
  body { overflow: hidden; }
  .topbar { height: 66px; padding: 10px 12px; gap: 8px; }
  .brand-ears { width: 34px; height: 34px; }.brand small, .statusline { display: none; }.brand b { font-size: .68rem; }.top-actions { margin-left: auto; }.icon-button { min-width: 38px; min-height: 38px; padding: 0 9px; }.buy-button { min-height: 38px; padding: 0 12px; }
  .scene { padding: 84px 18px 100px; overflow-y: auto; overflow-x: hidden; }
  .scene-nav { left: 0; top: auto; bottom: 0; width: 100%; height: 63px; transform: none; flex-direction: row; background: rgba(2,7,17,.94); backdrop-filter: blur(15px); border-top: 1px solid var(--line); }
  .scene-nav button { flex: 1; width: auto; height: 62px; padding: 10px 0; text-align: center; border: 0; border-top: 1px solid transparent; }.scene-nav button:hover, .scene-nav button.is-active { width: auto; border: 0; border-top: 2px solid var(--blue); }.scene-nav button b, .scene-nav button.is-active b { color: #637b91; font-size: .5rem; }.scene-nav button.is-active b { color: white; }
  .edge-next { right: 16px; bottom: 74px; }.collect-status { right: 16px; bottom: 130px; }
  .swipe-hint { display: block; position: fixed; z-index: 80; left: 18px; bottom: 73px; color: #587087; font: 700 .52rem/1 ui-monospace, monospace; letter-spacing: .08em; }.swipe-hint span { color: var(--blue); }
  .hero-copy { width: 100%; margin-top: 2vh; }.hero-copy h2 { font-size: clamp(3.4rem, 17vw, 6rem); }.hero-lede { width: 90%; font-size: .94rem; }.hero-portrait { position: relative; right: auto; bottom: auto; width: 90vw; margin: 35px auto 90px; }.prop { width: 85px; height: 72px; }.prop-phone { left: 1%; top: 40%; }.prop-headphones { right: 1%; top: 55%; }.prop-beanie { left: 2%; bottom: 16%; }.prop-cross { right: 4%; bottom: 17%; }
  .origin-grid { display: block; height: auto; }.origin-title-block h2 { font-size: 3.2rem; }.story-panel { display: block; min-height: 0; margin-top: 25px; }.story-visual { height: 320px; }.reason-stack { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr 1fr; margin: 18px 0 90px; }.reason-detail { position: fixed; bottom: 78px; width: 90vw; }.chapter-number { top: 18vh; }
  .archive-heading { width: 100%; }.archive-heading h2 { font-size: 3.2rem; }.memory-deck { position: relative; left: auto; bottom: auto; width: 100%; margin: 25px 0 15px; }.projector { position: relative; right: auto; top: auto; width: 100%; height: auto; grid-template-columns: 1fr; margin-bottom: 100px; }.projector-image { height: 65vh; }.projector-copy { padding: 30px 24px; }
  .roadmap-copy { width: 100%; margin-top: 0; }.roadmap-copy h2 { font-size: 3.4rem; }.orbit-wrap { position: relative; width: 120vw; right: 10vw; top: auto; transform: none; margin: 10px 0 130px; }.orbit-core { width: 39%; }.orbit-node { width: 52px; height: 52px; margin: -26px; }.roadmap-legend { display: none; }
  .identity-copy { width: 100%; }.identity-copy h2 { font-size: 3.4rem; }.name-machine { width: 100%; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }.name-key { min-height: 195px; }.decoded-name, .terminal { position: relative; right: auto; top: auto; bottom: auto; width: 100%; margin: 12px 0; }.final-actions { position: relative; left: auto; bottom: auto; margin: 22px 0 90px; }
}

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

@media (pointer: coarse) { .cursor-aura { display: none; } }
