/* =========================================================
   FEDORA CAT — $FCAT
   Black-and-white film. Only Monero orange is in colour,
   and it is always light, never paint.
   ========================================================= */

:root {
  --night:  #0A0A0B;
  --xmr:    #FF6600;
  --glow:   #FF8A3D;
  --trench: #A8845A;
  --paper:  #EDE3CC;
  --ink:    #1B1A18;
  --smoke:  #5A5A5E;
  --redact: #000000;

  --text-2: #A7A7AD;          /* secondary text on night: 8:1 */
  --string: #9E1B17;          /* the red string, as ordered */
  --wall:   #121213;

  --f-head: "Bebas Neue", "Anton", Impact, sans-serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-body: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --f-hand: "Caveat", "Permanent Marker", cursive;

  --gutter: 16px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 300 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--xmr); color: var(--night); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; font-family: var(--f-type); transition: top .2s; }
.skip:focus { top: 12px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--f-type); word-break: break-all; }
.dim { color: var(--text-2); }

/* ---------- Film layers ---------- */
.fx-rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.fx-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .085; mix-blend-mode: overlay;
  background-size: 180px 180px;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 17% { transform: translate(-6%,4%) } 33% { transform: translate(5%,-7%) }
  50% { transform: translate(-3%,8%) } 67% { transform: translate(8%,2%) } 83% { transform: translate(-7%,-4%) } 100% { transform: translate(0,0) }
}
.fx-vignette {
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}

/* ---------- Loader: a match strikes ---------- */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 150; background: #000;
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__art { width: min(320px, 70vw); }
.loader__match { transform: translateX(-60px); animation: strike .55s .15s var(--ease-out) forwards; }
.loader__flame { opacity: 0; transform-origin: 192px 152px; animation: flame-in .3s .62s forwards, flicker .18s .9s infinite alternate; }
.loader__sparks { opacity: 0; animation: sparks .35s .5s ease-out; }
.loader__disc { opacity: 0; stroke-dasharray: 365; stroke-dashoffset: 365; animation: disc-light 1s 1s ease-out forwards; }
@keyframes strike { to { transform: translateX(0); } }
@keyframes flame-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes flicker { from { transform: scale(1) skewX(0); } to { transform: scale(1.06,.94) skewX(3deg); } }
@keyframes sparks { 0% { opacity: 1; transform: translate(0,0); } 100% { opacity: 0; transform: translate(14px,-10px); } }
@keyframes disc-light { 0% { opacity: 1; } 60% { stroke-dashoffset: 0; fill: rgba(255,102,0,0); } 100% { opacity: 1; stroke-dashoffset: 0; fill: rgba(255,102,0,.9); filter: drop-shadow(0 0 18px #FF8A3D); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: linear-gradient(#0A0A0Bee, #0A0A0B00);
}
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo svg { width: 44px; height: 38px; overflow: visible; }
.nav__hat { transition: transform .28s var(--ease-out); transform-origin: 128px 200px; }
.nav__eyes { opacity: 0; transition: opacity .15s; }
.nav__logo:hover .nav__hat, .nav__logo:focus-visible .nav__hat { transform: translateY(-26px) rotate(-6deg); transition-duration: .22s; }
.nav__logo:hover .nav__eyes, .nav__logo:focus-visible .nav__eyes { opacity: 1; transition-delay: .1s; }
.nav__word { font-family: var(--f-head); font-size: 1.5rem; letter-spacing: .06em; line-height: 1; }
.nav__links { display: none; gap: 22px; margin-left: auto; font-family: var(--f-type); font-size: .9rem; }
.nav__links a { text-decoration: none; color: var(--text-2); }
.nav__links a:hover { color: var(--paper); text-shadow: 0 0 12px var(--glow); }
.sound {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid #2a2a2e; border-radius: 999px; padding: 6px 12px;
  font-family: var(--f-type); font-size: .8rem; color: var(--text-2); cursor: pointer;
}
.sound[aria-pressed="true"] { color: var(--paper); border-color: var(--glow); box-shadow: 0 0 14px -4px var(--glow); }
.sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound__bars i { width: 2px; height: 4px; background: currentColor; }
.sound[aria-pressed="true"] .sound__bars i { animation: bars .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes bars { from { height: 3px; } to { height: 12px; } }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .sound { margin-left: 8px; }
}

/* ---------- Shared scene furniture ---------- */
.scene { position: relative; padding: clamp(80px, 9vw, 128px) var(--gutter); overflow: clip; }
.scene__head { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 6vw, 72px); }
.scene__head h2 {
  font-family: var(--f-head); font-weight: 400; margin: 0;
  font-size: clamp(3rem, 10vw, 7.5rem); line-height: .9; letter-spacing: .02em;
}
.scene__sub { color: var(--text-2); margin: 14px auto 0; max-width: 560px; }
.kicker { font-family: var(--f-type); color: var(--glow); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; margin: 0 0 10px; }
.hand { font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.15; }

/* Badges: brass-edged detective shields, lit from the orange */
.badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; min-height: 48px;
  font-family: var(--f-head); font-size: 1.35rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase;
  color: var(--night); background: var(--xmr); border: 0; cursor: pointer;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 0 0 5px rgba(255,190,140,.35);
  transition: filter .2s, transform .2s;
}
.badge:hover { filter: brightness(1.12) drop-shadow(0 0 14px var(--glow)); transform: translateY(-1px); }
.badge:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.badge--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--trench), inset 0 0 0 5px rgba(168,132,90,.18); }
.badge--ghost:hover { color: var(--glow); box-shadow: inset 0 0 0 1.5px var(--glow); }
.badge__star { width: 18px; height: 18px; fill: currentColor; }

/* Contract address strip: "copy the evidence" */
.ca {
  position: relative; display: grid; gap: 2px; justify-items: center;
  width: min(100%, 560px); margin: 26px auto 0; padding: 12px 16px;
  background: rgba(10,10,11,.7); border: 1px dashed #3a3a3f; cursor: copy;
  font-family: var(--f-type); text-align: center; overflow: hidden;
}
.ca:hover { border-color: var(--glow); }
.ca__label { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--glow); }
.ca__addr { font-size: clamp(.78rem, 2.6vw, 1rem); word-break: break-all; line-height: 1.35; }
.ca__hint { font-size: .72rem; color: var(--text-2); }
.ca__stamp {
  position: absolute; left: 50%; top: 50%;
  padding: 4px 14px; border: 3px double var(--xmr); color: var(--xmr);
  font-family: var(--f-head); font-size: 1.6rem; letter-spacing: .12em; white-space: nowrap;
  background: rgba(10,10,11,.8);
  transform: translate(-50%,-50%) rotate(-9deg) scale(2.2); opacity: 0; pointer-events: none;
}
.ca.is-stamped .ca__stamp { animation: stamp .9s var(--ease-out) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(-9deg) scale(2.2); }
  18% { opacity: 1; transform: translate(-50%,-50%) rotate(-9deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(-9deg) scale(1); }
}
.ca--paper { background: transparent; border-color: rgba(27,26,24,.45); color: var(--ink); }
.ca--paper .ca__label, .ca--paper .ca__hint { color: #6a4a22; }
.ca--paper .ca__stamp { background: var(--paper); }

/* ---------- Flashlight ---------- */
.torch { position: absolute; inset: 0; z-index: 1; pointer-events: none; --tx: -999px; --ty: -999px; }
.torch::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 190px at var(--tx) var(--ty), rgba(255,138,61,.16), rgba(255,102,0,.05) 55%, transparent 72%);
}
.torch__secrets {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle 150px at var(--tx) var(--ty), #000 30%, transparent 75%);
          mask-image: radial-gradient(circle 150px at var(--tx) var(--ty), #000 30%, transparent 75%);
}
.secret { position: absolute; font-family: var(--f-hand); font-size: 1.7rem; color: var(--glow); transform: rotate(-4deg); text-shadow: 0 0 10px rgba(255,102,0,.6); }
.secret--s { font-size: 1.2rem; transform: rotate(3deg); }
.paw {
  position: absolute; width: 22px; height: 22px; opacity: .8;
  background:
    radial-gradient(circle at 50% 70%, var(--glow) 0 5px, transparent 6px),
    radial-gradient(circle at 18% 36%, var(--glow) 0 2.6px, transparent 3.4px),
    radial-gradient(circle at 40% 18%, var(--glow) 0 2.6px, transparent 3.4px),
    radial-gradient(circle at 64% 18%, var(--glow) 0 2.6px, transparent 3.4px),
    radial-gradient(circle at 84% 36%, var(--glow) 0 2.6px, transparent 3.4px);
  transform: rotate(-12deg);
}
.paw:nth-child(even) { margin-left: 18px; transform: rotate(8deg); }
.torch-scene > *:not(.torch):not(.desk-lamp) { position: relative; z-index: 2; }

/* =========================================================
   SCENE 1 — HERO
   ========================================================= */
.hero {
  min-height: 100svh; padding-top: 72px; padding-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255,102,0,.07), transparent 70%);
}
.hero__stage { position: relative; width: 100%; display: grid; place-items: center; }
.hero__art { height: clamp(230px, 46svh, 560px); width: auto; overflow: visible; }
.hero__halo { transform-origin: 128px 128px; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .75; transform: scale(.97); } }
.hero__copy { position: relative; z-index: 6; text-align: center; margin-top: clamp(-110px, -11svh, -44px); width: 100%; }
.hero__title {
  margin: 0; font-family: var(--f-head); font-weight: 400;
  font-size: clamp(4rem, 15vw, 9.5rem); line-height: .82; letter-spacing: .015em;
  text-shadow: 0 6px 40px #000;
}
.hero__ticker {
  display: block; margin-top: 8px;
  font-size: .26em; letter-spacing: .5em; padding-left: .5em;
  color: var(--glow); text-shadow: 0 0 18px rgba(255,102,0,.8);
}
.hero__line { font-family: var(--f-type); font-size: clamp(1rem, 2.4vw, 1.25rem); min-height: 1.6em; margin: 14px 0 22px; color: var(--paper); }
.hero__line.is-typing::after { content: "▌"; color: var(--glow); animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__scroll { text-align: center; margin: 22px 0 0; font-family: var(--f-type); font-size: .75rem; color: var(--text-2); letter-spacing: .1em; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--glow), transparent); animation: drip 1.8s ease-in infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
.hero.is-clicked .hero__scroll { opacity: 0; transition: opacity .4s; }

/* =========================================================
   SCENE 2 — CASE FILE
   ========================================================= */
.case {
  background:
    repeating-linear-gradient(-24deg, rgba(255,138,61,.035) 0 26px, transparent 26px 64px),
    radial-gradient(ellipse at 30% 0%, #1a1714, var(--night) 70%);
}
.folder { position: relative; max-width: 880px; margin: 0 auto; perspective: 1800px; }
.folder__tab {
  display: inline-block; margin-left: 24px; padding: 8px 18px 6px;
  background: #b89660; color: var(--ink); font-family: var(--f-type); font-size: .8rem; letter-spacing: .08em;
  border-radius: 8px 8px 0 0;
}
.folder__cover {
  position: absolute; left: 0; right: 0; top: 34px; bottom: 0; z-index: 5;
  display: none; place-items: center;
  background: linear-gradient(160deg, #c4a169, #a4834f); border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transform-origin: left center; backface-visibility: hidden;
}
.folder__cover span { font-family: var(--f-head); font-size: clamp(2.5rem, 9vw, 5rem); color: rgba(27,26,24,.55); border: 4px solid rgba(27,26,24,.45); padding: 0 18px; transform: rotate(-6deg); }
.js .folder__cover { display: grid; }
.report {
  position: relative; padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 72px);
  background:
    linear-gradient(rgba(27,26,24,.035) 1px, transparent 1px) 0 0 / 100% 1.65em,
    radial-gradient(ellipse at 80% 10%, #f5ecd8, var(--paper) 60%, #dccfae);
  color: var(--ink);
  box-shadow: 0 0 0 10px #b89660, 0 40px 80px rgba(0,0,0,.7);
  border-radius: 2px;
}
.clip {
  position: absolute; top: -18px; left: 38px; width: 26px; height: 70px;
  border: 3px solid #8b8b90; border-radius: 13px; border-bottom-color: transparent;
}
.clip::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; bottom: -10px; border: 3px solid #8b8b90; border-radius: 9px; border-top-color: transparent; }
.stamp {
  display: inline-block; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase;
  color: #b73a13; border: 4px solid currentColor; padding: 2px 14px; opacity: .78;
  mix-blend-mode: multiply;
}
.stamp--classified { position: absolute; top: 26px; right: clamp(12px, 5vw, 48px); font-size: clamp(1.6rem, 5vw, 2.6rem); transform: rotate(8deg); }
.report__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 22px; margin: 10px 0 20px; padding-right: 120px; font-family: var(--f-type); font-size: .85rem; }
.report__meta dt { text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; color: #6d5e45; }
.report__meta dd { margin: 0; }
.report__hint { font-size: .85rem; color: #5b513f; border-left: 3px solid var(--trench); padding-left: 10px; }
.report__body { font-family: var(--f-type); font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.8; }
.report__creed { font-family: var(--f-head); font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: .04em; line-height: 1.05; margin: 30px 0 4px; }
.report__sign { font-family: var(--f-hand); font-size: 1.8rem; margin: 0; }
.note--margin { position: absolute; right: 18px; bottom: 34%; margin: 0; font-family: var(--f-hand); font-size: 1.5rem; color: #b73a13; transform: rotate(-8deg); display: none; }
.report__photo { margin: 30px 0 0; width: min(100%, 380px); padding: 10px 10px 34px; background: #fbf8f1; box-shadow: 0 10px 24px rgba(0,0,0,.25); transform: rotate(-2deg); position: relative; }
.report__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.report__photo-empty { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; background: #111; color: var(--text-2); font-family: var(--f-type); font-size: .85rem; padding: 12px; }
.report__photo figcaption { position: absolute; bottom: 8px; left: 12px; font-family: var(--f-hand); font-size: 1.1rem; }
@media (min-width: 1000px) { .note--margin { display: block; } }

/* Redaction bars */
.redact {
  position: relative; display: inline; padding: 0 .15em; margin: 0; border: 0;
  background: none; cursor: pointer; font: inherit; line-height: inherit;
  color: transparent; text-shadow: none; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--redact), var(--redact));
  background-size: 100% 88%; background-position: 0 60%; background-repeat: no-repeat;
  transition: color .35s ease .1s, background-size .45s var(--ease-out), text-shadow .45s;
}
.redact:focus-visible { outline-color: #b73a13; }
.redact.is-open {
  color: var(--ink);
  background-size: 0% 88%; background-position: 100% 60%;
  animation: bleed .6s ease-out;
}
@keyframes bleed {
  0% { text-shadow: 0 0 0 transparent; filter: blur(2px); }
  35% { text-shadow: 0 0 6px rgba(27,26,24,.9); filter: blur(1px); }
  100% { text-shadow: 0 0 0 transparent; filter: none; }
}
.redact[data-forever] { color: transparent !important; background-size: 100% 88% !important; }
.redact__tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; padding: 4px 10px; background: var(--ink); color: var(--paper);
  font-size: .8rem; pointer-events: none; animation: tip 2.2s forwards; z-index: 3;
}
@keyframes tip { 0%,80% { opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   SCENE 3 — EVIDENCE BOARD
   ========================================================= */
.board-scene { background: radial-gradient(ellipse 70% 50% at 50% 10%, #1b1815, var(--wall) 60%, var(--night)); }
.desk-lamp {
  position: absolute; top: 0; left: 50%; width: 140vmax; height: 120vh; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 155deg, rgba(255,138,61,.09) 172deg, rgba(255,138,61,.12) 180deg, rgba(255,138,61,.09) 188deg, transparent 205deg);
  pointer-events: none; z-index: 0 !important;
}
.board {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 34px; align-items: center;
  padding: 28px 12px 40px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.18) 0 1px, transparent 2px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.05) 0 1px, transparent 2px) 0 0 / 11px 11px,
    linear-gradient(135deg, #5c432b, #4a3522);
  box-shadow: inset 0 0 0 12px #2a1d12, inset 0 0 60px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.6);
  border-radius: 4px;
}
.board::before {  /* mobile: one red thread down the middle */
  content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; margin-left: -1px;
  background: var(--string); box-shadow: 0 1px 2px rgba(0,0,0,.5);
  transform-origin: top; transform: scaleY(var(--thread, 1));
}
.board__strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; display: none; overflow: visible; }
.board__strings path { fill: none; stroke: var(--string); stroke-width: 2; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.exhibit {
  position: relative; z-index: 2; width: min(100%, 330px); color: var(--ink);
  box-shadow: 0 14px 28px rgba(0,0,0,.45);
  transform: rotate(var(--r, -1.5deg));
  transition: transform .3s var(--ease-out);
}
.exhibit:hover { transform: rotate(0) scale(1.02); z-index: 4; }
.exhibit h3 { font-family: var(--f-type); font-weight: 400; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin: 12px 0 6px; }
.exhibit p { margin: 0 0 6px; }
.exhibit--a { --r: -3deg; } .exhibit--b { --r: 2deg; } .exhibit--c { --r: -1deg; } .exhibit--d { --r: 3deg; } .exhibit--e { --r: -2deg; }
.pin {
  position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; z-index: 5; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffc49a, var(--xmr) 45%, #7a2b00);
  box-shadow: 0 3px 4px rgba(0,0,0,.6), 0 0 10px rgba(255,102,0,.5);
}
.pin--big { position: relative; display: block; top: 0; margin: 0 auto 6px; width: 24px; height: 24px; left: 0; }
.polaroid { background: #f7f3ea; padding: 12px 12px 16px; }
.polaroid__img { aspect-ratio: 1; background: #000; }
.polaroid__img--hat { background: #000 url("../assets/img/header.webp") center / cover no-repeat; }
.polaroid__img--shadow { background: radial-gradient(ellipse at 50% 35%, #141416, #000 70%); position: relative; }
.polaroid__img--shadow::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-head); font-size: 5rem; color: #151517; }
.indexcard {
  background: linear-gradient(#fbf7ee, #f1e9d6); padding: 18px 20px;
  border-top: 22px solid #f1e9d6; box-shadow: 0 14px 28px rgba(0,0,0,.45), inset 0 22px 0 -21px #c2502a;
  font-size: .98rem;
}
.indexcard--lined { background: repeating-linear-gradient(#fbf7ee 0 25px, #bdd0dc 25px 26px); }
.indexcard__big { font-family: var(--f-head); font-size: 3rem; line-height: 1; margin: 4px 0 10px !important; }
.indexcard__big span { color: var(--xmr); }
.stamp--small { position: absolute; right: 14px; bottom: 10px; font-size: 1.6rem; transform: rotate(-12deg); }
.witness { background: #e9e6df; padding: 18px; }
.witness__post { margin: 0; padding: 14px; background: #0f0f10; color: var(--paper); border-radius: 12px; font-family: var(--f-body); }
.witness__who { display: flex; gap: 10px; align-items: center; font-size: .92rem; line-height: 1.2; }
.witness__who .dim { font-size: .82rem; }
.witness__avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2b2b30, #000); box-shadow: inset 0 -10px 0 #111; flex: none; }
.witness__post p { margin: 12px 0 0; font-size: 1.1rem; font-weight: 400; }
.witness__link { display: inline-block; margin-top: 10px; font-family: var(--f-type); font-size: .85rem; color: var(--ink); }
.board__center { position: relative; z-index: 4; text-align: center; color: var(--paper); padding: 10px 18px; background: rgba(0,0,0,.35); }
.hand--big { font-size: 2rem; color: #ffd9bd; text-shadow: 0 0 10px rgba(255,102,0,.6); margin: 0; }

@media (min-width: 900px) {
  .board {
    display: grid; gap: 28px 40px; padding: 60px 50px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "a . b" "c m d" "c e d";
    align-items: center; justify-items: center;
  }
  .board::before { display: none; }
  .board__strings { display: block; }
  .exhibit--a { grid-area: a; } .exhibit--b { grid-area: b; } .exhibit--c { grid-area: c; }
  .exhibit--d { grid-area: d; } .exhibit--e { grid-area: e; width: 250px; } .board__center { grid-area: m; }
  .exhibit--a { width: 280px; }
}

/* =========================================================
   SCENE 4 — SURVEILLANCE FEED
   ========================================================= */
.feed { background: linear-gradient(var(--night), #0d0d0e 50%, var(--night)); }
.stakeout { display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; }
.readout { background: #0f0f11; border: 1px solid #222226; padding: 16px 18px; text-align: center; box-shadow: inset 0 0 30px rgba(0,0,0,.8); }
.readout__label { margin: 0 0 8px; font-family: var(--f-type); font-weight: 400; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
.readout__value { margin: 0; font-family: var(--f-head); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; min-height: 1.15em; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.readout__sub { margin: 8px 0 0; font-family: var(--f-type); font-size: .82rem; color: var(--text-2); }
.readout__sub .up { color: var(--glow); }
.readout.is-lost .readout__value { color: var(--glow); letter-spacing: .08em; text-shadow: 0 0 12px rgba(255,102,0,.6); animation: blink 1.4s steps(1) infinite; }
.flip {
  display: inline-block; min-width: .62em; padding: .08em .06em; text-align: center;
  background: linear-gradient(#1a1a1d 49.5%, #000 49.5% 50.5%, #141416 50.5%);
  border-radius: 3px; color: var(--paper);
  box-shadow: 0 2px 0 #000;
}
.flip--sep { background: none; box-shadow: none; min-width: .3em; color: var(--text-2); }
.flip--sub { font-size: .5em; align-self: flex-end; background: none; box-shadow: none; color: var(--glow); min-width: 0; }
.flip.is-flipping { animation: flip .45s var(--ease-out); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(-90deg); filter: brightness(.5); } 100% { transform: rotateX(0); } }
.stakeout__status { text-align: center; font-family: var(--f-type); font-size: .8rem; color: var(--text-2); margin: 14px 0 34px; }
@media (min-width: 760px) { .stakeout { grid-template-columns: repeat(3, 1fr); } }

.crt { max-width: 1100px; margin: 0 auto; }
.crt__bezel {
  padding: clamp(12px, 2.4vw, 26px); border-radius: 30px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, #232326, #0e0e10);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px #000;
}
.crt__screen {
  position: relative; overflow: hidden; border-radius: 22px / 26px; background: #050806;
  height: min(78vh, 620px); min-height: 460px;
}
.crt__screen::after { /* phosphor bloom on the glass edges only, never over the chart's middle */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 40px 6px rgba(20,60,40,.55), inset 0 0 90px 10px rgba(255,102,0,.16);
}
.crt__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.crt__screen.is-on iframe { animation: power-on .6s ease-out; }
@keyframes power-on { 0% { transform: scaleY(.004) scaleX(.6); filter: brightness(4); } 50% { transform: scaleY(.004) scaleX(1); } 100% { transform: none; filter: none; } }
.crt__power, .crt__noscript {
  position: absolute; inset: 0; width: 100%; display: grid; place-content: center; gap: 10px; text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(120,255,180,.035) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at center, #0f1a14, #030504 70%);
  border: 0; cursor: pointer; color: #cfe9d9; font-family: var(--f-type); font-size: 1.15rem; letter-spacing: .08em;
}
.crt__power small { font-size: .78rem; color: #8fb4a0; letter-spacing: 0; max-width: 300px; margin: 0 auto; }
.crt__dot { width: 12px; height: 12px; margin: 0 auto 6px; border-radius: 50%; background: var(--xmr); box-shadow: 0 0 14px var(--glow); animation: blink 1.6s steps(1) infinite; }
.crt__plate { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; font-family: var(--f-type); font-size: .78rem; color: var(--text-2); letter-spacing: .08em; }
.crt__plate a { color: var(--paper); }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--xmr); box-shadow: 0 0 8px var(--glow); margin-right: 6px; animation: blink 1.2s steps(1) infinite; }

/* =========================================================
   SCENE 5 — INFORMANT
   ========================================================= */
.informant { background: radial-gradient(ellipse at 50% 40%, #16130f, var(--night) 70%); }
.telegram {
  max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 5vw, 44px);
  background: linear-gradient(#efe4c8, #e2d4b0); color: var(--ink);
  box-shadow: 0 30px 70px rgba(0,0,0,.7); transform: rotate(-.6deg);
  font-family: var(--f-type);
}
.telegram__head { margin: 0; text-align: center; font-family: var(--f-head); font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: .12em; border-bottom: 3px double var(--ink); padding-bottom: 8px; }
.telegram__to { font-size: .9rem; color: #4f4533; }
.telegram__steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.telegram__steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; background: #f7efd9; box-shadow: 0 1px 2px rgba(0,0,0,.2);
  text-transform: uppercase; letter-spacing: .03em; font-size: clamp(.9rem, 2.4vw, 1rem); line-height: 1.55; min-height: 3em;
}
.telegram__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-head); font-size: 1.1rem; }
[data-type].is-typing::after { content: "▌"; animation: blink .6s steps(1) infinite; }
.telegram__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.telegram .badge--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stamp--warn { display: block; width: fit-content; margin: 24px auto 0; font-size: clamp(1.3rem, 4.4vw, 2rem); transform: rotate(-3deg); text-align: center; }

/* =========================================================
   SCENE 6 — THE NUMBERS
   ========================================================= */
.ledger {
  max-width: 820px; margin: 0 auto; padding: clamp(22px, 5vw, 48px);
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 52px, rgba(183,58,19,.35) 52px 54px, transparent 54px),
    repeating-linear-gradient(#f1e8d2 0 38px, #c9d6dc 38px 39px);
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.ledger__title { font-family: var(--f-head); font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: .1em; margin: 0 0 8px; padding-left: 56px; }
.ledger table { width: 100%; border-collapse: collapse; font-family: var(--f-type); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 8px 0; line-height: 1.4; }
.ledger th { width: 38%; padding-left: 56px; font-weight: 400; color: #5b4d36; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; padding-top: 11px; }
.ledger td { font-size: 1rem; }
.ledger td.mono { font-size: .82rem; }
.ledger__foot { margin: 16px 0 0; padding-left: 56px; color: #6a2f16; }
@media (max-width: 560px) {
  .ledger th, .ledger td { display: block; width: auto; padding-left: 56px; }
  .ledger th { padding-bottom: 0; }
  .ledger td { padding-top: 2px; }
}

/* =========================================================
   SCENE 7 — AGENCY
   ========================================================= */
.agency { background: linear-gradient(var(--night), transparent 180px), radial-gradient(ellipse at 50% 25%, #151416, var(--night) 70%); }
.agency__grid { display: grid; gap: 48px; max-width: 1100px; margin: 0 auto; align-items: center; justify-items: center; }
@media (min-width: 860px) { .agency__grid { grid-template-columns: 1fr 1fr; } }

.matchbook { width: min(100%, 320px); }
.matchbook__cover {
  width: 100%; aspect-ratio: 5/3; display: grid; place-content: center; gap: 6px; cursor: pointer;
  background: radial-gradient(circle at 50% 38%, rgba(255,102,0,.25), transparent 55%), #0c0c0d;
  border: 1px solid #2a2a2e; border-radius: 6px 6px 0 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.matchbook__brand { font-family: var(--f-head); font-size: 2.6rem; letter-spacing: .08em; color: var(--glow); text-shadow: 0 0 16px rgba(255,102,0,.7); line-height: 1; }
.matchbook__small { font-family: var(--f-type); font-size: .75rem; color: var(--text-2); }
.matchbook__cover[aria-expanded="true"] { transform: perspective(700px) rotateX(-160deg); }
.matchbook__matches {
  list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px;
  background: #1a1612; border: 1px solid #2a2a2e; border-top: 8px solid #3b2f22; border-radius: 0 0 6px 6px;
}
.js .matchbook__matches { visibility: hidden; opacity: 0; transition: opacity .3s .25s; }
.js .matchbook.is-open .matchbook__matches { visibility: visible; opacity: 1; }
.match {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px;
  background: linear-gradient(90deg, #c9a878, #a8845a); color: var(--ink);
  text-decoration: none; font-family: var(--f-type); border-radius: 2px;
}
.match__head { width: 18px; height: 24px; border-radius: 50% 50% 45% 45%; background: #3b1a10; flex: none; transition: box-shadow .2s; }
.match:hover .match__head, .match:focus-visible .match__head { background: var(--xmr); box-shadow: 0 -8px 16px 2px var(--glow); }
.match--unlit { opacity: .6; cursor: not-allowed; }
.match small { color: #4a3b27; }

.wanted { width: min(100%, 340px); }
.wanted__stack { position: relative; aspect-ratio: 3/4; }
.poster {
  position: absolute; inset: 0; margin: 0; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #efe4c8, #d8c69b); color: var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  transition: transform .6s var(--ease-out), opacity .6s;
}
.poster__h { font-family: var(--f-head); font-size: 3.6rem; line-height: .9; letter-spacing: .06em; margin: 0; }
.poster__for { font-family: var(--f-type); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 10px; }
.poster__img { flex: 1; width: 100%; background: #0c0c0d; display: grid; place-items: center; overflow: hidden; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.poster__img span { font-family: var(--f-type); color: var(--text-2); font-size: .85rem; padding: 12px; }
.poster__cap { font-family: var(--f-hand); font-size: 1.3rem; margin: 8px 0 0; }
.poster--art { padding: 0; background: #0c0c0d; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(239,228,200,.18); }
.wanted:has(.poster--art) .wanted__ctrl { margin-top: 34px; }
.poster--art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster__credit { position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; background: rgba(0,0,0,.6); color: var(--paper); font-family: var(--f-hand); font-size: 1.1rem; }
.wanted__ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; font-family: var(--f-type); font-size: .85rem; color: var(--text-2); }
.wanted__ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #333; background: none; cursor: pointer; }
.wanted__ctrl button:hover { border-color: var(--glow); }

.booth { max-width: 1100px; margin: 80px auto 0; padding: clamp(18px, 4vw, 36px); border: 1px solid #242428; background: rgba(15,15,17,.8); }
.booth__head h3 { font-family: var(--f-head); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); margin: 0; letter-spacing: .04em; }
.booth__head p { color: var(--text-2); margin: 4px 0 20px; }
.booth__body { display: grid; gap: 22px; }
@media (min-width: 860px) { .booth__body { grid-template-columns: minmax(0, 1.3fr) 1fr; align-items: start; } }
.booth__frame { position: relative; aspect-ratio: 1; background: #050506; border: 1px dashed #333; touch-action: none; }
.booth__frame.is-drag { border-color: var(--glow); }
.booth__frame canvas { width: 100%; height: 100%; cursor: grab; }
.booth__frame canvas:active { cursor: grabbing; }
.booth__empty { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; text-align: center; font-family: var(--f-type); color: var(--text-2); pointer-events: none; }
.booth__ctrl { display: grid; gap: 16px; font-family: var(--f-type); font-size: .9rem; }
.booth__ctrl label { display: grid; gap: 6px; }
.booth__ctrl .check { display: flex; align-items: center; gap: 10px; }
.booth__ctrl input[type="range"] { accent-color: var(--xmr); width: 100%; }
.booth__ctrl input[type="checkbox"] { accent-color: var(--xmr); width: 18px; height: 18px; }
.btn-file { position: relative; display: inline-flex !important; place-content: center; min-height: 48px; padding: 12px 18px; border: 1.5px solid var(--trench); cursor: pointer; text-align: center; }
.btn-file:hover, .btn-file:focus-within { border-color: var(--glow); color: var(--glow); }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.booth__tip { color: var(--text-2); font-size: .8rem; margin: 0; }

/* =========================================================
   FOOTER — CASE CLOSED
   ========================================================= */
.footer { padding-top: 0; padding-bottom: 48px; text-align: center; }
.street { position: relative; height: 340px; max-width: 1200px; margin: 0 auto; }
.street__lamp { position: absolute; bottom: 0; left: 18%; height: 320px; width: auto; }
.street__cone {
  position: absolute; bottom: 0; left: calc(18% + 78px); width: 380px; height: 288px; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,160,90,.28), rgba(255,102,0,.08) 60%, transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  animation: lamp 5s ease-in-out infinite;
}
@keyframes lamp { 0%,100% { opacity: 1 } 47% { opacity: 1 } 48% { opacity: .5 } 49% { opacity: 1 } 51% { opacity: .7 } 52% { opacity: 1 } }
.street__ground { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #2a2a2e 20%, #2a2a2e 80%, transparent); }
.street__walker { position: absolute; bottom: 0; left: calc(18% + 10px); width: 84px; }
.footer.is-walking .street__walker { animation: walk-off 11s linear forwards; }
.footer.is-walking .leg--a { animation: leg 0.7s ease-in-out infinite alternate; transform-origin: 44px 118px; }
.footer.is-walking .leg--b { animation: leg 0.7s ease-in-out infinite alternate-reverse; transform-origin: 74px 118px; }
@keyframes walk-off { 0% { transform: translateX(0); } 100% { transform: translateX(110vw); } }
@keyframes leg { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.footer__inner { max-width: 760px; margin: 0 auto; padding-top: 30px; }
.footer__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(3rem, 11vw, 6.5rem); line-height: .9; margin: 0; }
.footer__title span { color: var(--glow); text-shadow: 0 0 20px rgba(255,102,0,.6); }
.socials { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 26px 0; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #2c2c30; border-radius: 50%; }
.socials a:hover { border-color: var(--glow); box-shadow: 0 0 16px -4px var(--glow); }
.socials a[aria-disabled="true"] { opacity: .4; }
.socials svg { width: 20px; height: 20px; fill: var(--paper); }
.disclaimer { font-size: .85rem; color: var(--text-2); max-width: 620px; margin: 0 auto; }

/* ---------- Easter egg: typing "xmr" ---------- */
.flash { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.flash.is-on { visibility: visible; animation: lightning 1.9s ease-out forwards; }
.flash.is-static { visibility: visible; opacity: 1; background: rgba(0,0,0,.8); }
.flash__line { font-family: var(--f-head); font-size: clamp(2.2rem, 8vw, 5.5rem); text-align: center; line-height: 1; padding: 0 var(--gutter); color: #fff; text-shadow: 0 0 30px var(--glow), 0 0 80px var(--xmr); }
@keyframes lightning {
  0% { opacity: 0; background: transparent; }
  4% { opacity: 1; background: rgba(255,120,40,.85); }
  8% { background: rgba(0,0,0,.4); }
  12% { background: rgba(255,150,80,.7); }
  22% { background: rgba(0,0,0,.75); opacity: 1; }
  80% { opacity: 1; background: rgba(0,0,0,.75); }
  100% { opacity: 0; background: rgba(0,0,0,0); }
}

/* ---------- Reduced motion: everything settles, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .fx-grain { animation: none; }
  .js .loader { display: none; }
  .js .folder__cover { display: none; }
  .footer.is-walking .street__walker { animation: none; }
}
