:root {
  /* Compliance text: IBM Plex Sans Condensed** Condense* for procedural headings; Source Code Pro** Pro* for file paths. */
  --asphalt: #111417;
  --pavement: #2B3036;
  --paper: #F4E8CB;
  --chalk: #F8F4E7;
  --pink: #FF5C7A;
  --amber: #F2A51A;
  --blue: #2E7BFF;
  --display: 'Bebas Neue', sans-serif;
  --condensed: 'IBM Plex Sans Condensed', sans-serif;
  --code: 'Source Code Pro', monospace;
  --hand: 'Patrick Hand', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font-family: var(--condensed);
  overflow-x: hidden;
}

.rain-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .22;
  background-image: radial-gradient(circle at 20% 30%, rgba(248,244,231,.24) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, rgba(242,165,26,.16) 0 1px, transparent 1.5px), linear-gradient(115deg, transparent 0 48%, rgba(248,244,231,.06) 49% 50%, transparent 51%);
  background-size: 21px 21px, 37px 37px, 9px 120px;
  mix-blend-mode: screen;
}

.radio-strip {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(248,244,231,.25);
  background: rgba(17,20,23,.78);
  box-shadow: 0 0 30px rgba(46,123,255,.2), inset 0 0 18px rgba(242,165,26,.08);
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: .04em;
  backdrop-filter: blur(12px);
}

.radio-strip a { color: var(--chalk); text-decoration: none; opacity: .7; }
.radio-strip a.active { color: var(--amber); opacity: 1; }
.radio-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 16px var(--blue); animation: radioPulse 1.6s infinite; }

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 7vw;
  overflow: hidden;
}

.scene-roll { background: radial-gradient(circle at 70% 22%, rgba(46,123,255,.16), transparent 34%), var(--asphalt); }

.street-map {
  position: absolute;
  inset: -11vh -10vw;
  transform: perspective(900px) rotateX(54deg) rotateZ(-13deg) scale(1.08);
  background: var(--asphalt);
  box-shadow: inset 0 0 140px rgba(0,0,0,.86);
}

.street-map:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(248,244,231,.07) 1px, transparent 1px), linear-gradient(0deg, rgba(248,244,231,.05) 1px, transparent 1px);
  background-size: 88px 88px;
}

.road { position: absolute; background: var(--pavement); border: 1px dashed rgba(248,244,231,.18); box-shadow: inset 0 0 28px rgba(0,0,0,.45); }
.road-main { width: 170%; height: 210px; left: -25%; top: 42%; transform: rotate(0deg); }
.road-cross { width: 190px; height: 145%; left: 49%; top: -20%; transform: rotate(0deg); }
.road-diagonal { width: 165%; height: 132px; left: -32%; top: 38%; transform: rotate(-32deg); }
.lane { position: absolute; background: repeating-linear-gradient(90deg, var(--chalk) 0 46px, transparent 46px 82px); opacity: .33; height: 4px; }
.lane-a { width: 120%; left: -5%; top: 51%; }
.lane-b { width: 100%; left: 7%; top: 38%; transform: rotate(-32deg); }
.lane-c { width: 90%; left: 20%; top: 60%; transform: rotate(90deg); }

.paint-title {
  position: absolute;
  left: 17%;
  top: 40%;
  font-family: var(--display);
  font-size: clamp(88px, 17vw, 260px);
  letter-spacing: .035em;
  color: rgba(248,244,231,.88);
  text-shadow: 0 0 10px rgba(248,244,231,.3), 0 7px 0 rgba(17,20,23,.42);
  transform: rotate(2deg);
  white-space: nowrap;
}

.beacon-sweep {
  position: absolute;
  width: 62vw;
  height: 62vw;
  left: -15vw;
  top: 10vh;
  background: conic-gradient(from 10deg, transparent, rgba(46,123,255,.0), rgba(46,123,255,.36), rgba(255,92,122,.26), transparent 38%);
  filter: blur(10px);
  transform-origin: 55% 52%;
  animation: beaconRotate 8s linear infinite;
  mix-blend-mode: screen;
}

.patrol-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.patrol-route path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 18 18; filter: drop-shadow(0 0 10px var(--blue)); }
.precinct-pin { position: absolute; padding: 7px 9px; border: 1px solid var(--amber); background: rgba(17,20,23,.88); color: var(--chalk); font-family: var(--code); font-size: 12px; box-shadow: 0 0 18px rgba(242,165,26,.3); }
.pin-main { left: 12%; top: 73%; color: var(--amber); }
.pin-port { left: 73%; top: 20%; border-color: var(--blue); }
.pin-src { left: 33%; top: 52%; }
.pin-env { left: 61%; top: 61%; border-color: var(--pink); }
.pin-logs { left: 21%; top: 28%; }
.curb-number { position: absolute; right: 18%; bottom: 24%; font-family: var(--display); font-size: 60px; color: rgba(248,244,231,.4); transform: rotate(90deg); }
.radio-subtitle { position: absolute; left: 23%; bottom: 19%; font-family: var(--code); color: var(--amber); background: rgba(17,20,23,.78); padding: 9px 12px; }

.roll-call-board { position: relative; z-index: 3; justify-self: end; width: min(430px, 90vw); padding: 28px; margin-top: 18vh; border: 1px solid rgba(248,244,231,.28); background: rgba(43,48,54,.72); box-shadow: 0 22px 70px rgba(0,0,0,.48); backdrop-filter: blur(7px); transform: rotate(-2deg); }
.call-sign, .evidence-acetate p, .report-meta { font-family: var(--code); color: var(--amber); letter-spacing: .08em; font-size: 12px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .035em; line-height: .9; }
h1 { font-size: clamp(54px, 7vw, 104px); }
h2 { font-size: clamp(42px, 5.5vw, 82px); }
p { font-size: 20px; line-height: 1.35; }
.dispatch-line { border-top: 1px solid rgba(248,244,231,.22); padding-top: 15px; display: grid; gap: 6px; font-family: var(--code); font-size: 13px; }
.dispatch-line span { color: var(--blue); }

.scene-alley { grid-template-columns: 1fr minmax(300px, 430px); gap: 5vw; background: linear-gradient(125deg, var(--asphalt), #171b1f 42%, var(--pavement)); }
.alley-perspective { position: absolute; inset: 0; transform: skewY(-8deg); background: linear-gradient(90deg, transparent 45%, rgba(242,165,26,.08) 50%, transparent 57%); }
.building-wall { position: absolute; top: 13%; width: 33vw; min-height: 72vh; display: grid; align-content: center; gap: 24px; padding: 24px; background: rgba(43,48,54,.68); border: 1px solid rgba(248,244,231,.08); }
.left-wall { left: 0; transform: skewY(14deg); }
.right-wall { right: 0; transform: skewY(-14deg); }
.building-wall code { font-family: var(--code); color: rgba(248,244,231,.68); border-left: 3px solid var(--pink); padding-left: 12px; }
.chain-shadow { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 24px, rgba(0,0,0,.26) 25px 27px), repeating-linear-gradient(-45deg, transparent 0 24px, rgba(0,0,0,.2) 25px 27px); opacity: .3; }
.flashlight-mask { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(248,244,231,.2), rgba(242,165,26,.11) 34%, transparent 70%); filter: blur(4px); left: 45%; top: 35%; mix-blend-mode: screen; }
.citation-stack { position: relative; z-index: 4; justify-self: end; display: grid; gap: 22px; }
.citation-slip { background: var(--paper); color: var(--asphalt); width: min(430px, 86vw); padding: 23px 25px; transform: rotate(-2deg); box-shadow: 10px 18px 0 rgba(0,0,0,.28); border-top: 12px solid var(--amber); }
.citation-slip.pink { border-top-color: var(--pink); transform: rotate(2deg); }
.citation-slip span { font-family: var(--code); font-size: 12px; color: var(--pink); }
.citation-slip b { font-family: var(--code); background: var(--asphalt); color: var(--chalk); padding: 5px 8px; }
.sticky-note { justify-self: end; max-width: 270px; padding: 18px; background: var(--amber); color: var(--asphalt); font-family: var(--hand); font-size: 26px; transform: rotate(5deg); box-shadow: 0 13px 24px rgba(0,0,0,.3); }

.scene-evidence { background: radial-gradient(circle at 50% 20%, rgba(242,165,26,.16), transparent 36%), var(--asphalt); }
.evidence-table { position: relative; width: min(1050px, 92vw); min-height: 650px; border: 1px solid rgba(248,244,231,.13); background: linear-gradient(135deg, #171b1f, var(--pavement)); box-shadow: inset 0 0 80px rgba(0,0,0,.42); }
.lamp-pool { position: absolute; width: 620px; height: 420px; left: 22%; top: 10%; background: radial-gradient(circle, rgba(242,165,26,.22), transparent 68%); }
.evidence-acetate { position: absolute; padding: 24px; border: 1px solid rgba(248,244,231,.35); background: rgba(248,244,231,.12); backdrop-filter: blur(5px); box-shadow: 0 22px 60px rgba(0,0,0,.34); }
.evidence-acetate code { font-family: var(--code); font-size: 16px; line-height: 1.8; color: var(--chalk); }
.acetate-one { left: 7%; top: 9%; transform: rotate(-6deg); }
.acetate-two { right: 7%; top: 18%; transform: rotate(5deg); }
.diff-card { position: absolute; left: 25%; bottom: 8%; width: min(520px, 75vw); padding: 28px; background: var(--paper); color: var(--asphalt); transform: rotate(-1deg); box-shadow: 0 20px 0 rgba(255,92,122,.38); }
.diff-card pre { font-family: var(--code); background: var(--asphalt); color: var(--chalk); padding: 18px; overflow: hidden; }
.chalk-outline { border: 2px dashed var(--pink); border-radius: 49% 51% 44% 56%; padding: 13px; font-family: var(--hand); font-size: 25px; }
.stamp-pad { position: absolute; right: 10%; bottom: 5%; transform: rotate(10deg); }
.case-stamp { display: inline-block; border: 5px solid var(--pink); color: var(--pink); font-family: var(--display); font-size: 55px; padding: 4px 18px; letter-spacing: .08em; mix-blend-mode: multiply; }

.scene-report { background: radial-gradient(circle at 27% 14%, rgba(46,123,255,.12), transparent 28%), linear-gradient(180deg, var(--asphalt), #0d0f11); }
.desk-surface { position: relative; width: min(980px, 92vw); min-height: 710px; padding: 74px 6vw; background: linear-gradient(145deg, #252017, #151719 62%); box-shadow: 0 0 0 1px rgba(248,244,231,.11), inset 0 0 100px rgba(0,0,0,.45); }
.folder-tab { position: absolute; top: 28px; left: 6vw; padding: 10px 20px; background: var(--paper); color: var(--asphalt); font-family: var(--code); font-size: 12px; }
.case-file { position: relative; background: var(--paper); color: var(--asphalt); padding: clamp(28px, 5vw, 58px); box-shadow: 17px 25px 0 rgba(0,0,0,.35); transform: rotate(-1deg); }
.report-lines { display: grid; gap: 10px; margin: 24px 0; font-size: 22px; }
.report-lines span { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid rgba(17,20,23,.2); padding-bottom: 8px; }
.report-lines b { font-family: var(--code); color: var(--pink); font-size: 13px; }
.report-copy { max-width: 700px; }
.final-stamp { margin-top: 18px; transform: rotate(-4deg) scale(1.08); color: var(--blue); border-color: var(--blue); mix-blend-mode: multiply; }
.ticket-tear { position: absolute; right: 8%; bottom: 8%; width: 130px; height: 220px; background: repeating-linear-gradient(0deg, var(--paper) 0 18px, #ead9ad 19px 20px); transform: rotate(14deg); opacity: .65; clip-path: polygon(0 0, 100% 0, 92% 100%, 79% 93%, 65% 100%, 50% 94%, 35% 100%, 20% 93%, 8% 100%); }
.walkie-wave { position: absolute; left: 7%; bottom: 5%; display: flex; gap: 6px; align-items: end; }
.walkie-wave span { width: 8px; height: 25px; background: var(--amber); animation: wave 1.2s infinite ease-in-out; }
.walkie-wave span:nth-child(2) { animation-delay: .1s; height: 42px; }
.walkie-wave span:nth-child(3) { animation-delay: .2s; height: 62px; }
.walkie-wave span:nth-child(4) { animation-delay: .3s; height: 38px; }
.walkie-wave span:nth-child(5) { animation-delay: .4s; height: 53px; }

.reveal-item { opacity: 0; transform: translateY(34px) rotate(var(--r, 0deg)); transition: opacity .75s ease, transform .75s cubic-bezier(.2,1.15,.3,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
.citation-slip.reveal-item { --r: -2deg; }
.citation-slip.pink.reveal-item { --r: 2deg; }
.sticky-note.reveal-item { --r: 5deg; }
.roll-call-board.reveal-item { --r: -2deg; }
.acetate-one.reveal-item { --r: -6deg; }
.acetate-two.reveal-item { --r: 5deg; }
.diff-card.reveal-item { --r: -1deg; }
.case-file.reveal-item { --r: -1deg; }

@keyframes beaconRotate { to { transform: rotate(360deg); } }
@keyframes radioPulse { 50% { box-shadow: 0 0 3px var(--blue), 0 0 24px var(--pink); background: var(--pink); } }
@keyframes wave { 50% { transform: scaleY(.45); opacity: .55; } }

@media (max-width: 760px) {
  .radio-strip { width: calc(100vw - 24px); overflow-x: auto; justify-content: flex-start; }
  .scene { padding: 96px 20px; }
  .scene-alley { grid-template-columns: 1fr; }
  .building-wall { width: 55vw; opacity: .45; }
  .paint-title { left: 5%; top: 43%; }
  .radio-subtitle { left: 8%; right: 8%; bottom: 16%; }
  .evidence-table { min-height: 840px; }
  .evidence-acetate, .diff-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 24px auto; width: 86%; }
  .report-lines span { grid-template-columns: 1fr; }
}
