/* Fonts, served from this site (fonts/) so no visitor's browser asks Google for them. These are
   Google Fonts' own files and character-set splits: a browser downloads only the parts a page
   uses. The version in each file name is Google's, so a newer file gets a new name, and Apache can
   cache them for a year. Licenses: fonts/LICENSE-*.txt. Caveat is a variable font: one file for
   both weights. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/caveat-v23-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/caveat-v23-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/caveat-v23-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/caveat-v23-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/permanent-marker-v16-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/special-elite-v20-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/special-elite-v20-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "UnifrakturMaguntia";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/unifraktur-maguntia-v22-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf5ec;
  --paper-2: #f4ecdd;
  --ink: #1f2733;
  --ink-soft: #55606f;
  --pink: #e4558a;
  --pink-soft: #f6c7d6;
  --pink-deep: #c23a6c;
  --gold: #c39a2b;
  --cream: #fffdf8;
  --line: #d9cdb6;
  --shadow: 0 20px 50px -24px rgba(31, 39, 51, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --stamp-red: #c0392b;
  --tape-yellow: #f2cf4a;
  --tape-yellow-2: #e6bd38;
  --mono: "Courier New", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* noir */
  --type: "Special Elite", "Courier New", ui-monospace, monospace;
  --marker: "Permanent Marker", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --noir: #0f0d0b;
  --noir-ink: #ece3d3;
  --noir-soft: #a69a8b;
  --yarn: #b8141d;
  --photo: url("images/tbaby.jpg");
}

* { box-sizing: border-box; }

/* Nothing may widen the page. On a phone, body's overflow-x alone doesn't stop a finger: the browser
   widens the page to fit whatever sticks out (the dictionary stamps mid-slam, the cabinet's steel
   front) and lets the screen pan across it. Clipping on both html and body stops that. hidden on
   html would too, but it makes body the scroller and the sticky nav scrolls away with the page. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff6e6 0%, transparent 60%),
    var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* for browsers without clip */
  overflow-x: clip;
}

/* Selecting text redacts it: a solid bar with the text hidden underneath, in the same ink as .redacted.
   An ink bar would vanish on anything dark, so there the bar takes the text's own colour: pale type
   gets a pale bar, and the dark type on a paper card lying on a dark band still gets a dark one.
   The long-form sheets go back to ink so a paragraph's bar doesn't change colour at every red link. */
::selection { background: var(--ink); color: var(--ink); text-shadow: none; }
:is(.noir, .footer--noir, .seam, .case-desk, .nav, .hero__cta, .grudge-meter, .music-toggle)::selection,
:is(.noir, .footer--noir, .seam, .case-desk, .nav, .hero__cta, .grudge-meter, .music-toggle) ::selection { background: currentColor; color: currentColor; }
:is(.file__sheet, .dossier, .verdict)::selection,
:is(.file__sheet, .dossier, .verdict) ::selection { background: var(--ink); color: var(--ink); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 245, 236, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  /* The snip below assumes the title's 0.95 line-height; the padding gives the nav its height back. */
  line-height: 0.95;
  padding-block: 0.35em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__mark .w-baby { position: relative; display: inline-block; color: var(--pink-deep); font-style: italic; }
/* Pin Dot: the real "." stays for screen readers and copy-paste, hidden under a pushpin. Yarn runs
   from the pin, under "baby", to a second pin; it stretches to fit "baby" in this device's font. */
.nav__mark .w-dot { position: relative; display: inline-block; width: 0.37em; text-align: center; color: transparent; }
.nav__mark .w-dot::before {
  content: "";
  position: absolute;
  left: calc(50% - 0.145em);
  top: calc(var(--dot-base, 0.85em) - 0.245em);
  width: 0.29em;
  height: 0.29em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #ffa0a0, #d31b25 45%, #4f0407);
  box-shadow: 0.04em 0.07em 0.08em rgba(0, 0, 0, 0.32);
  z-index: 1;
}
.nav__yarn {
  position: absolute;
  left: -0.185em;
  right: -0.12em;
  top: calc(var(--dot-base, 0.85em) - 0.1em);
  width: calc(100% + 0.305em);
  height: 0.95em;
  overflow: visible;
  pointer-events: none;
}
.nav__yarn path { fill: none; stroke: #c5202a; stroke-width: 1.4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nav__mark .w-baby::after {
  content: "";
  position: absolute;
  right: -0.195em;
  top: calc(var(--dot-base, 0.85em) + 0.25em);
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff6b8, #e2ac16 45%, #5c3e03);
}
/* The nav's letters are small, so its dress is drawn at twice the title's scale: the head then
   matches the pin it takes over from. */
.nav__mark .frock { left: calc(50% - 0.315em); top: calc(var(--dot-base, 0.85em) - 0.882em); width: 0.63em; height: 0.882em; }
.nav__mark .frock__head { fill: #d31b25; }
.nav__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--pink-deep); }
/* Case Studies and its two supplements. The list opens on hover or keyboard focus, with no script;
   the ::before bridges the gap below the nav so the pointer can cross it without the list closing.
   A finger can't hover, so on a touchscreen the first tap opens it instead (.is-open, script.js,
   "Case Studies under a finger"). Hover only counts where there is one: on an iPhone a hover rule
   would make Safari spend the first tap on hovering. */
.nav__group { position: relative; }
.nav__group > a::after { content: " \25BE"; font-size: 0.8em; }
.nav__drop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1.05rem;
  padding: 0.35rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -1.2rem; height: 1.2rem; }
.nav__group.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .nav__group:hover .nav__drop { opacity: 1; visibility: visible; transform: none; }
}
/* Keyboard focus, not any focus: a tap focuses the link too, and the list would then stay open
   after the finger closed it. Its own rule, since a browser without :has() drops the whole rule. */
.nav__group:has(:focus-visible) .nav__drop { opacity: 1; visibility: visible; transform: none; }
@supports not selector(:has(a)) {
  .nav__group:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
}
/* The links are one line of small type, too thin for a fingertip. On a touchscreen each one's tap
   area reaches up and down the nav; the negative margin keeps the nav the same height. */
@media (pointer: coarse) {
  .nav__links > a { padding-block: 0.85rem; margin-block: -0.85rem; }
  .nav__group > a { padding-block: 0.85rem; }
}
.nav__drop a { display: block; padding: 0.45rem 1rem; }
.nav__drop a:hover, .nav__drop a:focus-visible { background: var(--paper-2); }
/* Phones: the links fold into a menu (script.js, "The phone menu", builds the button and the list).
   The button's negative margin gives it a full-size tap target without making the nav taller. */
.nav__toggle { display: none; }
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 3.7rem);
  max-height: calc(100dvh - 3.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.35);
}
/* The music, Noir and grudge-meter buttons sit above the nav (z-index 70); while the menu is open
   it goes over them, or on a short screen they cover its last links. */
.nav.is-menu-open { z-index: 75; }
/* A phone on its side has room for half the list: two columns, so Case Studies and its files are
   on screen without scrolling the menu. */
@media (max-width: 700px) and (max-height: 500px) and (orientation: landscape) {
  .nav__menu { columns: 2; column-gap: 0; column-rule: 1px solid var(--line); }
  .nav__menu a { break-inside: avoid; }
}
.nav__menu a {
  display: block;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__menu a[aria-current="page"] { color: var(--pink-deep); }
.nav__menu .nav__menu-sub { padding-left: 2.25rem; font-weight: 400; }
/* The three bars, which cross into an X while the menu is open. */
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-block: -0.4rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: 600 0.95rem var(--sans);
    cursor: pointer;
  }
}
@media (min-width: 700.02px) {
  .nav__menu { display: none; }
}
/* All the links, between the phone layout and the width where they fit at full size. */
@media (min-width: 700.02px) and (max-width: 899.98px) {
  .nav__links { gap: 0.5rem; font-size: 0.78rem; }
  .nav__mark { font-size: 1.05rem; }
}

/* LAYOUT: sections are centred columns; the noir bands run full-bleed */
section {
  padding: clamp(2.2rem, 7vw, 3.6rem) 0;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
/* PAIRS: on wide screens two related sections sit side by side (the record + the case; the FAQ +
   the findings), the shorter one sticky so it stays beside the longer one as it scrolls past
   instead of leaving a gap. Narrower screens keep the single column exactly as before: the wrapper
   is a plain block and the sections keep the side padding below. */
.pair > section {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}
@media (min-width: 1100px) {
  .pair {
    display: grid;
    align-items: start;
    gap: clamp(2.5rem, 4vw, 4.5rem);
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 2rem;
  }
  .pair--record { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pair--faq { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .pair > section { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  /* Clear of the sticky nav, and level with the section beside it when a nav link lands (ANCHORS). */
  .pair > .dictionary,
  .pair > .badges { position: sticky; top: calc(var(--land) - clamp(2.2rem, 7vw, 3.6rem)); }
  .pair--faq .badge-row { flex-direction: column; align-items: center; }
  /* The FAQ has no small label above its heading and the findings do: hold the same space, so the
     two headings line up side by side. (The label is .kicker: 0.7rem type, 0.7rem below it.) */
  .pair--faq > .faq::before { content: ""; display: block; height: calc(0.7rem * 1.65 + 0.7rem); }
}

main > section:not(.noir) {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* ANCHORS: a nav link lands with the section's content just clear of the sticky nav, skipping the
   section's own top padding (the part subtracted below). The desk and the wall are also capped by
   the window's height (.desk, .board) so they fit on screen when they land. */
:root {
  --land: calc(3.7rem + 0.75rem); /* the nav's height + a small gap */
  /* As wide as the window's height allows, down to a readable 860px. 0.8533 is the board's height
     / width; 7.7rem is --land plus the status line under the board. */
  --board-w: min(1120px, max(860px, calc((100vh - 7.7rem) / 0.8533)));
}
#exhibit { scroll-margin-top: calc(var(--land) - 9rem); }
#wall, #jury { scroll-margin-top: calc(var(--land) - 2.5rem); }
#reveal, #story, #gallery, #faq { scroll-margin-top: calc(var(--land) - clamp(2.2rem, 7vw, 3.6rem)); }
@media (max-width: 1099.98px) {
  #story { scroll-margin-top: var(--land); } /* the folded case has no top padding here */
}
@media (min-width: 1100px) {
  /* The board always lands whole. Its heading (13.3rem tall) stays on screen only if it fits too;
     the * 1000 makes that all or nothing, so the heading is never cut in half under the nav. */
  #wall { scroll-margin-top: calc(var(--land) - 2.5rem - min(13.3rem, max(0px, (21rem + var(--board-w) * 0.8533 - 100vh) * 1000))); }
}

/* HERO */
.hero {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem);
}
.hero__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink-deep);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  /* One line is 7.4em wide: 11.5vw keeps it inside the side padding from 601px up
     (tablets, the Galaxy Fold's inner screen) and still reaches the cap on desktop. */
  font-size: clamp(3rem, 11.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__title .w-trans { color: var(--ink); white-space: nowrap; }

/* The snip: hover the title and scissors take the top off the "d". Then the pink dot hops up to be
   a baby's head and the dress drops on under it, in the order of the line under the title.
   --dot-base is where the dot's baseline falls, so the hem can sit on it. --cut is how far down the
   letter's box the blades close; script.js measures it, because the title's font differs per OS.
   0.95em is the title's line-height, so the falling piece is exactly what the letter loses. */
.w-d { --cut: 0.2em; position: relative; display: inline-block; }
.w-d__letter { display: block; }
.w-d::after, .snips, .frock { position: absolute; opacity: 0; pointer-events: none; }
.w-d::after {
  content: "d";
  content: "d" / ""; /* so screen readers don't hear a second d */
  left: 0;
  top: 0;
  clip-path: inset(-0.2em -0.2em calc(0.95em - var(--cut)) -0.2em);
  transform-origin: 75% var(--cut);
}
.snips { left: 0.2em; top: calc(var(--cut) - 0.3125em); width: 1.25em; height: 0.625em; overflow: visible; z-index: 2; }
.snips__blade { fill: #6f7680; transform-origin: 62px 30px; }
.snips__blade--a { transform: rotate(16deg); }
.snips__blade--b { transform: rotate(-16deg); }
.snips__arm, .snips__ring { fill: none; stroke: #b3121b; stroke-width: 5; stroke-linecap: round; }
.snips__pin { fill: #23201a; }
.frock { left: calc(50% - 0.1575em); top: calc(var(--dot-base, 0.85em) - 0.441em); width: 0.315em; height: 0.441em; overflow: visible; z-index: 1; }
.frock__dress { transform-origin: 50px 60px; }
.frock__head { fill: var(--pink); }
/* Drawn from the photo (images/tbaby.jpg): bottle green, flared cap sleeves, a piped white collar, and
   the three bears on a white smocked panel across the chest. */
.frock__body { fill: #10402f; }
.frock__sleeve { fill: #164f3e; }
.frock__panel { fill: #f6f3ea; }
.frock__piping { fill: none; stroke: #1c2b4f; stroke-width: 1.6; }
.frock__collar { fill: #fbf8f2; stroke: #1c2b4f; stroke-width: 1.4; }
.frock__bears { fill: #c8772a; }
.frock__limbs { fill: none; stroke: #c8772a; stroke-width: 2.2; stroke-linecap: round; }
.frock__string { fill: none; stroke: #4f6f9f; stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  :is(.hero__title, .nav__mark):hover .snips { animation: snips-move 1.4s ease-in-out both; }
  :is(.hero__title, .nav__mark):hover .snips__blade--a { animation: snips-a 1.4s both; }
  :is(.hero__title, .nav__mark):hover .snips__blade--b { animation: snips-b 1.4s both; }
  :is(.hero__title, .nav__mark):hover .w-d__letter { animation: d-cut 1.4s linear both; }
  :is(.hero__title, .nav__mark):hover .w-d::after { animation: d-tip 1.4s ease-in both; }
  .hero__title:hover .w-dot { animation: dot-hide 0.01s linear 1.25s both; }
  .nav__mark:hover .w-dot::before { animation: pin-hide 0.01s linear 1.25s both; }
  :is(.hero__title, .nav__mark):hover .frock { animation: frock-on 0.01s linear 1.25s both; }
  :is(.hero__title, .nav__mark):hover .frock__dress { animation: frock-drop 0.6s ease-out 1.25s both; }
  :is(.hero__title, .nav__mark):hover .frock__head { animation: frock-hop 0.35s ease-out 1.25s both; }
}
/* The real dot hands over to the drawn head. (Lengths inside the drawing are in its own units.) */
@keyframes dot-hide { to { color: transparent; } }
@keyframes pin-hide { to { opacity: 0; } }
@keyframes frock-on { to { opacity: 1; } }
@keyframes frock-drop {
  0% { opacity: 0; transform: translateY(-150px) rotate(-6deg); }
  20% { opacity: 1; }
  70% { transform: translateY(5px) rotate(3deg); }
  85% { transform: translateY(-3px) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes frock-hop {
  from { transform: translateY(86px); }
  to { transform: none; }
}
@keyframes snips-move {
  0%, 100% { opacity: 0; transform: translate(0.9em, -0.45em); }
  25%, 72% { opacity: 1; transform: none; }
}
@keyframes snips-a {
  0%, 38%, 72%, 100% { transform: rotate(16deg); }
  46%, 60% { transform: rotate(1deg); }
}
@keyframes snips-b {
  0%, 38%, 72%, 100% { transform: rotate(-16deg); }
  46%, 60% { transform: rotate(-1deg); }
}
@keyframes d-cut {
  0%, 45.9% { clip-path: inset(-0.2em); }
  46%, 100% { clip-path: inset(var(--cut) -0.2em -0.2em -0.2em); }
}
@keyframes d-tip {
  0%, 45.9% { opacity: 0; transform: none; }
  46% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-0.12em, 1em) rotate(-75deg); }
}
.hero__title .w-dot { position: relative; color: var(--pink); }
.hero__title .w-baby { color: var(--pink-deep); font-style: italic; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3.4vw, 1.8rem);
  color: var(--ink);
  margin: 0.8rem 0 0;
}
/* script.js picks the line. Stay hidden until then so the default doesn't flash first; if the
   script never runs, the animation shows the default anyway. */
.js .hero__tagline { visibility: hidden; animation: tagline-failsafe 0s linear 1.5s forwards; }
.js .hero__tagline.is-picked { visibility: visible; animation: none; }
@keyframes tagline-failsafe { to { visibility: visible; } }
/* Then it rotates the lines: all of them stacked in one cell, so the box is as tall as the longest at
   this width and nothing below it moves. The old line fades out, then the new one fades in. */
.hero__tagline.is-cycling { display: grid; align-items: center; }
.hero__tagline.is-cycling > span {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.hero__tagline.is-cycling > span.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease 0.4s, visibility 0s linear 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .hero__tagline.is-cycling > span, .hero__tagline.is-cycling > span.is-on { transition: none; }
}
.hero__sub {
  max-width: 30rem;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero__cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, background 0.15s ease;
}
.hero__cta:hover { transform: translateY(-2px); background: #2c3849; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.8rem; }
.hero__ctas .hero__cta { margin-top: 0; }
.hero__cta--alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hero__cta--alt:hover { color: var(--cream); }
@media (max-width: 600px) {
  .hero__title { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero__title .w-baby { display: block; }
}

/* SHARED SECTION HEADINGS */
h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0 0 1.2rem;
  text-align: center;
}

/* REVEAL */
.reveal {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.reveal p { font-size: 1.08rem; color: var(--ink); }
.reveal em { color: var(--pink-deep); }
/* DICTIONARY */
.dictionary { max-width: 44rem; margin: 0 auto; }
.dictionary dl { margin: 0; }
/* An evidence inventory: each item has a number and a stamp saying where it stands. */
.dict { padding: 1.05rem 0; border-bottom: 1px dashed var(--rule); }
.dict:last-child { border-bottom: none; }
.dict dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.7rem;
  margin-bottom: 0.4rem;
  font-family: var(--type);
  font-size: 1.14rem;
  font-weight: 400;
  color: var(--ink);
}
.dict__item { color: var(--ink-soft); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dict__stamp { margin-left: auto; padding: 0.2em 0.55em; border-width: 2px; border-radius: 4px; font-size: 0.7rem; white-space: nowrap; rotate: 3deg; }
.dict:nth-child(2) .dict__stamp { rotate: 9deg; animation-delay: 0.12s; }
.dict:nth-child(3) .dict__stamp { rotate: 1deg; animation-delay: 0.24s; }
.dict dd { margin: 0; color: var(--ink); }
/* Each one lands as it comes on screen, so it isn't sitting there first. */
@media (prefers-reduced-motion: no-preference) {
  .js .dict__stamp:not(.is-stamped) { visibility: hidden; }
}

/* STORY / TIMELINE */
.story { max-width: 44rem; margin: 0 auto; }

/* FAQ */
.faq { max-width: 42rem; margin: 0 auto; }
.q {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.q summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 1.2rem;
  position: relative;
  padding-right: 2.4rem;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--pink-deep);
  transition: transform 0.2s ease;
}
.q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.q p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
}
.q p a, .dict dd a { color: var(--pink-deep); font-weight: 600; }

/* The case: one FAQ-style row under the record while the page is a single column. Beside the record
   (see PAIRS) there is room for all of it, so script.js keeps it open and the row styling goes. */
@media (max-width: 1099.98px) {
  .story { padding-top: 0; }
  .docket summary h2 { font: inherit; letter-spacing: normal; margin: 0; text-align: left; }
  .docket .log { padding: 1.4rem 0.8rem 1.1rem; }
}
@media (min-width: 1100px) {
  .js .docket { border: 0; background: none; margin: 0; overflow: visible; }
  .js .docket summary { cursor: default; padding: 0; }
  .js .docket summary::after { content: none; }
}

/* BADGES */
.badges { text-align: center; }
.badge-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px -14px rgba(0,0,0,0.4);
}
.badge__icon { font-size: 1.15rem; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.footer__mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}
.footer__mark span { color: var(--pink-deep); }
.footer__line { margin: 0.5rem 0 0; color: var(--ink-soft); }
.footer__line a { color: var(--pink-deep); }
.footer__small { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.8; }

/* The home page ends back in the dark, through the same fade the desk opens with. (The case-study
   pages already end on a dark section, so they keep the plain footer for contrast.) The stamp's
   multiply blend would disappear on black. */
.footer--noir {
  margin-top: 0;
  padding-top: 8.5rem;
  border-top: 0;
  background: linear-gradient(180deg, var(--paper) 0, #3a332b 3.5rem, #15120f 6.5rem, var(--noir) 9rem);
  color: var(--noir-ink);
}
.footer--noir .footer__mark { margin-top: 1.3rem; }
.footer--noir .footer__mark span { color: var(--pink); }
.footer--noir .footer__line, .footer--noir .footer__small { color: var(--noir-soft); }
.footer--noir .footer__line a { color: var(--pink); }
.footer--noir .stamp { color: #e2483d; border-color: #e2483d; mix-blend-mode: normal; }
.footer--noir .footer__reopened { color: #e2483d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Vengeance: case-file treatment ===== */

/* Kicker labels: the case-file voice */
.kicker {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin: 0 0 0.7rem;
}

/* Rubber stamp */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stamp-red);
  border: 3px solid var(--stamp-red);
  border-radius: 8px;
  padding: 0.25em 0.7em;
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 32% 42%, #000 94%, rgba(0, 0, 0, 0.7));
  mask-image: radial-gradient(circle at 32% 42%, #000 94%, rgba(0, 0, 0, 0.7));
}
.stamp--lg { font-size: clamp(1.1rem, 4vw, 2.1rem); margin-top: 1.4rem; }
@keyframes stamp-slam {
  0%   { transform: scale(2.6) rotate(-18deg); opacity: 0; }
  55%  { transform: scale(0.9) rotate(-4deg);  opacity: 1; }
  75%  { transform: scale(1.06) rotate(-9deg); opacity: 1; }
  100% { transform: scale(1) rotate(-7deg);    opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .stamp--slam.is-stamped { animation: stamp-slam 0.5s cubic-bezier(0.2, 1.4, 0.35, 1) both; }
}

/* Faint "DO NOT FORGET" watermark behind the grievance. It is sized from the section's own width
   (cqw, its text column), so the whole phrase always fits inside it at any screen size: rotated, it
   is about 9.5em wide, so 10.5cqw spans the text column and stays inside the section's padding. The
   clip is only a safety net so it can never make the page scroll sideways. */
.reveal { position: relative; overflow-x: hidden; overflow-x: clip; container-type: inline-size; }
.reveal > *:not(.wm) { position: relative; z-index: 1; }
.wm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp-red);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Grudge meter: a fixed, very serious HUD */
.grudge-meter {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.grudge-meter__label { color: var(--stamp-red); min-width: 6.4em; text-align: left; }
.grudge-meter__bar {
  width: 96px;
  height: 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.grudge-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--stamp-red));
  border-radius: 999px;
  transition: width 0.15s ease;
}
.grudge-meter.is-settled .grudge-meter__fill { background: var(--ink); }
.grudge-meter__pct { min-width: 2.6em; text-align: right; }
@media (max-width: 520px) {
  .grudge-meter { right: 10px; bottom: 10px; padding: 0.3rem 0.55rem; gap: 0.4rem; font-size: 0.64rem; }
  .grudge-meter__bar { width: 62px; }
  .grudge-meter__label { min-width: 0; }
}

/* Music on/off: sits bottom-left, opposite the grudge meter, in the same pill style */
.music-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.music-toggle[aria-pressed="true"] { color: var(--stamp-red); }
.music-toggle:focus-visible { outline: 2px solid var(--stamp-red); outline-offset: 2px; }
@media (max-width: 520px) {
  .music-toggle { left: 10px; bottom: 10px; padding: 0.3rem 0.55rem; font-size: 0.64rem; }
}

/* Redactions that wipe open on hover */
.redacted {
  position: relative;
  color: transparent;
  border-radius: 2px;
  padding: 0 0.18em;
  cursor: help;
  user-select: none;
}
.redacted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.redacted:hover, .redacted:focus, .q:hover .redacted { color: var(--ink); }
.redacted:hover::after, .redacted:focus::after, .q:hover .redacted::after { transform: scaleX(0); }

/* Wordmark grumble: an angry little shake on hover */
@keyframes grumble {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-2px) rotate(-1.2deg); }
  40% { transform: translateX(2px) rotate(1.2deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(1px) rotate(0.6deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title:hover, .nav__mark:hover, .footer__mark:hover { animation: grumble 0.35s ease-in-out; }
}

/* The fresh grievance never quite sits still */
.badge--fresh { animation: wobble 5s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-1.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .badge--fresh { animation: none; }
}


/* =====================================================================
   NOIR BAND: the desk (Exhibit A) and the wall (Exhibit B)
   ===================================================================== */
.noir {
  max-width: none;
  position: relative;
  background: var(--noir);
  color: var(--noir-soft);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(0.75rem, 3vw, 2rem);
}
.noir.exhibit {
  margin-top: 1rem;
  padding-top: 9rem;
  background: linear-gradient(180deg, var(--paper) 0, #3a332b 3.5rem, #15120f 6.5rem, var(--noir) 9rem);
}
.noir.wall {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  overflow-x: clip; /* the hung magnifying glass has a full-size box; it mustn't widen the page */
}
/* the jury closes the noir band, so the fade back to paper lives here now */
.noir.jury {
  padding-top: 2.5rem;
  padding-bottom: 10rem;
  background: linear-gradient(180deg, var(--noir) 0, var(--noir) calc(100% - 8.5rem), #15120f calc(100% - 6rem), #3a332b calc(100% - 3rem), var(--paper) 100%);
}
.noir h2 {
  font-family: var(--type);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--noir-ink);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 0.6rem;
}
.kicker--noir { color: #e2483d; }
.noir__sub {
  max-width: 34rem;
  margin: 0 auto;
  font-family: var(--type);
  font-size: 0.95rem;
  color: var(--noir-soft);
}
.scrawl {
  font-family: var(--marker);
  color: #e0262f;
  display: inline-block;
  transform: rotate(-3deg);
  text-shadow: 0 0 18px rgba(224, 38, 47, 0.35);
}

/* ---------- the desk ---------- */
.desk {
  position: relative;
  width: 100%;
  /* Fits the window when a nav link lands here, down to a size that stays readable. 1.6 is the
     scene's 16:10; 23.5rem is everything else in the section plus --land. */
  max-width: min(980px, max(700px, calc((100vh - 23.5rem) * 1.6)));
  margin: 1.8rem auto 0;
  container-type: inline-size;
}
.desk__scene {
  --fu: 1cqw;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  perspective: 170cqw;
  perspective-origin: 50% 35%;
  background:
    radial-gradient(ellipse 58% 62% at 46% 40%, rgba(255, 190, 110, 0.30), rgba(255, 190, 110, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.035 0 0 0 0 0.015 1.1 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(91deg, rgba(0, 0, 0, 0) 0 9cqw, rgba(0, 0, 0, 0.35) 9cqw calc(9cqw + 1px)),
    linear-gradient(170deg, #5a3820, #3a2313 55%, #29180c);
  background-size: auto, 100% 100%, auto, auto;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
/* lamp vignette + venetian-blind shadows, laid over everything on the desk */
.desk::before,
.desk::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  z-index: 20;
}
.desk::before {
  background: radial-gradient(ellipse 72% 72% at 46% 40%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.5) 78%, rgba(0, 0, 0, 0.82) 100%);
}
.desk::after {
  background: repeating-linear-gradient(-24deg, rgba(0, 0, 0, 0) 0 2.4cqw, rgba(0, 0, 0, 0.34) 3cqw 5cqw, rgba(0, 0, 0, 0) 5.6cqw 6.4cqw);
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 62% 42%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 75% at 62% 42%, #000 30%, transparent 80%);
}

/* props */
.prop,
.ev {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  --rot: var(--r, 0);
  translate: -50% -50%;
  transform: rotate(calc(var(--rot) * 1deg));
  font-size: var(--fu);
}
.prop { z-index: 1; pointer-events: none; }
.ring {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 59%, rgba(20, 8, 2, 0.42) 62%, rgba(20, 8, 2, 0.14) 67%, transparent 72%);
}
.mug {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fbf8f2, #dcd6cb 58%, #9f978b);
  box-shadow: 0.8em 1.4em 1.8em rgba(0, 0, 0, 0.65);
}
.mug__handle {
  position: absolute;
  right: -24%;
  top: 37%;
  width: 34%;
  height: 26%;
  border: 0.7em solid #d4cec3;
  border-left: 0;
  border-radius: 0 50% 50% 0;
}
.mug__coffee {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 44% 40%, #6a3f1d, #2b1608 72%);
  box-shadow: inset 0 0.35em 0.7em rgba(0, 0, 0, 0.7);
}
.mug__coffee i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.14em solid rgba(255, 226, 190, 0.45);
  opacity: 0;
}
.pen {
  aspect-ratio: 16 / 1;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, #d2a64b 0 5%, #141414 5% 78%, #d2a64b 78% 82%, #1c1c1c 82% 95%, #8d8d8d 95%);
  box-shadow: 0.4em 0.8em 0.9em rgba(0, 0, 0, 0.6);
}

/* ---------- the folder ---------- */
.folder {
  position: absolute;
  left: 33%;
  top: 15%;
  width: 34%;
  height: 70%;
  z-index: 3;
  transform-style: preserve-3d;
  font-size: var(--fu);
}
.folder__back {
  position: absolute;
  inset: 0;
  border-radius: 0.5em;
  background:
    linear-gradient(90deg, rgba(90, 60, 20, 0.28), rgba(90, 60, 20, 0) 5%),
    linear-gradient(200deg, #e2cb98, #d0b177);
  box-shadow: 0 0.5em 0.9em rgba(0, 0, 0, 0.6), 0 0.1em 0.2em rgba(0, 0, 0, 0.5);
}
.folder__tab {
  position: absolute;
  top: -6.5%;
  right: 7%;
  width: 40%;
  height: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8bd86;
  border-radius: 0.7em 0.7em 0 0;
  font-family: var(--type);
  font-size: 1.15em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b5326;
  box-shadow: inset 0 0.15em 0 rgba(255, 255, 255, 0.25);
}
.folder__papers {
  position: absolute;
  inset: 0;
  transform: translateZ(0.5px);
  pointer-events: none;
}
.folder__papers i {
  position: absolute;
  background: #f1ece0;
  border-radius: 1px;
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.45);
}
.folder__papers i:nth-child(1) { top: 4%; right: -2.6%; bottom: 7%; left: 8%; transform: rotate(1.3deg); }
.folder__papers i:nth-child(2) { top: 9%; right: 3%; bottom: -2.2%; left: 5%; transform: rotate(-1.1deg); background: #e7e0cf; }
.folder__papers i:nth-child(3) { top: 52%; right: -4.5%; bottom: 14%; left: 55%; transform: rotate(4deg); background: #fbfaf6; border: 0.35em solid #fbfaf6; background-image: var(--photo); background-size: 160%; background-position: 50% 40%; filter: sepia(0.3); }

.folder__cover {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateZ(1px) rotateY(0deg);
  -webkit-tap-highlight-color: transparent;
}
.folder__cover:focus-visible { outline: none; }
.folder__cover:focus-visible .folder__front { box-shadow: 0 0 0 0.3em #f2cf4a; }
.folder__face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 0.5em;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-align: left;
}
.folder__front {
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(160deg, #dcc493, #c6a367);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset -0.7em 0 1.3em -0.7em rgba(70, 45, 10, 0.4);
  color: #5e4720;
  font-family: var(--type);
}
.cf-label {
  position: absolute;
  top: 9%;
  left: 9%;
  right: 9%;
  display: block;
  padding: 0.8em 1em;
  background: #f4efe3;
  box-shadow: 0 0.1em 0.25em rgba(0, 0, 0, 0.3);
  transform: rotate(-1deg);
}
.cf-label b {
  display: block;
  font-weight: 400;
  font-size: 1.6em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #241e14;
}
.cf-label span { display: block; font-size: 1.1em; color: #5a5040; margin-top: 0.2em; }
.folder__front .stamp { font-size: 2.1em; border-width: 0.16em; }
.cf-stamp {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}
.cf-seal {
  position: absolute;
  top: 63%;
  left: 52%;
  transform: translate(-50%, -50%) rotate(5deg);
  font-size: 1.5em !important;
  color: #2a4a8a;
  border-color: #2a4a8a;
}
.cf-ring {
  position: absolute;
  right: 4%;
  bottom: 13%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(110, 66, 24, 0.38) 61%, rgba(110, 66, 24, 0.12) 66%, transparent 71%);
}
.cf-hint {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.15em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(80, 58, 20, 0.85);
}
@media (prefers-reduced-motion: no-preference) {
  .cf-hint { animation: hint-pulse 2.4s ease-in-out infinite; }
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* inside of the cover: what you see once it flops open */
.folder__inside {
  transform: rotateY(180deg);
  background:
    linear-gradient(270deg, rgba(90, 60, 20, 0.3), rgba(90, 60, 20, 0) 6%),
    linear-gradient(200deg, #e9d6ab, #d4bb86);
}
.report {
  position: absolute;
  top: 7%;
  left: 9%;
  width: 72%;
  height: 52%;
  display: block;
  padding: 1.6em 1.2em 1em;
  background: #f5f2ea;
  box-shadow: 0 0.15em 0.4em rgba(0, 0, 0, 0.3);
  font-family: var(--type);
  color: #2a261f;
  transform: rotate(-1.5deg);
}
.report__clip {
  position: absolute;
  top: -1.1em;
  left: 12%;
  width: 1.3em;
  height: 3.6em;
  border: 0.22em solid #a9aeb4;
  border-radius: 1em;
  transform: rotate(8deg);
}
.report__head {
  display: block;
  font-weight: 400;
  font-size: 1.45em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 0.12em solid #2a261f;
  margin-bottom: 0.5em;
}
.report__row { display: block; font-size: 1.02em; line-height: 1.55; }
.report__row em { font-style: normal; color: #8a7d68; display: inline-block; min-width: 5.6em; }
/* The open cover ignores the mouse so the desk stays clickable; this one bar still has to hear it. */
.report__row .redacted { padding: 0 0.3em; pointer-events: auto; }
.report__row .redacted::after { background: #1a1a1a; }
.note {
  position: absolute;
  display: block;
  padding: 0.9em 0.6em 0.6em;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.9em;
  line-height: 1.05;
  color: #2f2915;
  text-align: center;
  box-shadow: 0 0.35em 0.5em -0.3em rgba(0, 0, 0, 0.55);
  --rot: var(--r, 0);
  transform: rotate(calc(var(--rot) * 1deg));
}
.note--1 { top: 57%; left: 6%; width: 44%; background: #ffe27a; }
.note--2 { top: 61%; left: 52%; width: 42%; background: #ffb3cd; }
.note--3 { top: 79%; left: 22%; width: 52%; background: #bde7ff; }

/* ---------- what falls out ---------- */
.spill { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ev {
  visibility: hidden;
  box-shadow: 0 0.6em 1em -0.2em rgba(0, 0, 0, 0.7), 0 0.1em 0.2em rgba(0, 0, 0, 0.45);
  margin: 0;
}
.ev--sheet {
  aspect-ratio: 8.5 / 11;
  padding: 1.6em 1.8em;
  background: #f3efe4;
  font-family: var(--type);
  color: #3a352c;
  overflow: hidden;
}
.sheet__word {
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2.9em;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b3121b;
  padding-bottom: 0.15em;
  border-bottom: 0.08em solid #b3121b;
}
.sheet__text { display: block; margin-top: 0.8em; font-size: 0.95em; line-height: 1.5; }
.ev--print { padding: 0.9em; background: #f6f3ec; }
.ev--snap { padding: 0.65em 0.65em 0; background: #f2efe7; }
.ev--snap figcaption {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.75em;
  line-height: 1.1;
  text-align: center;
  color: #222;
  padding: 0.15em 0 0.3em;
}
.tape {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 116%;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, var(--tape-yellow) 0 1.6em, var(--tape-yellow-2) 1.6em 3.2em);
  color: #3a2f10;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding: 0.35em 0;
  box-shadow: 0 0.5em 0.8em -0.4em rgba(0, 0, 0, 0.6);
}

/* photo crops (shared by the desk and the wall) */
.crop {
  display: block;
  width: 100%;
  background-image: var(--photo);
  background-repeat: no-repeat;
  background-color: #777;
}
.crop--print { aspect-ratio: 900 / 1260; background-size: 130.89% auto; background-position: 46.04% 43.66%; filter: sepia(0.25) saturate(0.85) contrast(1.05); }
.crop--face  { aspect-ratio: 1;           background-size: 368.1% auto;  background-position: 51.28% 31.27%; }
.crop--bears { aspect-ratio: 2;           background-size: 346.5% auto;  background-position: 53.7% 58.08%; }
.crop--feet  { aspect-ratio: 2;           background-size: 240.4% auto;  background-position: 39.24% 85.67%; }
.crop--me    { aspect-ratio: 820 / 1025;  background-size: 143.66% auto; background-position: 50.28% 59.23%; }
.ev--snap .crop,
.node .crop { filter: grayscale(1) contrast(1.25) brightness(1.02); }

/* ---------- open / closed states ---------- */
.desk.is-open .folder,
html:not(.js) .folder { transform: translate(50%, 0%) scale(1) rotate(0deg); }
.desk.is-open .folder__cover,
html:not(.js) .folder__cover { transform: translateZ(1px) rotateY(-180deg); pointer-events: none; }
.desk.is-open .folder__papers,
html:not(.js) .folder__papers { opacity: 0; }
.desk.is-open .ev,
html:not(.js) .ev { visibility: visible; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .desk:not(.is-open) .folder__cover { transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1); }
  .desk:not(.is-open) .folder__cover:hover { transform: translateZ(1px) rotateY(-10deg); }
}

.dust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(circle, rgba(240, 222, 190, 0.6), rgba(240, 222, 190, 0) 70%);
}

/* actions + caption under the desk */
.desk__actions { min-height: 3.2rem; display: flex; align-items: center; justify-content: center; }
.case-file__close {
  visibility: hidden;
  opacity: 0;
  margin-top: 1rem;
  padding: 0.55rem 1.3rem;
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6d3a8;
  background: transparent;
  border: 2px solid #8a6d3b;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.15s ease, color 0.15s ease;
}
.case-file__close.is-visible { visibility: visible; opacity: 1; }
.case-file__close:hover { background: #c8a875; color: #1a140c; }
.exhibit__caption {
  max-width: 36rem;
  margin: 0.6rem auto 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--noir-ink);
}
.exhibit__caption > span { display: block; color: var(--noir-soft); font-style: italic; margin-top: 0.15rem; }
/* ---------- desk: phone layout (folder opens upward like a notepad) ---------- */
@media (max-width: 680px) {
  .desk { max-width: 480px; margin-top: 1.4rem; }
  .desk__scene { aspect-ratio: 10 / 18.5; --fu: 2.4cqw; perspective-origin: 50% 50%; }
  .desk::after {
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 55% 50%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 80% 60% at 55% 50%, #000 30%, transparent 85%);
  }
  .prop, .ev {
    left: calc(var(--mx) * 1%);
    top: calc(var(--my) * 1%);
    width: calc(var(--mw) * 1%);
    --rot: var(--mr, 0);
  }
  .folder { left: 11%; top: 30%; width: 78%; height: 37%; }
  .folder__back {
    background:
      linear-gradient(180deg, rgba(90, 60, 20, 0.28), rgba(90, 60, 20, 0) 6%),
      linear-gradient(200deg, #e2cb98, #d0b177);
  }
  .folder__tab {
    top: 12%;
    right: -6.5%;
    width: 7%;
    height: 44%;
    border-radius: 0 0.7em 0.7em 0;
    writing-mode: vertical-rl;
  }
  .folder__cover { transform-origin: center top; transform: translateZ(1px) rotateX(0deg); }
  .folder__inside {
    transform: rotateX(180deg);
    background:
      linear-gradient(0deg, rgba(90, 60, 20, 0.3), rgba(90, 60, 20, 0) 7%),
      linear-gradient(200deg, #e9d6ab, #d4bb86);
  }
  .folder__front .stamp { font-size: 1.8em; }
  .cf-label { top: 8%; left: 6%; right: 30%; padding: 0.6em 0.8em; }
  .cf-stamp { top: 52%; left: 36%; }
  .cf-seal { top: 34%; left: 82%; transform: translate(-50%, -50%) rotate(12deg); font-size: 1.2em !important; }
  .cf-ring { right: 3%; bottom: 18%; width: 30%; }
  .cf-hint { bottom: 6%; }
  .report { top: 8%; left: 5%; width: 56%; height: 82%; padding: 1.4em 1em 0.8em; }
  .report__row em { min-width: 0; margin-right: 0.3em; }
  .report__row { font-size: 0.95em; line-height: 1.4; }
  .note { font-size: 1.7em; }
  .note--1 { top: 27%; left: 64%; width: 32%; }
  .note--2 { top: 50%; left: 66%; width: 30%; }
  .note--3 { top: 72%; left: 61%; width: 36%; }
  .folder__papers i:nth-child(1) { top: 6%; right: -2.4%; bottom: 8%; left: 6%; }
  .folder__papers i:nth-child(2) { top: 8%; right: 4%; bottom: -3.6%; left: 4%; }
  .folder__papers i:nth-child(3) { top: 40%; right: -4%; bottom: 10%; left: 64%; }

  .desk.is-open .folder,
  html:not(.js) .folder { transform: translate(0%, 50%) scale(1) rotate(0deg); }
  .desk.is-open .folder__cover,
  html:not(.js) .folder__cover { transform: translateZ(1px) rotateX(180deg); }
}
@media (max-width: 680px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .desk:not(.is-open) .folder__cover:hover { transform: translateZ(1px) rotateX(10deg); }
}


/* ---------- the wall ---------- */
.board {
  position: relative;
  width: 100%;
  max-width: var(--board-w);
  margin: 1.8rem auto 0;
  container-type: inline-size;
}
.board__frame {
  padding: 1.1cqw;
  border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.2' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.03 0 0 0 0 0.01 1 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #4a2f1b, #2a1a0e);
  background-size: 100% 100%, auto;
  box-shadow: 0 2.4cqw 5cqw -1cqw rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.board__cork {
  --fu: 1cqw;
  position: relative;
  aspect-ratio: 10 / 8.5;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.11 0 0 0 0 0.04 0 0 0 -3 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.68 0 0 0 0 0.45 0 0 0 -3.2 1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 50% 35%, #a77d50, #84603a 70%, #6d4e2f);
  box-shadow: inset 0 0 1.6cqw rgba(0, 0, 0, 0.75);
}

.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  --rot: var(--r, 0);
  translate: -50% -50%;
  transform: rotate(calc(var(--rot) * 1deg));
  font-size: calc(var(--fu) * var(--fs, 1));
  z-index: 1;
  margin: 0;
  cursor: pointer;
  outline: none;
  filter: drop-shadow(0 0.35em 0.45em rgba(0, 0, 0, 0.65)) brightness(var(--lit, 1));
  transition: filter 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.node p { margin: 0; }
.board.is-pending .node,
.board.is-pending .strings,
.board.is-pending .tags { opacity: 0; }
.board.is-focus .node { --lit: 0.5; }
.board.is-focus .node.is-linked { --lit: 1; z-index: 2; }
.board.is-focus .node.is-self { --lit: 1.12; z-index: 3; }

.node__typed {
  font-family: var(--type);
  font-size: 0.95em;
  line-height: 1.3;
  color: #1d1b17;
  text-align: center;
  padding: 0.45em 0.2em 0.2em;
}

/* mugshots */
.node--mugshot { background: #ebe6da; padding: 0.6em 0.6em 0.4em; }
.mugshot {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(12.5% - 1px), rgba(0, 0, 0, 0.4) calc(12.5% - 1px) 12.5%),
    linear-gradient(180deg, #c9c4b8, #a9a397);
}
.mugshot__sil { position: absolute; left: 8%; bottom: -2%; width: 84%; fill: #191919; }
.mugshot__q {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--marker);
  font-size: 3.4em;
  line-height: 1;
  color: #f4efe5;
}
.mugshot__plate--long { font-size: 1.65em !important; } /* "DR. ???" is longer than MOM? and DAD?? */
.mugshot__plate {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5%;
  background: #121212;
  border: 0.15em solid #3a3a3a;
  color: #f4f0e8;
  font-family: var(--marker);
  font-size: 2.1em;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.03em;
}

/* polaroids */
.node--polaroid { background: #f1ede4; padding: 0.65em 0.65em 0; }
.node--polaroid figcaption {
  font-family: var(--marker);
  font-size: 1.35em;
  line-height: 1.05;
  text-align: center;
  color: #191919;
  padding: 0.4em 0 0.5em;
}
.node--polaroid figcaption small {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 0.95em;
  color: #444;
  margin-top: 0.1em;
}
.node--me figcaption { font-size: 1.7em; color: #a40f17; }

/* sticky notes */
.node--sticky {
  display: block;
  padding: 0.75em 0.55em 0.7em;
  background: #ffe36e;
  font-family: var(--marker);
  font-size: calc(var(--fu) * 1.25);
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  color: #1b1b1b;
}
.node--pink { background: #ff9cc2; }
.node--blue { background: #a9dcff; text-transform: none; }
.sticky__ref { display: block; font-size: 0.85em; color: #0c2e66; }
.sticky__quote {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.05;
  margin: 0.25em 0;
}
.sticky__punch { display: block; color: #b0101a; text-transform: uppercase; }

/* missing poster */
.node--missing {
  background: #f0ebde;
  padding: 0.7em 0.7em 0;
  text-align: center;
  font-family: var(--type);
  color: #151515;
}
.missing__head {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: 3em;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.missing__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 2;
  margin: 0.45em 0;
  border: 0.14em dashed #555;
  font-size: 0.85em;
  line-height: 1.2;
  color: #555;
}
.missing__what { font-size: 1.2em; font-weight: 700; line-height: 1.15; }
.missing__meta { font-size: 0.8em; line-height: 1.35; margin: 0.35em 0 0.5em !important; }
.missing__tabs {
  display: flex;
  list-style: none;
  margin: 0 -0.7em;
  padding: 0;
  border-top: 0.1em dashed #777;
}
.missing__tabs li {
  flex: 1;
  writing-mode: vertical-rl;
  font-size: 0.78em;
  padding: 0.5em 0;
  border-left: 0.1em dashed #777;
  line-height: 1;
}
.missing__tabs li:first-child { border-left: 0; }
.missing__tabs li.is-torn { visibility: hidden; }

/* consent form */
.node--form {
  background: #f6f4ee;
  padding: 0.8em 0.9em 1.1em;
  font-family: var(--type);
  color: #1e1e1e;
}
.form__head {
  font-size: 1.05em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 0.15em solid #1e1e1e;
  padding-bottom: 0.2em;
}
.form__line {
  display: flex;
  align-items: flex-end;
  gap: 0.4em;
  font-size: 0.82em;
  margin-top: 0.55em !important;
}
.form__line > span { color: #6a6a6a; white-space: nowrap; }
.form__line b { font-weight: 400; border-bottom: 0.08em solid #1e1e1e; flex: 1; }
.form__line .redacted::after { background: #111; }
.form__blank { flex: 1; height: 1.1em; border-bottom: 0.08em solid #1e1e1e; }
.form__sig { flex: 1; height: 1.6em; fill: none; stroke: #1d3f9a; stroke-width: 2.4; stroke-linecap: round; border-bottom: 0.08em solid #1e1e1e; }

/* scribbles in red marker */
.scribble {
  position: absolute;
  font-family: var(--marker);
  color: #c4121c;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.scribble--form { right: -6%; bottom: -0.6em; font-size: 1.3em; transform: rotate(-7deg); }
.scribble--gal { right: -4%; bottom: -0.3em; font-size: 1.7em; transform: rotate(-8deg); }
.scribble--who { right: 2%; top: 22%; font-size: 1.4em; transform: rotate(12deg); }
.scribble--rc { left: -8%; bottom: -0.5em; font-size: 1.35em; transform: rotate(-12deg); }
.scribble--star { right: -8%; bottom: -0.5em; font-size: 1.35em; transform: rotate(-9deg); }

/* bible clipping */
.clip__paper {
  padding: 1.2em 1.2em 1.6em;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    #e9e0c8;
  color: #2a2418;
  font-family: var(--serif);
  clip-path: polygon(0% 3%, 4% 0%, 9% 2%, 15% 0.3%, 22% 2.5%, 30% 0.5%, 37% 2%, 45% 0%, 52% 2.2%, 60% 0.3%, 68% 2%, 75% 0%, 83% 2.4%, 90% 0.5%, 96% 2%, 100% 0.4%, 99% 20%, 100% 40%, 98.6% 60%, 100% 80%, 99% 100%, 93% 98%, 86% 100%, 78% 97.5%, 70% 99.5%, 62% 97.8%, 54% 100%, 46% 98%, 38% 100%, 30% 97.5%, 22% 99.6%, 14% 97.8%, 7% 100%, 0% 98%, 1% 75%, 0% 50%, 1.2% 25%);
}
.clip__book {
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #5a5040;
  border-bottom: 0.08em solid #8b7f66;
  padding-bottom: 0.3em;
}
.clip__chapter {
  font-size: 0.85em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0.35em 0 0.2em !important;
}
.clip__verse { font-size: 1.02em; line-height: 1.35; margin-top: 0.3em !important; }
.clip__verse sup { font-size: 0.65em; font-weight: 700; color: #7a1d16; }
.clip__verse--dim { color: #6d6555; }
.clip__verse mark {
  background: linear-gradient(transparent 12%, rgba(255, 233, 0, 0.78) 12% 88%, transparent 88%);
  color: inherit;
  font-weight: 700;
  text-decoration: underline wavy #c4121c;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.22em;
}
.clip__verse u { text-decoration: underline #c4121c; text-decoration-thickness: 0.14em; }

/* receipt */
.receipt__paper {
  padding: 0.8em 0.65em 1.6em;
  background: #fbfaf5;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.78em;
  color: #2a2a2a;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 100%, 90% 96%, 85% 100%, 80% 96%, 75% 100%, 70% 96%, 65% 100%, 60% 96%, 55% 100%, 50% 96%, 45% 100%, 40% 96%, 35% 100%, 30% 96%, 25% 100%, 20% 96%, 15% 100%, 10% 96%, 5% 100%, 0 96%);
}
.rc__store { text-align: center; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.25; margin-bottom: 0.6em !important; }
.rc__store small { font-size: 0.85em; }
.rc__row { display: flex; justify-content: space-between; gap: 0.4em; line-height: 1.5; }
.rc__total { border-top: 0.1em dashed #444; margin-top: 0.3em !important; padding-top: 0.3em; color: #a40f17; }
.rc__foot { text-align: center; margin-top: 0.7em !important; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9em; line-height: 1.3; }

/* index card with the star */
.node--card {
  padding: 0.6em 0.9em 1em;
  background:
    linear-gradient(180deg, transparent 2.1em, rgba(214, 40, 40, 0.6) 2.1em, rgba(214, 40, 40, 0.6) calc(2.1em + 1px), transparent calc(2.1em + 1px)),
    repeating-linear-gradient(180deg, transparent 0 1.55em, rgba(60, 110, 190, 0.28) 1.55em calc(1.55em + 1px)),
    #f6f3ea;
  text-align: center;
}
.star {
  display: block;
  width: 52%;
  margin: 0.2em auto 0.1em;
  fill: none;
  stroke: #1d3f9a;
  stroke-width: 3.2;
  stroke-linejoin: round;
}
.star__echo { stroke-width: 1.6; opacity: 0.7; }
.card__q { font-family: var(--marker); font-size: 1.45em; line-height: 1.1; color: #141414; }
.card__a { font-family: var(--type); font-size: 0.95em; color: #333; margin-top: 0.2em !important; }

/* newspaper clipping: the 1884 precedent */
.news__paper {
  padding: 0.7em 0.85em 2.1em;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    #dcd5c3;
  color: #1c1a16;
  font-family: var(--serif);
  clip-path: polygon(0% 1.5%, 18% 0%, 41% 1.2%, 63% 0.2%, 82% 1.4%, 100% 0%, 99.2% 26%, 100% 51%, 99% 77%, 100% 100%, 76% 98.8%, 52% 100%, 27% 98.6%, 0% 100%, 0.9% 74%, 0% 49%, 1% 24%);
}
.news__mast {
  font-family: "UnifrakturMaguntia", "Old English Text MT", var(--serif);
  font-size: 1.55em;
  line-height: 1;
  text-align: center;
}
.news__date {
  font-size: 0.62em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-top: 0.1em solid #1c1a16;
  border-bottom: 0.25em double #1c1a16;
  padding: 0.15em 0;
  margin-top: 0.25em !important;
}
.news__head {
  font-weight: 800;
  font-size: 1.12em;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 0.4em !important;
}
.news__photo {
  position: relative;
  aspect-ratio: 16 / 7;
  margin: 0.45em 0;
  background:
    radial-gradient(circle, #2a2722 38%, transparent 42%) 0 0 / 0.32em 0.32em,
    #8f897c;
}
/* The whole figure, dress included, down the right of the slot, clear of the yarn; the caption beside it. */
.news__photo img { position: absolute; right: 0; top: 0; display: block; width: auto; height: 100%; }
.news__photo span {
  position: absolute;
  left: 0;
  right: 34.1%;
  bottom: 0;
  padding: 0.15em 0.3em;
  background: rgba(20, 18, 15, 0.78);
  color: #efe9dc;
  font-size: 0.62em;
  font-style: italic;
}
.news__body { font-size: 0.82em; line-height: 1.35; text-align: justify; hyphens: auto; }
.news__body a { color: #a20f18; font-weight: 700; }
.scribble--prec { left: -6%; top: -0.6em; font-size: 1.35em; transform: rotate(-10deg); }
a.scribble--src {
  right: 6%;
  bottom: 0.25em;
  font-size: 1.2em;
  transform: rotate(-5deg);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}
a.scribble--src:hover, a.scribble--src:focus-visible { color: #ff2d3a; outline: none; }
/* The Galatians clipping: "Not. Required." has the right-hand corner, so this takes the left. */
a.scribble--bible { right: auto; left: 7%; bottom: 0.45em; }

/* yarn, pins, labels */
.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.str__halo { fill: none; stroke: rgba(255, 40, 52, 0.32); stroke-width: calc(var(--sw, 2px) * 5); stroke-linecap: round; opacity: 0; transition: opacity 0.25s ease; }
.str__base { fill: none; stroke: var(--yarn); stroke-width: var(--sw, 2px); stroke-linecap: round; transition: stroke 0.25s ease, stroke-width 0.25s ease; }
.str__fiber { fill: none; stroke: rgba(255, 175, 175, 0.4); stroke-width: calc(var(--sw, 2px) * 0.4); stroke-dasharray: 1.5 3.5; stroke-linecap: round; }
.str { transition: opacity 0.25s ease; }
.board.is-focus .str { opacity: 0.16; }
.board.is-focus .str.is-hot { opacity: 1; }
.str.is-hot .str__base { stroke: #ff2d3a; stroke-width: calc(var(--sw, 2px) * 1.45); }
.str.is-hot .str__halo { opacity: 1; }
.pin__head { transform-box: fill-box; transform-origin: center; }
.pin__shadow { fill: rgba(0, 0, 0, 0.5); }
.pin__shine { fill: rgba(255, 255, 255, 0.75); }
.pin--red .pin__cap { fill: url(#pinRed); }
.pin--yellow .pin__cap { fill: url(#pinYellow); }
.pin--white .pin__cap { fill: url(#pinWhite); }
.pin--blue .pin__cap { fill: url(#pinBlue); }
.circle-scrawl {
  fill: none;
  stroke: rgba(214, 18, 30, 0.85);
  stroke-width: calc(var(--sw, 2px) * 1.6);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.circle-scrawl.is-on { opacity: 1; }

.tags { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tag {
  position: absolute;
  translate: -50% -50%;
  rotate: var(--a, 0deg);
  padding: 0.12em 0.55em 0.08em;
  background: rgba(236, 226, 196, 0.96);
  font-family: var(--marker);
  font-size: 1.05cqw;
  line-height: 1.2;
  white-space: nowrap;
  color: #1b1b1b;
  box-shadow: 0 0.15em 0.3em rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.board.is-focus .tag { opacity: 0.12; }
.board.is-focus .tag.is-hot { opacity: 1; background: #fff4c8; color: #b0101a; z-index: 1; }

/* noir lighting on the board */
.board__vignette,
.board__blinds,
.board__sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.board__vignette {
  z-index: 8;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.32) 78%, rgba(0, 0, 0, 0.66) 100%);
}
.board__blinds {
  z-index: 9;
  background: repeating-linear-gradient(-22deg, rgba(0, 0, 0, 0) 0 3cqw, rgba(0, 0, 0, 0.3) 3.7cqw 6cqw, rgba(0, 0, 0, 0) 6.7cqw 7.6cqw);
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 35%, #000 70%, transparent 98%);
  mask-image: linear-gradient(100deg, transparent 5%, #000 35%, #000 70%, transparent 98%);
}
.board__sweep {
  z-index: 10;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 200, 0.16) 47%, rgba(255, 236, 200, 0.22) 50%, rgba(255, 236, 200, 0.16) 53%, transparent 65%);
  background-size: 300% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .board__vignette { animation: flicker 9s steps(1, end) infinite; }
  .board.is-done .board__sweep { animation: headlights 13s ease-in-out 1.5s infinite; }
}
@keyframes flicker {
  0%, 61%, 63%, 64.5%, 100% { opacity: 1; }
  62%, 64% { opacity: 0.68; }
}
@keyframes headlights {
  0% { opacity: 0; background-position: 100% 0; }
  6% { opacity: 1; }
  24% { opacity: 1; }
  30% { opacity: 0; background-position: 0% 0; }
  100% { opacity: 0; background-position: 0% 0; }
}

.wall__status {
  margin: 1.1rem auto 0;
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--noir-soft);
}
.wall__status b { color: #e2483d; font-weight: 400; }

/* the magnifying glass: its pin and loop of twine stay on the cork */
.hook {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 3.4em;
  height: 2.6em;
  translate: -50% 0;
  font-size: var(--fu);
  z-index: 4;
  pointer-events: none;
}
.hook svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hook__twine { fill: none; stroke: #d9c8a2; stroke-width: 1.1; }
.hook__tag { --a: -4deg; right: 130%; top: 1.3em; translate: 0 -50%; }

/* --d is the width of the lens in the hand; --hung is how much smaller it looks on the wall. */
.glass {
  --d: 24cqw;
  --hung: 0.36;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  z-index: 20;
  pointer-events: none;
}
.board:not(.is-done) .hook,
.board:not(.is-done) .glass { visibility: hidden; }
.glass.is-flying { transition: translate 0.34s cubic-bezier(0.3, 0.7, 0.3, 1); }
.glass__body {
  position: absolute;
  inset: 0;
  rotate: -135deg;
  scale: var(--hung);
  filter: brightness(0.72); /* the corner of the board is in shadow */
  transition: rotate 0.34s cubic-bezier(0.3, 0.7, 0.3, 1), scale 0.34s cubic-bezier(0.3, 0.7, 0.3, 1), filter 0.34s ease;
}
.glass.is-held .glass__body { rotate: 0deg; scale: 1; filter: none; }

.glass__view {
  position: absolute;
  inset: 5.8%;
  overflow: hidden;
  clip-path: circle(50%);
  background: #1a1009;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.glass.is-held .glass__view { opacity: 1; }
.glass__world { position: absolute; left: 0; top: 0; transform-origin: 0 0; container-type: inline-size; }

/* Everything under the glass stays fully lit, whatever the visitor points at elsewhere. */
.board.is-focus .glass__view .node { --lit: 1; }
.board.is-focus .glass__view .str,
.board.is-focus .glass__view .tag { opacity: 1; }

/* The button is the round lens; its ::after is the handle, so only the glass itself can be grabbed. */
.glass__grip {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: visible;
  background: none;
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.glass__grip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 83.3%;
  height: 20%;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(45deg) translateX(58%);
}
.glass__grip:active { cursor: grabbing; }
.glass.is-following .glass__grip { cursor: none; }

.glass__art {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 200%;
  overflow: visible;
  pointer-events: none;
  /* On the wall the drawing is upside down, so this shadow is too: it lands below the glass. */
  filter: drop-shadow(calc(var(--d) * -0.05) calc(var(--d) * -0.05) calc(var(--d) * 0.03) rgba(0, 0, 0, 0.6));
}
.glass.is-held .glass__art { filter: drop-shadow(calc(var(--d) * 0.02) calc(var(--d) * 0.05) calc(var(--d) * 0.04) rgba(0, 0, 0, 0.55)); }
.glass__grip:focus-visible + .glass__art { filter: drop-shadow(0 0 calc(var(--d) * 0.04) #ffd76a); }

@media (prefers-reduced-motion: reduce) {
  .glass.is-flying,
  .glass__body,
  .glass__view { transition: none; }
}

/* ---------- wall: phone / tablet layout (a tall board) ---------- */
@media (max-width: 820px) {
  .board { max-width: 520px; }
  .board__frame { padding: 2.2cqw; }
  .board__cork { aspect-ratio: 10 / 39.5; --fu: 2.7cqw; }
  .node {
    left: calc(var(--mx) * 1%);
    top: calc(var(--my) * 1%);
    width: calc(var(--mw) * 1%);
    --rot: var(--mr, 0);
  }
  .tag { font-size: 2.75cqw; }
  .hook { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); }
  .hook__tag { --a: 3deg; right: auto; left: 50%; top: 35cqw; translate: -50% 0; } /* under the glass: no room beside it */
  .glass { --d: 56cqw; --hung: 0.26; }
  .board__blinds {
    background: repeating-linear-gradient(-22deg, rgba(0, 0, 0, 0) 0 7cqw, rgba(0, 0, 0, 0.28) 8.5cqw 13cqw, rgba(0, 0, 0, 0) 14.5cqw 16cqw);
  }
}


/* =====================================================================
   Additions: interrogation room, the jury, the reopened case
   ===================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "Interrogate" tab hanging off the bottom of each mugshot */
.interrogate {
  position: absolute;
  left: 50%;
  bottom: -1.15em;
  translate: -50% 0;
  padding: 0.3em 0.75em 0.25em;
  border: 0;
  border-radius: 0.2em;
  background: #b3121b;
  color: #fff4ec;
  font-family: var(--type);
  font-size: 0.95em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.interrogate::before { content: "\25B6\00a0"; font-size: 0.75em; }
.interrogate:hover, .interrogate:focus-visible { background: #e0262f; outline: 0.15em solid #fff4ec; outline-offset: 0.1em; }

/* the interrogation room */
.interro {
  width: min(36rem, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px); /* the visible height, URL bar included, on phones */
  padding: 0;
  border: 0;
  background: transparent;
  color: #23201a;
  overflow: visible;
}
.interro::backdrop {
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 214, 150, 0.14), rgba(0, 0, 0, 0) 70%),
    rgba(6, 5, 4, 0.86);
}
.interro__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 1.3rem 1.4rem 1.1rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    #efe9dc;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
  font-family: var(--type);
  text-align: left;
}
.interro__head { border-bottom: 2px solid #23201a; padding-bottom: 0.55rem; margin-bottom: 0.6rem; }
.interro__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7d68;
}
.interro__rec { color: #b3121b; }
.interro__rec::before { content: "\25CF\00a0"; }
@media (prefers-reduced-motion: no-preference) {
  .interro__rec::before { animation: rec-blink 1.2s steps(1, end) infinite; }
}
@keyframes rec-blink { 50% { opacity: 0; } }
.interro__title { margin: 0.25rem 0 0; font-family: var(--marker); font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: #b3121b; }
.interro__log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 0.2rem 0 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.interro__log li { padding: 0.18rem 0; }
.interro__line { display: grid; grid-template-columns: 4.4em 1fr; gap: 0.6em; }
.interro__who { color: #8a7d68; font-weight: 400; }
.interro__log li.is-suspect .interro__who { color: #b3121b; }
.interro__log li.is-note .interro__line { display: block; }
.interro__log li.is-note {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #8a7d68;
  font-style: italic;
  color: #5d5547;
}
.interro__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 0.9rem; }
.interro__actions button {
  padding: 0.5rem 1rem;
  border: 2px solid #23201a;
  border-radius: 999px;
  background: transparent;
  color: #23201a;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.interro__actions button:hover, .interro__actions button:focus-visible { background: #23201a; color: #efe9dc; outline: none; }
.interro__actions .interro__close { border-color: #b3121b; color: #b3121b; }
.interro__actions .interro__close:hover, .interro__actions .interro__close:focus-visible { background: #b3121b; color: #fff4ec; }

/* the jury */
.verdicts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 880px;
  margin: 2rem auto 0;
}
@media (max-width: 680px) {
  .verdicts { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}
/* Three suspects: three across on wide screens; between phone and wide, two across with the
   doctor's form centred underneath at the same width. */
@media (min-width: 1000px) {
  .verdicts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; }
}
@media (min-width: 681px) and (max-width: 999px) {
  .verdicts > .verdict:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(1.2rem, 3vw, 2.2rem)) / 2);
  }
}
.verdict {
  position: relative;
  padding: 1.2rem 1.3rem 1.3rem;
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
    #efe9dc;
  border-top: 0.4rem solid #2a2520;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.4);
  color: #1f1c17;
  font-family: var(--type);
  text-align: left;
}
.verdict:nth-child(1) { transform: rotate(-1deg); }
.verdict:nth-child(2) { transform: rotate(1.1deg); }
.verdict:nth-child(3) { transform: rotate(-0.5deg); }
.verdict__court {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7d68;
}
.verdict__court span { white-space: nowrap; }
.verdict__case { margin: 0.3rem 0 0.55rem; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.verdict__case b { font-family: var(--marker); font-weight: 400; color: #b3121b; }
.verdict__charges { margin: 0 0 1rem; padding-left: 1.3rem; font-size: 0.9rem; line-height: 1.45; }
.verdict__transcript {
  display: block;
  margin: -0.5rem 0 0.7rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: #b3121b;
  font-family: var(--type);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.verdict__transcript::before { content: "\25B6\00a0"; font-size: 0.75em; }
.verdict__transcript:hover, .verdict__transcript:focus-visible { color: #e0262f; outline: none; text-decoration-thickness: 2px; }
.verdict__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.verdict__buttons button {
  flex: 1 1 8rem;
  padding: 0.65rem 0.8rem;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: transparent;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.verdict__buttons [data-verdict="guilty"] { color: #b3121b; }
.verdict__buttons [data-verdict="not_guilty"] { color: #1d3f9a; }
.verdict__buttons [data-verdict="guilty"]:hover, .verdict__buttons [data-verdict="guilty"]:focus-visible { background: #b3121b; color: #fff4ec; outline: none; }
.verdict__buttons [data-verdict="not_guilty"]:hover, .verdict__buttons [data-verdict="not_guilty"]:focus-visible { background: #1d3f9a; color: #fff4ec; outline: none; }
.verdict.is-decided .verdict__buttons { display: none; }
.verdict__stampwrap {
  position: absolute;
  inset: 0 0 48% 0; /* over the charges, clear of the tally underneath */
  display: grid;
  place-items: center;
  pointer-events: none;
}
.verdict__stamp { visibility: hidden; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.verdict.is-decided .verdict__stamp { visibility: visible; }
.verdict__stamp.is-not { color: #1d3f9a; border-color: #1d3f9a; }
.verdict__result { margin-top: 0.2rem; }
.tally {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr) 6.2em;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.tally[hidden] { display: none; }
.tally__bar { height: 0.7rem; overflow: hidden; border-radius: 999px; background: #dcd3c0; }
.tally__bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: #b3121b; transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tally--not .tally__bar i { background: #1d3f9a; }
.tally__n { font-weight: 400; text-align: right; }
.verdict__note { margin: 0.65rem 0 0; font-size: 0.78rem; color: #5d5547; }
.verdict__count { margin: 0.75rem 0 0; font-size: 0.8rem; color: #5d5547; }
.verdict.is-decided .verdict__count { display: none; }
.jury__foot { max-width: 34rem; margin: 1.8rem auto 0; font-family: var(--type); font-size: 0.82rem; color: var(--noir-soft); }

/* the reopened case (footer easter egg) */
.footer__reopened { margin: 0.6rem 0 0; font-family: var(--type); font-size: 0.85rem; color: var(--stamp-red); }

/* =====================================================================
   Exhibit D: the gallery (visitor comments)
   ===================================================================== */
/* Set in the voting area's typewriter face: the statements, the form and its messages inherit it.
   Labels, names and counts keep their own faces, which already match the verdict forms. */
.gallery { max-width: 44rem; margin: 0 auto; font-family: var(--type); }
.gallery__sub { max-width: 34rem; margin: -0.4rem auto 1.6rem; text-align: center; color: var(--ink-soft); }
html:not(.js) .statement-form { display: none; }

.statement-form {
  padding: 1.1rem 1.2rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.4);
}
.statement-form__label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.statement-form__label small { font-weight: 400; letter-spacing: 0.08em; text-transform: none; }
.statement-form input,
.statement-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 1rem; /* 16px: phones do not zoom in on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.statement-form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.statement-form input:focus-visible,
.statement-form textarea:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 1px; border-color: transparent; }
.statement-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.statement-form__count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.statement-form button[type="submit"] {
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  /* the verdict buttons' lettering */
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.statement-form button[type="submit"]:hover,
.statement-form button[type="submit"]:focus-visible { background: #2c3849; transform: translateY(-1px); outline: none; }
.statement-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; transform: none; }
.statement-form__status { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.statement-form__status:empty { display: none; }
.statement-form__status.is-error { color: var(--stamp-red); }

.statements { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.statements:empty { display: none; }
.statement {
  padding: 0.85rem 1.1rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: 8px;
  overflow: hidden; /* whatever a visitor typed stays inside its card */
}
.statement.is-pending { border-style: dashed; border-left-style: solid; border-left-color: var(--gold); }
.statement__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin: 0 0 0.3rem; }
.statement__name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
/* "Anonymous #3fa9c1": the day's number, like a case number on a file. */
.statement__id { margin-left: 0.35em; font-family: var(--mono); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); cursor: help; }
.statement__time { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.statement__tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.statement__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
/* The clerk's redactions in a statement (the site's own .redacted bar): kept on one line, so the bar
   that wipes open is one bar, not a box around two half-lines. */
.statement__body .redacted { white-space: nowrap; }

/* The votes on the left, Report on the right. */
.statement__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.45rem; margin-top: 0.6rem; }
.statement__votes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vote {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vote__icon { font-size: 0.7rem; }
.vote__n { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.vote--up:hover, .vote--up:focus-visible { border-color: var(--pink-deep); color: var(--pink-deep); outline: none; }
.vote--down:hover, .vote--down:focus-visible { border-color: #1d3f9a; color: #1d3f9a; outline: none; }
.vote--up[aria-pressed="true"] { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff4ec; }
.vote--down[aria-pressed="true"] { background: #1d3f9a; border-color: #1d3f9a; color: #fff4ec; }
@media (max-width: 420px) {
  .vote__word { display: none; }
}

/* Reporting a statement: quieter than the votes until it is wanted. */
.statement__flag,
.statement__report-why button {
  padding: 0.25rem 0.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.statement__flag:hover,
.statement__flag:focus-visible,
.statement__flag[aria-expanded="true"] { border-color: var(--stamp-red); color: var(--stamp-red); outline: none; }
.statement__flag:disabled { cursor: default; border-color: transparent; color: var(--ink-soft); opacity: 0.75; }
.statement__flag-icon { font-size: 0.8rem; }
.statement__report { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px dashed var(--line); }
.statement__report-ask { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--ink); }
.statement__report-why { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.statement__report-why button { border-color: var(--line); }
.statement__report-why .statement__report-reason:hover,
.statement__report-why .statement__report-reason:focus-visible { border-color: var(--stamp-red); background: var(--stamp-red); color: #fff4ec; outline: none; }
.statement__report-why .statement__report-cancel:hover,
.statement__report-why .statement__report-cancel:focus-visible { border-color: var(--ink); color: var(--ink); outline: none; }
.statement__report-why button:disabled { opacity: 0.6; cursor: progress; }
.statement__report-status { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.statement__report-status:empty { display: none; }
.statement__report-status.is-error { color: var(--stamp-red); }
.statement__report-status:focus,
.statement__struck:focus { outline: none; }

/* A statement this browser's report took off the record: struck through, in its place, until a reload. */
.statement.is-struck { border-style: dashed; border-left-style: solid; border-left-color: var(--stamp-red); }
.statement__tag--struck { color: var(--stamp-red); }
.statement__struck { margin: 0; font-size: 0.92rem; font-style: italic; color: var(--ink-soft); }

.statements__empty { margin: 1.6rem 0 0; text-align: center; color: var(--ink-soft); }
.statements__more {
  display: block;
  margin: 1.1rem auto 0;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.statements__more:hover, .statements__more:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.statements__more[hidden] { display: none; }
.gallery__foot { margin: 1.6rem 0 0; text-align: center; font-family: var(--type); font-size: 0.82rem; color: var(--ink-soft); }

/* =====================================================================
   ADDED IN BOTH LOOKS: the narrator's typed lines, the fourth file, the lights-out opening, and the
   skyline and rain under the header.
   ===================================================================== */
:root {
  --dusk-1: #dcc6a6;
  --dusk-2: #8a6a50;
  --dusk-3: #32271f;
  --city-far: #3d2f24;
  --city-lit: #ecc068;
  --rule: #b9b2a2;
  --slip: #f6f2e8;
}
/* The page goes dark in the skyline above the desk (.seam), so the desk's own fade is gone. */
.noir.exhibit { margin-top: 0; padding-top: 1.5rem; background: var(--noir); }
#exhibit { scroll-margin-top: calc(var(--land) - 1.5rem); }
.grudge-meter__clock { display: none; }

/* ---------- the narrator ---------- */
.vo {
  max-width: 38rem;
  margin: 0 auto;
  font-family: var(--type);
  font-size: clamp(1.05rem, 2.6vw, 1.32rem);
  line-height: 1.45;
  color: var(--noir-ink);
  text-align: center;
  text-wrap: balance;
}
.vo__rest { visibility: hidden; }
.vo + .vo { margin-top: 0.7rem; }
.vo--gap { margin-top: 3.2rem; }
.vo--dawn { color: var(--ink); margin-bottom: 1.6rem; }
.reveal .vo { font-size: clamp(1.05rem, 2.6vw, 1.32rem); }

/* ---------- the fourth file ---------- */
.fourth { max-width: 30rem; margin: 3.4rem auto 0; }
.fourth[hidden] { display: none; }
.fourth .vo { margin-bottom: 1.6rem; }
.fourth .verdict--me { transform: rotate(-0.8deg); border-top-color: #b3121b; }
.verdict__alibi { margin: -0.3rem 0 0.75rem; font-size: 0.9rem; color: #5d5547; }
.fourth .verdict__stampwrap { inset: 26% 0 32% 0; }

/* ---------- lights out ---------- */
.blackout {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #000;
  cursor: pointer;
}
.blackout__line {
  max-width: 34rem;
  margin: 0;
  font-family: var(--type);
  font-size: clamp(1.15rem, 3.2vw, 1.9rem);
  line-height: 1.4;
  color: #e9e9e5;
  text-align: center;
}

/* ---------- the skyline under the header ---------- */
.seam {
  position: relative;
  height: clamp(15rem, 27vw, 25rem);
  margin-top: 1rem;
  margin-bottom: -1px; /* the height is fractional at most widths; this stops paper showing through the join */
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0, var(--dusk-1) 26%, var(--dusk-2) 52%, var(--dusk-3) 76%, var(--noir) 100%);
}
.seam__art { position: absolute; inset: 0; }
.seam__city { position: absolute; left: 0; bottom: 0; width: 100%; height: 66%; }
.seam__far { fill: var(--city-far); }
.seam__near { fill: var(--noir); }
.seam__rig { fill: none; stroke: var(--noir); stroke-width: 1.6; }
.seam__lit { fill: var(--city-lit); opacity: 0.75; }
.seam__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 62%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 18%, #000 62%, #000 84%, transparent 100%);
}
.vo--opener { position: absolute; left: 0; right: 0; bottom: 1.2rem; max-width: none; padding-inline: 1rem; font-size: clamp(1rem, 2.1vw, 1.2rem); }

/* The sign on the roof, in glow, tube and core passes. NO keeps going out, so for a while it just says CONSENT. */
.neon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.neon__glow path { stroke: var(--c); stroke-width: 11; opacity: 0.8; }
.neon__tube path { stroke: var(--c); stroke-width: 4.6; }
.neon__core path { stroke: var(--core); stroke-width: 1.5; }
.neon__part--red { --c: #ef2630; --core: #ffd8d4; }
@media (prefers-reduced-motion: no-preference) {
  #night.is-live .neon__part--no { animation: neon-no 7s steps(1, end) infinite; }
}
@keyframes neon-no {
  0%, 16%, 19%, 100% { opacity: 1; }
  17% { opacity: 0.14; }
  18% { opacity: 0.8; }
  44%, 68% { opacity: 0.08; }
  69% { opacity: 0.7; }
  70% { opacity: 0.1; }
  71% { opacity: 1; }
}

/* ---------- the case log: a typed sheet on a clipboard ---------- */
.log {
  --log-ink: #26231d;
  --log-faint: #7a6a52;
  --log-paper: #f7f3e8;
  --log-rule: rgba(60, 90, 140, 0.22);
  --log-margin: rgba(192, 57, 43, 0.5);
  --log-hole: #4d321c;
  --log-ring: 110, 66, 24;
  --when: 6.3rem;
  padding-top: 1.2rem;
}
.log__board {
  position: relative;
  padding: 2.4rem 1.1rem 1.3rem;
  border-radius: 0.6rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.035 0 0 0 0 0.015 1.1 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #6e4a2b, #4d321c 60%, #3b2614);
  background-size: 100% 100%, auto;
  box-shadow: 0 1.4rem 2.4rem -1.2rem rgba(31, 22, 12, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: rotate(-0.5deg);
}
.log__clip {
  position: absolute;
  z-index: 3;
  top: -0.55rem;
  left: 50%;
  width: 7.4rem;
  height: 2.7rem;
  translate: -50% 0;
  border-radius: 0.45rem 0.45rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, #e6e8ea, #a9aeb4 45%, #7b8086 70%, #b5b9be);
  box-shadow: 0 0.35rem 0.5rem rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.log__clip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.7rem;
  width: 3.2rem;
  height: 1rem;
  translate: -50% 0;
  border: 0.22rem solid #9ca1a7;
  border-bottom: 0;
  border-radius: 0.7rem 0.7rem 0 0;
}
.log__clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: 5.2rem;
  height: 0.4rem;
  translate: -50% 0;
  background:
    radial-gradient(circle, #55595e 40%, transparent 44%) 0 0 / 0.4rem 0.4rem no-repeat,
    radial-gradient(circle, #55595e 40%, transparent 44%) 100% 0 / 0.4rem 0.4rem no-repeat;
}
.log__under {
  position: absolute;
  inset: 2.7rem 0.8rem 1rem 1.2rem;
  background: #e9e4d6;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.4);
  transform: rotate(1.3deg);
}
.log__sheet {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.2rem 0.9rem 2.1rem;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%), var(--log-paper);
  box-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.45);
  color: var(--log-ink);
  text-align: left;
}
/* Two punched holes down the left edge, and a coffee ring over the corner. */
.log__sheet::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0;
  bottom: 0;
  width: 0.85rem;
  background:
    radial-gradient(circle, var(--log-hole) 0.3rem, transparent 0.34rem) 0 18% / 100% 0.85rem no-repeat,
    radial-gradient(circle, var(--log-hole) 0.3rem, transparent 0.34rem) 0 82% / 100% 0.85rem no-repeat;
}
.log__sheet::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 0.4rem;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 59%, rgba(var(--log-ring), 0.3) 62%, rgba(var(--log-ring), 0.1) 67%, transparent 72%);
  pointer-events: none;
}
.docket .log p { margin: 0; padding: 0; }
.docket .log__title, .docket .log__text { color: var(--log-ink); }
.docket .log__meta { color: var(--log-faint); }
.docket .log__file { color: var(--stamp-red); }
.log__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 0.22rem double var(--log-ink);
}
.log__title { font-family: var(--type); font-size: 1.55rem; letter-spacing: 0.14em; line-height: 1.1; text-transform: uppercase; }
.log__file { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.docket .log .log__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; margin-top: 0.45rem; font-family: var(--type); font-size: 0.82rem; }
.log__cols, .log__row { display: grid; grid-template-columns: var(--when) minmax(0, 1fr); }
.docket .log .log__cols {
  margin-top: 0.85rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--log-ink);
  color: var(--log-faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.log__rows { list-style: none; margin: 0; padding: 0; }
.log__row { border-bottom: 1px solid var(--log-rule); }
.log__when {
  padding: 0.55rem 0.6rem 0.55rem 0;
  color: var(--log-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}
.log__entry { padding: 0.45rem 0 0.55rem 0.8rem; border-left: 1px solid var(--log-margin); }
.log__text { font-family: var(--type); font-size: 0.98rem; line-height: 1.45; }
.log__margin { display: block; margin-top: 0.15rem; color: #c4121c; font-family: var(--hand); font-size: 1.3rem; font-weight: 700; line-height: 1; transform: rotate(-2deg); transform-origin: left center; }
.log__foot { display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; min-height: 4.1rem; margin-top: 0.4rem; }
.log__note { color: #c4121c; font-family: var(--marker); font-size: 1.05rem; line-height: 1.05; transform: rotate(-3deg); }
.log__closed { font-size: 1.35rem; }
/* The red ring around the domain, gone over twice like the one on the wall. */
.log__circled { position: relative; white-space: nowrap; }
.log__circled::before, .log__circled::after {
  content: "";
  position: absolute;
  inset: -0.4em -0.62em -0.32em;
  border: 2px solid #c4121c;
  border-radius: 52% 48% 55% 45% / 62% 46% 54% 38%;
  pointer-events: none;
  transform: rotate(-2deg);
}
.log__circled::before { inset: -0.46em -0.52em -0.26em -0.72em; border-width: 1.5px; border-radius: 46% 54% 44% 56% / 52% 60% 40% 48%; opacity: 0.7; transform: rotate(1.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .log:not(.is-done) .log__closed, .js .log:not(.is-done) .log__note, .js .log:not(.is-done) .log__margin { visibility: hidden; }
  .log.is-done .log__closed { animation: stamp-slam 0.5s cubic-bezier(0.2, 1.4, 0.35, 1) both; }
  .log.is-done .log__note { animation: log-scrawl 0.35s ease-out 0.55s both; }
  .log.is-done .log__margin { animation: log-scrawl 0.35s ease-out 0.75s both; }
  .log__circled::before, .log__circled::after { animation: log-scrawl 0.35s ease-out 0.95s both; }
}
@keyframes log-scrawl { from { opacity: 0; } }
@media (max-width: 520px) {
  .docket .log .log__cols { display: none; }
  .log__row { grid-template-columns: minmax(0, 1fr); }
  .log__when { padding-bottom: 0; }
  .log__entry { padding: 0.1rem 0 0.55rem; border-left: 0; }
  .log__board { padding-inline: 0.7rem; }
  .log__sheet { padding-left: 1.1rem; padding-right: 0.9rem; }
  .log__sheet::before { display: none; }
}

/* ---------- the nav at night: script.js sets .is-night while it's over a dark section ---------- */
.nav, .nav__mark, .nav__mark .w-baby, .nav__toggle { transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.is-night .nav { background: rgba(15, 13, 11, 0.82); border-bottom-color: #2b2622; }
.is-night .nav__mark { color: var(--noir-ink); }
.is-night .nav__mark .w-baby { color: var(--pink); }
.is-night .nav__links a { color: var(--noir-soft); }
.is-night .nav__links a:hover, .is-night .nav__links a[aria-current] { color: var(--pink); }
.is-night .nav__drop, .is-night .nav__menu { background: #1a1613; border-color: #2b2622; }
.is-night .nav__drop a:hover, .is-night .nav__drop a:focus-visible { background: #2a2420; }
.is-night .nav__menu a { color: var(--noir-ink); border-top-color: #2b2622; }
.is-night .nav__menu a[aria-current="page"] { color: var(--pink); }
.is-night .nav__toggle { color: var(--noir-ink); border-color: #3b342e; }

/* ---------- the two buttons, bottom left ---------- */
.hud-left { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 0.45rem; }
.hud-left .music-toggle { position: static; }
@media (max-width: 520px) {
  .hud-left { left: 10px; bottom: 10px; gap: 0.3rem; }
}
@media (max-width: 400px) {
  .noir-toggle__state { display: none; }
}
@media (max-width: 380px) {
  .grudge-meter__label { display: none; }
}
@media (max-width: 310px) {
  .grudge-meter__bar { display: none; }
}

/* ---------- headings: typewriter everywhere below the header; serif belongs to the title ---------- */
.reveal h2, .dictionary h2, .story h2, .gallery h2, .faq h2, .badges h2 { font-family: var(--type); font-weight: 400; letter-spacing: 0.01em; line-height: 1.2; }
.dict dd a { color: var(--stamp-red); }
.docket summary h2 { font-family: var(--type); font-weight: 400; }

/* ---------- the gallery, the FAQ and the findings ---------- */

/* The gallery: a witness statement, with its carbon copy showing behind it. */
.statement-form {
  padding: 1.4rem 1.4rem 1.1rem;
  background: var(--slip);
  border: 0;
  border-top: 0.4rem solid var(--ink);
  border-radius: 0;
  box-shadow: 0 1px 0 #d9d2c0, 7px 7px 0 -1px #e5dfd0, 7px 7px 0 0 #c9c2b0;
}
.statement-form textarea {
  padding: 0 0.2rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  line-height: 1.6rem;
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.6rem - 1px), rgba(31, 39, 51, 0.17) calc(1.6rem - 1px) 1.6rem) local;
}
.statement-form input { border-radius: 0; background: transparent; border-width: 0 0 1px; border-color: var(--ink); }
.statement-form input:focus-visible, .statement-form textarea:focus-visible { outline-color: var(--stamp-red); }
.statement-form button[type="submit"] {
  border: 3px solid var(--stamp-red);
  border-radius: 4px;
  background: transparent;
  color: var(--stamp-red);
  transform: rotate(-1.5deg);
}
.statement-form button[type="submit"]:hover,
.statement-form button[type="submit"]:focus-visible { background: var(--stamp-red); color: var(--slip); transform: rotate(-1.5deg) scale(1.03); }
/* The record: sticky notes in a loose grid, as many across as the window allows. It's a true grid
   underneath, so the newest still read first and a new note never reshuffles the others. Each note's
   colour, tilt and drop come from its number (script.js), so it keeps them for good. */
.gallery { max-width: none; }
/* The wall: the form sits in the grid and the notes flow down both sides of it, then on below. The
   notes' list uses display: contents so each note is a cell of this grid. Without room beside the
   form (under 900px) it goes on top, full width. "dense" lets a short note fill a gap beside the form
   that a double-width note couldn't fit in. */
.notes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.2rem), 1fr));
  grid-auto-flow: row dense;
  align-items: start;
  gap: clamp(1.3rem, 2.2vw, 2rem) clamp(0.8rem, 1.6vw, 1.5rem);
}
.gallery__sub { margin-bottom: 1.1rem; }
.statements { display: contents; }
.statement-form { grid-column: 1 / -1; width: 100%; max-width: 44rem; margin: 0 auto 0.2rem; }
@media (min-width: 700px) {
  .notes-wall { grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
}
@media (min-width: 900px) {
  .notes-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* It fills its cells exactly, with the writing lines taking up the extra height. */
  .statement-form { display: flex; flex-direction: column; grid-column: 2 / span 2; grid-row: 1 / span 2; align-self: stretch; max-width: none; margin-bottom: 0; }
  .statement-form textarea { flex: 1 1 auto; resize: none; }
}
@media (min-width: 1500px) {
  .notes-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .statement-form { grid-column: 2 / span 3; }
}
@media (min-width: 1760px) {
  .notes-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .statement-form { grid-column: 3 / span 2; }
}
@media (min-width: 2330px) {
  .notes-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .statement-form { grid-column: 4 / span 2; }
}
/* Ultrawide: more columns rather than bigger notes, with the form staying in the middle two. */
@media (min-width: 2920px) {
  .notes-wall { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .statement-form { grid-column: 5 / span 2; }
}
@media (min-width: 3496px) {
  .notes-wall { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .statement-form { grid-column: 6 / span 2; }
}
@media (min-width: 4072px) {
  .notes-wall { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .statement-form { grid-column: 7 / span 2; }
}
.statement {
  --sticky: #ffe36e;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  padding: 1.35rem 0.95rem 0.7rem;
  overflow: visible;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 1.6rem), var(--sticky);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0.7rem 0.8rem -0.55rem rgba(31, 22, 12, 0.5), 0 1px 1px rgba(31, 22, 12, 0.18);
  color: #1b1b1b;
  transform: translateY(var(--drop, 0rem)) rotate(var(--tilt, 0deg));
}
.statement::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 4.6rem;
  height: 1.25rem;
  translate: -50% 0;
  rotate: -2deg;
  background: rgba(236, 228, 205, 0.74);
  box-shadow: 0 1px 2px rgba(31, 22, 12, 0.22);
}
.statement--pink { --sticky: #ff9cc2; }
.statement--blue { --sticky: #a9dcff; }
.statement.is-pending { --sticky: #dcdad3; }
.statement.is-struck { --sticky: #e9e6de; outline: 1px dashed var(--stamp-red); outline-offset: -5px; }
.statement:hover, .statement:focus-within { z-index: 2; transform: translateY(calc(var(--drop, 0rem) - 0.2rem)) rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .statement { transition: transform 0.18s ease; }
}
.statement__body { order: -1; margin: 0 0 0.75rem; overflow: hidden; color: #1b1b1b; font-family: var(--hand); font-size: 1.42rem; font-weight: 700; line-height: 1.16; }
.statement.is-long .statement__body { font-family: var(--type); font-size: 0.92rem; font-weight: 400; line-height: 1.42; }
.statement__meta { gap: 0.1rem 0.55rem; margin: auto 0 0; }
.statement__name { font-family: var(--type); font-size: 0.86rem; font-weight: 400; }
.statement__id, .statement__time, .statement__tag { color: rgba(27, 27, 27, 0.72); }
.statement__foot { gap: 0.3rem; margin-top: 0.45rem; }
.statement__votes { gap: 0.3rem; }
.vote { padding: 0.15rem 0.42rem; border: 1px solid rgba(27, 27, 27, 0.38); color: rgba(27, 27, 27, 0.8); font-size: 0.64rem; letter-spacing: 0.04em; }
/* Report is just the flag on a note; the word stays for screen readers and in the tooltip. */
.statement__flag { padding: 0.15rem 0.3rem; color: rgba(27, 27, 27, 0.72); font-size: 0; }
.statement__flag-icon { font-size: 0.85rem; }
.statement__report { border-top-color: rgba(27, 27, 27, 0.35); }
.statement__report-ask, .statement__report-status, .statement__struck { color: #1b1b1b; }
.statement__report-why button { border-color: rgba(27, 27, 27, 0.38); color: #1b1b1b; }
@media (max-width: 699.98px) {
  .statement { min-height: 9.5rem; padding-inline: 0.75rem; }
  .statement__body { font-size: 1.3rem; }
  .statement.is-long { grid-column: 1 / -1; }
}
/* Where a note is too narrow for "Sustained" and "Overruled" on one line, it keeps the arrows and counts. */
@media (max-width: 1299.98px) {
  .vote__word { display: none; }
}
/* The rest of the gallery, then the FAQ and the findings, are all part of the wall's grid. */
.statements__empty, .statements__more, .gallery__foot { grid-column: 1 / -1; order: 3; }
.notes-wall > .pair--faq { grid-column: 1 / -1; order: 4; width: 100%; max-width: 1200px; margin: 0.6rem auto 0; padding-inline: 0; font-family: var(--sans); }
.notes-wall .pair > section { padding-left: 0; padding-right: 0; }
.gallery { padding-bottom: 0; }
/* Extra-large screens: the notes keep going, down both sides of the FAQ and the findings. */
@media (min-width: 1760px) {
  .gallery { padding-bottom: clamp(2.2rem, 7vw, 3.6rem); }
  .notes-wall > .pair--faq { grid-column: 2 / span 4; grid-row: 3 / span 2; max-width: none; margin-top: 0; }
  .notes-wall .pair > section { padding-top: 0.6rem; padding-bottom: 0; }
  #faq { scroll-margin-top: var(--land); }
}
@media (min-width: 2330px) {
  .notes-wall > .pair--faq { grid-column: 3 / span 4; }
}
@media (min-width: 2920px) {
  .notes-wall > .pair--faq { grid-column: 4 / span 4; }
}
@media (min-width: 3496px) {
  .notes-wall > .pair--faq { grid-column: 5 / span 4; }
}
@media (min-width: 4072px) {
  .notes-wall > .pair--faq { grid-column: 6 / span 4; }
}

/* Beside the form there's room for 4 notes (8 from 1760px, 12 from 2330px, more on ultrawides). Those go to the first notes,
   and the longest ones wait just behind them, so one tall note can't stretch the form beside it. */
@media (min-width: 900px) {
  .statement { order: 2; }
  .statement:nth-child(-n+4) { order: 0; }
  .statements .statement.is-very-long { order: 1; }
}
@media (min-width: 1760px) {
  .statement:nth-child(-n+8) { order: 0; }
}
@media (min-width: 2330px) {
  .statement:nth-child(-n+12) { order: 0; }
}
@media (min-width: 2920px) {
  .statement:nth-child(-n+16) { order: 0; }
}
@media (min-width: 3496px) {
  .statement:nth-child(-n+20) { order: 0; }
}
@media (min-width: 4072px) {
  .statement:nth-child(-n+24) { order: 0; }
}
/* The longest ones go double width, so one tall note doesn't leave a hole in its row. */
@media (min-width: 700px) {
  .statement.is-very-long { grid-column: span 2; }
}
.statements__more { margin-top: 2.2rem; }
.vote, .statement__flag, .statement__report-why button, .statements__more { border-radius: 3px; }
.vote--up:hover, .vote--up:focus-visible { border-color: var(--stamp-red); color: var(--stamp-red); }
.vote--down:hover, .vote--down:focus-visible { border-color: var(--ink); color: var(--ink); }
.vote--up[aria-pressed="true"] { background: var(--stamp-red); border-color: var(--stamp-red); }
.vote--down[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }

/* The FAQ: a deposition. */
.faq .q { margin: 0; border: 0; border-bottom: 1px dashed var(--rule); border-radius: 0; background: none; }
.faq .q summary { padding: 0.85rem 2.2rem 0.85rem 0; font-family: var(--type); font-weight: 400; }
.faq .q summary::after { right: 0.2rem; color: var(--stamp-red); }
.faq .q summary::before { content: "Q.\00a0"; color: var(--stamp-red); }
.faq .q p { padding: 0 0 1rem; color: var(--ink); }
.faq .q p::before { content: "A.\00a0"; color: var(--ink-soft); font-family: var(--type); }
.faq .q p a { color: var(--stamp-red); }

/* Findings: rubber stamps. The emoji stay in the markup, out of sight. */
.badge {
  padding: 0.45rem 0.85rem;
  background: none;
  border: 3px solid var(--stamp-red);
  border-radius: 6px;
  box-shadow: none;
  color: var(--stamp-red);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  -webkit-mask-image: radial-gradient(circle at 32% 42%, #000 94%, rgba(0, 0, 0, 0.7));
  mask-image: radial-gradient(circle at 32% 42%, #000 94%, rgba(0, 0, 0, 0.7));
}
.badge:nth-child(2n) { transform: rotate(1.6deg); }
.badge:nth-child(3n) { transform: rotate(-0.8deg); }
.badge__icon { display: none; }

/* =====================================================================
   THE NOIR LOOK: everything below applies only while the Noir button is on (.noir-mode on <html>).
   Silver and black from the desk to the jury; green is only ever the dress, red only what the
   detective did about it; the folders stay manila; the morning after is paperwork.
   ===================================================================== */
:root.noir-mode {
  --noir: #0b0c0d;
  --noir-ink: #e9e9e5;
  --noir-soft: #a6a6a2;
  --yarn: #c0141e;
  --dusk-1: #bab7af;
  --dusk-2: #66676b;
  --dusk-3: #25262a;
  --city-far: #2c2d31;
  --city-lit: #d9d6c6;
  --photo: url("images/tbaby-noir.jpg");
  --noir-fade: linear-gradient(180deg, var(--paper) 0, #3b3c40 3.5rem, #17181b 6.5rem, var(--noir) 9rem);
  --noir-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.42 0 0 0 -0.235'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.noir-mode .noir { --tape-yellow: #d3d3ce; --tape-yellow-2: #b7b7b2; }
.noir-mode .kicker--noir { color: #e2483d; }

/* Film grain on the dark bands only. It is part of their background, so it sits behind the type and
   costs nothing once painted. Paper keeps the original faint .grain. */
.noir-mode .noir { background: var(--noir-grain), var(--noir); }

/* ---------- dusk, and the dawn after the jury ---------- */
.noir-mode .noir.exhibit { background: var(--noir-grain), var(--noir); }
.noir-mode .footer--noir { background: var(--noir-grain), var(--noir-fade); }
.noir-mode .noir.jury {
  padding-bottom: 14rem;
  background: var(--noir-grain), linear-gradient(180deg, var(--noir) 0, var(--noir) calc(100% - 13rem), #15161a calc(100% - 10rem), #3f4146 calc(100% - 7rem), #8f8d86 calc(100% - 4rem), #d6d0c2 calc(100% - 1.6rem), var(--paper) 100%);
}

/* ---------- silver: the desk ---------- */
.noir-mode .desk__scene {
  background:
    radial-gradient(ellipse 58% 62% at 46% 40%, rgba(238, 238, 232, 0.2), rgba(238, 238, 232, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.03 0 0 0 0 0.03 0 0 0 0 0.03 1.1 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(91deg, rgba(0, 0, 0, 0) 0 9cqw, rgba(0, 0, 0, 0.35) 9cqw calc(9cqw + 1px)),
    linear-gradient(170deg, #3d3e41, #27282b 55%, #18191b);
  background-size: auto, 100% 100%, auto, auto;
}
.noir-mode .ring { background: radial-gradient(circle, transparent 59%, rgba(0, 0, 0, 0.42) 62%, rgba(0, 0, 0, 0.14) 67%, transparent 72%); }
.noir-mode .mug { background: radial-gradient(circle at 38% 34%, #f7f7f4, #d6d6d1 58%, #96968f); }
.noir-mode .mug__handle { border-color: #cfcfca; }
.noir-mode .mug__coffee { background: radial-gradient(circle at 44% 40%, #4b4b4b, #131313 72%); }
.noir-mode .mug__coffee i { border-color: rgba(230, 230, 226, 0.45); }
.noir-mode .pen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, #c4c4bf 0 5%, #141414 5% 78%, #c4c4bf 78% 82%, #1c1c1c 82% 95%, #8d8d8d 95%);
}
.noir-mode .dust { background: radial-gradient(circle, rgba(232, 232, 228, 0.6), rgba(232, 232, 228, 0) 70%); }

/* The folder stays manila: it is the one object that has to read as a case file at a glance. */
.noir-mode .folder__papers i:nth-child(3) { filter: none; }
.noir-mode .cf-seal { color: #232428; border-color: #232428; }
.noir-mode .note--1 { background: #e6e4dd; }
.noir-mode .note--2 { background: #c6c4be; }
.noir-mode .note--3 { background: #d8d7d2; }
.noir-mode .note { color: #1d1d1b; }
.noir-mode .ev--sheet { background: #efeee9; color: #2f2f2c; }
.noir-mode .ev--print { background: #f3f2ed; }
.noir-mode .ev--snap { background: #eeede8; }
.noir-mode .tape { color: #232323; }
/* The photo is already silver with a green dress (images/tbaby-noir.jpg); a colour filter here would
   take the dress with it. */
.noir-mode .crop--print { filter: contrast(1.05); }
.noir-mode .ev--snap .crop, .noir-mode .node .crop { filter: contrast(1.25) brightness(1.02); }
.noir-mode .case-file__close { color: #dededa; border-color: #77777a; border-radius: 3px; }
.noir-mode .case-file__close:hover { background: #d6d6d1; color: #101010; }
/* ---------- silver: the wall ---------- */
.noir-mode .board__frame {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.2' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.03 0 0 0 0 0.03 0 0 0 0 0.03 1 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #36373b, #1c1d20);
  background-size: 100% 100%, auto;
}
.noir-mode .board__cork {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.12 0 0 0 0 0.12 0 0 0 -3 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.78 0 0 0 0 0.76 0 0 0 -3.2 1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 50% 35%, #989690, #76746f 70%, #5d5b57);
}
.noir-mode .node--mugshot { background: #e7e6e1; }
.noir-mode .mugshot { background: repeating-linear-gradient(180deg, transparent 0 calc(12.5% - 1px), rgba(0, 0, 0, 0.4) calc(12.5% - 1px) 12.5%), linear-gradient(180deg, #c6c5c0, #a4a39d); }
.noir-mode .node--polaroid { background: #edece7; }
.noir-mode .node--sticky { background: #e4e2db; }
.noir-mode .node--pink { background: #b9b7b1; }
.noir-mode .node--blue { background: #d2d1cb; }
.noir-mode .sticky__ref { color: #2b2b2e; }
.noir-mode .node--missing { background: #ecebe6; }
.noir-mode .node--form { background: #f1f0ec; }
.noir-mode .form__sig { stroke: #1b1b1e; }
.noir-mode .clip__paper { background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%), #e4e3dd; color: #232323; }
.noir-mode .clip__book { color: #55554f; border-bottom-color: #85857f; }
.noir-mode .clip__verse--dim { color: #66665f; }
.noir-mode .receipt__paper { background: #f6f6f2; }
.noir-mode .node--card {
  background:
    linear-gradient(180deg, transparent 2.1em, rgba(214, 40, 40, 0.6) 2.1em, rgba(214, 40, 40, 0.6) calc(2.1em + 1px), transparent calc(2.1em + 1px)),
    repeating-linear-gradient(180deg, transparent 0 1.55em, rgba(60, 60, 60, 0.24) 1.55em calc(1.55em + 1px)),
    #f1f0eb;
}
.noir-mode .star { stroke: #1b1b1e; }
.noir-mode .news__paper { background: radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.25), transparent 60%), #d8d7d1; color: #191919; }
.noir-mode .news__photo { background: radial-gradient(circle, #262626 38%, transparent 42%) 0 0 / 0.32em 0.32em, #8c8c86; }
.noir-mode .news__photo img { filter: grayscale(1); }
.noir-mode .tag { background: rgba(228, 228, 223, 0.96); }
.noir-mode .board.is-focus .tag.is-hot { background: #f6f6f2; }
.noir-mode .pin--yellow .pin__cap, .noir-mode .pin--white .pin__cap, .noir-mode .pin--blue .pin__cap { stroke: none; }
.noir-mode #pinYellow stop:nth-child(1) { stop-color: #f6f6f2; }
.noir-mode #pinYellow stop:nth-child(2) { stop-color: #b9b9b4; }
.noir-mode #pinYellow stop:nth-child(3) { stop-color: #4b4b48; }
.noir-mode #pinBlue stop:nth-child(1) { stop-color: #aeb0b6; }
.noir-mode #pinBlue stop:nth-child(2) { stop-color: #53555c; }
.noir-mode #pinBlue stop:nth-child(3) { stop-color: #17181b; }

/* ---------- silver: the interrogation room and the jury ---------- */
.noir-mode .interro::backdrop {
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(235, 235, 230, 0.14), rgba(0, 0, 0, 0) 70%),
    rgba(4, 4, 5, 0.88);
}
.noir-mode .interro__sheet { background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%), #e8e7e2; }
.noir-mode .interro__kicker, .noir-mode .interro__who { color: #77777a; }
.noir-mode .interro__log li.is-note { border-top-color: #77777a; color: #55554f; }
.noir-mode .interro__actions button { border-radius: 3px; }
.noir-mode .verdict {
  background: radial-gradient(ellipse 70% 50% at 30% 0%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%), #e8e7e2;
  border-top-color: #232428;
}
.noir-mode .verdict__court { color: #77777a; }
.noir-mode .verdict__buttons [data-verdict="not_guilty"] { color: #232428; }
.noir-mode .verdict__buttons [data-verdict="not_guilty"]:hover, .noir-mode .verdict__buttons [data-verdict="not_guilty"]:focus-visible { background: #232428; color: #f4f4f0; }
.noir-mode .verdict__stamp.is-not { color: #232428; border-color: #232428; }
.noir-mode .tally__bar { background: #d2d1cc; }
.noir-mode .tally--not .tally__bar i { background: #3b3c40; }
.noir-mode .verdict__note, .noir-mode .verdict__count { color: #55554f; }

/* ---------- the nav and the bottom boxes at night ---------- */
/* The clock lives in the Revenge box, and only at night, so the box is back to its usual width over
   anything you'd be reading. */
.noir-mode .grudge-meter__clock { display: none; padding-right: 0.65em; border-right: 1px solid #3a3b3f; color: var(--noir-ink); font-family: var(--type); letter-spacing: 0.06em; white-space: nowrap; }
.noir-mode .grudge-meter__clock.is-on { display: inline; }
.noir-mode .nav, .noir-mode .grudge-meter, .noir-mode .music-toggle { transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.noir-mode.is-night .nav { background: rgba(11, 12, 13, 0.82); border-bottom-color: #2a2b2e; }
.noir-mode.is-night .nav__mark { color: var(--noir-ink); }
.noir-mode.is-night .nav__mark .w-baby { color: #e2483d; }
.noir-mode.is-night .nav__links a { color: var(--noir-soft); }
.noir-mode.is-night .nav__links a:hover, .noir-mode.is-night .nav__links a[aria-current] { color: #e2483d; }
.noir-mode.is-night .nav__drop, .noir-mode.is-night .nav__menu { background: #141517; border-color: #2a2b2e; }
.noir-mode.is-night .nav__drop a:hover, .noir-mode.is-night .nav__drop a:focus-visible { background: #232428; }
.noir-mode.is-night .nav__menu a { color: var(--noir-ink); border-top-color: #2a2b2e; }
.noir-mode.is-night .nav__toggle { color: var(--noir-ink); border-color: #3a3b3f; }
/* Solid, so nothing shows through them when copy passes behind. */
.noir-mode .grudge-meter, .noir-mode .music-toggle { border-radius: 3px; background: var(--cream); }
.noir-mode .grudge-meter__bar, .noir-mode .grudge-meter__fill { border-radius: 0; }
.noir-mode .grudge-meter__fill { background: var(--stamp-red); }
.noir-mode.is-low-night .grudge-meter, .noir-mode.is-low-night .music-toggle { background: var(--noir); border-color: #303135; color: var(--noir-soft); }
.noir-mode.is-low-night .grudge-meter__label, .noir-mode.is-low-night .music-toggle[aria-pressed="true"] { color: #e2483d; }
.noir-mode.is-low-night .grudge-meter__pct { color: var(--noir-ink); }
.noir-mode.is-low-night .grudge-meter__bar { background: #1c1d20; border-color: #3a3b3f; }
/* Phones: one solid strip along the bottom, rather than two boxes sitting on the copy. */
@media (max-width: 520px) {
  .noir-mode .grudge-meter { left: 0; right: 0; bottom: 0; justify-content: flex-end; padding: 0.45rem 0.7rem; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .noir-mode .grudge-meter__clock { margin-right: auto; margin-left: 10.4rem; }
  .noir-mode .grudge-meter__bar { flex: 0 1 62px; min-width: 18px; }
  .noir-mode .hud-left { left: 0; bottom: 0; gap: 0; z-index: 71; }
  .noir-mode .hud-left .music-toggle { padding: 0.45rem 0.7rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .noir-mode .noir-toggle__state { display: none; }
}

/* ---------- the morning after: paperwork, not a landing page ---------- */
/* Anything you actually read stays in the body face, left-aligned. Typewriter is for headings and labels. */
.noir-mode .reveal > p:not(.vo) { max-width: 38rem; margin-left: auto; margin-right: auto; text-align: left; }

.noir-mode .q p a, .noir-mode .dict dd a { color: var(--stamp-red); }

/* The notes in silver, like the ones on the wall. */
.noir-mode .statement { --sticky: #e4e2db; }
.noir-mode .statement--pink { --sticky: #b9b7b1; }
.noir-mode .statement--blue { --sticky: #d2d1cb; }
.noir-mode .statement.is-pending { --sticky: #c9c8c3; }
.noir-mode .statement.is-struck { --sticky: #dcdbd6; }
.noir-mode .statement::before { background: rgba(232, 232, 228, 0.72); }

/* The case log, in silver. */
.noir-mode .log { --log-paper: #efeee9; --log-rule: rgba(60, 60, 60, 0.2); --log-hole: #27282b; --log-ring: 50, 50, 50; --log-faint: #66665f; }
.noir-mode .log__board {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.03 0 0 0 0 0.03 0 0 0 0 0.03 1.1 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #3d3e41, #27282b 60%, #18191b);
  background-size: 100% 100%, auto;
}
.noir-mode .log__under { background: #dfded9; }

/* The FAQ: a deposition. */
.noir-mode .q { margin: 0; border: 0; border-bottom: 1px dashed var(--rule); border-radius: 0; background: none; }
.noir-mode .q summary { padding: 0.85rem 2.2rem 0.85rem 0; font-family: var(--type); font-weight: 400; }
.noir-mode .q summary::after { right: 0.2rem; color: var(--stamp-red); }
.noir-mode .q p { color: var(--ink); }
@media (max-width: 1099.98px) {
  .noir-mode .docket { border-bottom: 1px dashed var(--rule); }
}

@media (min-width: 1100px) {
  .noir-mode .docket { border: 0; }
  .noir-mode .docket summary { padding: 0; }
}
@media (max-width: 400px) {
  .noir-mode .grudge-meter__clock.is-on + .grudge-meter__label { display: none; }
}

.noir-mode .footer--noir .footer__mark span, .noir-mode .footer--noir .footer__line a { color: #e2483d; }
