/* $Busted — blue arrest HUD */
:root {
  --ink: #05060f;
  --navy: #07091a;
  --panel: rgba(8, 12, 28, .82);
  --blue: #3d7dff;
  --blue-hi: #86b6ff;
  --blue-deep: #1639c0;
  --bar: rgba(20, 58, 196, .82);
  --siren-red: #ff2d3d;
  --siren-blue: #2a6dff;
  --gold: #f4d35e;
  --text: #f3f6ff;
  --muted: #9aa6c7;
  --dim: #6d7898;
  --line: rgba(150, 180, 255, .16);
  --line-strong: rgba(170, 200, 255, .32);
  --f-ui: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-display: "Anton", Impact, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 3.4vw, 40px);
  --wrap: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--ink); color: var(--text); }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
ol { list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
::selection { background: var(--blue-deep); color: #fff; }

.wrap { width: min(var(--wrap), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.eyebrow {
  font-family: var(--f-ui); font-weight: 700; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-hi);
}
.kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 5px; background: #eef2ff; color: #0b1020;
  font: 700 11.5px/1 var(--f-body); box-shadow: inset 0 -2px 0 rgba(0,0,0,.28);
}

/* sirens + scan */
.sirens, .scan { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.sirens::before, .sirens::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 28vw;
  opacity: .0; mix-blend-mode: screen; animation: siren 1.15s ease-in-out infinite;
}
.sirens::before { left: 0; background: linear-gradient(90deg, var(--siren-red), transparent); }
.sirens::after { right: 0; background: linear-gradient(270deg, var(--siren-blue), transparent); animation-delay: .55s; }
body.is-busted .sirens::before, body.is-busted .sirens::after { opacity: .55; }
@keyframes siren { 0%, 100% { opacity: .05; } 50% { opacity: .42; } }
.scan { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 4px); opacity: .18; z-index: 1; }

/* header */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad);
  background: rgba(5,6,15,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a {
  font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 999px; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(61,125,255,.16); }
.hud { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sound { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.sound .mute { display: none; }
.sound:not([aria-pressed="true"]) .wave { display: none; }
.sound:not([aria-pressed="true"]) .mute { display: block; }
.sound[aria-pressed="true"] { color: var(--blue-hi); border-color: var(--line-strong); }
.wanted { display: flex; gap: 3px; }
.wanted svg { width: 18px; height: 18px; fill: transparent; stroke: #3a4566; }
.wanted svg.on { fill: var(--gold); stroke: #c9a227; filter: drop-shadow(0 0 6px rgba(244,211,94,.45)); }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: -8%; z-index: 0; will-change: transform; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.08); }
.hero-grade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(10,20,70,.15), transparent 70%),
    linear-gradient(180deg, rgba(5,6,15,.35) 0%, rgba(5,6,15,.55) 48%, rgba(5,6,15,.92) 100%),
    linear-gradient(90deg, rgba(255,45,61,.12), transparent 22%, transparent 78%, rgba(42,109,255,.16));
}
.hero-inner { position: relative; z-index: 3; text-align: center; padding: 120px var(--pad) 90px; width: min(860px, 100%); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 18px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--siren-red); box-shadow: 0 0 12px var(--siren-red); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stamp-wrap { margin: 8px 0 14px; }
.stamp {
  display: inline-block; font-family: var(--f-display); font-size: clamp(64px, 14vw, 168px);
  letter-spacing: .06em; line-height: .9; color: #fff;
  padding: .12em .28em .08em; background: var(--bar);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 18px 60px rgba(12, 30, 120, .55);
  transform: scale(1.18) rotate(-1.2deg); opacity: 0;
  animation: slam .7s var(--ease) .15s forwards;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
@keyframes slam { to { transform: scale(1) rotate(-1.2deg); opacity: 1; } }
.tagline { font-family: var(--f-ui); font-weight: 800; font-size: clamp(22px, 4vw, 36px); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.lede { color: #d5dcf0; max-width: 640px; margin: 0 auto 22px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8,12,28,.7); margin-bottom: 18px;
}
.ca-label { font-family: var(--f-ui); font-weight: 800; letter-spacing: .14em; color: var(--blue-hi); }
.ca-chip code { font-family: var(--f-mono); font-size: 14px; }
.copy { font-family: var(--f-ui); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  font-family: var(--f-ui); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.06);
}
.btn small { font-size: 11px; letter-spacing: .08em; opacity: .75; margin-left: 2px; }
.btn-ico { width: 20px; height: 20px; }
.btn-ico-svg { width: 18px; height: 18px; }
.btn-uni { background: #ff007a22; border-color: #ff007a66; }
.btn-bust { background: var(--blue); border-color: transparent; color: #fff; box-shadow: 0 8px 28px rgba(61,125,255,.35); }
.btn-bust:hover { background: var(--blue-hi); color: #071018; }
.btn-ghost:hover, .btn-uni:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #eef2ff; color: #0b1020; border-color: transparent; }
.btn-block { width: 100%; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--f-ui); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.soc:hover { color: #fff; border-color: var(--line-strong); }
.soc img { width: 18px; height: 18px; }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--f-ui); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--muted);
}

/* sections */
.section { position: relative; z-index: 3; padding: 88px 0 72px; background: linear-gradient(180deg, rgba(5,6,15,.92), rgba(7,10,26,.96)); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-family: var(--f-display); font-size: clamp(36px, 6vw, 64px); letter-spacing: .04em; line-height: .95; margin: 6px 0 10px; }
.sec-sub { color: var(--muted); max-width: 62ch; }
.lore-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 36px; align-items: start; }
.lead { font-size: 18px; color: #e4e9fa; margin-bottom: 22px; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li b { font-family: var(--f-mono); color: var(--blue-hi); }
.timeline li span { color: var(--muted); }
.timeline li strong { display: block; color: #fff; font-family: var(--f-ui); letter-spacing: .04em; text-transform: uppercase; }
.timeline li.now { background: rgba(61,125,255,.08); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.exhibit { position: sticky; top: 88px; }
.exhibit-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.exhibit-frame img, .exhibit-frame video { width: 100%; height: 100%; object-fit: cover; }
.exhibit figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.link-btn { color: var(--blue-hi); font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* mugshots */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--f-ui); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip.on, .chip:hover { color: #fff; background: rgba(61,125,255,.18); border-color: var(--line-strong); }
.wall {
  columns: 3 260px; column-gap: 14px;
}
.tile {
  break-inside: avoid; margin-bottom: 14px; position: relative;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #080a14; cursor: pointer;
}
.tile img, .tile video { width: 100%; height: auto; display: block; }
.tile .tag {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: 12px; padding: 4px 8px; border-radius: 999px;
  background: rgba(5,6,15,.72); color: #fff; backdrop-filter: blur(8px);
}
.tile .play {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(61,125,255,.85); color: #fff;
}
.tile .play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tile:hover { box-shadow: 0 0 0 1px var(--blue), 0 12px 32px rgba(20,50,160,.35); }

/* buy + tok */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.step { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step-n { font-family: var(--f-display); font-size: 28px; color: var(--blue-hi); letter-spacing: .04em; }
.step h3 { font-family: var(--f-ui); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 8px; }
.step p { color: var(--muted); }
.hl { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card .k { display: block; font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.card .v { font-family: var(--f-display); font-size: 28px; letter-spacing: .04em; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 22px; }
.canvas-stage { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: pointer; }
#scanvas { width: 100%; height: auto; aspect-ratio: 16/9; }
.canvas-stage.has-img .empty { display: none; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted); }
.controls { display: grid; gap: 12px; align-content: start; }
.ctl { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.ctl output { color: var(--blue-hi); font-family: var(--f-mono); }
.ctl input[type="range"] { width: 100%; accent-color: var(--blue); }
.ctl-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* join */
.join { padding-top: 48px; }
.join-banner {
  width: min(1400px, 96vw); margin: 0 auto 28px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.join-banner img { width: 100%; height: auto; object-fit: cover; }
.join-cta { justify-content: flex-start; }
.foot { padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--dim); }
.fineprint { max-width: 72ch; margin-bottom: 12px; }
.keys { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* overlay */
.bust-screen {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(4, 8, 22, .55); opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.bust-screen.on { opacity: 1; pointer-events: auto; }
.bust-screen.on { animation: freeze .6s ease both; }
@keyframes freeze { 0% { filter: blur(8px) saturate(0); } 40% { filter: blur(0) saturate(.2); } 100% { filter: none; } }
.bust-band {
  width: 100%; background: var(--bar); text-align: center; padding: 2vh 4vw;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 20px 80px rgba(10,30,140,.6);
  transform: scale(1.2); opacity: 0;
}
.bust-screen.on .bust-band { animation: slam .55s var(--ease) forwards; }
.bust-band span { font-family: var(--f-display); font-size: clamp(72px, 16vw, 200px); letter-spacing: .06em; color: #fff; }
.bust-hint { position: absolute; bottom: 8vh; color: var(--muted); font-family: var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }

.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(2,4,12,.92);
  display: grid; place-items: center; padding: 48px;
}
.lightbox[hidden] { display: none; }
.lb-media { max-width: min(1100px, 92vw); max-height: 82vh; }
.lb-media img, .lb-media video { max-height: 82vh; width: auto; max-width: 92vw; margin: 0 auto; border-radius: 12px; }
.lb-close, .lb-nav {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(8,12,28,.7);
}
.lb-close { top: 18px; right: 18px; }
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
.lb-cap { position: absolute; bottom: 18px; color: var(--muted); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 90; padding: 10px 16px; border-radius: 999px;
  background: #eef2ff; color: #0b1020; font-family: var(--f-ui); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: .25s var(--ease);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .nav { display: none; }
  .lore-grid, .studio { grid-template-columns: 1fr; }
  .exhibit { position: relative; top: 0; }
  .wall { columns: 2 160px; }
  .hero-inner { padding-top: 92px; }
}
@media (max-width: 540px) {
  .wall { columns: 1; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp, .bust-band, .sirens::before, .sirens::after { animation: none !important; opacity: 1; transform: none; }
}
