/* THE BLACK CIRCUIT — front page. Same world as the game: blue grid, wireframes, pixel type. */
@font-face { font-family: 'Press Start 2P'; src: url('../fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('../fonts/vt323.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #05061a;
  --bg2: #0a0c5a;
  --grid: #1a2690;
  --ink: #e8f0ff;
  --dim: #9fb4e8;
  --panel: #1238d8;
  --edge: #7fa0ff;
  --red: #e0141e;
  --red-hi: #ff3b3b;
  --amber: #ffb42a;
  --cyan: #7fe8ff;
  --green: #3fd06a;
  --pink: #ff3bd0;
  --px: 'Press Start 2P', monospace;
  --term: 'VT323', ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 22px/1.2 var(--term); overflow-x: hidden;
  -webkit-font-smoothing: none; image-rendering: pixelated;
}
canvas { display: block; width: 100%; height: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
::selection { background: var(--red); color: #fff; }
.red { color: var(--red-hi); }
.dim { color: var(--dim); }
.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
kbd { font-family: var(--px); font-size: .8em; border: 1px solid var(--dim); padding: 2px 5px; }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--px); font-size: 11px; letter-spacing: 1px; padding: 12px 16px;
  color: var(--cyan); background: #050724; border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 #000a; transition: transform .08s steps(2);
}
.btn.big { font-size: clamp(11px, 1.3vw, 14px); padding: 16px 22px; }
.btn b { color: var(--amber); font-weight: normal; }
.btn:hover, .btn:focus-visible { background: var(--cyan); color: #050724; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000a; outline: none; }
.btn.primary { background: var(--red); border-color: #ffb0b0; color: #fff; box-shadow: 4px 4px 0 #300, 0 0 24px #ff1a2a66; }
.btn.primary b { color: #fff; }
.btn.primary::after { content: ''; position: absolute; inset: -6px; border: 1px dashed #ff8080; pointer-events: none; animation: blink 1.6s steps(2) infinite; }
.btn.primary:hover, .btn.primary:focus-visible { background: #fff; color: var(--red); }
.btn.primary:hover b { color: var(--red); }
.btn.ghost { border-color: var(--dim); color: var(--dim); background: transparent; box-shadow: none; }

/* shared labels */
.label { display: flex; align-items: center; gap: 12px; font-family: var(--px); font-size: 10px; letter-spacing: 2px; color: var(--amber); margin-bottom: 18px; }
.label i { display: block; width: 56px; height: 2px; background: currentColor; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--px); font-size: clamp(8px, 1vw, 11px); letter-spacing: 4px; color: var(--cyan); }
.kicker i { display: block; width: clamp(20px, 6vw, 80px); height: 1px; background: currentColor; }

/* ================================================================ HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; cursor: crosshair;
  background: radial-gradient(ellipse at 50% 70%, #10146a 0, #05061a 70%);
  display: grid; place-items: center; padding: 90px var(--gut) 120px;
}
.hero-wire, .hero-rain { position: absolute; inset: 0; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, #05061ae0 0, #05061a99 26%, transparent 56%), linear-gradient(transparent 70%, #05061a 100%); }

.hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px var(--gut); background: linear-gradient(#05061a, #05061a00); font-family: var(--px); font-size: 9px;
}
.brand { font-family: var(--px); font-size: 13px; color: var(--red); text-decoration: none; text-shadow: 0 0 8px var(--red); margin-right: 8px; }
.brand span { color: var(--ink); text-shadow: none; }
.chip { padding: 4px 6px; border: 1px solid var(--edge); color: var(--dim); }
.chip.red { border-color: var(--red); color: var(--red-hi); }
.grow { flex: 1; }
.toplink { text-decoration: none; color: var(--dim); padding: 6px 4px; }
.toplink:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 6px; }
.clock { color: var(--cyan); font-size: 11px; margin-left: 8px; }

.corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--cyan); z-index: 3; pointer-events: none; }
.corner.tl { top: 58px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 58px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 24px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 24px; right: 14px; border-left: 0; border-top: 0; }
.vert { position: absolute; top: 50%; z-index: 3; font-family: var(--px); font-size: 8px; letter-spacing: 4px; color: #5a6ac8; white-space: nowrap; pointer-events: none; }
.vert.left { left: 22px; transform: translate(-50%, -50%) rotate(-90deg) translateY(12px); }
.vert.right { right: 22px; transform: translate(50%, -50%) rotate(90deg) translateY(12px); }

.hero-copy { position: relative; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 26px); }
.title {
  position: relative; font-family: var(--px); font-weight: normal; line-height: 1.12;
  font-size: clamp(30px, 8.4vw, 116px); color: var(--red);
  text-shadow: 0 0 22px #f00a, 5px 5px 0 #2a0008, -2px 0 0 #2affff55;
  display: flex; flex-direction: column; align-items: center;
}
.title span:last-child { letter-spacing: .06em; }
.title::before, .title::after {
  content: attr(data-text); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font: inherit; line-height: inherit; pointer-events: none; opacity: 0; white-space: pre; width: 100%;
}
.title::before { color: var(--cyan); }
.title::after { color: #fff; }
.title.glitching::before { opacity: .8; transform: translate(-6px, 2px); clip-path: inset(18% 0 58% 0); }
.title.glitching::after { opacity: .7; transform: translate(6px, -2px); clip-path: inset(62% 0 12% 0); }
.title.glitching span { opacity: .3; }
.tagline { font-size: clamp(20px, 2.6vw, 32px); color: var(--ink); min-height: 1.3em; letter-spacing: 1px; }
.caret { color: var(--red-hi); font-weight: normal; animation: blink .8s steps(2) infinite; }
.ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.press { font-family: var(--px); font-size: 9px; color: var(--dim); letter-spacing: 2px; animation: blink 1.6s steps(2) infinite; }

.hero-panel {
  position: absolute; z-index: 3; width: 230px; background: #0a1478c0; border: 2px solid var(--edge);
  box-shadow: inset 0 0 0 2px #0a1a80, 4px 4px 0 #000a; padding: 8px 10px; font-size: 18px; pointer-events: none;
}
.hero-panel header { font-family: var(--px); font-size: 8px; color: var(--amber); margin-bottom: 8px; letter-spacing: 1px; }
.hero-panel.left { left: calc(var(--gut) + 20px); bottom: 110px; }
.hero-panel.right { right: calc(var(--gut) + 20px); top: 110px; border-color: var(--red); background: #3a0610c0; box-shadow: inset 0 0 0 2px #500, 4px 4px 0 #000a; }
.hero-panel.right header { color: #ffb0b0; }
.hero-panel .row { display: flex; align-items: baseline; gap: 8px; margin: 3px 0; }
.hero-panel .row span { width: 66px; color: var(--dim); font-size: 16px; }
.hero-panel .row b { font-family: var(--px); font-size: 14px; font-weight: normal; color: var(--green); }
.hero-panel .row b.red { color: var(--red-hi); }
.hero-panel small { color: var(--dim); font-size: 14px; }
.hero-panel .ekg { height: 36px; margin: 4px 0; }
.bar { flex: 1; height: 10px; border: 1px solid var(--dim); display: block; }
.bar u { display: block; height: 100%; background: repeating-linear-gradient(90deg, #3a6aff 0 6px, transparent 6px 8px); }
.mono { margin: 2px 0; }

.readout { position: absolute; left: var(--gut); bottom: 34px; z-index: 3; display: flex; gap: 18px; font-family: var(--px); font-size: 8px; color: #5a6ac8; padding-left: 40px; }
.scroll { position: absolute; z-index: 3; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--px); font-size: 8px; color: var(--dim); text-decoration: none; letter-spacing: 3px; }
.scroll i { width: 2px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: drip 1.6s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* torn edge between sections: a jagged strip in the next section's colour */
.torn { position: absolute; left: 0; right: 0; height: 26px; z-index: 5; pointer-events: none; background: var(--red); }
.torn.bottom { bottom: -1px;
  clip-path: polygon(0 60%, 3% 30%, 6% 70%, 9% 20%, 13% 65%, 16% 35%, 20% 80%, 23% 25%, 27% 60%, 31% 15%, 34% 70%, 38% 40%, 41% 75%, 45% 20%, 48% 55%, 52% 10%, 55% 65%, 59% 30%, 62% 75%, 66% 25%, 70% 60%, 73% 15%, 77% 70%, 80% 35%, 84% 80%, 87% 30%, 91% 65%, 94% 20%, 97% 60%, 100% 35%, 100% 100%, 0 100%); }
.torn.alt { background: var(--bg2); }

/* ============================================================== TICKER */
.ticker { position: relative; z-index: 4; background: var(--red); color: #fff; overflow: hidden; border-top: 2px solid #ff8080; border-bottom: 4px solid #300; transform: skewY(-1.2deg); margin: -8px 0 0; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { white-space: nowrap; padding: 8px 0; font-size: 22px; letter-spacing: 1px; }
.ticker b { color: #300; font-weight: normal; margin: 0 6px 0 18px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============================================================ SECTIONS */
.sec { position: relative; padding: clamp(70px, 10vw, 130px) var(--gut); }
.sec-head { max-width: 1200px; margin: 0 auto 44px; }
.sec h2 { font-family: var(--px); font-weight: normal; font-size: clamp(22px, 3.6vw, 46px); line-height: 1.3; color: var(--ink); text-shadow: 4px 4px 0 #000a; }
.sec h2 em { font-style: normal; color: var(--red-hi); text-shadow: 0 0 14px #f008, 4px 4px 0 #300; }
.sub { color: var(--dim); max-width: 60ch; margin-top: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s steps(6), transform .6s steps(6); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- city */
.city { background: var(--bg2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; overflow: hidden; }
.bignum { position: absolute; right: -2vw; top: 30px; font-family: var(--px); font-size: clamp(70px, 17vw, 260px); color: transparent; -webkit-text-stroke: 2px #2438ff; opacity: .55; pointer-events: none; letter-spacing: -4px; }
.city-grid, .case-grid { position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(300px, 520px); gap: clamp(24px, 4vw, 60px); align-items: center; }
.city-copy, .case-copy { display: flex; flex-direction: column; gap: 16px; }
.city-copy h2, .case-copy h2 { margin-bottom: 6px; }
.lead { font-size: clamp(22px, 2vw, 27px); color: var(--ink); }
.city-copy p, .case-copy p { color: #c8d2f0; max-width: 62ch; }
.case-copy .lead, .city-copy .lead { color: var(--ink); }
blockquote { position: relative; margin: 10px 0; padding: 14px 18px 14px 54px; background: #3a0610; border-left: 4px solid var(--red); font-size: 26px; color: #fff; box-shadow: 4px 4px 0 #000a; max-width: 62ch; }
blockquote span { position: absolute; left: 14px; top: 2px; font-family: var(--px); font-size: 36px; color: var(--red-hi); }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--px); font-size: 8px; color: #ff9a9a; letter-spacing: 1px; }

.citybox { margin: 0; background: #050724e6; border: 2px solid var(--edge); box-shadow: 6px 6px 0 #000a; }
.citybox header, .casefile header { display: flex; justify-content: space-between; gap: 10px; font-family: var(--px); font-size: 8px; padding: 7px 10px; background: var(--panel); }
.citybox header b { color: var(--red-hi); font-weight: normal; }
.citybox canvas { height: clamp(260px, 30vw, 380px); }
.citybox figcaption { font-family: var(--px); font-size: 7px; color: var(--dim); padding: 8px 10px; border-top: 1px solid #2438ff; letter-spacing: 1px; line-height: 1.6; }

.districts { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.district { position: relative; background: #050724f0; border: 2px solid var(--edge); padding: 16px 16px 16px 18px; box-shadow: 4px 4px 0 #000a; border-left: 6px solid var(--cyan); transition: background .1s; }
.district:nth-child(2n) { border-left-color: var(--red); }
.district:hover { background: #0a1478; }
.district .dn { position: absolute; right: 12px; top: 12px; font-family: var(--px); font-size: 9px; color: var(--amber); }
.district b { display: block; font-family: var(--px); font-size: 11px; font-weight: normal; line-height: 1.5; padding-right: 30px; }
.district small { display: block; font-family: var(--px); font-size: 7px; color: var(--cyan); letter-spacing: 2px; margin: 6px 0 8px; }
.district p { font-size: 19px; color: var(--dim); }

/* ---------------------------------------------------------------- cast */
.cast { background: var(--bg); background-image: radial-gradient(#1a2690 1px, transparent 1.4px); background-size: 14px 14px; }
.dossier {
  max-width: 1200px; margin: 0 auto; display: grid; gap: 0;
  grid-template-columns: minmax(260px, 420px) 1fr; grid-template-areas: "pic body" "sel sel";
  border: 2px solid var(--edge); background: #050724f2; box-shadow: 8px 8px 0 #000a, inset 0 0 0 2px #0a1a80;
}
.dz-portrait { grid-area: pic; position: relative; min-height: 420px; border-right: 2px solid var(--edge); background: radial-gradient(ellipse at 50% 55%, #10146a 0, #03041a 75%); overflow: hidden; }
.dz-portrait canvas { position: absolute; inset: 0; }
.dz-id { position: absolute; top: 10px; left: 12px; font-family: var(--px); font-size: 22px; color: transparent; -webkit-text-stroke: 1px var(--cyan); }
.dz-stamp { position: absolute; right: 12px; bottom: 16px; font-family: var(--px); font-size: 11px; padding: 6px 8px; border: 3px double var(--green); color: var(--green); transform: rotate(-8deg); }
.dz-stamp.warn { border-color: var(--amber); color: var(--amber); }
.dz-stamp.bad { border-color: var(--red-hi); color: var(--red-hi); }
.dz-scan { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(transparent, #7fe8ff33, transparent); animation: scan 3s linear infinite; pointer-events: none; }
@keyframes scan { from { top: -40px; } to { top: 100%; } }
.dz-body { grid-area: body; padding: clamp(16px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.dz-role { font-family: var(--px); font-size: 9px; color: var(--amber); letter-spacing: 3px; }
.dz-name { font-family: var(--px); font-weight: normal; font-size: clamp(22px, 3.4vw, 42px); line-height: 1.2; color: var(--ink); text-shadow: 4px 4px 0 #000a; }
.dz-unit { color: var(--dim); }
.dz-threat { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--red); color: #fff; align-self: flex-start; box-shadow: 4px 4px 0 #300; }
.dz-threat span { font-family: var(--px); font-size: 9px; letter-spacing: 2px; }
.stars { font-weight: normal; font-size: 26px; letter-spacing: 3px; }
.dz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0; }
.dz-stats div { border: 1px solid #2438ff; padding: 8px 10px; background: #0a1478; }
.dz-stats dt { font-family: var(--px); font-size: 7px; color: var(--dim); letter-spacing: 1px; }
.dz-stats dd { margin: 6px 0 0; font-family: var(--px); font-size: clamp(11px, 1.4vw, 16px); color: var(--cyan); }
.dz-bio { color: #c8d2f0; max-width: 60ch; }
.dz-quote { font-size: 26px; color: #fff; border-left: 4px solid var(--red); padding: 4px 0 4px 14px; }

.dz-quote[hidden] { display: none; }
.dz-quote::before { content: '“'; color: var(--red-hi); }
.dz-quote::after { content: '”'; color: var(--red-hi); }
.dossier.swap .dz-body > *, .dossier.swap .dz-portrait canvas { animation: swapin .35s steps(4); }
@keyframes swapin { 0% { opacity: 0; transform: translateX(8px); } 50% { opacity: 1; transform: translateX(-3px); filter: hue-rotate(90deg); } }

.dz-select { grid-area: sel; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--edge); }
.dz-select li + li { border-left: 1px solid #2438ff; }
.dz-select button {
  all: unset; cursor: pointer; box-sizing: border-box; width: 100%; height: 100%; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto;
  gap: 2px 10px; align-items: center; padding: 10px; position: relative;
}
.dz-select .thumb { grid-row: 1 / 3; width: 56px; height: 56px; border: 1px solid #2438ff; background: #03041a; }
.dz-select b { font-family: var(--px); font-size: 8px; font-weight: normal; line-height: 1.5; }
.dz-select small { font-size: 16px; color: var(--dim); }
.dz-select button:hover, .dz-select button:focus-visible { background: #0a1478; }
.dz-select button[aria-selected="true"] { background: var(--cyan); color: #050724; }
.dz-select button[aria-selected="true"] small { color: #0a1478; }
.dz-select button[aria-selected="true"]::before { content: '▲'; position: absolute; top: -14px; left: 34px; color: var(--cyan); font-size: 14px; }

/* ---------------------------------------------------------------- case */
.case { background: #12030a; background-image: repeating-linear-gradient(-45deg, #ffffff05 0 2px, transparent 2px 9px); border-top: 4px solid var(--red); }
.case .label { color: #ff9a9a; }
.casefile { position: relative; background: #e8f0ff; color: #0a0c3a; border: 2px solid #fff; box-shadow: 8px 8px 0 #000, 0 0 40px #ff1a2a22; transform: rotate(-1.2deg); font-size: 20px; }
.casefile header { background: #0a0c3a; color: #e8f0ff; align-items: center; }
.casefile .stamp { color: var(--red-hi); border: 2px solid var(--red-hi); padding: 3px 6px; transform: rotate(4deg); }
.casefile dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; margin: 0; padding: 18px 18px 6px; }
.casefile dt { font-family: var(--px); font-size: 8px; color: #6a74a8; padding-top: 5px; }
.casefile dd { margin: 0; line-height: 1.25; }
.redact { font-style: normal; background: #0a0c3a; color: #0a0c3a; padding: 0 3px; user-select: none; }
.casefile .fileno { font-family: var(--px); font-size: 7px; color: #6a74a8; padding: 8px 18px 14px; border-top: 1px dashed #9fb4e8; margin: 8px 18px 0; padding-left: 0; }
.message { font-family: var(--px); font-size: clamp(12px, 1.6vw, 18px); color: var(--red-hi); background: #000; border: 2px solid #5a0a14; padding: 14px 16px; line-height: 1.6; min-height: 1.6em; text-shadow: 0 0 10px #f00; max-width: 40ch; }

.exhibits { list-style: none; margin: 60px auto 0; padding: 0; max-width: 1400px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.exhibit a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #05061a; border: 2px solid #7a1a28; box-shadow: 4px 4px 0 #000; transition: transform .1s steps(2), border-color .1s; overflow: hidden; }
.exhibit canvas { height: 170px; border-bottom: 2px solid #7a1a28; background: radial-gradient(ellipse at 50% 60%, #0c1050 0, #03041a 80%); }
.ex-tag { position: absolute; top: 8px; left: 8px; z-index: 2; font-family: var(--px); font-size: 7px; padding: 4px 5px; background: var(--amber); color: #050724; }
.exhibit b { margin: 10px 12px 0; font-family: var(--px); font-size: 9px; font-weight: normal; line-height: 1.5; color: var(--ink); }
.exhibit small { margin: 6px 12px 12px; font-size: 17px; color: #c8b0b8; }
.exhibit a:hover, .exhibit a:focus-visible { transform: translate(-3px, -3px); border-color: var(--red-hi); outline: none; box-shadow: 7px 7px 0 #000; }
.exhibit a::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0003 0 1px, transparent 1px 3px); }
.exhibit:nth-child(odd) a { transform: rotate(-.6deg); }
.exhibit:nth-child(even) a { transform: rotate(.6deg); }
.exhibit a:hover { transform: rotate(0) translate(-3px, -3px); }

/* --------------------------------------------------------------- final */
.final { position: relative; min-height: 80vh; display: grid; place-items: center; overflow: hidden; padding: 80px var(--gut); background: radial-gradient(ellipse at 50% 60%, #3a0610 0, #0a0206 80%); border-top: 4px solid var(--red); }
.final-wire { position: absolute; inset: 0; opacity: .7; }
.final-copy { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; background: radial-gradient(ellipse, #0a0206e0 0, #0a020690 50%, transparent 72%); padding: 40px 20px; }
.final .kicker { color: #ff9a9a; }
.final h2 { font-family: var(--px); font-weight: normal; font-size: clamp(18px, 3.4vw, 40px); line-height: 1.4; color: #fff; text-shadow: 0 0 14px #f00, 4px 4px 0 #300; max-width: 20ch; position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.glitch.glitching::before { opacity: .8; color: var(--cyan); transform: translateX(-4px); clip-path: inset(10% 0 60% 0); }
.glitch.glitching::after { opacity: .8; color: var(--red-hi); transform: translateX(4px); clip-path: inset(55% 0 15% 0); }

/* -------------------------------------------------------------- footer */
.foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px var(--gut); background: #020210; border-top: 2px solid var(--edge); font-family: var(--px); font-size: 8px; color: var(--dim); letter-spacing: 1px; }
.barcode { width: 120px; height: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px); }

/* ---------------------------------------------------- transition + CRT */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: grid; place-items: center; background: #05061a; clip-path: inset(0 0 100% 0); }
.wipe p { font-family: var(--px); font-size: 14px; color: var(--green); opacity: 0; }
.wipe.go { animation: wipe .55s steps(8) forwards; }
.wipe.go p { animation: blink .3s steps(2) infinite .4s; opacity: 1; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.crt { pointer-events: none; position: fixed; inset: 0; z-index: 40; background: repeating-linear-gradient(0deg, #0000002e 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, #0000008c 100%); }

/* ------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .city-grid, .case-grid { grid-template-columns: 1fr; }
  .citybox, .casefile { max-width: 620px; }
  .case-copy { order: -1; }
  .districts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-panel { display: none; }
}

/* -------------------------------------------------------------- phones */
@media (max-width: 700px) {
  body { font-size: 20px; }
  .hud-top .toplink, .hud-top .chip:not(.red) { display: none; }
  .vert, .corner.bl, .corner.br, .readout { display: none; }
  .hero { padding-bottom: 100px; }
  .ctas .btn { width: 100%; justify-content: center; }
  .districts { grid-template-columns: 1fr; }
  .casefile { transform: none; }
  .casefile dl { grid-template-columns: 1fr; gap: 2px; }
  .casefile dd { margin-bottom: 8px; }
  .exhibits { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 16px; }
  .exhibit { scroll-snap-align: start; }
  .dossier { grid-template-columns: 1fr; grid-template-areas: "pic" "sel" "body"; }
  .dz-portrait { min-height: 300px; border-right: 0; border-bottom: 2px solid var(--edge); }
  .dz-select { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; border-bottom: 2px solid var(--edge); }
  .dz-select button { grid-template-columns: 1fr; justify-items: center; padding: 6px 2px; }
  .dz-select .thumb { grid-row: auto; width: 48px; height: 48px; }
  .dz-select b { font-size: 6px; text-align: center; overflow-wrap: anywhere; }
  .dz-select small { display: none; }
  .dz-select button[aria-selected="true"]::before { display: none; }
  .dz-stats { grid-template-columns: 1fr 1fr; }
  .foot .grow { display: none; }
  .kicker { flex-wrap: wrap; letter-spacing: 3px; line-height: 2; max-width: 30ch; text-align: center; }
  .kicker i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
