:root {
  --bg: #070907;
  --surface: #0d100d;
  --surface-2: #121712;
  --ink: #f3f6ee;
  --muted: #9ba59a;
  --accent: #c8ff2e;
  --accent-strong: #aaff00;
  --line: rgba(239, 255, 231, .16);
  --line-strong: rgba(239, 255, 231, .34);
  --panel: rgba(8, 11, 8, .76);
  --image-filter: saturate(.72) brightness(.52) contrast(1.12);
  --hero-overlay: linear-gradient(180deg, rgba(2,4,2,.46) 0%, rgba(2,4,2,.20) 38%, rgba(2,4,2,.72) 78%, #070907 100%);
  --shadow: 0 30px 90px rgba(0,0,0,.42);
}

body[data-theme="acid"] {
  --bg: #aaff0b;
  --surface: #97ef08;
  --surface-2: #c0ff35;
  --ink: #071006;
  --muted: #17330f;
  --accent: #071006;
  --accent-strong: #071006;
  --line: rgba(5, 30, 4, .20);
  --line-strong: rgba(5, 30, 4, .38);
  --panel: rgba(185, 255, 33, .84);
  --image-filter: grayscale(1) sepia(1) saturate(15) hue-rotate(44deg) brightness(1.18) contrast(1.05);
  --hero-overlay: linear-gradient(180deg, rgba(178,255,16,.08) 0%, rgba(178,255,16,.20) 45%, rgba(175,255,15,.78) 82%, #aaff0b 100%);
  --shadow: 0 28px 70px rgba(14,66,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  transition: background-color .55s cubic-bezier(.2,.8,.2,1), color .55s cubic-bezier(.2,.8,.2,1);
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  left: 0;
  top: 0;
  opacity: .12;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  filter: blur(34px);
  transition: opacity .3s ease, background .4s ease;
}

.topbar {
  position: fixed;
  z-index: 90;
  left: 30px;
  right: 30px;
  top: 24px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.02em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.nav-links { display: flex; gap: 36px; font: 700 10px/1 'SFMono-Regular', Consolas, monospace; letter-spacing: .14em; }
.nav-links a { position: relative; opacity: .62; transition: opacity .2s ease; }
.nav-links a::after { content:""; position:absolute; left:0; right:100%; bottom:-8px; height:1px; background:currentColor; transition:right .25s ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right:0; }
.color-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.switch-copy { display:flex; flex-direction:column; align-items:flex-end; line-height:1; }
.switch-copy b { font: 800 9px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.13em; }
.switch-copy small { margin-top:5px; font: 700 9px/1 'SFMono-Regular', Consolas, monospace; opacity:.48; letter-spacing:.12em; }
.switch-rail { width:54px; height:28px; border:1px solid var(--line-strong); border-radius:99px; padding:3px; display:block; background:var(--surface-2); transition:.35s ease; }
.switch-knob { display:block; width:20px; height:20px; border-radius:50%; background:var(--accent); transition:transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease; }
body[data-theme="acid"] .switch-knob { transform:translateX(26px); }
body[data-theme="acid"] .switch-rail { background:#071006; }

.scene { position: relative; isolation:isolate; }
.hero { min-height: 100vh; height: 1080px; overflow: hidden; background: #030403; }
.hero-bg { position:absolute; inset:-3%; z-index:-4; will-change: transform; }
.hero-bg img { height:108%; object-fit:cover; object-position:center 46%; filter:var(--image-filter); transition:filter .7s ease; }
.hero-bg::after { content:""; position:absolute; inset:0; background:var(--hero-overlay); transition:background .65s ease; }
.hero-vignette { position:absolute; inset:0; z-index:-2; background:radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(0,0,0,.18) 66%, rgba(0,0,0,.56) 100%); transition:opacity .5s ease; }
body[data-theme="acid"] .hero-vignette { opacity:.16; }

.hero-mode-control {
  position:absolute;
  z-index:8;
  left:50%;
  top:122px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:14px;
}
.mode-kicker {
  font:700 9px/1 'SFMono-Regular', Consolas, monospace;
  letter-spacing:.18em;
  opacity:.58;
}
.hero-switch {
  height:56px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 10px 0 18px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:var(--panel);
  color:var(--ink);
  cursor:pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0,0,0,.14);
  transition:transform .2s ease, background .45s ease, border-color .45s ease;
}
.hero-switch:hover { transform:translateY(-2px); }
.hero-switch:active { transform:translateY(0) scale(.99); }
.hero-switch-text { min-width:130px; text-align:left; display:flex; flex-direction:column; gap:4px; }
.hero-switch-text b { font-size:11px; letter-spacing:.04em; }
.hero-switch-text small { font:700 8px/1 'SFMono-Regular', Consolas, monospace; opacity:.48; letter-spacing:.12em; }
.hero-switch-rail { width:72px; height:36px; border-radius:99px; border:1px solid var(--line-strong); background:var(--surface-2); padding:4px; }
.hero-switch-rail span { display:block; width:26px; height:26px; border-radius:50%; background:var(--accent); transition:transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease; }
body[data-theme="acid"] .hero-switch-rail { background:#071006; }
body[data-theme="acid"] .hero-switch-rail span { transform:translateX(36px); background:#b9ff24; }

.hero-copy {
  position:absolute;
  z-index:5;
  left:5.5vw;
  right:5.5vw;
  bottom:196px;
  text-align:left;
}
.eyebrow {
  margin:0 0 20px;
  color:#fff;
  font:700 10px/1.2 'SFMono-Regular', Consolas, monospace;
  letter-spacing:.16em;
  opacity:.68;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
}
.hero h1 {
  margin:0;
  display:flex;
  align-items:flex-end;
  gap:24px;
  font-family:Arial Black, Arial, sans-serif;
  font-size:clamp(142px,14.4vw,270px);
  font-weight:900;
  line-height:.74;
  letter-spacing:-.085em;
  color:#fff;
  text-shadow:0 14px 48px rgba(0,0,0,.32);
}
.hero h1 span { display:block; }
.hero h1 span:nth-child(2) { color:var(--accent); }
.hero-line {
  margin:28px 0 0;
  width:max-content;
  padding:11px 14px 10px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:10px;
  background:rgba(4,6,4,.54);
  color:#fff;
  backdrop-filter:blur(10px);
  font:700 10px/1 'SFMono-Regular', Consolas, monospace;
  letter-spacing:.12em;
}
.hero-bottom {
  position:absolute;
  z-index:8;
  left:5.5vw;
  right:5.5vw;
  bottom:38px;
  display:grid;
  grid-template-columns:150px 1fr 260px;
  gap:24px;
  align-items:end;
}
.ticker-tag { font-size:17px; font-weight:900; color:#fff; letter-spacing:-.02em; }
.ca-strip {
  height:62px;
  display:grid;
  grid-template-columns:48px 1fr 62px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.28);
  border-bottom:1px solid rgba(255,255,255,.28);
  color:#fff;
}
.ca-label,.copy-hint { font:700 9px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.14em; opacity:.72; }
.ca-value { border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; overflow:hidden; padding:0 12px; }
.ca-value span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font:400 11px/1 'SFMono-Regular', Consolas, monospace; opacity:.76; }
.copy-hint { justify-self:end; }
.down-link { color:#fff; font:700 9px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.12em; display:flex; justify-content:space-between; align-items:center; height:62px; border-top:1px solid rgba(255,255,255,.28); border-bottom:1px solid rgba(255,255,255,.28); }
.down-link span { font-size:20px; }

.marquee { width:100vw; overflow:hidden; background:var(--accent); color:var(--bg); border-top:1px solid var(--bg); border-bottom:1px solid var(--bg); transition:background .5s ease,color .5s ease; }
.marquee-track { display:flex; width:max-content; white-space:nowrap; animation:marquee 28s linear infinite; }
.marquee-set { display:flex; flex-shrink:0; }
.marquee span { display:block; padding:16px 20px 15px; font-size:14px; font-weight:900; letter-spacing:-.015em; }
@keyframes marquee { to { transform:translateX(-50%); } }

.origin { min-height:1080px; padding:150px 6vw 110px; background:var(--bg); overflow:hidden; transition:background .5s ease; }
.origin-number { position:absolute; top:100px; right:5vw; font-size:210px; font-weight:900; line-height:1; color:transparent; -webkit-text-stroke:1px var(--line); opacity:.72; }
.origin-title-wrap { position:relative; z-index:5; width:49%; }
.micro,.section-index { font:700 9px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.18em; opacity:.54; }
.origin h2,.stage-copy h2,.gallery h2,.switch-lab h2,.final h2 { font-family:Arial Black, Arial, sans-serif; font-weight:900; letter-spacing:-.06em; line-height:.88; margin:18px 0 0; }
.origin h2 { font-size:70px; }
.origin-copy { position:absolute; z-index:5; top:410px; left:6vw; width:360px; font-size:15px; line-height:1.7; color:var(--muted); }
.origin-copy p:first-child { color:var(--ink); font-weight:700; }
.run-frame { position:absolute; right:5.5vw; top:260px; width:57vw; margin:0; box-shadow:var(--shadow); border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.run-frame img { aspect-ratio:16/9; object-fit:cover; filter:var(--image-filter); transition:filter .65s ease; }
.run-frame figcaption { position:absolute; left:18px; bottom:16px; padding:8px 11px; border-radius:8px; background:var(--panel); color:var(--ink); backdrop-filter:blur(8px); font:700 8px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.12em; }

.stage-section { min-height:1080px; display:grid; grid-template-columns:56% 44%; background:var(--surface); overflow:hidden; transition:background .5s ease; }
.stage-image { position:relative; overflow:hidden; border-right:1px solid var(--line); }
.stage-image::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 58%,rgba(0,0,0,.10)); transition:background .5s ease; }
.stage-image img { height:100%; object-fit:cover; object-position:center; filter:var(--image-filter); transition:filter .65s ease; }
.stage-copy { position:relative; align-self:center; width:auto; padding:0 6vw 120px 5vw; z-index:5; }
.stage-copy h2 { font-size:72px; }
.stage-copy p { width:88%; margin:30px 0 0; font-size:15px; line-height:1.75; color:var(--muted); }
.rule-note { position:absolute; z-index:5; padding:12px 14px; border-top:1px solid var(--line-strong); font:700 9px/1.55 'SFMono-Regular', Consolas, monospace; letter-spacing:.1em; color:var(--muted); }
.rule-one { right:6vw; bottom:76px; width:220px; }
.rule-two { right:30vw; bottom:76px; width:245px; }

.gallery { min-height:1210px; padding:130px 6vw; background:var(--bg); overflow:hidden; transition:background .5s ease; }
.gallery-heading { position:relative; z-index:6; width:68vw; }
.gallery h2 { font-size:80px; }
.gallery-card { position:absolute; margin:0; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:var(--shadow); }
.gallery-card img { height:100%; object-fit:cover; filter:var(--image-filter); transition:filter .65s ease, transform .55s ease; }
.gallery-card:hover img { transform:scale(1.025); }
.gallery-card figcaption { position:absolute; left:14px; bottom:13px; background:var(--panel); color:var(--ink); backdrop-filter:blur(8px); border-radius:8px; padding:8px 10px; font:700 8px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.1em; }
.card-close { width:39vw; height:420px; left:6vw; top:445px; }
.card-sit { width:42vw; height:420px; right:6vw; top:520px; }
.card-stand { width:33vw; height:315px; left:35vw; top:875px; }
.gallery-word { position:absolute; right:-2vw; bottom:-16px; font-size:230px; font-weight:900; color:transparent; -webkit-text-stroke:1px var(--line); letter-spacing:-.08em; pointer-events:none; }

.switch-lab { min-height:900px; display:grid; grid-template-columns:42% 58%; background:var(--surface-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; transition:background .5s ease; }
.lab-left { padding:145px 5vw 90px 6vw; position:relative; z-index:5; }
.switch-lab h2 { font-size:78px; }
.lab-left p { width:85%; color:var(--muted); margin-top:28px; font-size:15px; line-height:1.65; }
.big-switch { margin-top:56px; width:370px; height:92px; padding:12px 14px 12px 20px; display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line-strong); border-radius:18px; background:var(--bg); cursor:pointer; box-shadow:0 18px 45px rgba(0,0,0,.10); transition:transform .15s ease, background .4s ease; }
.big-switch:hover { transform:translateY(-3px); }
.big-switch:active { transform:translateY(0) scale(.99); }
.big-switch-label { font-size:18px; font-weight:900; letter-spacing:-.03em; }
.big-switch-slot { width:88px; height:42px; border:1px solid var(--line-strong); border-radius:99px; background:var(--surface); padding:4px; }
.big-switch-slot span { display:block; width:32px; height:32px; border-radius:50%; background:var(--accent); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
body[data-theme="acid"] .big-switch-slot { background:#071006; }
body[data-theme="acid"] .big-switch-slot span { transform:translateX(44px); background:#baff1d; }
.lab-right { position:relative; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 50%, color-mix(in srgb,var(--accent) 22%,transparent), transparent 58%); }
.lab-character { position:relative; z-index:3; width:76%; max-width:760px; border-radius:26px; filter:var(--image-filter); transition:filter .65s ease; box-shadow:var(--shadow); }
.lab-warning { position:absolute; top:72px; right:4vw; z-index:6; text-align:right; font:700 9px/1.4 'SFMono-Regular', Consolas, monospace; letter-spacing:.12em; opacity:.7; }
.lab-warning strong { display:block; margin-top:5px; font:900 42px/.9 Arial Black, Arial, sans-serif; letter-spacing:-.05em; }
.lab-orbit { position:absolute; border:1px solid var(--line); border-radius:50%; animation:spin 24s linear infinite; }
.lab-orbit::after { content:""; position:absolute; width:10px; height:10px; background:var(--accent); border-radius:50%; left:50%; top:-5px; }
.orbit-one { width:600px; height:600px; }
.orbit-two { width:770px; height:770px; animation-direction:reverse; animation-duration:34s; }
@keyframes spin { to { transform:rotate(360deg); } }

.final { min-height:1080px; background:#030403; overflow:hidden; color:#fff; }
.final-bg { position:absolute; inset:0; z-index:-2; }
.final-bg img { height:100%; object-fit:cover; filter:var(--image-filter); transform:scale(1.06); transition:filter .65s ease; }
.final-bg::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.20),rgba(0,0,0,.82)); transition:background .5s ease; }
body[data-theme="acid"] .final-bg::after { background:linear-gradient(180deg,rgba(170,255,11,.12),rgba(170,255,11,.80)); }
.final-content { position:relative; z-index:4; width:88vw; margin:0 auto; padding-top:180px; }
.final h2 { font-size:166px; line-height:.73; color:#fff; }
.final .micro { color:#fff; opacity:.66; }
.social-row { margin-top:62px; display:flex; border-top:1px solid rgba(255,255,255,.30); border-bottom:1px solid rgba(255,255,255,.30); }
.social-row a { flex:1; min-height:80px; padding:0 18px; display:flex; align-items:center; justify-content:space-between; border-right:1px solid rgba(255,255,255,.24); font:700 10px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.1em; transition:background .2s ease,color .2s ease; }
.social-row a:last-child { border-right:0; }
.social-row a:hover { background:#fff; color:#000; }
.final-ca { margin-top:30px; width:100%; display:grid; grid-template-columns:180px 1fr 70px; align-items:center; min-height:76px; border:1px solid rgba(255,255,255,.30); border-radius:14px; color:#fff; background:rgba(0,0,0,.30); backdrop-filter:blur(10px); cursor:pointer; text-align:left; padding:0 20px; }
.final-ca span,.final-ca em { font:700 8px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.13em; font-style:normal; }
.final-ca b { font:400 11px/1 'SFMono-Regular', Consolas, monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:.76; }
.final footer { position:absolute; left:6vw; right:6vw; bottom:34px; display:flex; justify-content:space-between; font:700 8px/1 'SFMono-Regular', Consolas, monospace; letter-spacing:.12em; color:#fff; }

.toast { position:fixed; z-index:200; left:50%; bottom:36px; transform:translate(-50%,20px); padding:12px 18px; border-radius:10px; background:var(--accent); color:var(--bg); border:1px solid var(--bg); font-size:11px; font-weight:900; letter-spacing:.08em; opacity:0; pointer-events:none; transition:.25s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .8s ease,transform .8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

body[data-theme="acid"] .topbar { box-shadow:0 12px 34px rgba(16,74,0,.12); }
body[data-theme="acid"] .hero h1, body[data-theme="acid"] .eyebrow, body[data-theme="acid"] .ticker-tag, body[data-theme="acid"] .ca-strip, body[data-theme="acid"] .down-link { color:#071006; text-shadow:none; border-color:rgba(4,30,4,.28); }
body[data-theme="acid"] .hero h1 span:nth-child(2) { color:#071006; }
body[data-theme="acid"] .hero-line { background:#071006; border-color:#071006; color:#baff1d; }
body[data-theme="acid"] .final { color:#071006; }
body[data-theme="acid"] .final h2, body[data-theme="acid"] .final .micro, body[data-theme="acid"] .final footer { color:#071006; }
body[data-theme="acid"] .social-row { border-color:rgba(0,40,0,.28); }
body[data-theme="acid"] .social-row a { border-color:rgba(0,40,0,.22); color:#071006; }
body[data-theme="acid"] .social-row a:hover { background:#071006; color:#baff1d; }
body[data-theme="acid"] .final-ca { color:#071006; border-color:rgba(7,16,6,.46); background:rgba(190,255,44,.48); }

@media (max-width: 1500px) {
  .hero h1 { font-size:190px; }
  .hero-copy { bottom:190px; }
  .origin h2,.stage-copy h2 { font-size:60px; }
  .gallery h2 { font-size:68px; }
  .switch-lab h2 { font-size:66px; }
  .final h2 { font-size:136px; }
  .card-close,.card-sit { height:360px; }
}

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