/* Steven Bremel, version 02: the evidence room. */

:root {
  --graphite: #1b1d1f;
  --graphite-2: #24272a;
  --steel: #3a3e42;
  --paper: #ecebe3;
  --paper-2: #e2ddcc;
  --manila: #d6bd86;
  --manila-2: #c3a76c;
  --ink: #1f1e1b;
  --ink-soft: #57544c;
  --blue-ink: #22336f;
  --red: #c3271d;
  --uv: #d9ccff;
  --uv-glow: #8b5cff;
  --label: #f7f5ee;
  --typed: 'Special Elite', 'Courier New', monospace;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --stencil: 'Stardos Stencil', 'Impact', sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --stampmask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.6 -.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { background: var(--graphite); }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--graphite);
  background-image: var(--noise), radial-gradient(120% 70% at 50% 0%, #2b2f33 0%, var(--graphite) 55%, #131416 100%);
  color: var(--paper);
  font-family: var(--typed);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Light falling from the strip light. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 80vh;
  background: radial-gradient(70% 100% at 50% 0%, rgba(214, 232, 255, 0.12), rgba(214, 232, 255, 0.03) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: lamp 11s steps(1, end) infinite;
}

.tube {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(760px, 84vw);
  height: 18px;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(#2a2c2f, #17181a);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tube i {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 7px;
  height: 6px;
  border-radius: 6px;
  background: #f4f9ff;
  box-shadow: 0 0 10px 2px rgba(220, 236, 255, 0.9), 0 0 50px 12px rgba(200, 225, 255, 0.35);
  animation: tube 11s steps(1, end) infinite;
}

@keyframes tube {
  0%, 100% { opacity: 1; }
  61% { opacity: 0.35; }
  62% { opacity: 1; }
  63.5% { opacity: 0.5; }
  64% { opacity: 1; }
}

@keyframes lamp {
  0%, 100% { opacity: 1; }
  61% { opacity: 0.5; }
  62% { opacity: 1; }
  63.5% { opacity: 0.6; }
  64% { opacity: 1; }
}

/* Start up: the room is dark until the tube catches. */
.power {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #050606;
  pointer-events: none;
  opacity: 0;
}

.lamp-start .power { animation: power 1.5s linear both; }

@keyframes power {
  0% { opacity: 1; }
  12% { opacity: 1; }
  14% { opacity: 0.25; }
  18% { opacity: 1; }
  30% { opacity: 1; }
  32% { opacity: 0.4; }
  35% { opacity: 0.85; }
  44% { opacity: 0.1; }
  48% { opacity: 0.5; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px clamp(14px, 4vw, 48px) 80px;
}

/* ---------- Header ---------- */

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px clamp(14px, 4vw, 48px) 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-n {
  font-family: var(--stencil);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-s {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8d939a;
}

.brand:hover .brand-n,
.brand:focus-visible .brand-n { color: #fff; text-shadow: 0 0 12px rgba(220, 236, 255, 0.5); }

/* Luggage tag for the basket count. */
.tag {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 14px 8px 26px;
  background: var(--manila);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  transform: rotate(-3deg);
}

.tag::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--graphite);
}

.tag.has { background: #e9d27a; }

/* ---------- Evidence log ---------- */

.log-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "who tally" "h tally" "line tally";
  align-items: end;
  column-gap: 24px;
  padding: clamp(20px, 6vw, 70px) 0 clamp(20px, 3vw, 36px);
}

.who {
  grid-area: who;
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.stencil {
  grid-area: h;
  margin: 0;
  font-family: var(--stencil);
  font-weight: 700;
  font-size: clamp(52px, 13vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e8e6dc;
  text-shadow: 0 0 1px rgba(232, 230, 220, 0.7), 0 0 14px rgba(232, 230, 220, 0.12);
  overflow-wrap: anywhere;
}

.line {
  grid-area: line;
  margin: 14px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  color: #c4c0b2;
}

.tally {
  grid-area: tally;
  align-self: end;
  margin: 0;
  padding: 10px 14px;
  border: 3px double #c4c0b2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c4c0b2;
  transform: rotate(4deg);
  text-align: center;
}

.tally b {
  display: block;
  font-family: var(--stencil);
  font-size: 40px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--paper);
}

.log-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.ledger {
  position: relative;
  min-width: 0;
  padding: 0 0 18px;
  background-color: #efecdf;
  background-image: var(--grain), linear-gradient(to right, transparent 108px, rgba(195, 39, 29, 0.5) 108px, rgba(195, 39, 29, 0.5) 109px, transparent 109px);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ledger-head,
.row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.15fr) 72px minmax(0, 2fr) 26px;
  column-gap: 18px;
  align-items: baseline;
  padding: 14px 18px;
}

.ledger-head {
  padding-top: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(34, 51, 111, 0.55);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.rows { display: block; }

.row {
  position: relative;
  min-height: 52px;
  border-bottom: 1px solid rgba(60, 110, 170, 0.32);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.row .ex {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.row .item {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.row .type {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.row .notes {
  font-size: 14px;
  line-height: 1.45;
  color: #4b4840;
  overflow-wrap: anywhere;
}

.bag-ico {
  position: relative;
  align-self: center;
  width: 22px;
  height: 26px;
  border: 1.5px solid #8d8a80;
  border-top: 5px solid var(--red);
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(200, 200, 200, 0.2));
}

.bag-ico.doc {
  border-top-width: 1.5px;
  border-color: #8d8a80;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(80, 80, 80, 0.35) 4px 5px), #fff;
  background-clip: content-box;
  padding: 4px 3px;
}

.rel {
  position: absolute;
  right: 54px;
  top: 50%;
  padding: 2px 8px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--stencil);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(-9deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.row:not(.open):hover,
.row:focus-visible,
.row.sel { background: rgba(255, 233, 120, 0.22); }

.row:not(.open):hover .item,
.row:focus-visible .item,
.row.sel .item {
  background: linear-gradient(transparent 52%, rgba(255, 222, 70, 0.75) 52%, rgba(255, 222, 70, 0.75) 92%, transparent 92%);
}

.row:focus-visible { box-shadow: inset 4px 0 0 var(--red); }

.row.open { color: #8b887d; }
.row.open .ex { color: #9b6a63; }

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: blink 1.05s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Rows typed in as they arrive. */
.row.typed { animation: rowin 0.35s var(--d, 0ms) both; }
.row.typed .item { animation: typed 0.45s steps(16, end) var(--d, 0ms) both; }

@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typed { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Touch: the photo opens under the row. */
.drop {
  padding: 14px 18px 20px;
  border-bottom: 1px solid rgba(60, 110, 170, 0.32);
  background: rgba(255, 233, 120, 0.14);
}

.drop .mini-bag { max-width: 420px; margin: 0 auto 14px; }

.open-file {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

/* Desktop photo panel. */
.preview {
  position: sticky;
  top: 36px;
  min-width: 0;
}

.pv { transform-origin: 50% 0; }
.pv.in { animation: dropin 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }

@keyframes dropin {
  from { opacity: 0; transform: translateY(-18px) rotate(-3deg); }
  to { opacity: 1; transform: rotate(1.2deg); }
}

.mini-bag {
  position: relative;
  padding: 34px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.12) 60%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mini-in img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: 3 / 2;
  padding: 18px 20px;
  background: #f5f2e8;
  color: var(--ink);
}

.doc-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.doc-t { font-family: var(--hand); font-size: 34px; font-weight: 700; line-height: 1; color: var(--blue-ink); }
.doc-l { height: 1px; background: rgba(60, 110, 170, 0.4); }
.doc-l.short { width: 60%; }

.mini-label {
  display: grid;
  gap: 2px;
  width: min(250px, 82%);
  margin: -28px 0 0 auto;
  position: relative;
  padding: 10px 12px;
  background: var(--label);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mini-label b { font-family: var(--stencil); font-size: 22px; letter-spacing: 0.06em; color: var(--red); }

/* ---------- Seal strip ---------- */

.seal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  background: var(--red);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.seal span {
  flex: 0 0 auto;
  padding: 0 14px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.seal span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 14px 1px 0;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
}

/* ---------- Case file ---------- */

.case {
  max-width: 1000px;
  margin: 0 auto;
}

.folder {
  position: relative;
  margin-top: 34px;
  padding: clamp(50px, 6vw, 64px) clamp(18px, 5vw, 56px) clamp(24px, 4vw, 44px);
  background-color: var(--manila);
  background-image: var(--grain), linear-gradient(170deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.06));
  color: var(--ink);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  perspective: 1600px;
}

.folder-tab {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 20px 6px;
  background: var(--manila-2);
  font-family: var(--stencil);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0 0 8px 0;
}

.cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--manila-2);
  background-image: var(--grain);
  transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1) 0.35s, opacity 0.4s ease 1.1s;
  backface-visibility: hidden;
}

.cover-t {
  font-family: var(--stencil);
  font-size: clamp(44px, 10vw, 110px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(31, 30, 27, 0.82);
}

.cover-s {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.opened .cover { transform: rotateX(-96deg); opacity: 0; }
.reduced .cover { display: none; }

.file-label {
  margin: 10px 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(31, 30, 27, 0.7);
}

.title {
  margin: 0;
  font-family: var(--typed);
  font-weight: 400;
  font-size: clamp(36px, 7.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tagline {
  max-width: 44em;
  margin: 18px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  color: #3a382f;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 30, 27, 0.25);
}

.meta div { min-width: 0; }

.meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(31, 30, 27, 0.6);
}

.meta dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.exhibit { margin: clamp(40px, 7vw, 80px) 0 0; }

.sec-h {
  margin: 0 0 22px;
  font-family: var(--stencil);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e3e0d5;
}

/* ---------- UV torch ---------- */

.uv {
  --x: 50%;
  --y: 50%;
  --r: clamp(70px, 13vw, 130px);
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  touch-action: pan-y;
  cursor: crosshair;
}

.uv.touch { touch-action: none; }

.uv img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.uv.on img,
.uv.flood img { filter: brightness(0.38) saturate(0.4) contrast(1.1); }

.uv-beam {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  filter: grayscale(1) contrast(1.4) brightness(0.95) sepia(1) hue-rotate(208deg) saturate(3.4);
  opacity: 0;
  pointer-events: none;
}

.uv-ink {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.uv-beam,
.uv-ink {
  transition: opacity 0.25s ease;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 58%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 58%, transparent 100%);
}

.uv.on .uv-beam,
.uv.on .uv-ink { opacity: 1; }

.uv.flood .uv-beam,
.uv.flood .uv-ink {
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.torch {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(205, 185, 255, 0.35), inset 0 0 50px rgba(139, 92, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.uv.on .torch { opacity: 1; }
.uv.flood .torch { opacity: 0; }

.note {
  position: absolute;
  max-width: 62%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(16px, 4.4cqw, 36px);
  line-height: 0.95;
  color: var(--uv);
  text-shadow: 0 0 6px var(--uv-glow), 0 0 18px rgba(139, 92, 255, 0.8);
  transform-origin: 0 50%;
}

.marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #cdbbff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(139, 92, 255, 0.9));
}

.marks * { vector-effect: non-scaling-stroke; }

.uv-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 0;
}

.uv-btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding: 10px 18px 10px 40px;
  border: 1px solid #4b3f86;
  border-radius: 24px;
  background: #15121f;
  color: #cbbcff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

.uv-btn::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #3a2f63;
  box-shadow: inset 0 0 0 2px #6a59b8;
}

.uv-btn[aria-pressed="true"] { background: #2a1d5c; color: #fff; border-color: #8b5cff; box-shadow: 0 0 22px rgba(139, 92, 255, 0.5); }
.uv-btn[aria-pressed="true"]::before { background: #d9ccff; box-shadow: 0 0 10px 3px #8b5cff; }
.uv-btn:focus-visible { outline: 2px solid #d9ccff; outline-offset: 3px; }

.cue {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8f8aa8;
}

/* ---------- Treatment: evidence bag ---------- */

.bag {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px clamp(10px, 3vw, 26px) clamp(14px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 34px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* Plastic crinkles lie over the photo. */
.bag::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, 0.1) 19%, transparent 23%),
    linear-gradient(72deg, transparent 62%, rgba(255, 255, 255, 0.08) 63.5%, transparent 67%),
    linear-gradient(160deg, transparent 40%, rgba(255, 255, 255, 0.07) 41%, transparent 44%),
    radial-gradient(60% 40% at 80% 10%, rgba(255, 255, 255, 0.12), transparent 70%);
  mix-blend-mode: screen;
}

.zip {
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.bag-body .uv { transform: rotate(-0.8deg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

.bag-label {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(340px, 86%);
  margin: -56px 4% 0 auto;
  padding: 14px 16px 16px;
  background: var(--label);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  transform: rotate(1.4deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.lbl-no {
  font-family: var(--stencil);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.lbl-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(31, 30, 27, 0.15);
  overflow-wrap: anywhere;
}

.lbl-row b {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
}

/* ---------- Treatment: lab report ---------- */

.report {
  padding: clamp(16px, 4vw, 40px);
  background-color: #f6f6f1;
  background-image: var(--grain);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--ink);
  font-family: var(--mono);
}

.lab-t {
  font-size: clamp(15px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lab-n { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: 0.1em; }

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.sample { margin: 0; min-width: 0; }
.sample .uv { border: 1px solid #c9c7bd; }

.scale {
  height: 18px;
  margin-top: 8px;
  background:
    repeating-linear-gradient(to right, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 9px) left bottom / 100% 7px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0, var(--ink) 2px, transparent 2px, transparent 45px) left bottom / 100% 16px no-repeat;
  border-bottom: 2px solid var(--ink);
}

.chips {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.chips i { display: block; aspect-ratio: 1; border: 1px solid rgba(0, 0, 0, 0.25); }

.sample figcaption,
.hw-cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.findings { min-width: 0; }

.findings h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.findings table { width: 100%; border-collapse: collapse; }

.findings th,
.findings td {
  padding: 12px 6px;
  border-bottom: 1px solid #c9c7bd;
  text-align: left;
  vertical-align: top;
}

.findings th {
  width: 44px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
}

.findings td { font-size: 17px; line-height: 1.4; }

.lab-item {
  margin: 18px 0 0;
  font-size: 16px;
}

.lab-item b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 8px;
}

/* ---------- Treatment: incident board ---------- */

.board {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 12px solid #4a3220;
  border-radius: 4px;
  background-color: #a97f52;
  background-image: var(--grain), var(--noise), radial-gradient(120% 90% at 30% 20%, #bd935f, #8f6740);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 30px 70px rgba(0, 0, 0, 0.55);
}

.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  fill: none;
  stroke: #b3170f;
  stroke-width: 2;
  pointer-events: none;
  filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.35));
}

.strings path { vector-effect: non-scaling-stroke; }

.main-shot,
.crop {
  position: absolute;
  margin: 0;
  background: #f4f2ea;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.main-shot {
  left: 5%;
  top: 7%;
  width: 47%;
  padding: 2% 2% 0;
  transform: rotate(-2deg);
  z-index: 2;
}

.main-shot figcaption,
.crop figcaption {
  padding: 8px 4px 10px;
  font-family: var(--hand);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blue-ink);
}

.crop { width: 18%; padding: 1% 1% 0; z-index: 2; }
.crop.k1 { left: 58%; top: 4%; transform: rotate(3deg); }
.crop.k2 { left: 79%; top: 27%; transform: rotate(-4deg); }
.crop.k3 { left: 60%; top: 56%; transform: rotate(2deg); }

.crop-img {
  display: block;
  aspect-ratio: 1;
  background-size: 360% auto;
  background-repeat: no-repeat;
}

.pin {
  position: absolute;
  left: 50%;
  top: -6px;
  z-index: 4;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7c, #c3271d 55%, #6d0f09);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45);
}

/* ---------- Treatment: exhibit set ---------- */

.pset { margin-top: clamp(40px, 6vw, 70px); }

.pset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.pbag {
  position: relative;
  margin: 0;
  padding: 32px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px 5px 10px 10px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.02));
  overflow: hidden;
  min-width: 0;
}

.pbag .seal { height: 18px; }
.pbag .seal span { font-size: 8px; padding: 0 8px; }
.pbag .seal span + span::before { margin-right: 8px; width: 4px; height: 4px; }

.pbag-in img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.pbag figcaption {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 8px;
  background: var(--label);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.pbag figcaption b { font-family: var(--stencil); font-size: 17px; color: var(--red); letter-spacing: 0.04em; }
.pp { font-size: 16px; font-weight: 700; }

.mini-rel {
  -webkit-appearance: none;
  appearance: none;
  min-height: 40px;
  margin-top: 6px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.mini-rel:hover,
.mini-rel:focus-visible { background: var(--red); color: #fff; outline: none; }
.mini-rel.done { background: var(--red); color: #fff; }

.mini-only {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-soft);
}

/* ---------- Treatment: handwriting analysis ---------- */

.hw {
  padding: clamp(16px, 4vw, 40px);
  background-color: #fbfbf7;
  background-image:
    linear-gradient(rgba(70, 120, 190, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 190, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.hw-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  font-family: var(--mono);
}

.hw-t { font-size: clamp(14px, 2.3vw, 20px); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.hw-n { font-weight: 700; color: var(--red); letter-spacing: 0.1em; }

.hw-spec { position: relative; margin-top: 18px; }
.hw-spec .uv { cursor: crosshair; min-height: 220px; }
.hw-spec .uv img { display: none; }
.hw-spec .uv.on,
.hw-spec .uv.flood { background: #0f0b1c; }

.guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: rgba(195, 39, 29, 0.7);
  stroke: rgba(195, 39, 29, 0.55);
  stroke-width: 1.2;
}

.guides path { vector-effect: non-scaling-stroke; }

.spec {
  margin: 0;
  padding: clamp(40px, 9vw, 90px) 6% clamp(40px, 8vw, 80px);
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 140px);
  line-height: 0.95;
  text-align: center;
  color: var(--blue-ink);
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.uv.on .spec,
.uv.flood .spec { color: rgba(80, 70, 120, 0.5); }

.spec.mirror { transform: scaleX(-1); }

.uv-ink .spec.uvtext {
  position: absolute;
  inset: 0;
  color: var(--uv);
  text-shadow: 0 0 8px var(--uv-glow), 0 0 26px rgba(139, 92, 255, 0.8);
}

.hw-spec .note { color: var(--uv); }

.samples {
  display: grid;
  gap: 0;
  padding: 24px 2% 10px;
}

.sample-w {
  position: relative;
  min-width: 0;
  padding: 14px 0 8px;
  border-bottom: 1px solid rgba(195, 39, 29, 0.35);
}

.sample-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}

.samples .spec { padding: 4px 0 0; text-align: left; }
.w-a .spec { font-size: clamp(44px, 9vw, 104px); transform: rotate(-2deg); color: #2b2b2b; font-weight: 500; }
.w-b .spec { font-size: clamp(52px, 11vw, 126px); transform: rotate(1.5deg) skewX(-12deg); color: var(--blue-ink); }
.w-c .spec { font-size: clamp(40px, 8vw, 96px); transform: rotate(-1deg) skewX(10deg); color: #6b1f1a; letter-spacing: 0.08em; }

.stickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(28px, 6vw, 60px) clamp(10px, 5vw, 50px);
}

.sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 3 / 2;
  min-width: 0;
  padding: 6% 8%;
  background: #fffdf6;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.sticker::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16%;
  aspect-ratio: 1;
  background: linear-gradient(315deg, #fbfbf7 0, #fbfbf7 48%, #d9d5c8 50%, #efece2 100%);
  border-radius: 0 0 6px 0;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);
}

.sticker.s0 { transform: rotate(-4deg); }
.sticker.s1 { transform: rotate(3deg); background: #fff3a8; }
.sticker.s2 { transform: rotate(2deg); background: #d8f0ff; }
.sticker.s3 { transform: rotate(-2deg); background: #ffd7cf; }

.sticker-t {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 58px);
  line-height: 0.95;
  color: #151515;
  overflow-wrap: anywhere;
}

.sticker-n {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--red);
}

.hw-stickers .uv.on .sticker,
.hw-stickers .uv.flood .sticker { filter: brightness(0.45); }

/* ---------- Case notes ---------- */

.case-notes {
  margin-top: clamp(50px, 8vw, 100px);
}

.case-notes .sec-h { color: #e3e0d5; }

.lede,
.note-block {
  max-width: 760px;
  padding: clamp(18px, 3vw, 30px) clamp(18px, 4vw, 40px);
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lede {
  margin: 0 0 22px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.4;
}

.note-block { margin: 0 0 22px; }
.note-block:nth-child(odd) { transform: rotate(0.5deg); margin-left: auto; }
.note-block:nth-child(even) { transform: rotate(-0.6deg); }

.note-block h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.note-block h3 .n { color: var(--red); margin-right: 8px; }

.note-block p {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.75;
}

/* Redaction bars: the text sits under black tape until it is read. */
.js .redact {
  color: transparent;
  background-image: linear-gradient(#0d0d0e, #0d0d0e);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 86%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s cubic-bezier(0.75, 0, 0.2, 1), color 0.2s ease 0.35s;
}

.js .redact.lifted {
  color: inherit;
  background-size: 0% 86%;
}

/* ---------- Inventory ---------- */

.inventory { margin-top: clamp(40px, 6vw, 70px); }

.inventory ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.inventory li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px 16px;
  background: var(--label);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.inventory li:nth-child(3n + 1) { transform: rotate(-0.8deg); }
.inventory li:nth-child(3n + 2) { transform: rotate(0.6deg); }

.inventory .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
}

/* ---------- Release form ---------- */

.release { margin-top: clamp(60px, 9vw, 110px); }

.form {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  background-color: #f3eedd;
  background-image: var(--grain);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.form-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.form-no { font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 0.1em; }

.fields { margin: 10px 0 0; }

.fields div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 30, 27, 0.2);
}

.fields dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fields dd { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.fields dd.price { font-size: 30px; }
.fields .sign dd { min-height: 34px; border-bottom: 1px solid var(--ink); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.release-btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  padding: 14px 26px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.release-btn:hover,
.release-btn:focus-visible { background: var(--red); border-color: var(--red); outline: none; }
.release-btn:disabled { background: transparent; color: var(--ink); cursor: default; }

.basket-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-line { margin: 18px 0 0; font-size: 19px; line-height: 1.5; }

.stamp {
  position: absolute;
  right: 6%;
  top: 34%;
  z-index: 3;
  padding: 0.04em 0.28em;
  border: 0.09em solid var(--red);
  outline: 0.04em solid var(--red);
  outline-offset: 0.06em;
  color: var(--red);
  font-family: var(--stencil);
  font-size: clamp(42px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: var(--stampmask);
  mask-image: var(--stampmask);
  -webkit-mask-size: 300px 120px;
  mask-size: 300px 120px;
}

.stamped .stamp { opacity: 0.88; }
.thud .stamp { animation: stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.thud .form { animation: thud 0.32s ease 0.22s; }

@keyframes stamp {
  0% { opacity: 0; transform: rotate(-3deg) scale(2.8); }
  55% { opacity: 0.95; transform: rotate(-13deg) scale(0.94); }
  100% { opacity: 0.88; transform: rotate(-12deg) scale(1); }
}

@keyframes thud {
  0%, 100% { transform: none; }
  30% { transform: translateY(3px) rotate(0.3deg); }
  60% { transform: translateY(-1px); }
}

.open-case .stamp.show {
  position: relative;
  display: inline-block;
  right: auto;
  top: auto;
  margin: 26px 0 0 4px;
  opacity: 0.85;
  color: #2f4fa0;
  border-color: #2f4fa0;
  outline-color: #2f4fa0;
  transform: rotate(-6deg);
}

/* ---------- File tabs ---------- */

.files {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(60px, 9vw, 110px);
}

.file {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--manila);
  background-image: var(--grain);
  color: var(--ink);
  text-decoration: none;
  border-radius: 0 6px 4px 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.file span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(31, 30, 27, 0.65);
}

.file b { font-family: var(--stencil); font-size: 24px; letter-spacing: 0.06em; }
.file i { font-style: normal; font-size: 16px; overflow-wrap: anywhere; }
.file.next { text-align: right; }
.file.home { background-color: var(--paper-2); align-content: center; }

.file:hover,
.file:focus-visible { transform: translateY(-4px); outline: none; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(31, 30, 27, 0.5); }

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .log-wrap { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
}

@media (max-width: 760px) {
  .bar { padding-top: 28px; }
  .brand-n { font-size: 18px; }

  .log-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "who" "h" "line" "tally";
  }

  .tally { justify-self: start; margin-top: 20px; transform: rotate(-3deg); }

  .ledger { background-image: var(--grain); }
  .ledger-head { display: none; }

  .row {
    grid-template-columns: 70px minmax(0, 1fr) 24px;
    grid-template-areas: "ex item ico" "type notes notes";
    row-gap: 6px;
    column-gap: 12px;
    padding: 14px 14px;
  }

  .row .ex { grid-area: ex; font-size: 13px; }
  .row .item { grid-area: item; font-size: 19px; }
  .row .type { grid-area: type; font-size: 10px; }
  .row .notes { grid-area: notes; font-size: 14px; }
  .row .bag-ico { grid-area: ico; }
  .row.open .type,
  .row.open .notes { display: none; }
  .rel { right: 46px; top: 12px; transform: rotate(-9deg); font-size: 12px; }

  .drop { padding: 14px; }

  .bag { padding-top: 44px; }
  .bag-label { margin-top: -30px; width: 92%; }
  .lbl-no { font-size: 24px; }

  .report-grid { grid-template-columns: minmax(0, 1fr); }

  .board {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 12px 16px;
    border-width: 8px;
  }

  .strings { display: none; }

  .main-shot,
  .crop,
  .crop.k1,
  .crop.k2,
  .crop.k3 {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
  }

  .board { overflow: hidden; }

  .main-shot { grid-column: 1 / -1; padding: 10px 10px 0; transform: rotate(-1deg); }
  .crop { padding: 6px 6px 0; }
  .crop figcaption { font-size: 15px; }

  .pset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stickers { grid-template-columns: minmax(0, 1fr); padding: 26px 8px; }

  .fields div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .files { grid-template-columns: minmax(0, 1fr); }
  .file.next { text-align: left; }

  .note-block:nth-child(odd),
  .note-block:nth-child(even) { transform: none; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .tube i,
  .cursor { animation: none !important; }
  .lamp-start .power { animation: none; }
  .row.typed,
  .row.typed .item,
  .pv.in,
  .thud .stamp,
  .thud .form { animation: none !important; }
  .js .redact { transition: none; }
  .cover { display: none; }
}
