:root {
  --ink: #070606;
  --charcoal: #121010;
  --panel: #191313;
  --paper: #f3dfc7;
  --paper-dim: #bda995;
  --peach: #f0a08d;
  --rose: #bd6f6c;
  --ember: #d7594f;
  --line: rgba(243, 223, 199, .22);
  --mx: 50vw;
  --my: 50vh;
  --section-pad: clamp(5.5rem, 10vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  overflow-x: hidden;
  cursor: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), transparent 0, rgba(0,0,0,.025) 50%, rgba(0,0,0,.2) 100%);
  mix-blend-mode: multiply;
}
body.secret-mode { filter: hue-rotate(325deg) saturate(1.15); }
a, button { color: inherit; font: inherit; cursor: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--peach); }

.noise {
  position: fixed;
  inset: -100%;
  z-index: 99;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: noiseShift .2s steps(2) infinite;
}
@keyframes noiseShift { 0% { transform: translate(0) } 25% { transform: translate(2%, -1%) } 50% { transform: translate(-1%, 2%) } 75% { transform: translate(1%, 1%) } }

.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--paper); box-shadow: 0 0 10px var(--peach); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--peach); transition: width .2s, height .2s, background .2s; }
.cursor-ring.is-hover { width: 58px; height: 58px; background: rgba(240,160,141,.12); }

.boot-screen { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: #050404; transition: opacity .8s .2s, visibility .8s .2s; }
.boot-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(244,223,197,.04) 3px 4px); }
.boot-terminal { width: min(560px, calc(100% - 2rem)); border: 1px solid var(--rose); padding: clamp(1.5rem, 5vw, 3rem); background: rgba(20,12,12,.84); box-shadow: 0 0 80px rgba(189,111,108,.2); text-align: center; }
.boot-brand { font-weight: 900; font-size: clamp(1.15rem, 3vw, 1.8rem); letter-spacing: .16em; }
.spark { color: var(--peach); }
.boot-terminal p { margin: 3rem 0 .8rem; color: var(--paper-dim); font-size: .72rem; letter-spacing: .12em; }
.boot-bar { height: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.boot-bar i { display: block; width: 0; height: 100%; background: var(--peach); box-shadow: 0 0 14px var(--peach); transition: width .25s; }
.enter-button { display: none; width: 100%; margin-top: 1.2rem; padding: 1rem; color: var(--ink); background: var(--paper); font-weight: 900; letter-spacing: .1em; }
.enter-button span { float: right; }
.boot-terminal small { display: block; margin-top: 1.2rem; color: #756661; font-size: .6rem; letter-spacing: .12em; }
body.booted .boot-screen { opacity: 0; visibility: hidden; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 2.5vw; border-bottom: 1px solid var(--line); background: rgba(7,6,6,.72); backdrop-filter: blur(15px); }
.wordmark { display: flex; align-items: center; gap: .75rem; color: var(--paper); text-decoration: none; font-weight: 900; font-size: .75rem; line-height: .95; letter-spacing: .12em; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--paper); color: var(--peach); }
.topbar nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.topbar nav a { position: relative; color: var(--paper-dim); text-decoration: none; font-size: .65rem; letter-spacing: .15em; }
.topbar nav a::after { content: ""; position: absolute; right: 0; bottom: -.5rem; left: 0; height: 1px; transform: scaleX(0); background: var(--peach); transition: transform .2s; }
.topbar nav a:hover::after { transform: scaleX(1); }
.status-chip { position: absolute; left: 17%; display: flex; align-items: center; gap: .5rem; color: var(--paper-dim); font-size: .58rem; letter-spacing: .08em; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: #8dcb7d; box-shadow: 0 0 9px #8dcb7d; animation: blink 2s infinite; }
.status-chip span { color: #6e605b; }
@keyframes blink { 50% { opacity: .25; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.round-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); text-decoration: none; }
.buy-button { display: flex; gap: 2rem; align-items: center; min-height: 42px; padding: 0 1rem; color: var(--ink); background: var(--paper); text-decoration: none; font-size: .72rem; font-weight: 900; }
.buy-button:hover, .primary-cta:hover { background: var(--peach); }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr .54fr; align-items: center; gap: 2vw; padding: 9rem 4vw 5rem; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,6,6,.75), rgba(7,6,6,.08) 45%, rgba(7,6,6,.78)), linear-gradient(0deg, var(--ink), transparent 30%); }
.desk-world { position: absolute; inset: 0; z-index: -2; background: url("assets/agency-desk-world.png") center / cover no-repeat; filter: brightness(.8) contrast(1.08); transform: scale(1.08); transition: transform .15s linear; }
.hero-copy { align-self: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--paper-dim); font-size: .68rem; letter-spacing: .18em; }
.eyebrow span { display: inline-block; margin-right: .7rem; padding: .42rem .6rem; color: var(--ink); background: var(--peach); font-weight: 900; }
h1, h2 { margin: 1.4rem 0; text-transform: uppercase; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; letter-spacing: -.035em; line-height: .84; }
h1 { font-size: clamp(3.7rem, 7.25vw, 8.2rem); text-shadow: 0 6px 35px #000; }
h1 em, h2 em { color: var(--peach); font-style: normal; }
.hero-deck { max-width: 540px; color: var(--paper-dim); font-family: Georgia, serif; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.primary-cta, .x-cta { display: flex; justify-content: space-between; align-items: center; min-width: 220px; padding: 1.1rem 1.2rem; color: var(--ink); background: var(--paper); text-decoration: none; font-size: .72rem; font-weight: 900; letter-spacing: .08em; transition: background .2s; }
.sound-toggle { padding: 1rem; color: var(--paper); background: transparent; font-size: .66rem; letter-spacing: .1em; }
.sound-icon { display: inline-block; margin-right: .35rem; color: var(--peach); }

.agent-stage { position: relative; justify-self: center; width: min(37vw, 570px); aspect-ratio: 1; }
.portrait-shell { position: absolute; inset: 11%; overflow: hidden; border-radius: 50%; border: 1px solid rgba(244,223,197,.3); box-shadow: 0 0 100px rgba(240,160,141,.13); transition: transform .2s; }
.portrait-shell img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); filter: saturate(.92) contrast(1.05); }
.portrait-shell::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.15) 3px 4px); }
.scanbeam { position: absolute; z-index: 2; top: -20%; left: 0; width: 100%; height: 10%; background: linear-gradient(transparent, rgba(240,160,141,.2), transparent); animation: scan 4s linear infinite; }
@keyframes scan { to { top: 110%; } }
.orbit { position: absolute; inset: 3%; border: 1px dashed rgba(240,160,141,.24); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit-b { inset: 7%; animation-direction: reverse; animation-duration: 15s; border-style: solid; border-color: rgba(244,223,197,.12); }
.orbit span { position: absolute; top: 48%; left: -5px; width: 10px; height: 10px; background: var(--peach); transform: rotate(45deg); box-shadow: 0 0 15px var(--peach); }
@keyframes spin { to { transform: rotate(360deg); } }
.agent-label { position: absolute; right: 2%; bottom: 9%; padding: .55rem .75rem; border: 1px solid var(--line); background: rgba(7,6,6,.82); font-size: .55rem; letter-spacing: .1em; }
.agent-label span { color: var(--peach); }
.agent-label b { margin-left: 1rem; color: #d1655d; }
.hotspot { position: absolute; z-index: 4; display: flex; align-items: center; gap: .5rem; color: var(--paper-dim); background: transparent; font-size: .56rem; letter-spacing: .08em; }
.hotspot i { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--peach); border-radius: 50%; color: var(--peach); font-style: normal; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(240,160,141,0); } 0% { box-shadow: 0 0 0 0 rgba(240,160,141,.4); } }
.hotspot-hat { top: 9%; left: 54%; }
.hotspot-screen { top: 58%; left: 7%; }
.hotspot-pixels { right: 1%; bottom: 25%; }
.anatomy-card { position: absolute; z-index: 7; top: 24%; left: 20%; width: 60%; padding: 1.4rem; border: 1px solid var(--rose); background: rgba(10,7,7,.94); box-shadow: 12px 12px 0 rgba(189,111,108,.15); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }
.anatomy-card.is-open { opacity: 1; pointer-events: auto; transform: none; }
.anatomy-card button { float: right; color: var(--paper); background: transparent; font-size: 1.4rem; }
.anatomy-card small { color: var(--peach); font-size: .55rem; letter-spacing: .12em; }
.anatomy-card h3 { margin: .7rem 0; font: 900 1.3rem Impact, sans-serif; letter-spacing: .04em; }
.anatomy-card p { margin: 0; color: var(--paper-dim); font-family: Georgia, serif; font-size: .87rem; line-height: 1.5; }

.hero-side { align-self: center; justify-self: end; width: min(100%, 200px); }
.dial-readout { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.dial-readout span { display: block; color: var(--paper-dim); font-size: .58rem; letter-spacing: .14em; }
.dial-readout strong { font-size: 2.2rem; letter-spacing: -.08em; }
.dial-readout small { color: var(--peach); }
.tuner { margin: 2rem auto 1rem; text-align: center; outline: none; }
.dial { position: relative; width: 115px; height: 115px; margin: auto; border: 1px solid var(--line); border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--paper) 0 1deg, transparent 1deg 15deg); box-shadow: inset 0 0 0 11px var(--ink), inset 0 0 0 12px var(--line); }
.dial::after { content: ""; position: absolute; inset: 23px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c18074, #38201f 55%, #0f0c0c); box-shadow: 0 8px 20px #000; }
.dial i { position: absolute; z-index: 2; top: 13px; left: 50%; width: 2px; height: 30px; background: var(--paper); transform-origin: 50% 44px; transform: rotate(-70deg); transition: transform .25s; }
.tuner > span { display: block; margin-top: 1rem; color: #7d6b65; font-size: .54rem; letter-spacing: .15em; }
.signal-message { min-height: 5em; color: var(--paper-dim); font-family: Georgia, serif; font-size: .8rem; line-height: 1.55; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; transform: translateX(-50%) rotate(-90deg) translateX(50%); transform-origin: center; color: #756661; font-size: .5rem; letter-spacing: .12em; }
.scroll-cue i { display: block; width: 50px; height: 1px; overflow: hidden; background: var(--line); }
.scroll-cue i::after { content: ""; display: block; width: 50%; height: 100%; background: var(--peach); animation: sweep 2s infinite; }
@keyframes sweep { from { transform: translateX(-110%) } to { transform: translateX(210%) } }
.relic-counter { position: fixed; z-index: 80; right: 1.2rem; bottom: 1.2rem; padding: .65rem .8rem; border: 1px solid var(--line); background: rgba(7,6,6,.84); font-size: .56rem; letter-spacing: .1em; }
.relic-counter span { color: var(--paper-dim); }
.relic-counter b { margin-left: .5rem; color: var(--peach); }
.collectible { position: absolute; z-index: 7; padding: .35rem; color: rgba(240,160,141,.38); background: transparent; filter: drop-shadow(0 0 7px rgba(240,160,141,.4)); transition: .2s; }
.collectible:hover { color: var(--paper); transform: scale(1.35) rotate(8deg); }
.collectible.is-found { opacity: 0; pointer-events: none; transform: scale(2); }
.collectible-phone { top: 20%; left: 3%; }
.collectible-cross { top: 15%; right: 7%; }
.collectible-headset { left: 36%; bottom: 5%; }
.collectible-hat { right: 25%; bottom: 15%; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 1rem 0; color: var(--paper-dim); background: #0c0909; white-space: nowrap; transform: rotate(-1deg) scale(1.01); }
.ticker div { display: inline-block; min-width: 200%; animation: ticker 28s linear infinite; font-size: .7rem; letter-spacing: .12em; }
.ticker b { margin: 0 2rem; color: var(--peach); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { position: relative; padding: var(--section-pad) 5vw; }
.section-heading { display: grid; grid-template-columns: 1fr 2.5fr 1fr; gap: 3vw; align-items: end; margin-bottom: clamp(3rem, 7vw, 7rem); }
.section-heading > div { align-self: start; display: flex; align-items: center; gap: 1rem; color: var(--peach); font-size: .62rem; letter-spacing: .12em; }
.section-heading > div i { flex: 1; height: 1px; background: var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 7.5rem); }
.section-heading > p { margin: 0; color: var(--paper-dim); font-family: Georgia, serif; font-size: .95rem; line-height: 1.6; }
.casefile { background: radial-gradient(circle at 50% 50%, #211514, #080707 65%); }
.file-console { max-width: 1260px; margin: auto; border: 1px solid var(--line); background: rgba(20,14,14,.8); box-shadow: 30px 30px 0 rgba(189,111,108,.05); overflow: hidden; }
.console-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); color: var(--paper-dim); font-size: .58rem; letter-spacing: .1em; }
.console-leds { display: flex; gap: .4rem; }
.console-leds i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.story-track { position: relative; min-height: 500px; }
.story-slide { position: absolute; inset: 0; display: grid; grid-template-columns: .28fr 1.25fr 1fr; align-items: stretch; opacity: 0; pointer-events: none; transform: translateX(40px); transition: opacity .45s, transform .45s; }
.story-slide.is-active { opacity: 1; pointer-events: auto; transform: none; }
.slide-number { display: grid; place-items: center; border-right: 1px solid var(--line); color: rgba(243,223,199,.1); font: 900 clamp(5rem, 10vw, 11rem) Impact, sans-serif; writing-mode: vertical-rl; }
.story-visual { position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); background: #0a0808; }
.story-visual::before { content: ""; position: absolute; inset: 0; opacity: .45; background: url("assets/agency-desk-world.png") center / cover; filter: grayscale(1) contrast(1.5); }
.story-visual::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.3) 4px 5px); }
.story-visual span { position: relative; z-index: 2; padding: .4rem .6rem; color: var(--paper); background: var(--ink); font-size: .65rem; letter-spacing: .14em; }
.story-visual i { position: absolute; z-index: 2; right: 2rem; bottom: 2rem; color: var(--peach); font-size: 3rem; font-style: normal; }
.visual-room::before { background-position: 15% 50%; }
.visual-static::before { background-image: url("assets/agency-wif-hat-original.jpg"); filter: grayscale(.8) contrast(1.5); }
.visual-name::before { background-position: 80% 50%; }
.visual-now::before { filter: contrast(1.2) saturate(.6); }
.story-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.story-copy small { color: var(--peach); letter-spacing: .15em; }
.story-copy h3 { margin: 1.2rem 0; font: 900 clamp(2rem, 3.5vw, 4rem)/.95 Impact, sans-serif; text-transform: uppercase; }
.story-copy p { color: var(--paper-dim); font-family: Georgia, serif; line-height: 1.75; }
.story-copy b { color: var(--paper); }
.console-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem; border-top: 1px solid var(--line); }
.console-controls button, .clear-sequence { padding: .7rem 1rem; color: var(--paper-dim); background: transparent; font-size: .64rem; letter-spacing: .1em; }
.console-controls button:hover { color: var(--peach); }
.story-progress { height: 2px; background: var(--line); }
.story-progress i { display: block; width: 20%; height: 100%; background: var(--peach); transition: width .4s; }
.console-controls span { font-size: .62rem; }

.protocol { display: grid; grid-template-columns: 1fr 1fr; min-height: 900px; padding-inline: 0; background: var(--paper); color: var(--ink); }
.protocol-art { position: relative; overflow: hidden; min-height: 700px; background: var(--ink); }
.protocol-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.12); }
.protocol-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(243,223,199,.22)), repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.22) 4px 5px); }
.cross-chain { position: absolute; z-index: 2; top: 2rem; left: 2rem; color: var(--peach); font-size: 2rem; line-height: 1.8; text-align: center; }
.stamp { position: absolute; right: 3rem; bottom: 3rem; z-index: 3; padding: 1rem; border: 3px double var(--rose); color: var(--rose); font-weight: 900; letter-spacing: .16em; transform: rotate(-12deg); }
.protocol-copy { align-self: center; padding: 6vw; }
.protocol-copy h2 { font-size: clamp(3.5rem, 7vw, 7rem); }
.accordion { border-top: 1px solid rgba(7,6,6,.25); }
.accordion-item { position: relative; display: grid; grid-template-columns: 36px 1fr auto; width: 100%; padding: 1.25rem 0; border-bottom: 1px solid rgba(7,6,6,.25); color: var(--ink); background: transparent; text-align: left; }
.accordion-item span { color: var(--rose); font-size: .65rem; }
.accordion-item b { font-size: .8rem; letter-spacing: .08em; }
.accordion-item i { font-style: normal; }
.accordion-item p { grid-column: 2 / 4; overflow: hidden; max-height: 0; margin: 0; color: #5e4f48; font-family: Georgia, serif; line-height: 1.65; transition: max-height .4s, margin .4s; }
.accordion-item.is-open p { max-height: 200px; margin-top: 1rem; }
.accordion-item.is-open i { transform: rotate(45deg); }

.roadmap { min-height: 1100px; overflow: hidden; background: #090707; }
.roadmap::before { content: ""; position: absolute; inset: 0; opacity: .16; background: url("assets/agency-desk-world.png") center / cover fixed; }
.roadmap-heading { position: relative; z-index: 2; }
.orbit-map { position: relative; width: min(95vw, 1050px); aspect-ratio: 1.75; margin: auto; user-select: none; touch-action: none; }
.orbit-map::before { content: ""; position: absolute; inset: 2%; border: 1px solid var(--line); clip-path: polygon(0 10%,10% 10%,10% 0,90% 0,90% 10%,100% 10%,100% 90%,90% 90%,90% 100%,10% 100%,10% 90%,0 90%); }
.radar-lines { position: absolute; inset: 5%; opacity: .25; background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle, #000, transparent 75%); }
.map-core { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; width: 110px; height: 110px; transform: translate(-50%, -50%); border: 1px solid var(--peach); border-radius: 50%; background: var(--ink); box-shadow: 0 0 60px rgba(240,160,141,.25); text-align: center; }
.mini-face { color: var(--peach); font-size: 2rem; }
.map-core span { position: absolute; top: 110%; font-size: .55rem; letter-spacing: .16em; }
.map-ring { position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(240,160,141,.3); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 38%; aspect-ratio: 1; animation: spinCenter 20s linear infinite; }
.ring-two { width: 65%; aspect-ratio: 1.25; animation: spinCenter 32s linear reverse infinite; }
.ring-three { width: 92%; aspect-ratio: 1.6; border-color: rgba(243,223,199,.16); animation: spinCenter 48s linear infinite; }
@keyframes spinCenter { from { transform: translate(-50%,-50%) rotate(0) } to { transform: translate(-50%,-50%) rotate(360deg) } }
.mission-node { position: absolute; z-index: 5; display: flex; align-items: center; gap: .7rem; padding: .6rem; color: var(--paper-dim); background: rgba(7,6,6,.82); text-align: left; font-size: .58rem; letter-spacing: .08em; transition: transform .25s, color .25s; }
.mission-node i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-style: normal; }
.mission-node::after { content: ""; position: absolute; left: 22px; top: 100%; width: 1px; height: 45px; background: linear-gradient(var(--peach), transparent); transform-origin: top; }
.mission-node:hover, .mission-node.is-active { color: var(--paper); transform: scale(1.08); }
.mission-node.is-active i { color: var(--ink); background: var(--peach); box-shadow: 0 0 18px rgba(240,160,141,.55); }
.node-1 { top: 9%; left: 43%; }
.node-2 { top: 32%; right: 5%; }
.node-3 { right: 17%; bottom: 5%; }
.node-4 { left: 12%; bottom: 7%; }
.node-5 { top: 27%; left: 2%; }
.mission-panel { position: absolute; z-index: 7; left: 50%; bottom: 4%; width: min(440px, 45%); padding: 1.6rem; transform: translateX(-50%); border: 1px solid var(--rose); background: rgba(11,8,8,.94); box-shadow: 10px 10px 0 rgba(189,111,108,.1); }
.mission-panel small { color: var(--peach); letter-spacing: .1em; }
.mission-panel h3 { margin: .7rem 0; font: 900 1.8rem Impact, sans-serif; letter-spacing: .04em; }
.mission-panel p { margin: 0; color: var(--paper-dim); font-family: Georgia, serif; font-size: .85rem; line-height: 1.55; }
.mission-meter { height: 2px; margin-top: 1.2rem; background: var(--line); }
.mission-meter i { display: block; width: 20%; height: 100%; background: var(--peach); transition: width .35s; }
.drag-hint { position: absolute; right: 3%; bottom: 3%; color: #77645e; font-size: .56rem; letter-spacing: .12em; }

.lab { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; align-items: center; min-height: 800px; background: #e6cdb4; color: var(--ink); }
.lab-copy h2 { font-size: clamp(3.8rem, 7vw, 7rem); }
.lab-copy p { max-width: 520px; color: #65524b; font-family: Georgia, serif; line-height: 1.7; }
.clear-sequence { padding-left: 0; color: var(--rose); }
.signal-console { border: 7px solid #29201e; border-radius: 16px; background: #0c0909; box-shadow: inset 0 0 0 3px #8c7569, 18px 22px 0 rgba(36,24,22,.18); }
.wave-display { position: relative; padding: 1.4rem; border-bottom: 3px solid #3f312e; }
#waveCanvas { width: 100%; height: 240px; background: radial-gradient(circle, #261818, #060505 70%); }
.sequence { position: absolute; left: 2rem; bottom: 2rem; color: var(--peach); font-size: .62rem; letter-spacing: .14em; }
.signal-pads { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; background: #3f312e; }
.signal-pads button { position: relative; min-height: 130px; color: var(--paper); background: #171111; font-size: 1.8rem; transition: background .15s, transform .1s; }
.signal-pads button:hover, .signal-pads button.is-playing { color: var(--ink); background: var(--peach); }
.signal-pads button:active { transform: translateY(3px); }
.signal-pads button span { position: absolute; top: .7rem; left: .7rem; color: #76635e; font-size: .52rem; }
.signal-pads button small { display: block; margin-top: .6rem; font-size: .5rem; letter-spacing: .12em; }

.join { min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.join-bg { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,6,6,.85), rgba(7,6,6,.15), rgba(7,6,6,.75)), url("assets/agency-desk-world.png") center / cover; filter: saturate(.8); transform: scale(1.04); }
.join-inner { position: relative; z-index: 2; width: min(1040px, 90vw); }
.join-inner h2 { font-size: clamp(4rem, 9vw, 10rem); }
.join-inner > p { color: var(--paper-dim); font-family: Georgia, serif; font-size: 1.1rem; }
.join-actions { display: flex; justify-content: center; gap: 1rem; margin: 2.5rem 0; }
.primary-cta.large, .x-cta { min-width: 280px; padding: 1.4rem; }
.x-cta { color: var(--paper); background: rgba(7,6,6,.7); border: 1px solid var(--line); }
.contract { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; width: min(760px, 100%); margin: auto; padding: .9rem 1rem; border: 1px solid var(--line); color: var(--paper-dim); background: rgba(7,6,6,.78); text-align: left; font-size: .6rem; }
.contract code { overflow: hidden; color: var(--paper); text-overflow: ellipsis; }
.contract b { color: var(--peach); }

footer { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; align-items: end; padding: 4rem 5vw 2rem; border-top: 1px solid var(--line); background: #050404; }
.footer-logo { font: 900 2.5rem/.8 Impact, sans-serif; }
.footer-logo span { color: var(--peach); }
footer p, footer small { color: #756661; font-size: .58rem; line-height: 1.7; letter-spacing: .1em; }
footer > div:nth-child(3) { display: flex; justify-content: flex-end; gap: 1.5rem; }
footer a { color: var(--paper-dim); font-size: .6rem; text-decoration: none; }
footer small { grid-column: 1/-1; text-align: center; }

.toast { position: fixed; z-index: 500; left: 50%; bottom: 2rem; padding: .9rem 1.2rem; transform: translate(-50%, 20px); border: 1px solid var(--rose); color: var(--paper); background: #100b0b; opacity: 0; pointer-events: none; font-size: .65rem; letter-spacing: .1em; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.secret-dialog { width: min(720px, calc(100% - 2rem)); padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--peach); color: var(--paper); background: #0c0808; box-shadow: 0 0 120px rgba(240,160,141,.25); text-align: center; }
.secret-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.secret-dialog span { color: var(--peach); font-size: .65rem; letter-spacing: .15em; }
.secret-dialog h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.secret-dialog p { color: var(--paper-dim); font-family: Georgia, serif; line-height: 1.6; }
.secret-close { position: absolute; top: 1rem; right: 1rem; color: var(--paper); background: transparent; font-size: 1.5rem; }
.secret-glitch { margin-top: 1rem; padding: 1rem 1.5rem; color: var(--ink); background: var(--peach); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
.glitching { animation: pageGlitch .12s steps(2) 12; }
@keyframes pageGlitch { 0% { transform: translate(0); } 33% { transform: translate(5px,-2px); } 66% { transform: translate(-4px,3px); } }

@media (max-width: 1100px) {
  .topbar nav, .status-chip { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-side { position: absolute; right: 2rem; bottom: 5rem; width: 160px; }
  .hero-copy { z-index: 5; }
  .agent-stage { width: min(50vw, 540px); }
  .section-heading { grid-template-columns: .6fr 2.4fr; }
  .section-heading > p { grid-column: 2; }
  .mission-panel { bottom: 0; }
}

@media (max-width: 760px) {
  body, a, button { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .topbar { height: 68px; padding: 0 1rem; }
  .round-link { display: none; }
  .buy-button { gap: .75rem; font-size: .6rem; }
  .hero { display: flex; min-height: 1100px; flex-direction: column; align-items: stretch; padding: 7.5rem 1.2rem 5rem; }
  .hero-copy { order: 1; }
  h1 { font-size: clamp(3.4rem, 15vw, 5.8rem); }
  .agent-stage { order: 2; width: 100%; max-width: 520px; margin: auto; }
  .hero-side { position: relative; right: auto; bottom: auto; order: 3; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
  .dial-readout { align-self: center; }
  .tuner { grid-row: span 2; margin: 0; }
  .signal-message { min-height: 0; }
  .scroll-cue { display: none; }
  .collectible-headset { left: 10%; bottom: 15%; }
  .section { padding-inline: 1.2rem; }
  .section-heading { display: block; }
  .section-heading > div { margin-bottom: 1rem; }
  .section-heading h2 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .section-heading > p { margin-top: 1rem; }
  .story-track { min-height: 690px; }
  .story-slide { grid-template-columns: 55px 1fr; grid-template-rows: 280px 1fr; }
  .slide-number { grid-row: 1 / 3; font-size: 4rem; }
  .story-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-copy { padding: 1.5rem; }
  .console-controls { grid-template-columns: auto 1fr auto; }
  .console-controls span { display: none; }
  .protocol { grid-template-columns: 1fr; padding: 0; }
  .protocol-art { min-height: 520px; }
  .protocol-copy { padding: 5rem 1.2rem; }
  .roadmap { min-height: 1020px; }
  .orbit-map { width: 100%; aspect-ratio: .72; }
  .map-core { width: 80px; height: 80px; }
  .ring-one { width: 55%; }
  .ring-two { width: 85%; }
  .ring-three { width: 115%; }
  .mission-node { transform: scale(.9); }
  .mission-node:hover, .mission-node.is-active { transform: scale(.95); }
  .node-1 { top: 8%; left: 32%; }
  .node-2 { top: 28%; right: -2%; }
  .node-3 { right: 2%; bottom: 27%; }
  .node-4 { left: -1%; bottom: 27%; }
  .node-5 { top: 29%; left: -2%; }
  .mission-panel { width: 92%; bottom: 3%; }
  .drag-hint { display: none; }
  .lab { grid-template-columns: 1fr; padding-block: 6rem; }
  .signal-pads { grid-template-columns: repeat(5, 1fr); }
  .signal-pads button { min-height: 90px; font-size: 1.3rem; }
  .signal-pads button small { display: none; }
  .join-actions { flex-direction: column; align-items: center; }
  .contract { grid-template-columns: auto 1fr; }
  .contract b { grid-column: 1/-1; text-align: center; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > div:nth-child(3) { justify-content: center; }
}

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