:root {
  --ink: #080a08;
  --charcoal: #151815;
  --paper: #f1e8d8;
  --paper-2: #d9cfbd;
  --lime: #a6ff00;
  --red: #ff402e;
  --white: #fffdf7;
  --gutter: clamp(22px, 5vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--white); background: var(--ink); font-family: "DM Sans", sans-serif; overflow-x: hidden; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--lime); color: var(--ink); padding: 12px 18px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 100; height: 74px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; background: linear-gradient(180deg, rgba(8,10,8,.95), rgba(8,10,8,.66) 68%, transparent); transition: transform .35s ease, background .35s ease; }
.brand { display: inline-flex; align-items: center; gap: 7px; width: max-content; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.brand b { color: var(--lime); font-family: "Permanent Marker", cursive; font-size: 29px; transform: rotate(-3deg); }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar nav a { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px; text-decoration: none; color: rgba(255,255,255,.42); font: 700 10px/1 "DM Sans"; letter-spacing: .12em; transition: color .3s; }
.topbar nav a span { display: none; }
.topbar nav a i { display: block; width: 28px; height: 3px; background: currentColor; transform: skewX(-18deg); transition: width .3s, background .3s; }
.topbar nav a em { position: absolute; top: 50px; opacity: 0; font-style: normal; pointer-events: none; transform: translateY(-6px); transition: .25s; }
.topbar nav a:hover em, .topbar nav a.active em { opacity: 1; transform: translateY(0); }
.topbar nav a.active { color: var(--lime); }
.topbar nav a.active i { width: 48px; }
.top-cta { justify-self: end; padding: 12px 16px; border: 1px solid rgba(255,255,255,.35); text-decoration: none; font: 800 12px/1 "DM Sans"; letter-spacing: .08em; text-transform: uppercase; transform: skewX(-4deg); transition: .2s; }
.top-cta:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.cold-open { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 110px var(--gutter) 80px; overflow: hidden; isolation: isolate; background:
  radial-gradient(circle at 76% 38%, rgba(166,255,0,.11), transparent 27%),
  repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(255,255,255,.035) 10% 10.1%), var(--ink); }
.cold-open::before { content: ""; position: absolute; inset: 10% -8% -8% 45%; z-index: -1; background: var(--charcoal); clip-path: polygon(38% 0, 47% 27%, 63% 6%, 70% 31%, 92% 11%, 87% 43%, 100% 57%, 74% 66%, 87% 100%, 52% 83%, 28% 100%, 30% 70%, 0 57%, 30% 40%); opacity: .65; }
.opening-agent { position: absolute; inset: 74px 0 0 auto; z-index: -1; width: 55%; background: url("assets/agentic-kim-story.png") 50% 25% / auto 500% no-repeat; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 10% 72%, 0 48%); filter: saturate(.82) contrast(1.05); }
.opening-agent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(8,10,8,.78) 18%, rgba(8,10,8,.14) 52%, rgba(8,10,8,.3) 100%), linear-gradient(0deg, rgba(8,10,8,.48), transparent 38%); }
.signal { position: absolute; left: var(--gutter); top: 110px; color: var(--lime); font-weight: 800; font-size: 11px; letter-spacing: .2em; }
.cold-open__copy { position: relative; z-index: 1; width: min(1180px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--paper-2); font-size: clamp(14px, 1.2vw, 18px); letter-spacing: .1em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; line-height: .88; letter-spacing: -.025em; text-transform: uppercase; }
h1 { font-size: clamp(72px, 12.4vw, 190px); max-width: 1000px; }
h1 span { color: var(--paper); -webkit-text-stroke: 1px var(--paper); }
.subhead { margin: clamp(20px, 4vw, 48px) 0 0; font-size: clamp(24px, 3vw, 46px); font-weight: 700; text-transform: uppercase; }
.subhead strong { color: var(--lime); font-family: "Permanent Marker", cursive; font-weight: 400; }
.bubble { position: absolute; color: var(--ink); background: var(--paper); border: 4px solid var(--ink); box-shadow: 8px 8px 0 rgba(0,0,0,.75); padding: 18px 24px; max-width: 360px; font: 400 clamp(17px, 2vw, 26px)/1.2 "Permanent Marker", cursive; transform: rotate(-2deg); }
.bubble::before, .bubble::after { content: ""; position: absolute; width: 0; height: 0; pointer-events: none; }
.bubble::before { left: 34%; bottom: -32px; border-left: 23px solid transparent; border-right: 23px solid transparent; border-top: 32px solid var(--ink); }
.bubble::after { left: calc(34% + 5px); bottom: -24px; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 25px solid var(--paper); }
.opening-bubble { right: 7%; top: 24%; z-index: 2; max-width: 410px; transform: rotate(2deg); }
.opening-bubble::before { left: 58%; }
.opening-bubble::after { left: calc(58% + 5px); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.6); text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .3em; transform: translateX(-50%); }
.scroll-cue b { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--lime); animation: bounce 1.6s ease-in-out infinite; }
.ink-swipe { position: absolute; left: 0; right: 0; bottom: -1px; height: 35px; background: var(--paper); clip-path: polygon(0 75%, 8% 55%, 18% 90%, 30% 35%, 42% 70%, 54% 22%, 64% 63%, 78% 29%, 90% 72%, 100% 43%, 100% 100%, 0 100%); }

.origin-prologue { min-height: 100svh; position: relative; display: grid; align-items: end; padding: 120px var(--gutter) clamp(74px, 10vh, 118px); overflow: hidden; isolation: isolate; background: var(--ink); }
.origin-prologue__art { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.origin-prologue__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.06); transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter 1.2s ease; }
.origin-prologue__shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(5,7,5,.97) 0%, rgba(5,7,5,.86) 26%, rgba(5,7,5,.26) 58%, rgba(5,7,5,.12) 76%, rgba(5,7,5,.48) 100%), linear-gradient(0deg, rgba(5,7,5,.85) 0%, transparent 45%, rgba(5,7,5,.2) 100%); }
.origin-prologue__signal { position: absolute; left: 0; right: 0; bottom: clamp(34px, 5vh, 58px); height: 1px; z-index: -1; overflow: visible; background: linear-gradient(90deg, transparent, var(--lime) 18%, rgba(166,255,0,.2) 52%, transparent 90%); box-shadow: 0 0 18px rgba(166,255,0,.28); transform: scaleX(.2); transform-origin: left; transition: transform 1.4s .35s cubic-bezier(.2,.7,.2,1); }
.origin-prologue__copy { width: min(720px, 55vw); opacity: 0; transform: translate3d(0, 54px, 0); transition: opacity .8s .12s ease, transform 1s .12s cubic-bezier(.2,.7,.2,1); }
.origin-prologue.is-visible .origin-prologue__art img { transform: scale(1); filter: saturate(1) contrast(1.04); }
.origin-prologue.is-visible .origin-prologue__signal { transform: scaleX(1); }
.origin-prologue.is-visible .origin-prologue__copy { opacity: 1; transform: translate3d(0, 0, 0); }
.origin-prologue h2 { max-width: 850px; font-size: clamp(72px, 9vw, 150px); text-shadow: 0 5px 0 rgba(0,0,0,.45); }
.origin-prologue h2 span { color: var(--lime); }
.origin-prologue__copy > p:not(.chapter-no) { max-width: 580px; margin: 26px 0 0; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.52; }
.origin-play { min-width: min(390px, 100%); margin-top: 32px; padding: 0; display: inline-grid; grid-template-columns: 76px 1fr; align-items: stretch; color: var(--ink); border: 0; background: var(--paper); box-shadow: 8px 8px 0 var(--lime); cursor: pointer; text-align: left; transform: rotate(-.7deg); transition: transform .25s, box-shadow .25s, background .25s; }
.origin-play > i { width: 76px; min-height: 72px; position: relative; display: grid; place-items: center; background: var(--lime); }
.origin-play > i::before { content: ""; width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid var(--ink); }
.origin-play > span { padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.origin-play small { font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.origin-play b { font: 400 24px/1 "Anton", Impact, sans-serif; }
.origin-play:hover { background: var(--white); box-shadow: 11px 11px 0 var(--lime); transform: translate(-3px,-3px) rotate(0); }
.origin-play:focus-visible { outline: 3px solid var(--white); outline-offset: 7px; }
.origin-prologue__file { position: absolute; right: var(--gutter); bottom: clamp(40px, 6vh, 68px); margin: 0; color: rgba(255,255,255,.58); font: 800 10px/1 "DM Sans"; letter-spacing: .28em; writing-mode: vertical-rl; }

.story-shell { background: var(--paper); }
.scene { height: 170vh; position: relative; }
.scene__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.scene__art { position: absolute; inset: -4%; z-index: -3; background-image: url("assets/agentic-kim-story.png"); background-repeat: no-repeat; background-size: 100% 500%; filter: saturate(.92) contrast(1.03); transform: scale(1.1) translate3d(var(--pan-x, 0), var(--pan-y, 0), 0); transition: filter .7s; will-change: transform; }
.scene--chaos .scene__art { background-position: 50% 0%; }
.scene--arrival .scene__art { background-position: 50% 25%; }
.scene--investigation .scene__art { background-position: 50% 50%; }
.scene--deployment .scene__art { background-position: 50% 75%; }
.scene--resolution .scene__art { background-position: 50% 100%; }
.scene__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,6,5,.93) 0%, rgba(5,6,5,.67) 38%, rgba(5,6,5,.06) 67%, rgba(5,6,5,.18) 100%); }
.scene--arrival .scene__shade, .scene--deployment .scene__shade { background: linear-gradient(90deg, rgba(5,6,5,.08), rgba(5,6,5,.25) 52%, rgba(5,6,5,.94) 82%); }
.scene--investigation .scene__shade { background: linear-gradient(90deg, rgba(245,237,220,.95), rgba(245,237,220,.68) 38%, rgba(5,6,5,.02) 68%); }
.scene--resolution .scene__shade { background: linear-gradient(90deg, rgba(246,238,218,.94), rgba(246,238,218,.56) 40%, rgba(255,255,255,.02) 72%); }
.scene__copy { position: absolute; top: 50%; left: var(--gutter); width: min(630px, 52vw); transform: translate3d(0, calc(-50% + var(--copy-y, 50px)), 0); opacity: var(--copy-opacity, 0); will-change: transform, opacity; }
.scene__copy--right { left: auto; right: var(--gutter); text-align: right; }
.scene__copy--paper { color: var(--ink); }
.scene__copy--resolution { color: var(--ink); }
.chapter-no { margin: 0 0 18px; color: var(--lime); font-weight: 800; font-size: 11px; letter-spacing: .22em; }
.scene__copy--paper .chapter-no, .scene__copy--resolution .chapter-no { color: #4f7600; }
.scene h2 { font-size: clamp(64px, 8.5vw, 136px); text-shadow: 0 5px 0 rgba(0,0,0,.35); }
.scene h2 span { color: var(--lime); }
.scene__copy--paper h2, .scene__copy--resolution h2 { text-shadow: none; }
.scene__copy > p:last-child { max-width: 570px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: clamp(17px, 1.65vw, 24px); line-height: 1.55; }
.scene__copy--right > p:last-child { margin-left: auto; }
.scene__copy--paper > p:last-child, .scene__copy--resolution > p:last-child { color: rgba(8,10,8,.78); }
.scene .bubble { z-index: 3; opacity: var(--bubble-opacity, 0); transform: translate3d(0, var(--bubble-y, 30px), 0) rotate(-2deg); will-change: opacity, transform; }
.bubble--chaos { right: 8%; top: 18%; }
.bubble--arrival { left: 8%; top: 19%; }
.bubble--investigation { right: 18%; top: 14%; font-size: clamp(26px, 3vw, 44px); }
.bubble--deployment { left: 8%; top: 18%; }
.bubble--resolution { right: 8%; top: 16%; }
.sfx { position: absolute; z-index: 2; color: var(--red); font-family: "Anton", Impact, sans-serif; font-size: clamp(38px, 6vw, 90px); font-style: italic; text-shadow: 4px 4px 0 #000; -webkit-text-stroke: 2px #000; opacity: var(--sfx-opacity, 0); transform: scale(var(--sfx-scale, .4)) rotate(-8deg); }
.sfx--ring { top: 14%; right: 24%; }
.sfx--ping { bottom: 20%; right: 10%; font-size: clamp(30px, 4.5vw, 64px); transform: scale(var(--sfx-scale, .4)) rotate(8deg); }
.panel-stats { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; gap: 10px; color: var(--paper); }
.panel-stats span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,6,5,.72); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.panel-stats b { color: var(--red); font-size: 19px; }
.caption { position: absolute; bottom: 32px; left: var(--gutter); margin: 0; padding: 10px 14px; color: var(--ink); background: var(--paper); font-family: "Permanent Marker", cursive; transform: rotate(-1deg); }
.clue-list { position: absolute; right: var(--gutter); bottom: 34px; display: grid; gap: 6px; color: var(--paper); font: 800 11px/1 "DM Sans"; letter-spacing: .12em; text-transform: uppercase; }
.clue-list span { padding: 12px 16px; background: rgba(8,10,8,.82); }
.clue-list .active { color: var(--ink); background: var(--lime); transform: translateX(-18px); }
.target-ring { position: absolute; right: 20%; top: 27%; width: 100px; height: 100px; opacity: var(--target-opacity, 0); transform: scale(var(--target-scale, .3)); }
.target-ring i { position: absolute; inset: 0; border: 2px solid var(--red); border-radius: 50%; animation: pulse 2s infinite; }
.target-ring i:nth-child(2) { inset: 17px; animation-delay: .2s; }
.target-ring i:nth-child(3) { inset: 36px; animation-delay: .4s; background: var(--red); }
.system-flow { position: absolute; left: 50%; bottom: 30px; width: min(1000px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; transform: translateX(-50%); }
.system-flow span { min-height: 65px; padding: 12px 15px; display: grid; align-content: center; color: var(--white); border: 1px solid rgba(166,255,0,.45); background: rgba(5,6,5,.83); font-size: 13px; font-weight: 700; }
.system-flow small { color: var(--lime); font-size: 9px; letter-spacing: .15em; }
.system-flow b { color: var(--lime); font-size: 24px; }
.energy-orbit { position: absolute; left: 39%; top: 36%; width: 23vw; aspect-ratio: 1; border: 1px solid rgba(166,255,0,.7); border-radius: 50%; box-shadow: 0 0 40px rgba(166,255,0,.25), inset 0 0 30px rgba(166,255,0,.12); opacity: var(--orbit-opacity, 0); transform: scale(var(--orbit-scale, .3)) rotate(var(--orbit-rotate, 0deg)); }
.energy-orbit::before, .energy-orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.energy-orbit::before { left: 10%; top: 18%; }.energy-orbit::after { right: 2%; bottom: 36%; }
.energy-orbit--two { width: 31vw; left: 35%; top: 28%; border-style: dashed; }
.outcomes { position: absolute; left: var(--gutter); bottom: 32px; display: flex; gap: 10px; }
.outcomes span { display: grid; min-width: 150px; padding: 12px 15px; color: var(--paper); background: rgba(8,10,8,.87); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.outcomes b { color: var(--lime); font: 400 30px/1 "Anton", Impact, sans-serif; }

.chapter-cut { height: 22vh; min-height: 150px; display: grid; place-items: center; position: relative; z-index: 3; overflow: hidden; color: var(--paper); background: var(--ink); transform: skewY(-2deg); margin: -4vh 0; }
.chapter-cut span { font: 400 clamp(55px, 11vw, 170px)/1 "Anton", Impact, sans-serif; white-space: nowrap; letter-spacing: .01em; transform: skewY(2deg) translateX(var(--cut-x, 0)); }
.chapter-cut--cream { color: var(--ink); background: var(--paper); }
.chapter-cut--lime { color: var(--ink); background: var(--lime); }

.finale { min-height: 92svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 110px var(--gutter); position: relative; overflow: hidden; background: var(--ink); }
.finale::before, .finale::after { content: ""; position: absolute; border: 1px solid rgba(166,255,0,.18); border-radius: 50%; }
.finale::before { width: 70vw; height: 70vw; }.finale::after { width: 45vw; height: 45vw; }
.finale > * { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(75px, 13vw, 210px); }
.finale h2 span { color: var(--lime); font-family: "Permanent Marker", cursive; text-transform: none; }
.finale > p:not(.chapter-no) { max-width: 650px; margin: 30px auto; color: rgba(255,255,255,.7); font-size: clamp(17px, 1.7vw, 23px); line-height: 1.55; }
.mission-button { margin-top: 12px; padding: 21px 28px; color: var(--ink); background: var(--lime); border: 3px solid var(--lime); box-shadow: 8px 8px 0 var(--paper); text-decoration: none; font: 800 14px/1 "DM Sans"; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-1deg); transition: .2s; }
.mission-button:hover { color: var(--paper); background: transparent; transform: translate(-3px,-3px) rotate(0); box-shadow: 11px 11px 0 var(--lime); }
footer { min-height: 110px; padding: 25px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; color: rgba(255,255,255,.46); border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
footer .brand { color: var(--white); text-transform: none; } footer p:last-child { text-align: right; }

body.recorder-open, body.video-open { overflow: hidden; }
.video-overlay[hidden] { display: none !important; }
.video-overlay { position: fixed; inset: 0; z-index: 700; padding: clamp(72px, 8vh, 104px) var(--gutter) clamp(28px, 5vh, 64px); display: grid; place-items: center; overflow-y: auto; color: var(--white); background: radial-gradient(circle at 50% 35%, rgba(166,255,0,.1), transparent 34%), rgba(4,6,4,.97); backdrop-filter: blur(16px); }
.video-close { position: fixed; top: 22px; right: 28px; z-index: 2; width: 48px; height: 48px; color: var(--paper); border: 1px solid rgba(255,255,255,.35); background: rgba(8,10,8,.82); font: 300 32px/1 "DM Sans"; cursor: pointer; transition: .2s; }
.video-close:hover { color: var(--ink); border-color: var(--lime); background: var(--lime); transform: rotate(4deg); }
.video-shell { width: min(1180px, 100%); }
.video-header { margin-bottom: clamp(14px, 2vh, 24px); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.video-header p { margin: 0 0 8px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.video-header h2 { font-size: clamp(42px, 5vw, 76px); }
.video-header > span { color: rgba(255,255,255,.55); font: 400 30px/1 "Anton", Impact, sans-serif; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(166,255,0,.52); background: #000 url("assets/agentic-kim-origin-prologue-v1.png") center / cover no-repeat; box-shadow: 14px 14px 0 rgba(166,255,0,.9); }
.video-frame::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.28); }
.video-frame > span { position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.video-frame iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.video-footer { margin-top: clamp(17px, 2.5vh, 28px); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: rgba(255,255,255,.55); }
.video-footer p { margin: 0; font-family: "Permanent Marker", cursive; font-size: 18px; }
.video-footer a { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.recorder-overlay[hidden] { display: none !important; }
.recorder-overlay { position: fixed; inset: 0; z-index: 500; overflow-y: auto; color: var(--white); background:
  radial-gradient(circle at 15% 16%, rgba(166,255,0,.12), transparent 24%),
  repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(255,255,255,.035) 10% 10.1%), var(--ink); }
.recorder-shell { min-height: 100svh; position: relative; padding: clamp(72px, 8vw, 118px) var(--gutter); overflow: hidden; isolation: isolate; }
.recorder-shell::before { content: ""; position: absolute; z-index: -1; inset: -16% -12% 52% 48%; background: var(--charcoal); clip-path: polygon(50% 0, 62% 29%, 100% 16%, 80% 51%, 100% 84%, 57% 70%, 33% 100%, 28% 62%, 0 42%, 35% 27%); opacity: .7; }
.recorder-close { position: fixed; top: 22px; right: 28px; z-index: 2; width: 48px; height: 48px; color: var(--paper); border: 1px solid rgba(255,255,255,.35); background: rgba(8,10,8,.75); font: 300 32px/1 "DM Sans"; cursor: pointer; transition: .2s; }
.recorder-close:hover { color: var(--ink); border-color: var(--lime); background: var(--lime); transform: rotate(4deg); }
.recorder-header { max-width: 920px; margin-bottom: clamp(45px, 6vw, 86px); }
.recorder-header h2 { font-size: clamp(72px, 10vw, 150px); }
.recorder-header h2 span { color: var(--lime); }
.recorder-header > p:last-child { max-width: 620px; margin: 26px 0 0; color: rgba(255,255,255,.65); font-size: clamp(17px, 1.6vw, 23px); }
.recorder-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(480px,1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.recorder-prompt { position: sticky; top: 40px; padding: clamp(24px,3vw,42px); color: var(--ink); background: var(--paper); border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--lime); transform: rotate(-1deg); }
.recorder-label { color: #4f7600; font: 800 10px/1 "DM Sans"; letter-spacing: .2em; }
.recorder-prompt h3 { margin: 20px 0 30px; font: 800 clamp(30px,3vw,48px)/1.05 "DM Sans"; letter-spacing: -.045em; }
.recorder-prompt ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.recorder-prompt li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid rgba(8,10,8,.16); font-size: 14px; font-weight: 700; }
.recorder-prompt li b { color: #5d8d00; font: 400 24px/1 "Anton"; }
.recorder-privacy { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(8,10,8,.22); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mission-form { display: grid; gap: 22px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mission-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-fields label:last-child { grid-column: 1 / -1; }
.mission-fields label { display: grid; gap: 8px; }
.mission-fields label > span { font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.mission-fields small { color: rgba(255,255,255,.45); font-size: 9px; }
.mission-fields input { width: 100%; min-height: 52px; padding: 0 16px; color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 0; outline: none; background: rgba(255,255,255,.055); font: 600 15px/1 "DM Sans"; transition: border-color .2s, background .2s; }
.mission-fields input:focus { border-color: var(--lime); background: rgba(166,255,0,.06); }
.voice-deck { position: relative; padding: clamp(22px,3vw,34px); border: 1px solid rgba(166,255,0,.38); background: rgba(7,10,7,.82); box-shadow: inset 0 0 60px rgba(166,255,0,.04); }
.voice-deck[hidden], .written-deck[hidden] { display: none; }
.voice-deck__top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: var(--lime); font-size: 10px; letter-spacing: .13em; }
.voice-deck__top time { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.record-light { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); box-shadow: 0 0 0 rgba(255,64,46,0); }
.voice-deck[data-recorder-state="recording"] .record-light { background: var(--red); box-shadow: 0 0 18px var(--red); animation: recordPulse 1s ease-in-out infinite; }
.waveform { height: 112px; margin: 22px 0 14px; display: flex; align-items: center; justify-content: center; gap: clamp(3px,.55vw,7px); overflow: hidden; }
.waveform i { width: clamp(3px,.45vw,6px); min-height: 4px; height: var(--level, 8%); background: var(--lime); box-shadow: 0 0 10px rgba(166,255,0,.55); transition: height 80ms linear, opacity .2s; opacity: .34; }
.voice-deck[data-recorder-state="recording"] .waveform i { opacity: 1; }
.voice-deck[data-recorder-state="ready"] .waveform i { opacity: .7; }
.voice-instruction { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; text-align: center; }
.record-controls { margin-top: 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.record-controls button { min-height: 46px; padding: 0 18px; cursor: pointer; font: 800 11px/1 "DM Sans"; letter-spacing: .08em; text-transform: uppercase; }
.record-button { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); border: 2px solid var(--lime); background: var(--lime); }
.record-button i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.stop-button, .rerecord-button { color: var(--paper); border: 1px solid rgba(255,255,255,.3); background: transparent; }
.record-controls button:disabled { opacity: .3; cursor: not-allowed; }
#recording-preview { width: 100%; height: 42px; margin-top: 20px; accent-color: var(--lime); }
.upload-fallback { display: block; margin-top: 20px; color: rgba(255,255,255,.48); font-size: 11px; text-align: center; cursor: pointer; }
.upload-fallback b { color: var(--lime); }
.upload-fallback input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent-line { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent-line input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); }
.submit-mission { min-height: 58px; padding: 0 24px; color: var(--ink); border: 3px solid var(--lime); background: var(--lime); box-shadow: 7px 7px 0 var(--paper); cursor: pointer; font: 800 13px/1 "DM Sans"; letter-spacing: .1em; text-transform: uppercase; transition: .2s; }
.submit-mission:hover:not(:disabled) { color: var(--paper); background: transparent; transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--lime); }
.submit-mission:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.form-message { min-height: 18px; margin: 0; color: var(--lime); font-size: 12px; font-weight: 700; }
.form-message.error { color: #ff7467; }
.written-deck { position: relative; padding: clamp(22px,3vw,34px); border: 1px solid rgba(166,255,0,.38); background: rgba(7,10,7,.82); box-shadow: inset 0 0 60px rgba(166,255,0,.04); }
.brief-field { display: grid; gap: 12px; }
.brief-field > span { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brief-field textarea { width: 100%; min-height: 250px; resize: vertical; padding: 20px; color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 0; outline: none; background: rgba(255,255,255,.055); font: 500 16px/1.55 "DM Sans", sans-serif; transition: border-color .2s, background .2s; }
.brief-field textarea:focus { border-color: var(--lime); background: rgba(166,255,0,.06); }
.written-deck__meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; color: rgba(255,255,255,.45); font-size: 10px; }
.mode-switch { margin-top: 24px; padding: 0; color: var(--paper); border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; font: 800 11px/1.5 "DM Sans"; letter-spacing: .06em; text-transform: uppercase; }
.mode-switch:hover { color: var(--lime); border-color: var(--lime); }
.text-fallback { margin: -6px 0 0; color: rgba(255,255,255,.4); font-size: 11px; }
.text-fallback button { padding: 0; color: var(--paper); border: 0; border-bottom: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; font: inherit; }
.text-fallback button:hover { color: var(--lime); border-color: var(--lime); }
.mission-form.is-sent { min-height: 360px; place-content: center; text-align: center; border: 1px solid rgba(166,255,0,.4); background: rgba(166,255,0,.055); }
.mission-success-mark { color: var(--lime); font: 400 clamp(70px,9vw,120px)/1 "Anton"; }
.mission-form.is-sent h3 { margin: 14px 0 8px; font: 400 clamp(42px,5vw,72px)/1 "Anton"; text-transform: uppercase; }
.mission-form.is-sent p { margin: 0 auto; max-width: 450px; color: rgba(255,255,255,.65); }

@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.9} 50%{transform:scale(1.15);opacity:.25} }
@keyframes recordPulse { 0%,100%{transform:scale(.8);opacity:.65} 50%{transform:scale(1.2);opacity:1} }

@media (min-width: 901px) {
  .opening-bubble::before { left: 20%; }
  .opening-bubble::after { left: calc(20% + 5px); }

  .bubble--investigation::before { left: 48%; }
  .bubble--investigation::after { left: calc(48% + 5px); }

  .bubble--chaos { top: 22%; }
  .bubble--arrival { left: clamp(18%, calc(40vw - 300px), 22%); top: 10%; }
  .bubble--deployment { left: auto; right: clamp(280px, calc(var(--gutter) + 650px), calc(100% - 380px)); }

  .bubble--chaos::before,
  .bubble--arrival::before,
  .bubble--deployment::before {
    left: auto; right: -36px; top: 52%; bottom: auto;
    border: 0; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-left: 36px solid var(--ink);
  }
  .bubble--chaos::after,
  .bubble--arrival::after,
  .bubble--deployment::after {
    left: auto; right: -27px; top: calc(52% + 5px); bottom: auto;
    border: 0; border-top: 19px solid transparent; border-bottom: 19px solid transparent; border-left: 28px solid var(--paper);
  }

  .bubble--resolution::before {
    left: -36px; right: auto; top: 46%; bottom: auto;
    border: 0; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-right: 36px solid var(--ink);
  }
  .bubble--resolution::after {
    left: -27px; right: auto; top: calc(46% + 5px); bottom: auto;
    border: 0; border-top: 19px solid transparent; border-bottom: 19px solid transparent; border-right: 28px solid var(--paper);
  }
}

@media (min-width: 901px) and (min-height: 700px) {
  .recorder-overlay { overflow: hidden; }
  .recorder-shell {
    height: 100svh;
    min-height: 0;
    padding: clamp(22px, 3vh, 34px) var(--gutter);
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(28px, 4vw, 68px);
    row-gap: clamp(16px, 2.2vh, 24px);
    align-content: center;
  }
  .recorder-header { grid-column: 1; grid-row: 1; max-width: 470px; margin: 0; align-self: end; }
  .recorder-header h2 { font-size: clamp(52px, 5.4vw, 82px); line-height: .88; }
  .recorder-header > p:last-child { margin-top: 12px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.42; }
  .recorder-grid { display: contents; }
  .recorder-prompt {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    top: auto;
    align-self: start;
    padding: clamp(18px, 2.2vh, 26px);
    border-width: 3px;
    box-shadow: 8px 8px 0 var(--lime);
    transform: rotate(-.55deg);
  }
  .recorder-prompt h3 { margin: 12px 0 16px; font-size: clamp(27px, 2.5vw, 38px); }
  .recorder-prompt ol { gap: 4px; }
  .recorder-prompt li { grid-template-columns: 32px 1fr; gap: 7px; padding: 8px; font-size: 12px; }
  .recorder-prompt li b { font-size: 20px; }
  .recorder-privacy { margin-top: 14px; padding-top: 12px; font-size: 8px; }
  .mission-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    gap: clamp(10px, 1.35vh, 14px);
    max-height: calc(100svh - clamp(44px, 6vh, 68px));
  }
  .mission-fields { gap: 10px 14px; }
  .mission-fields label { gap: 5px; }
  .mission-fields input { min-height: 44px; }
  .voice-deck, .written-deck { padding: clamp(17px, 2vh, 22px); }
  .waveform { height: clamp(62px, 8vh, 78px); margin: 12px 0 8px; }
  .record-controls { margin-top: 12px; }
  .record-controls button { min-height: 40px; }
  #recording-preview, .upload-fallback { margin-top: 12px; }
  .submit-mission { min-height: 50px; }
  .form-message { min-height: 14px; }
  .brief-field textarea { min-height: clamp(170px, 23vh, 220px); }
  .mode-switch { margin-top: 14px; }
  .text-fallback { margin-top: -2px; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; height: 64px; }
  .topbar nav { position: fixed; bottom: 14px; left: 50%; z-index: 100; padding: 11px 13px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(8,10,8,.82); backdrop-filter: blur(12px); }
  .topbar nav a i { width: 18px; height: 4px; border-radius: 2px; }
  .topbar nav a.active i { width: 34px; }
  .topbar nav a em { display: none; }
  .top-cta { padding: 10px 12px; font-size: 10px; }
  .cold-open { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 96px var(--gutter) 88px; }
  .cold-open__copy { order: 2; width: 100%; }
  .opening-agent { inset: 64px -8% auto 0; width: auto; height: 54%; clip-path: none; background-position: 50% 25%; filter: saturate(.78) contrast(1.06); }
  .opening-agent::after { background: linear-gradient(180deg, rgba(8,10,8,.18) 0%, rgba(8,10,8,.08) 42%, rgba(8,10,8,.82) 78%, var(--ink) 100%), linear-gradient(90deg, rgba(8,10,8,.44), transparent 52%, rgba(8,10,8,.18)); }
  .opening-bubble { position: absolute; order: 1; top: 35%; right: 5%; align-self: auto; width: min(320px, 70vw); margin: 0; transform: rotate(1deg); }
  .origin-prologue { min-height: 105svh; padding: 92px var(--gutter) 86px; }
  .origin-prologue__art img { object-position: 58% center; }
  .origin-prologue__shade { background: linear-gradient(180deg, rgba(5,7,5,.08) 0%, rgba(5,7,5,.12) 30%, rgba(5,7,5,.78) 57%, rgba(5,7,5,.98) 86%), linear-gradient(90deg, rgba(5,7,5,.5), transparent 65%); }
  .origin-prologue__copy { width: min(650px, 100%); }
  .origin-prologue h2 { max-width: 700px; font-size: clamp(64px, 14vw, 105px); }
  .origin-prologue__copy > p:not(.chapter-no) { max-width: 540px; margin-top: 20px; font-size: 16px; }
  .origin-play { margin-top: 25px; }
  .origin-prologue__file { top: 92px; right: var(--gutter); bottom: auto; writing-mode: horizontal-tb; }
  .video-overlay { padding: 78px 20px 28px; }
  .video-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .video-header h2 { font-size: clamp(35px, 7vw, 58px); }
  .video-frame { box-shadow: 8px 8px 0 rgba(166,255,0,.9); }
  .scene { height: 145vh; }
  .scene__art { inset: -2%; background-size: auto 500%; background-position-x: center; }
  .scene--resolution .scene__art { background-position-x: 62%; }
  .scene__shade, .scene--arrival .scene__shade, .scene--deployment .scene__shade, .scene--investigation .scene__shade, .scene--resolution .scene__shade { background: linear-gradient(180deg, rgba(5,6,5,.08) 0%, rgba(5,6,5,.12) 36%, rgba(5,6,5,.92) 65%, rgba(5,6,5,.98) 100%); }
  .scene--investigation .scene__shade, .scene--resolution .scene__shade { background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.06) 38%, rgba(242,234,217,.9) 67%, rgba(242,234,217,.98) 100%); }
  .scene__copy, .scene__copy--right { top: auto; bottom: 90px; left: var(--gutter); right: var(--gutter); width: auto; text-align: left; transform: translate3d(0, var(--copy-y, 50px), 0); }
  .scene h2 { font-size: clamp(55px, 15vw, 100px); }
  .scene__copy--right > p:last-child { margin-left: 0; }
  .bubble { max-width: 280px; font-family: "DM Sans", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; }
  .bubble--chaos, .bubble--arrival, .bubble--deployment { left: auto; right: 5%; top: 13%; }
  .bubble--investigation, .bubble--resolution { right: 5%; top: 12%; }
  .sfx--ring { top: 34%; left: 3%; right: auto; font-size: clamp(34px, 12vw, 58px); }
  .sfx--ping { top: 43%; right: 5%; bottom: auto; font-size: clamp(28px, 10vw, 48px); }
  .panel-stats, .clue-list, .system-flow, .outcomes { display: none; }
  .caption { display: none; }
  .target-ring { right: 18%; top: 33%; }
  .energy-orbit { left: 25%; top: 25%; width: 50vw; }.energy-orbit--two{left:17%;top:20%;width:66vw}
  .chapter-cut { height: auto; min-height: 160px; padding: 34px 0; }
  .chapter-cut--lime { min-height: 190px; place-items: start center; padding-top: 8px; }
  .chapter-cut span { width: max-content; max-width: none; white-space: nowrap; text-align: center; font-size: clamp(43px, 11vw, 64px); line-height: .92; transform: skewY(2deg) translate3d(var(--cut-x, 0), 0, 0); will-change: transform; }
  .chapter-cut--lime span { font-size: clamp(40px, 10vw, 60px); }
  .recorder-shell { padding-top: 82px; }
  .recorder-header { margin-bottom: 38px; }
  .recorder-header h2 { font-size: clamp(64px, 16vw, 110px); }
  .recorder-grid { grid-template-columns: 1fr; }
  .recorder-prompt { position: relative; top: auto; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 90px; } footer p:last-child { text-align: center; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .brand { font-size: 19px; }.brand b { font-size: 23px; }
  .top-cta { font-size: 0; }.top-cta span { font-size: 16px; }
  .signal { top: 92px; font-size: 9px; }
  h1 { font-size: clamp(58px, 18vw, 80px); }
  .opening-agent { height: 56%; background-position: 52% 22.5%; }
  .opening-bubble { top: clamp(112px, 17svh, 148px); width: min(280px, 78vw); max-width: none; font-size: 15px; line-height: 1.25; }
  .opening-bubble::before { left: 34%; }
  .opening-bubble::after { left: calc(34% + 4px); }
  .origin-prologue { min-height: 102svh; padding: 82px 20px 78px; }
  .origin-prologue__art img { object-position: 57% center; }
  .origin-prologue h2 { font-size: clamp(58px, 17vw, 76px); }
  .origin-prologue__copy > p:not(.chapter-no) { margin-top: 16px; font-size: 14px; line-height: 1.48; }
  .origin-play { width: 100%; min-width: 0; grid-template-columns: 62px 1fr; margin-top: 22px; box-shadow: 6px 6px 0 var(--lime); }
  .origin-play > i { width: 62px; min-height: 64px; }
  .origin-play > span { padding: 11px 14px; gap: 12px; }
  .origin-play small { font-size: 9px; }
  .origin-play b { font-size: 20px; }
  .origin-prologue__file { top: 76px; font-size: 8px; letter-spacing: .2em; }
  .video-overlay { align-items: center; padding: 72px 14px 24px; }
  .video-header { align-items: end; gap: 12px; }
  .video-header p { font-size: 8px; }
  .video-header h2 { font-size: 32px; line-height: .95; }
  .video-header > span { font-size: 22px; }
  .video-frame { box-shadow: 6px 6px 0 rgba(166,255,0,.9); }
  .video-footer { align-items: flex-start; }
  .video-footer p { font-size: 14px; }
  .video-footer a { font-size: 9px; text-align: right; }
  .bubble--resolution { left: 5%; right: auto; top: 90px; width: min(215px, 58vw); }
  .bubble--resolution::before {
    left: auto; right: -30px; top: 42%; bottom: auto;
    border: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 30px solid var(--ink);
  }
  .bubble--resolution::after {
    left: auto; right: -22px; top: calc(42% + 4px); bottom: auto;
    border: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 23px solid var(--paper);
  }
  .scene__copy { bottom: 82px; }
  .scene__copy > p:last-child { font-size: 16px; margin-top: 18px; }
  .chapter-no { font-size: 9px; }
  .bubble { padding: 13px 17px; border-width: 3px; font-size: 16px; box-shadow: 5px 5px 0 rgba(0,0,0,.75); }
  .chapter-cut { min-height: 140px; }
  .chapter-cut--lime { min-height: 175px; }
  .recorder-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .recorder-header h2 { font-size: clamp(58px, 17vw, 76px); }
  .recorder-header > p:last-child { margin-top: 18px; font-size: 15px; }
  .recorder-prompt { padding: 22px; box-shadow: 7px 7px 0 var(--lime); }
  .recorder-prompt h3 { font-size: 30px; }
  .mission-fields { grid-template-columns: 1fr; }
  .mission-fields label:last-child { grid-column: auto; }
  .voice-deck { padding: 19px 15px; }
  .voice-deck__top { grid-template-columns: auto 1fr; }
  .voice-deck__top time { grid-column: 1 / -1; }
  .waveform { height: 82px; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene__copy, .scene .bubble { opacity: 1 !important; transform: translate3d(0,0,0) !important; }
  .scene__art { transform: scale(1.04) !important; }
  .origin-prologue__copy { opacity: 1 !important; transform: none !important; }
  .origin-prologue__art img { transform: scale(1) !important; }
  .origin-prologue__signal { transform: scaleX(1) !important; }
}
