:root {
  --ink: #080a0a;
  --paper: #e8e4db;
  --signal: #ff4528;
  --line: rgba(232, 228, 219, .2);
  --font-geist-mono: Consolas;
  --pointer-x: 0;
  --pointer-y: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--ink); background: var(--signal); }

main { position: relative; background: var(--ink); }
.mono { font-family: var(--font-geist-mono), Consolas, monospace; }
.frame {
  position: relative; width: 100%; min-height: 100svh; height: max(100svh, 56.25vw); max-height: 1080px;
  overflow: hidden; isolation: isolate; scroll-snap-align: start;
}
.fixed-ui { position: fixed; right: 12px; top: 50%; z-index: 80; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); mix-blend-mode: difference; pointer-events: none; }
.frame-counter { writing-mode: vertical-rl; font: 10px/1 var(--font-geist-mono), monospace; letter-spacing: .13em; }
.progress-rail { position: relative; width: 2px; height: 120px; background: rgba(255,255,255,.22); }
.progress-rail i { position: absolute; top: 0; left: 0; width: 100%; background: #fff; transition: height .6s cubic-bezier(.22,1,.36,1); }
.section-index { position: absolute; z-index: 9; top: 116px; left: 2.4vw; display: flex; gap: 18px; margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.section-index span, .eyebrow span { color: var(--signal); }
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s ease, transform 1s cubic-bezier(.22,1,.36,1); }
.is-visible .reveal { opacity: 1; transform: translateY(0); }

.hero { background: radial-gradient(circle at 74% 43%, rgba(255,69,40,.14), transparent 23%), linear-gradient(120deg, #0d1110 0%, #050606 58%, #121513 100%); }
.grid-noise, .final-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 5.2vw 5.2vw; opacity: .28; mask-image: linear-gradient(to right, #000, rgba(0,0,0,.15)); }
.cursor-signal { position: absolute; z-index: 0; left: calc(50% + var(--pointer-x) * 140px); top: calc(50% + var(--pointer-y) * 100px); width: 38vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,69,40,.18), transparent 66%); filter: blur(22px); transform: translate(-50%,-50%); transition: left .18s linear, top .18s linear; }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: 86px; padding: 0 2.4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid var(--paper); border-radius: 50%; }
nav { display: flex; gap: 34px; }
nav a { transition: color .25s; }
nav a:hover { color: var(--signal); }
.ca-button { justify-self: end; border: 1px solid var(--paper); border-radius: 999px; background: transparent; padding: 12px 19px; cursor: pointer; transition: .25s ease; }
.ca-button:hover { color: var(--ink); background: var(--paper); }
.hero-copy { position: absolute; left: 2.3vw; top: 18%; z-index: 4; }
.eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 4vh; font: 600 11px/1 var(--font-geist-mono), monospace; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(88px, 11.2vw, 216px); line-height: .72; letter-spacing: -.085em; font-weight: 900; text-transform: uppercase; }
h1 span { display: block; }
h1 span:nth-child(2) { margin-left: 1.9em; }
h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); margin-left: .52em; }
.hero-note { margin: 5vh 0 0 .6vw; max-width: 340px; font-size: clamp(15px, 1.25vw, 24px); line-height: 1.25; }
.hero-character { position: absolute; z-index: 8; bottom: -5%; right: 3.5%; width: min(50vw, 950px); height: 87%; margin: 0; display: flex; align-items: flex-end; justify-content: center; filter: contrast(1.04) saturate(.86); transform: translate(calc(var(--pointer-x) * -20px), calc(var(--pointer-y) * -12px)); transition: transform .4s ease-out; }
.hero-character img, .story-character img, .final-character img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.photo-motion img { transform-origin: 55% 76%; animation: photo-breathe 5.6s ease-in-out infinite; }
.scanline { position: absolute; inset: 2% 4% 7% 12%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 0 46%, rgba(255,69,40,.65) 49.5%, transparent 53%); background-size: 100% 240%; mix-blend-mode: screen; animation: scan 4s linear infinite; opacity: .33; }
.hero-orbit { position: absolute; z-index: 1; right: 5%; top: 13%; width: 44vw; aspect-ratio: 1; transform: translate(calc(var(--pointer-x) * 15px), calc(var(--pointer-y) * 15px)); }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(255,69,40,.42); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit::after { content: ''; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 24px var(--signal); }
.orbit-b { inset: 15%; animation-duration: 12s; animation-direction: reverse; }
.orbit-c { inset: 31%; animation-duration: 8s; }
.hero-data { position: absolute; left: 2.4vw; right: 2.4vw; bottom: 25px; z-index: 12; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; font-size: 10px; letter-spacing: .12em; color: rgba(232,228,219,.65); }
.scroll-cue { position: absolute; right: 2.4vw; top: 45%; z-index: 14; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 70px; background: var(--signal); transform-origin: top; animation: pulse-line 1.8s ease-in-out infinite; }

.light-frame { color: #111; background: #c8c8c4; }
.story-bg, .roadmap-bg { position: absolute; inset: -6%; z-index: -3; background: url('/assets/signal-chamber.webp') center/cover no-repeat; transform: scale(1.06) translate(calc(var(--pointer-x) * -10px), calc(var(--pointer-y) * -6px)); transition: transform .5s ease-out; }
.story-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(232,228,219,.08), rgba(232,228,219,.05) 55%, rgba(0,0,0,.25)); }
.story .section-index span { color: #be2f1c; }
.story-copy { position: absolute; z-index: 5; left: 5vw; top: 25%; width: min(48vw, 820px); }
.kicker { margin: 0 0 4vh; font: 700 11px/1.2 var(--font-geist-mono), monospace; letter-spacing: .16em; }
.story h2, .archive h2, .roadmap h2, .finale h2 { margin: 0; font-size: clamp(66px, 7.5vw, 144px); line-height: .85; letter-spacing: -.07em; text-transform: uppercase; }
.story-body { max-width: 590px; margin: 5vh 0 0 14vw; font-size: clamp(17px, 1.35vw, 26px); line-height: 1.35; }
.story-body.secondary { margin-top: 2vh; opacity: .68; }
.story-character { position: absolute; z-index: 6; right: -2%; bottom: -7%; width: 43vw; height: 92%; margin: 0; filter: saturate(.86) contrast(1.05); transform: translate(calc(var(--pointer-x) * -16px), 0); }
.story-label { position: absolute; z-index: 8; right: 2.4vw; bottom: 24px; font-size: 10px; letter-spacing: .13em; color: rgba(15,15,15,.65); }

.archive { background: #0b0d0d; }
.archive::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 20%, rgba(255,69,40,.12), transparent 32%); }
.archive-heading { position: absolute; left: 2.4vw; top: 15%; width: 31vw; z-index: 5; }
.archive-heading .section-index { position: static; margin-bottom: 7vh; }
.archive-heading h2 { font-size: clamp(62px, 6.7vw, 128px); }
.state-grid { position: absolute; left: 34vw; right: 2.4vw; top: 13%; bottom: 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.state-card { position: relative; overflow: hidden; background: #111414; transition: opacity .9s ease, transform 1s cubic-bezier(.22,1,.36,1), background .3s; }
.state-card:hover { background: #191c1b; }
.state-top { position: absolute; z-index: 4; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .12em; }
.state-card img { position: absolute; left: 50%; bottom: 6%; height: 78%; width: 126%; object-fit: contain; transform: translateX(-50%); filter: grayscale(.42) saturate(.8); transition: filter .4s, transform .7s cubic-bezier(.22,1,.36,1); }
.state-card:hover img { filter: grayscale(0) saturate(.9); transform: translateX(-50%) scale(1.035); }
.state-listen img { height: 82%; bottom: -5%; }
.state-show img { height: 84%; bottom: -9%; }
.state-copy { position: absolute; z-index: 5; left: 18px; right: 18px; bottom: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.state-copy h3 { margin: 0; font-size: clamp(23px, 2.3vw, 43px); text-transform: uppercase; letter-spacing: -.05em; }
.state-copy p { margin: 8px 0 0; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(232,228,219,.58); }
.state-scan { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); opacity: .55; }

.roadmap { background: #090a0a; }
.roadmap-bg { background-image: url('/assets/signal-room.webp'); opacity: .44; filter: grayscale(.35); }
.roadmap-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8,10,10,.98) 0 44%, rgba(8,10,10,.6) 73%, rgba(8,10,10,.35)); }
.roadmap-heading { position: absolute; left: 2.4vw; top: 17%; width: 41vw; }
.roadmap-heading .section-index { position: static; margin-bottom: 7vh; }
.roadmap-heading p:last-child { max-width: 390px; margin: 4vh 0 0 13vw; font-size: clamp(16px, 1.2vw, 23px); line-height: 1.35; color: rgba(232,228,219,.7); }
.roadmap-list { position: absolute; top: 17%; bottom: 10%; right: 3.5vw; width: min(49vw, 890px); display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.road-item { flex: 1; display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.road-number { font-size: 11px; color: var(--signal); }
.road-item h3 { margin: 0; font-size: clamp(27px, 2.6vw, 49px); letter-spacing: -.05em; text-transform: uppercase; }
.road-item p { margin: 6px 0 0; max-width: 450px; font-size: clamp(12px, .9vw, 17px); color: rgba(232,228,219,.58); }
.signal-bars { display: flex; align-items: flex-end; gap: 5px; height: 33px; padding-right: 3px; }
.signal-bars i { display: block; width: 6px; height: 24%; background: rgba(232,228,219,.2); }
.signal-bars i:nth-child(2) { height: 48%; }.signal-bars i:nth-child(3) { height: 72%; }.signal-bars i:nth-child(4) { height: 100%; }
.signal-bars i.on { background: var(--signal); box-shadow: 0 0 12px rgba(255,69,40,.3); }

.finale { color: #100c0a; background: var(--signal); }
.final-grid { z-index: -2; background-image: linear-gradient(rgba(16,12,10,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(16,12,10,.18) 1px, transparent 1px); opacity: .7; mask-image: none; }
.finale .section-index span { color: var(--paper); }
.final-copy { position: absolute; z-index: 3; left: 2.4vw; top: 24%; }
.final-copy .kicker { margin-bottom: 3vh; }
.finale h2 { font-size: clamp(132px, 14vw, 270px); line-height: .66; }
.final-character { position: absolute; z-index: 5; right: 25%; bottom: -13%; height: 102%; width: 46vw; margin: 0; filter: saturate(.82) contrast(1.04); }
.final-actions { position: absolute; z-index: 8; top: 28%; right: 2.7vw; width: 22vw; min-width: 300px; border-top: 1px solid rgba(16,12,10,.6); }
.final-actions a, .final-actions button { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(16,12,10,.6); background: transparent; font-size: clamp(15px, 1.2vw, 22px); font-weight: 800; letter-spacing: -.02em; cursor: pointer; text-align: left; transition: padding .25s, background .25s; }
.final-actions a:hover, .final-actions button:hover { padding-left: 14px; background: rgba(232,228,219,.18); }
.final-actions span { font-size: 24px; font-weight: 400; }
footer { position: absolute; left: 2.4vw; right: 2.4vw; bottom: 24px; z-index: 8; display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(16,12,10,.55); font: 10px/1 var(--font-geist-mono), monospace; letter-spacing: .12em; }
.copy-toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 18px); padding: 13px 18px; background: var(--paper); color: var(--ink); font: 700 11px/1 var(--font-geist-mono), monospace; letter-spacing: .13em; opacity: 0; pointer-events: none; transition: .3s; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes photo-breathe { 0%,100% { transform: translateY(0) rotate(-.12deg); } 50% { transform: translateY(-8px) rotate(.12deg); } }
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 140%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-line { 0%,100% { transform: scaleY(.28); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 900px) {
  .frame { height: 100svh; max-height: none; min-height: 720px; }
  .fixed-ui { display: none; }
  nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .hero-copy { left: 18px; top: 16%; }.eyebrow { margin-bottom: 32px; }
  h1 { font-size: clamp(74px, 23vw, 150px); }
  h1 span:nth-child(2) { margin-left: .35em; } h1 .outline { margin-left: 0; }
  .hero-note { margin-top: 24px; }
  .hero-character { right: -24%; width: 105vw; height: 60%; opacity: .82; }
  .hero-orbit { width: 95vw; right: -30%; top: 38%; }
  .hero-data { left: 18px; right: 18px; }.hero-data span:nth-child(2) { display: none; }
  .scroll-cue { display: none; }
  .section-index { top: 104px; left: 18px; }
  .story-copy { left: 18px; top: 19%; width: calc(100% - 36px); }
  .story h2, .archive h2, .roadmap h2 { font-size: clamp(52px, 15vw, 88px); }
  .story-body { margin: 24px 0 0; max-width: 86%; font-size: 16px; }
  .story-character { right: -24%; bottom: -5%; width: 88vw; height: 55%; opacity: .75; }
  .story-label { right: 18px; }
  .archive-heading { left: 18px; top: 14%; width: 100%; }
  .archive-heading .section-index, .roadmap-heading .section-index { margin-bottom: 30px; }
  .state-grid { left: 18px; right: 18px; top: 41%; bottom: 6%; }
  .state-top span:last-child, .state-copy p { display: none; }
  .state-card img { width: 150%; height: 74%; }
  .state-copy { bottom: 12px; left: 10px; right: 10px; }
  .state-copy h3 { font-size: clamp(16px, 4vw, 25px); }
  .roadmap-heading { left: 18px; top: 14%; width: calc(100% - 36px); }
  .roadmap-heading p:last-child { margin: 22px 0 0; font-size: 14px; }
  .roadmap-list { left: 18px; right: 18px; top: 45%; bottom: 5%; width: auto; }
  .road-item { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .road-item h3 { font-size: clamp(23px, 5vw, 35px); }.road-item p { display: none; }
  .signal-bars i { width: 4px; }
  .final-copy { left: 18px; top: 18%; }.finale h2 { font-size: clamp(110px, 31vw, 200px); }
  .final-character { right: -19%; bottom: -5%; width: 95vw; height: 63%; opacity: .75; }
  .final-actions { left: 18px; right: 18px; top: auto; bottom: 78px; width: auto; min-width: 0; }
  .final-actions a, .final-actions button { min-height: 54px; font-size: 14px; }
  footer { left: 18px; right: 18px; }.finale footer span:last-child { display: none; }
}

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