/* ─────────────────────────────────────────────────────────────
   A · NIGHT SHOP
   One shelf at 10:20. Bottle black, cream paper, brass money.
   Marigold is the list. Vermilion is a recorded stockout. Fog is
   an unlooked-at shelf. No colour carries two meanings.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-normal-300-900.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Commissioner";
  src: url("fonts/commissioner-normal-300-800.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono";
  src: url("fonts/spline-mono-normal-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #08120d;
  --ink-2: #0b1811;
  --ink-3: #10241a;
  --shelf: #173327;
  --shelf-deep: #050d08;
  --chalk: #ece3d0;
  --chalk-dim: rgba(236, 227, 208, 0.64);
  --chalk-faint: rgba(236, 227, 208, 0.34);
  --paper: #eadfc6;
  --paper-2: #dbcdad;
  --paper-ink: #1b2117;
  --list: #e3a33f;
  --gap: #e0512f;
  --gap-ink: #9c2f1b;
  --money: #cba467;
  --money-deep: #8a6a32;
  --unknown: #82968d;
  --ok: #76ad84;

  --row-h: 262px;
  --slot-gap: 10px;
  --edge: 40px;

  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "Spline Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--money); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
}

.sr-only, .live {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ── topbar ─────────────────────────────────────────────── */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--edge);
  border-bottom: 1px solid rgba(236, 227, 208, 0.1);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.topbar-mid {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--chalk-faint);
}
.lamp-dot {
  width: 5px; height: 5px;
  background: var(--list);
  box-shadow: 0 0 8px rgba(227, 163, 63, 0.7);
}
.direction-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  border: 1px solid rgba(236, 227, 208, 0.22);
  padding: 5px 8px 4px;
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(440px, 46%) minmax(0, 1fr);
  gap: 26px;
  padding: 92px var(--edge) 32px;
  background:
    radial-gradient(110% 80% at 74% 6%, rgba(58, 92, 68, 0.2), transparent 56%),
    radial-gradient(80% 55% at 76% 72%, rgba(203, 164, 103, 0.08), transparent 62%),
    var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 64px 0 auto 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 227, 208, 0.14), transparent);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  position: relative;
  z-index: 3;
  padding-top: 6px;
}
.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-mark {
  width: 2px;
  height: 13px;
  background: var(--list);
  display: inline-block;
}
h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.048em;
}
.h1-the {
  display: block;
  font-weight: 300;
  font-size: clamp(25px, 2.6vw, 40px);
  letter-spacing: 0.005em;
  color: var(--chalk-dim);
  margin-bottom: 10px;
  padding-left: 0.16em;
}
.h1-empty {
  display: block;
  font-size: clamp(92px, 10.6vw, 158px);
  color: transparent;
  -webkit-text-stroke: 1.35px var(--chalk);
  text-stroke: 1.35px var(--chalk);
  padding-bottom: 0.02em;
}
.h1-slot {
  display: block;
  font-size: clamp(98px, 11.6vw, 174px);
  color: var(--chalk);
  margin-left: -0.015em;
  padding-bottom: 0.03em;
}
.gap-dot {
  display: inline-block;
  width: 0.115em;
  height: 0.115em;
  margin-left: 0.035em;
  background: var(--gap);
  box-shadow: 0 0 24px rgba(224, 81, 47, 0.28);
  transform: translateY(-0.01em);
}
.dek {
  margin-top: 30px;
  max-width: 37ch;
  font-size: 17.5px;
  line-height: 1.56;
  color: var(--chalk-dim);
  font-weight: 300;
}
.dek strong { font-weight: 600; color: var(--chalk); }
.provenance {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.provenance i { width: 18px; height: 1px; background: rgba(236, 227, 208, 0.22); }
.aisle-cue {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk);
}
.cue-line {
  width: 44px;
  height: 1px;
  background: var(--money);
  position: relative;
  transition: width 0.35s ease;
}
.cue-line::after {
  content: "";
  position: absolute;
  right: -1px; top: -2px;
  width: 5px; height: 5px;
  border-right: 1px solid var(--money);
  border-bottom: 1px solid var(--money);
  transform: rotate(45deg) translateY(-1px);
}
.aisle-cue:hover .cue-line { width: 62px; }

/* ── the shop window ─────────────────────────────────────── */
.shop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 620px;
  z-index: 2;
}
.shop-ceiling { position: relative; height: 214px; flex: 0 0 auto; }
.shop-ceiling::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 30px; bottom: -10px;
  background: linear-gradient(180deg, rgba(228, 240, 222, 0.11), rgba(228, 240, 222, 0.02) 55%, transparent 90%);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  filter: blur(7px);
  opacity: 0.55;
  animation: light-breathe 7s ease-in-out infinite alternate;
}
.tube {
  position: absolute;
  left: 11%; right: 11%;
  top: 26px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #dfe8da 7%, #fffdf2 50%, #dfe8da 93%, transparent);
  box-shadow: 0 0 16px 2px rgba(234, 243, 226, 0.32), 0 0 64px 16px rgba(160, 190, 160, 0.14);
  animation: tube-strike 2.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tube span {
  position: absolute;
  left: 48%; top: -5px;
  width: 4%; height: 13px;
  background: rgba(255, 253, 242, 0.25);
  filter: blur(6px);
}
.wire-static {
  position: absolute;
  left: 3%; right: 3%;
  top: 92px; height: 40px;
  opacity: 0.75;
}
.wire-static svg { width: 100%; height: 100%; overflow: visible; }
.wire-static path {
  stroke: var(--money);
  stroke-width: 1.4;
  fill: none;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(203, 164, 103, 0.25));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-wire 1.8s 0.4s cubic-bezier(0.3, 0.8, 0.2, 1) forwards;
}
.chalk-date {
  position: absolute;
  right: 3%; top: 6px;
  text-align: right;
  transform: rotate(-1.2deg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chalk-date b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.01em;
  color: var(--chalk);
  text-shadow: 0 0 18px rgba(236, 227, 208, 0.18);
  border-bottom: 1px dashed rgba(236, 227, 208, 0.35);
  padding-bottom: 3px;
}
.chalk-date span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
}

/* ── shelf ───────────────────────────────────────────────── */
.shelf { position: relative; width: 100%; }
.tier { position: relative; padding: 0 4px; }
.tier-b { display: none; }
.row {
  display: flex;
  align-items: flex-end;
  gap: var(--slot-gap);
  height: var(--row-h);
  padding: 0 6px;
  position: relative;
}
.beam {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #224634 0%, #183426 38%, #07130c 100%);
  border-top: 1px solid rgba(236, 227, 208, 0.17);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.55);
}
.beam::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: rgba(236, 227, 208, 0.08);
}
.beam::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: #030a06;
}

.slot {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.packet {
  position: relative;
  width: calc(100% - 8px);
  max-width: 132px;
  height: var(--h);
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.38));
}
.packet-face {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(174deg, #f2e8d2 0%, var(--paper) 46%, var(--paper-2) 100%);
  color: var(--paper-ink);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(27, 33, 23, 0.32),
    inset 7px 0 9px -8px rgba(0, 0, 0, 0.55),
    inset -5px 0 8px -7px rgba(0, 0, 0, 0.4);
}
.packet-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.packet-band {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--list);
  z-index: 3;
}
.shape-box .packet-face { border-radius: 2px; }
.shape-pouch .packet-face {
  clip-path: polygon(7% 0, 93% 0, 100% 5%, 100% 100%, 0 100%, 0 5%);
}
.shape-carton .packet-face {
  clip-path: polygon(0 9%, 13% 5%, 50% 0, 87% 5%, 100% 9%, 100% 100%, 0 100%);
}
.shape-bag .packet-face {
  border-radius: 42% 42% 12% 12% / 9% 9% 6% 6%;
  clip-path: polygon(5% 0, 95% 0, 100% 8%, 96% 100%, 4% 100%, 0 8%);
}
.shape-tin .packet-face { border-radius: 5px 5px 2px 2px; }

.pat-bands .packet-face::before {
  background: repeating-linear-gradient(0deg, transparent 0 10px, var(--paper-ink) 10px 11px);
}
.pat-dots .packet-face::before {
  background-image: radial-gradient(circle, var(--paper-ink) 0.9px, transparent 1.3px);
  background-size: 9px 9px;
}
.pat-diag .packet-face::before {
  background: repeating-linear-gradient(45deg, transparent 0 7px, var(--paper-ink) 7px 8px);
  opacity: 0.1;
}
.pat-lattice .packet-face::before {
  background-image:
    repeating-linear-gradient(45deg, transparent 0 8px, var(--paper-ink) 8px 9px),
    repeating-linear-gradient(-45deg, transparent 0 8px, var(--paper-ink) 8px 9px);
  opacity: 0.08;
}
.pat-mesh .packet-face::before {
  background-image:
    radial-gradient(circle, var(--paper-ink) 0.8px, transparent 1.2px),
    repeating-linear-gradient(-42deg, transparent 0 11px, var(--paper-ink) 11px 12px);
  background-size: 7px 7px, auto;
  opacity: 0.13;
}
.pat-grid .packet-face::before {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 13px, var(--paper-ink) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--paper-ink) 13px 14px);
  opacity: 0.11;
}
.pat-arc .packet-face::before {
  background:
    radial-gradient(circle at 50% 118%, transparent 0 34%, var(--paper-ink) 34.5% 35.5%, transparent 36% 48%, var(--paper-ink) 48.5% 49.5%, transparent 50%);
  opacity: 0.16;
}

.packet-print {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--paper-ink);
  padding: 11px 9px 9px;
  display: flex;
  flex-direction: column;
}
.p-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(6.5px, 0.62vw, 8.5px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(27, 33, 23, 0.55);
  padding-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-name {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(12px, 1.15vw, 20px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.shop[data-shop="hero"] .p-name {
  font-size: clamp(11px, 0.98vw, 17px);
}
.p-variant {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: clamp(6px, 0.55vw, 7.5px);
  line-height: 1.18;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.66;
  max-height: 2.4em;
  overflow: hidden;
}
.p-size {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(27, 33, 23, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 3px;
  font-family: var(--mono);
  font-size: clamp(6px, 0.55vw, 7.5px);
  letter-spacing: 0.02em;
}
.p-size span:last-child { opacity: 0.62; }

.sub-flag {
  position: absolute;
  left: 7px; top: -8px;
  z-index: 5;
  background: var(--ink);
  color: var(--chalk);
  border: 1px solid rgba(203, 164, 103, 0.5);
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.09em;
  padding: 2px 3px 1px;
  text-transform: uppercase;
}

.tag {
  position: absolute;
  right: -4%;
  top: 24%;
  width: 46%;
  min-width: 34px;
  z-index: 4;
  background: linear-gradient(180deg, #f6efdd, #e9dcc0);
  color: var(--paper-ink);
  border-top: 2px solid var(--money);
  padding: 5px 3px 4px;
  text-align: center;
  transform: rotate(3.5deg);
  transform-origin: 50% -16px;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.35);
}
.tag::before {
  content: "";
  position: absolute;
  left: 50%; top: -17px;
  width: 1px; height: 15px;
  background: rgba(203, 164, 103, 0.75);
}
.tag::after {
  content: "";
  position: absolute;
  left: 50%; top: 3px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(27, 33, 23, 0.55);
  transform: translateX(-50%);
}
.tag b {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(8px, 0.75vw, 11px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tag small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: clamp(5.5px, 0.48vw, 6.5px);
  line-height: 1;
  color: rgba(27, 33, 23, 0.58);
}

/* a recorded gap */
.slot.is-gap .recess,
.slot.is-unknown .recess {
  position: absolute;
  inset: 0 3% 0;
  background:
    radial-gradient(70% 65% at 50% 38%, #020805 0%, #07130c 55%, #0b1c13 100%);
  box-shadow:
    inset 0 12px 26px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(236, 227, 208, 0.045);
}
.hook {
  position: absolute;
  left: 50%; top: 13%;
  width: 11px; height: 9px;
  border: 1px solid rgba(203, 164, 103, 0.55);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  transform: translateX(-50%);
}
.hook::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  width: 1px; height: 7px;
  background: rgba(203, 164, 103, 0.4);
}
.ticket {
  position: absolute;
  left: 50%; top: calc(13% + 40px);
  width: 84%;
  max-width: 86px;
  transform: translateX(-50%) rotate(-2.2deg);
  background: linear-gradient(180deg, #f4ead3, #e6d8b8);
  color: var(--gap-ink);
  text-align: center;
  padding: 6px 4px 5px;
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.42);
  border-top: 2px solid var(--gap);
}
.thread {
  position: absolute;
  left: 50%; top: calc(13% + 9px);
  width: 1px; height: 32px;
  background: rgba(203, 164, 103, 0.33);
}
.ticket b {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(6px, 0.54vw, 7.5px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  padding-bottom: 3px;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(156, 47, 27, 0.35);
}
.ticket.is-ink {
  background: linear-gradient(180deg, #e9e3d2, #d5ceba);
}
.ticket.is-ink b {
  color: var(--paper-ink);
  border-bottom-color: rgba(27, 33, 23, 0.25);
}
.ticket.is-ink span { color: rgba(27, 33, 23, 0.65); }
.ticket span {
  display: block;
  font-family: var(--mono);
  font-size: clamp(5.8px, 0.5vw, 7px);
  line-height: 1.32;
  color: rgba(156, 47, 27, 0.92);
}

/* the fourth thing: no row at all */
.fog {
  position: absolute;
  inset: 0 3% 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(52deg, rgba(130, 150, 141, 0.15) 0 5px, transparent 5px 12px),
    linear-gradient(180deg, rgba(130, 150, 141, 0.16), rgba(130, 150, 141, 0.04));
  box-shadow: inset 0 0 0 1px rgba(130, 150, 141, 0.22);
  filter: blur(0.6px);
}
.fog b {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%) rotate(-2deg);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--unknown);
  white-space: nowrap;
  filter: blur(0.2px);
}

/* ── the tally under the hero shelf ──────────────────────── */
.hero-tally {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 30px;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(236, 227, 208, 0.12);
}
.tally-cell { display: flex; flex-direction: column; gap: 3px; }
.tally-label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.tally-value {
  font-family: var(--display);
  font-weight: 300;
  font-size: 39px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--money);
}
.tally-value.struck {
  color: var(--chalk-dim);
  position: relative;
  display: inline-block;
}
.tally-value.struck::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 1px;
  background: rgba(236, 227, 208, 0.55);
  transform: rotate(-1.5deg);
}
.tally-note {
  justify-self: end;
  align-self: end;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  text-align: right;
  max-width: 20ch;
}
.hero-caption {
  margin-top: 14px;
  max-width: 64ch;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.55;
  color: rgba(236, 227, 208, 0.4);
}
.hero-caption em { font-style: normal; color: rgba(236, 227, 208, 0.62); }

/* ── bridge ─────────────────────────────────────────────── */
.bridge {
  display: grid;
  grid-template-columns: 260px minmax(0, 580px) 1fr;
  gap: 44px;
  align-items: center;
  padding: 74px var(--edge);
  border-top: 1px solid rgba(236, 227, 208, 0.1);
  border-bottom: 1px solid rgba(236, 227, 208, 0.1);
  background:
    linear-gradient(90deg, rgba(227, 163, 63, 0.035), transparent 40%),
    var(--ink-2);
}
.bridge-figure {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(104px, 11vw, 158px);
  line-height: 0.72;
  letter-spacing: -0.055em;
  color: var(--chalk);
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.bridge-figure span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--chalk-faint);
  padding-bottom: 8px;
  max-width: 6ch;
}
.bridge-copy {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--chalk-dim);
  max-width: 42ch;
}
.bridge-copy::first-line { color: var(--chalk); }
.bridge-rule {
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-left: 1px solid rgba(236, 227, 208, 0.12);
}
.bridge-rule span {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

/* ── work ────────────────────────────────────────────────── */
.work {
  padding: 84px var(--edge) 100px;
  background:
    radial-gradient(90% 60% at 76% 22%, rgba(58, 92, 68, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #060e0a 100%);
}
.work-head {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 40px;
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--money);
  display: inline-block;
}
.work h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.86;
  letter-spacing: -0.042em;
}
.work-note {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--chalk-dim);
  border-left: 1px solid rgba(203, 164, 103, 0.4);
  padding-left: 15px;
  max-width: 46ch;
}
.work-note strong { color: var(--chalk); font-weight: 500; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  border: 1px solid rgba(236, 227, 208, 0.14);
  background: #07110b;
  box-shadow: 0 46px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(236, 227, 208, 0.06);
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(203, 164, 103, 0.55), transparent);
  z-index: 4;
}
.counter {
  min-width: 0;
  padding: 16px 20px 18px;
  border-right: 1px solid rgba(236, 227, 208, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* the budget wire */
.wire { position: relative; height: 126px; flex: 0 0 auto; --wy: 47.7%; }
.wire-svg-wrap { position: absolute; inset: 0; }
.wire-svg-wrap svg { width: 100%; height: 100%; overflow: visible; }
.wire-line {
  fill: none;
  stroke: var(--money);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(203, 164, 103, 0.45));
}
.wire-shadow {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
  transform: translateY(1.5px);
}
.wire-glint {
  fill: none;
  stroke: #f4e3bd;
  stroke-width: 0.7;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 8;
}
.wire-ends {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--chalk-faint);
  pointer-events: none;
}
.wire-hint {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: rgba(236, 227, 208, 0.34);
  white-space: nowrap;
  pointer-events: none;
}

.counterweight {
  position: absolute;
  top: 0; bottom: 0;
  width: 54px;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
  z-index: 6;
}
.counterweight:active { cursor: grabbing; }
.cw-flag {
  position: absolute;
  left: 50%;
  bottom: calc(100% - var(--wy) + 8px);
  transform: translateX(-50%);
  background: #06100a;
  border: 1px solid rgba(203, 164, 103, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  padding: 3px 7px 4px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.cw-flag span {
  display: block;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.cw-flag b {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.01em;
  color: var(--money);
  margin-top: 1px;
}
.cw-stem {
  position: absolute;
  left: 50%; top: calc(var(--wy) - 1px);
  width: 1px; height: 14px;
  background: rgba(203, 164, 103, 0.7);
  transform: translateX(-50%);
  pointer-events: none;
}
.cw-body {
  position: absolute;
  left: 50%; top: calc(var(--wy) + 11px);
  width: 18px; height: 25px;
  transform: translateX(-50%);
  background: linear-gradient(100deg, #7f6028 0%, #d9b878 38%, #a67f3e 70%, #6f5322 100%);
  border-radius: 1px 1px 3px 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 241, 205, 0.5);
  pointer-events: none;
}
.cw-body i {
  position: absolute;
  left: 50%; top: 6px;
  width: 7px; height: 3px;
  background: #0a140d;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 1px #000;
}
.counterweight:focus-visible { outline-offset: 4px; }

.total-marker {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  z-index: 5;
  transform: translateX(-50%);
  transition: left 0.65s cubic-bezier(0.3, 0.9, 0.2, 1);
  pointer-events: none;
}
.tm-bead {
  position: absolute;
  left: 50%; top: calc(var(--marker-y, 47.7%) - 4px);
  width: 9px; height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1d9a8, #b08a47 55%, #6d5020);
  box-shadow: 0 0 0 1px rgba(8, 18, 13, 0.8), 0 0 9px rgba(203, 164, 103, 0.4);
}
.tm-stem {
  position: absolute;
  left: 50%; top: calc(var(--marker-y, 47.7%) + 4px);
  width: 1px; height: 11px;
  background: rgba(203, 164, 103, 0.45);
}
.tm-flag {
  position: absolute;
  left: 50%; top: calc(var(--marker-y, 47.7%) + 14px);
  transform: translateX(-50%);
  background: #06100a;
  border: 1px solid rgba(203, 164, 103, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  padding: 3px 7px 4px;
  white-space: nowrap;
  text-align: center;
}
.tm-flag span {
  display: block;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.tm-flag b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9px;
  color: var(--chalk);
  margin-top: 1px;
}
.over-tag {
  position: absolute;
  left: 50%; top: 64%;
  transform: translate(48px, -50%) rotate(-2.6deg);
  background: #06100a;
  border: 1px solid rgba(224, 81, 47, 0.55);
  color: var(--gap);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}
.over-tag.is-on { opacity: 1; }

/* a packet lifted off the shelf and carried to the tray */
.packet-flying {
  position: fixed !important;
  z-index: 60;
  pointer-events: none;
  transform-origin: 50% 80%;
}

/* stage shelf */
.shelf-stage .row { height: 236px; }
.shelf-stage .packet { max-width: 128px; }

/* the change gate · a notched brass rack and a sprung pawl */
.gate { flex: 0 0 auto; }
.gate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}
.gate-title {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.gate-read {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  text-align: right;
}
.gate-rig {
  position: relative;
  height: 56px;
  margin-top: 20px;
}
.gate-rack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 0 rgba(255, 242, 214, 0.22));
}
.rack-fill {
  fill: #fdf1d2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rack-fill.is-on { opacity: 0.95; filter: drop-shadow(0 0 5px rgba(253, 241, 210, 0.55)); }
.gate-hits {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.notch {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.28s ease;
}
.notch:hover {
  background: linear-gradient(180deg, rgba(203, 164, 103, 0.14), rgba(203, 164, 103, 0.02) 58%, transparent 80%);
}
.notch:focus-visible { outline: 2px solid var(--chalk); outline-offset: -2px; }
.notch-num {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: rgba(255, 243, 214, 0.55);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}
.notch[aria-pressed="true"] .notch-num {
  color: #fff8e8;
  text-shadow: 0 0 7px rgba(255, 240, 200, 0.7), 0 1px 0 rgba(0, 0, 0, 0.5);
}
.notch-any .notch-num { font-size: 6px; letter-spacing: 0.1em; text-transform: uppercase; }
.gate-pawl {
  position: absolute;
  top: -12px; left: 50%;
  width: 2px; height: 36px;
  transform: translateX(-50%);
  transform-origin: 50% 4px;
  transition: left 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  z-index: 3;
}
.gate-pawl.is-seat { animation: pawl-seat 0.46s cubic-bezier(0.3, 1.5, 0.5, 1); }
.pawl-pin {
  position: absolute;
  left: 50%; top: 0;
  width: 9px; height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2dab0, #b58d49 58%, #6f5322);
  box-shadow: 0 0 0 1px rgba(8, 18, 13, 0.9), 0 2px 4px rgba(0, 0, 0, 0.5);
}
.pawl-arm {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 19px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, #f2dab0, #b58d49 62%, #6f5322);
  box-shadow: 0 0 0 1px rgba(8, 18, 13, 0.55);
}
.pawl-tip {
  position: absolute;
  left: 50%; top: 25px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #d5b477;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 4px rgba(203, 164, 103, 0.45));
}
.gate-hint {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  color: rgba(236, 227, 208, 0.32);
}
@keyframes pawl-seat {
  0% { transform: translateX(-50%) rotate(-12deg); }
  55% { transform: translateX(-50%) rotate(2.5deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* changes tray */
.tray { flex: 0 0 auto; min-width: 0; }
.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 5px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.tray-count { color: var(--chalk-dim); letter-spacing: 0.05em; text-transform: none; }
.tray-tags {
  display: flex;
  gap: 7px;
  min-height: 55px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 164, 103, 0.35) transparent;
}
.tray-tags::-webkit-scrollbar { height: 3px; }
.tray-tags::-webkit-scrollbar-thumb { background: rgba(203, 164, 103, 0.35); }
.tray-tag {
  flex: 1 1 0;
  min-width: 118px;
  max-width: 200px;
  position: relative;
  background: linear-gradient(180deg, #efe4ca, #ddcfaf);
  color: var(--paper-ink);
  padding: 6px 8px 5px;
  transform: rotate(var(--r, -0.6deg));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}
.tray-tag::before {
  content: "";
  position: absolute;
  left: 5px; top: 5px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
}
.tt-old {
  display: block;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 33, 23, 0.55);
  margin-left: 7px;
}
.tt-name {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  line-height: 1.12;
  margin-top: 1px;
  max-width: 84%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-money {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
}
.tt-money b { font-size: 10px; font-weight: 600; }
.tt-money i { font-style: normal; color: var(--money-deep); }
.tt-stamp {
  position: absolute;
  right: 5px; top: 5px;
  border: 1px solid currentColor;
  padding: 1px 2px;
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(6deg);
  color: var(--gap-ink);
  opacity: 0.85;
}
.tray-tag.was-present .tt-stamp { color: rgba(27, 33, 23, 0.6); }
.tray-empty {
  align-self: center;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: rgba(236, 227, 208, 0.25);
  border: 1px dashed rgba(236, 227, 208, 0.14);
  padding: 14px 16px;
  width: 100%;
  text-align: center;
}

/* date strip */
.datestrip { flex: 0 0 auto; min-width: 0; }
.date-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  padding-bottom: 4px;
}
.date-head i { flex: 1; height: 1px; background: rgba(236, 227, 208, 0.1); }
.date-head b {
  font-weight: 500;
  color: var(--money);
  letter-spacing: 0.05em;
  text-transform: none;
}
.date-track {
  position: relative;
  height: 32px;
  cursor: pointer;
  outline-offset: 4px;
}
.date-marks {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.date-mark {
  flex: 1 1 0;
  min-width: 0;
  height: 15px;
  background: rgba(236, 227, 208, 0.17);
  position: relative;
  transition: background 0.25s ease, height 0.25s ease;
}
.date-mark.has-gap { background: rgba(236, 227, 208, 0.28); }
.date-mark.has-gap::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -4px;
  height: 2px;
  background: var(--gap);
}
.date-mark.has-unseen::before { background: var(--unknown); }
.date-mark.is-current { background: var(--chalk); height: 22px; }
.date-mark.is-current::before { background: var(--gap); }
.date-mark:hover { background: var(--money); }
.date-tab {
  position: absolute;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 4px;
  white-space: nowrap;
  transition: left 0.32s cubic-bezier(0.3, 0.9, 0.2, 1);
  pointer-events: none;
}
.date-tab::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: 6px;
  background: var(--paper);
}

/* ── side: till + receipt ────────────────────────────────── */
.side {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #0c1912, #07100b);
}
.till {
  border: 1px solid rgba(203, 164, 103, 0.32);
  background: linear-gradient(180deg, #112318, #0a1610);
  padding: 12px 14px 11px;
  position: relative;
}
.till::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #7f6028, #e7cd98, #8a6a32);
}
.till-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.till-head span:last-child { letter-spacing: 0.06em; text-transform: none; }
.till-total {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
  height: 58px;
}
.till-currency {
  font-family: var(--display);
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: var(--money);
  margin-top: 5px;
}
.reels { display: flex; height: 58px; overflow: hidden; }
.reel {
  width: 0.64em;
  height: 1em;
  overflow: hidden;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 54px;
  line-height: 1;
  color: var(--money);
  position: relative;
}
.reel::before, .reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  z-index: 2;
  pointer-events: none;
}
.reel::before { top: 0; background: linear-gradient(180deg, #0f2015, transparent); }
.reel::after { bottom: 0; background: linear-gradient(0deg, #0a1610, transparent); }
.reel-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.44s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}
.reel-track span { display: block; height: 1em; line-height: 1; text-align: center; }
.reel.is-leading .reel-track { opacity: 0.3; }

/* the instant the basket is re-priced: a brass flash on the three places the
   figure is printed, so the eye catches the change without a false count */
@keyframes reprice-flash {
  0%   { filter: brightness(1); }
  16%  { filter: brightness(1.7) saturate(1.15); }
  100% { filter: brightness(1); }
}
.till.is-repriced,
.total-marker.is-repriced,
.receipt-total.is-repriced {
  animation: reprice-flash 0.52s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.till-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--chalk);
  min-height: 16px;
}
.status-mark {
  width: 5px; height: 5px;
  background: var(--chalk-faint);
  flex: 0 0 auto;
}
.till-status.is-ok { color: var(--ok); }
.till-status.is-ok .status-mark { background: var(--ok); box-shadow: 0 0 7px rgba(118, 173, 132, 0.5); }
.till-status.is-over .status-mark { background: var(--money); }
.till-status.is-incomplete { color: var(--chalk-dim); }
.till-sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: rgba(236, 227, 208, 0.3);
}

.receipt-wrap { flex: 1; min-height: 0; display: flex; }
.receipt {
  flex: 1;
  background:
    linear-gradient(174deg, #f4ebd7 0%, var(--paper) 50%, #e2d4b4 100%);
  color: var(--paper-ink);
  padding: 14px 14px 15px;
  position: relative;
  transform: rotate(-0.35deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 6px;
  background:
    linear-gradient(135deg, var(--paper) 33.33%, transparent 33.33%) 0 0 / 11px 6px repeat-x,
    linear-gradient(225deg, var(--paper) 33.33%, transparent 33.33%) 0 0 / 11px 6px repeat-x;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid rgba(27, 33, 23, 0.65);
  padding-bottom: 5px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.receipt-store { font-weight: 600; letter-spacing: 0.1em; }
.receipt-meta { color: rgba(27, 33, 23, 0.55); }
.receipt-cols {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 33, 23, 0.5);
}
.receipt-lines { margin-top: 2px; flex: 1; min-height: 0; }
.rline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 4px 0 3px;
  border-bottom: 1px dotted rgba(27, 33, 23, 0.22);
  position: relative;
}
.rline-main { min-width: 0; }
.rline-label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(27, 33, 23, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rline-label i {
  font-style: normal;
  font-size: 5.5px;
  padding: 0 2px;
  border: 1px solid rgba(27, 33, 23, 0.3);
  color: rgba(27, 33, 23, 0.55);
  letter-spacing: 0.04em;
}
.rline-name {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rline-from {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.3;
  color: rgba(27, 33, 23, 0.5);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rline-old {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(27, 33, 23, 0.5);
  margin-top: 1px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.rline-old s { text-decoration: line-through; }
.rline-money {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.rline-money b { font-size: 10.5px; font-weight: 600; display: block; }
.rline-money span {
  display: block;
  font-size: 7px;
  color: var(--money-deep);
  margin-top: 1px;
}
.rline.is-missing .rline-name {
  color: rgba(27, 33, 23, 0.45);
  font-weight: 400;
  font-style: italic;
}
.rline.is-missing .rline-money b { font-weight: 400; color: rgba(27, 33, 23, 0.4); }
.rline.is-pivot {
  margin: 0 -5px;
  padding-left: 5px;
  padding-right: 5px;
  background: rgba(203, 164, 103, 0.16);
  box-shadow: inset 2px 0 0 var(--money);
}
.rline.just-printed { animation: print-line 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid rgba(27, 33, 23, 0.8);
  margin-top: 5px;
  padding-top: 4px;
}
.receipt-total span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.receipt-total b {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.receipt-foot {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(27, 33, 23, 0.3);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.5;
  color: rgba(27, 33, 23, 0.55);
}
.receipt-next {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.4;
  color: var(--money-deep);
}
.receipt-next[hidden] { display: none; }

/* ── method ─────────────────────────────────────────────── */
.method {
  padding: 78px var(--edge) 70px;
  background: var(--ink-2);
  border-top: 1px solid rgba(236, 227, 208, 0.1);
}
.method-lead { display: flex; align-items: baseline; gap: 28px; }
.method h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 60px;
  margin-top: 30px;
  align-items: start;
}
.method-copy {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--chalk-dim);
}
.method-copy em { font-style: normal; color: var(--chalk); }
.method-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(236, 227, 208, 0.12);
  border: 1px solid rgba(236, 227, 208, 0.12);
}
.method-facts div {
  background: var(--ink-2);
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.method-facts dt {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.method-facts dd {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--chalk);
  letter-spacing: -0.02em;
}
.method-limits {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 227, 208, 0.1);
  max-width: 80ch;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.65;
  color: var(--chalk-faint);
}
.foot {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px var(--edge) 26px;
  background: var(--ink-2);
  border-top: 1px solid rgba(236, 227, 208, 0.08);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.foot span:nth-child(2) { margin-left: auto; }
.foot a { color: var(--chalk-dim); }
.foot a:hover { color: var(--money); }

.nojs {
  grid-column: 1 / -1;
  margin-top: 30px;
  border: 1px solid rgba(236, 227, 208, 0.25);
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--chalk-dim);
  max-width: 70ch;
}

/* ── entrance choreography ──────────────────────────────── */
@keyframes tube-strike {
  0%, 6% { opacity: 0; }
  7%, 9% { opacity: 1; }
  10%, 12% { opacity: 0.18; }
  13%, 15% { opacity: 1; }
  16% { opacity: 0.45; }
  17%, 100% { opacity: 1; }
}
@keyframes light-breathe {
  from { opacity: 0.42; }
  to { opacity: 0.62; }
}
@keyframes draw-wire {
  to { stroke-dashoffset: 0; }
}
@keyframes title-in {
  from { clip-path: inset(0 0 102% 0); transform: translateY(14px); }
  to { clip-path: inset(0 0 -8% 0); transform: translateY(0); }
}
@keyframes copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes packet-drop {
  0% { opacity: 0; transform: translateY(-38px) rotate(-1.6deg); }
  58% { opacity: 1; transform: translateY(5px) rotate(0.4deg); }
  78% { transform: translateY(-2px) rotate(-0.15deg); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
}
@keyframes sub-in {
  0% { opacity: 0; transform: translateX(46px) rotate(2deg); }
  70% { opacity: 1; transform: translateX(-3px) rotate(-0.3deg); }
  100% { opacity: 1; transform: translateX(0) rotate(var(--r, 0deg)); }
}
@keyframes tag-swing {
  0% { transform: rotate(9deg); opacity: 0; }
  22% { opacity: 1; }
  48% { transform: rotate(-4.5deg); }
  70% { transform: rotate(2.2deg); }
  86% { transform: rotate(-0.8deg); }
  100% { transform: rotate(3.5deg); }
}
@keyframes ticket-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes tray-drop {
  from { opacity: 0; transform: translateY(-12px) rotate(-3deg); }
  to { opacity: 1; transform: translateY(0) rotate(var(--r, -0.6deg)); }
}
@keyframes print-line {
  from { clip-path: inset(0 100% 0 0); opacity: 0.3; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
.h1-the, .h1-empty, .h1-slot {
  animation: title-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.h1-the { animation-delay: 0.04s; }
.h1-empty { animation-delay: 0.14s; }
.h1-slot { animation-delay: 0.24s; }
.eyebrow, .dek, .provenance, .aisle-cue {
  animation: copy-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.eyebrow { animation-delay: 0.3s; }
.dek { animation-delay: 0.4s; }
.provenance { animation-delay: 0.5s; }
.aisle-cue { animation-delay: 0.6s; }
.packet.is-new {
  animation: packet-drop 0.78s cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
  animation-delay: var(--drop-delay, 220ms);
}
.packet.is-sub.is-new {
  animation-name: sub-in;
  animation-duration: 0.62s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
}
.packet.is-new .tag {
  animation: tag-swing 1.25s cubic-bezier(0.3, 0.7, 0.3, 1) both;
  animation-delay: var(--swing-delay, 0.8s);
}
.slot.is-new .ticket {
  animation: ticket-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: var(--ticket-delay, 0.2s);
}
.tray-tag.is-new {
  animation: tray-drop 0.55s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}
.slot.is-new .packet { animation-fill-mode: both; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --edge: 28px; }
  .topbar-mid { display: none; }
  .hero { grid-template-columns: minmax(380px, 50%) minmax(0, 1fr); }
  .work-head { grid-template-columns: 1fr 310px; }
  .stage { grid-template-columns: minmax(0, 1fr) 344px; }
  .work-note { font-size: 11.5px; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 100px;
  }
  .hero-copy { max-width: 620px; }
  .shop { min-height: 0; margin-top: 8px; }
  .shop-ceiling { height: 150px; }
  .shelf-unit { --row-h: 224px; }
  .bridge { grid-template-columns: 190px minmax(0, 1fr); }
  .bridge-rule { display: none; }
  .bridge-figure { font-size: 108px; }
  .bridge-copy { font-size: 19px; }
  .work-head { grid-template-columns: 1fr; gap: 14px; }
  .work-note { max-width: 62ch; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .counter { border-right: 0; border-bottom: 1px solid rgba(236, 227, 208, 0.12); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .till { flex: 0 0 300px; }
  .receipt-wrap { flex: 1 1 340px; }
  .method-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  :root { --edge: 20px; --slot-gap: 5px; }
  .topbar { height: 54px; padding: 0 var(--edge); gap: 10px; }
  .brand-word { font-size: 22px; }
  .brand-sub { font-size: 7px; letter-spacing: 0.12em; }
  .direction-tag { margin-left: auto; font-size: 6.5px; padding: 4px 5px 3px; }

  .hero {
    min-height: 100svh;
    padding: 52px var(--edge) 10px;
    gap: 4px;
    overflow: hidden;
  }
  .hero::before { display: none; }
  .hero-copy { justify-content: flex-start; }
  .eyebrow { font-size: 8px; letter-spacing: 0.14em; }
  .h1-the { font-size: 24px; margin-top: 18px; }
  h1 { margin-top: 12px; }
  .h1-empty { font-size: clamp(78px, 21.5vw, 108px); }
  .h1-slot { font-size: clamp(84px, 23vw, 116px); }
  .dek { margin-top: 14px; font-size: 14.5px; line-height: 1.52; max-width: 42ch; }
  .provenance { margin-top: 15px; font-size: 7px; gap: 7px; }
  .provenance i { width: 10px; }
  .aisle-cue { margin-top: 12px; font-size: 7.5px; }
  .cue-line { width: 30px; }

  .shop { margin-top: 2px; min-height: 0; }
  .shop-ceiling { height: 44px; }
  .shop-ceiling::after { left: 5%; right: 5%; }
  .tube { left: 6%; right: 6%; top: 12px; }
  .wire-static { top: 29px; height: 18px; }
  .chalk-date { top: 0; }
  .chalk-date b { font-size: 18px; }
  .chalk-date span { font-size: 6.5px; }
  .hero .shelf { --row-h: 128px; }
  .tier-b { display: block; }
  .tier:not(.tier-b) .slot:nth-child(n+5) { display: none; }
  .tier-b .slot:nth-child(-n+4) { display: none; }
  .hero .tier-b .row { padding-top: 8px; height: calc(var(--row-h) + 8px); }
  .packet { width: calc(100% - 3px); }
  .packet-print { padding: 7px 6px 6px; }
  .p-brand { font-size: 5.4px; padding-bottom: 2px; }
  .p-name { font-size: 11px; }
  .p-variant { display: none; }
  .p-size { font-size: 5px; padding-top: 2px; margin-top: 2px; }
  .tag { width: 52%; min-width: 27px; padding: 3px 2px 2px; border-top-width: 1.5px; }
  .tag b { font-size: 7.5px; }
  .tag small { display: none; }
  .tag::before { top: -11px; height: 9px; }
  .tag::after { width: 2px; height: 2px; top: 2px; }
  .hook { top: 10%; width: 8px; height: 7px; }
  .thread { top: calc(10% + 7px); height: 18px; }
  .ticket { top: calc(10% + 24px); max-width: 55px; padding: 4px 3px 3px; }
  .ticket b { font-size: 4.6px; }
  .ticket.is-ink {
  background: linear-gradient(180deg, #e9e3d2, #d5ceba);
}
.ticket.is-ink b {
  color: var(--paper-ink);
  border-bottom-color: rgba(27, 33, 23, 0.25);
}
.ticket.is-ink span { color: rgba(27, 33, 23, 0.65); }
.ticket span { font-size: 4.2px; }
  .sub-flag { font-size: 4.4px; left: 4px; top: -6px; padding: 1px 2px; }

  .hero-tally { grid-template-columns: auto auto; gap: 18px; margin-top: 8px; padding-top: 7px; }
  .tally-value { font-size: 24px; }
  .tally-note { grid-column: 1 / -1; justify-self: start; text-align: left; max-width: none; font-size: 6.5px; }
  .hero-caption { display: none; }

  .bridge { grid-template-columns: 1fr; gap: 16px; padding: 44px var(--edge); }
  .bridge-figure { font-size: 92px; }
  .bridge-figure span { font-size: 7px; }
  .bridge-copy { font-size: 16px; line-height: 1.5; }

  .work { padding: 48px var(--edge) 56px; }
  .work h2 { font-size: 46px; }
  .work-note { font-size: 11px; padding-left: 11px; }
  .stage { border-left: 0; border-right: 0; }
  .counter { padding: 12px 12px 12px; gap: 8px; }

  .wire { height: 126px; }
  .cw-flag { padding: 2px 5px 3px; }
  .cw-flag span { font-size: 5px; }
  .cw-flag b { font-size: 8.5px; }
  .cw-body { width: 14px; height: 20px; }
  .cw-stem { height: 11px; }
  .tm-flag { padding: 1px 4px 2px; }
  .tm-flag b { font-size: 7.5px; }
  .tm-flag span { font-size: 4.6px; }
  .tm-bead { width: 7px; height: 7px; }
  .tm-stem { height: 8px; }
  .over-tag { font-size: 5.6px; padding: 2px 4px; }
  .wire-hint { font-size: 5.2px; }
  .wire-ends { font-size: 6px; }

  .shelf-stage .row { height: 146px; padding: 0 2px; }
  .shelf-stage .tier-b .row { height: 164px; padding-top: 18px; }
  .shelf-stage .packet { max-width: 88px; }
  .shelf-stage .p-brand { font-size: 5px; }
  .shelf-stage .p-name { font-size: 9.5px; }
  .shelf-stage .p-size { font-size: 4.6px; }
  .shelf-stage .tag b { font-size: 7px; }
  .shelf-stage .ticket { max-width: 52px; }
  .beam { height: 10px; }

  .gate-head { padding-bottom: 2px; }
  .gate-title, .gate-read { font-size: 6.3px; letter-spacing: 0.08em; }
  .gate-rig { height: 46px; margin-top: 18px; }
  .notch-num { font-size: 7px; }
  .notch-any .notch-num { font-size: 5.2px; }
  .pawl-pin { width: 8px; height: 8px; }
  .pawl-arm { height: 17px; }
  .gate-hint { font-size: 5.4px; }

  .tray-head { font-size: 6.2px; padding-bottom: 4px; }
  .tray-tags { min-height: 50px; gap: 5px; }
  .tray-tag { min-width: 104px; padding: 5px 6px 4px; }
  .tt-name { font-size: 8px; }
  .tt-old { font-size: 4.6px; }
  .tt-money { font-size: 6px; }
  .tt-money b { font-size: 8px; }
  .tt-stamp { font-size: 4px; }

  .date-head { font-size: 5.4px; gap: 5px; }
  .date-track { height: 27px; }
  .date-tab { font-size: 5.5px; bottom: 20px; padding: 1px 3px; }
  .date-marks { height: 22px; gap: 1px; }
  .date-mark { height: 12px; }
  .date-mark.is-current { height: 18px; }

  .side { flex-direction: column; padding: 12px; gap: 12px; }
  .till { flex: none; }
  .receipt-wrap { flex: none; }
  .receipt { transform: none; }
  .till-total { height: 48px; }
  .reels { height: 48px; }
  .reel { font-size: 44px; }
  .till-currency { font-size: 28px; margin-top: 4px; }
  .till-head { font-size: 6px; }
  .till-status { font-size: 7.5px; }
  .till-sub { font-size: 5.8px; }
  .receipt { padding: 12px 11px 13px; }
  .rline { padding: 3.5px 0; }
  .rline-name { font-size: 9px; }
  .rline-label { font-size: 5px; }
  .rline-money b { font-size: 9px; }
  .receipt-total b { font-size: 16px; }
  .receipt-foot { font-size: 5px; }
  .receipt-cols { font-size: 5px; }

  .method { padding: 46px var(--edge) 40px; }
  .method-lead { flex-direction: column; gap: 8px; }
  .method h2 { font-size: 32px; }
  .method-grid { margin-top: 18px; gap: 18px; }
  .method-copy { font-size: 12px; }
  .method-facts { grid-template-columns: repeat(2, 1fr); }
  .method-facts dd { font-size: 14px; }
  .method-limits { font-size: 6.8px; }
  .foot { padding: 16px var(--edge); font-size: 6.2px; gap: 8px; flex-wrap: wrap; }
  .foot span:nth-child(2) { margin-left: 0; }
  .foot a { margin-left: auto; }
}

@media (max-width: 380px) {
  :root { --edge: 14px; }
  .brand-sub { display: none; }
  .dek { font-size: 13.5px; }
  .hero { padding-top: 62px; }
  .gate-title { display: none; }
  .gate-read { font-size: 6px; }
  .tray-tag { min-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tube { opacity: 1; }
  .shop-ceiling::after { opacity: 0.55; }
  .wire-static path { stroke-dashoffset: 0; }
  .h1-the, .h1-empty, .h1-slot { clip-path: none; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   SCENE 2 · the tape of sixty-three days
   ───────────────────────────────────────────────────────────── */
.tape-scene {
  padding: 86px var(--edge) 84px;
  border-top: 1px solid rgba(236, 227, 208, 0.1);
  background:
    radial-gradient(70% 58% at 16% 6%, rgba(58, 92, 68, 0.16), transparent 62%),
    var(--ink-2);
}
.tape-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 44px;
  align-items: end;
  margin-bottom: 26px;
}
.tape-head h2,
.specimen-copy h2,
.reveal h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.tape-lede {
  font-size: 13px;
  line-height: 1.66;
  color: var(--chalk-dim);
  border-left: 1px solid rgba(203, 164, 103, 0.4);
  padding-left: 15px;
  max-width: 48ch;
}
.tape-lede strong { color: var(--chalk); font-weight: 500; }

.tape-figure {
  position: relative;
  margin: 0;
  padding: 14px 16px 10px;
  border: 1px solid rgba(236, 227, 208, 0.14);
  background: #07110b;
  box-shadow: 0 36px 74px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(236, 227, 208, 0.06);
}
.tape-figure::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(203, 164, 103, 0.5), transparent);
}
.tape-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { display: inline-block; width: 18px; height: 1px; background: var(--money); }
.lg-nick i { width: 2px; height: 9px; background: var(--gap); }
.lg-fog i { width: 14px; height: 9px; background: rgba(130, 150, 141, 0.42); filter: blur(1px); }

.tape-board {
  position: relative;
  margin-top: 5px;
  cursor: ew-resize;
  touch-action: pan-y;
}
.tape-board svg { width: 100%; height: clamp(236px, 26vw, 360px); }
.tape-grid-line { stroke: rgba(236, 227, 208, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tape-grid-label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  fill: rgba(236, 227, 208, 0.42);
}
.tape-rule {
  stroke: rgba(224, 81, 47, 0.55);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}
.tape-fog-tag {
  position: absolute;
  left: 0; top: 19px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--unknown);
  background: rgba(6, 16, 10, 0.85);
  border: 1px solid rgba(130, 150, 141, 0.45);
  padding: 2px 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease 1.1s;
}
.tape-figure.is-drawn .tape-fog-tag { opacity: 1; }
.tape-rule-tag {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  padding: 1px 4px 2px;
  background: #07110b;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gap);
  pointer-events: none;
  white-space: nowrap;
}
.tape-path {
  fill: none;
  stroke: var(--money);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(203, 164, 103, 0.28));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, opacity 0.4s ease 0.15s;
}
.tape-dot {
  fill: rgba(236, 227, 208, 0.34);
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}
.tape-dot.is-on { fill: var(--money); }
.tape-nick {
  stroke: var(--gap);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: top;
  transition: transform 0.32s cubic-bezier(0.2, 1.4, 0.5, 1);
  transition-delay: calc(0.4s + var(--i) * 7ms);
}
.tape-fog-mark {
  fill: url(#fogBand);
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}
.tape-readhead { opacity: 0; transition: opacity 0.45s ease 1.2s; }
.tape-readhead .trh-stem {
  stroke: rgba(236, 227, 208, 0.42);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}
.tape-readhead .trh-bead { fill: var(--money); stroke: #07110b; stroke-width: 2; }
.tape-readhead.is-unseen .trh-stem { stroke: rgba(130, 150, 141, 0.8); }
.tape-figure.is-drawn .tape-path { stroke-dashoffset: 0; opacity: 1; }
.tape-figure.is-drawn .tape-dot { opacity: 1; }
.tape-figure.is-drawn .tape-nick { transform: scaleY(1); }
.tape-figure.is-drawn .tape-fog-mark { opacity: 1; }
.tape-figure.is-drawn .tape-readhead { opacity: 1; }

.tape-read {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--chalk-dim);
  min-height: 12px;
}
.tape-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 6.2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.tape-rail {
  position: relative;
  height: 32px;
  margin-top: 12px;
  border-top: 1px solid rgba(236, 227, 208, 0.14);
  cursor: ew-resize;
  touch-action: none;
}
.tape-ticks {
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(63, 1fr);
  gap: 1px;
  pointer-events: none;
}
.tape-tick { height: 5px; background: rgba(236, 227, 208, 0.14); }
.tape-tick.has-gap { background: rgba(236, 227, 208, 0.34); }
.tape-tick.has-unseen { background: rgba(130, 150, 141, 0.7); }
.tape-tab {
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  padding: 1px 4px 2px;
  background: var(--money);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.tape-note {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(236, 227, 208, 0.11);
  max-width: 96ch;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
  color: var(--chalk-faint);
}

/* ─────────────────────────────────────────────────────────────
   SCENE 3 · the four things a line can be
   ───────────────────────────────────────────────────────────── */
.specimen {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 52px;
  padding: 90px var(--edge) 88px;
  border-top: 1px solid rgba(236, 227, 208, 0.1);
  background:
    radial-gradient(60% 50% at 88% 10%, rgba(203, 164, 103, 0.07), transparent 60%),
    var(--ink);
}
.specimen-copy p {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.68;
  color: var(--chalk-dim);
}
.specimen-copy p + p { margin-top: 12px; }
.specimen-copy em { font-style: normal; color: var(--chalk); }
.specimen-board {
  position: relative;
  padding: 16px 17px 14px;
  border: 1px solid rgba(236, 227, 208, 0.14);
  background: #07110b;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(236, 227, 208, 0.05);
}
.specimen-board::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(203, 164, 103, 0.45), transparent);
}
.specimen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(236, 227, 208, 0.16);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.spec-key { text-transform: none; letter-spacing: 0.02em; color: var(--chalk-dim); text-align: right; }
.specimen-record {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: rgba(236, 227, 208, 0.12);
  border: 1px solid rgba(236, 227, 208, 0.12);
}
.rec-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px 10px;
  background: #07110b;
}
.rec-cell .rec-k {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.rec-cell .rec-v {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.rec-cell .rec-v.is-oos { color: var(--gap); }
.rec-cell .rec-v.is-unseen { color: var(--unknown); }
.state-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.state-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 158px;
  padding: 11px 11px 10px;
  border: 1px solid rgba(236, 227, 208, 0.16);
  background: linear-gradient(180deg, rgba(23, 51, 39, 0.32), rgba(5, 13, 8, 0.42));
  overflow: hidden;
}
.state-card.is-instock { border-color: rgba(118, 173, 132, 0.3); }
.state-card.is-oos { border-color: rgba(224, 81, 47, 0.36); background: linear-gradient(180deg, rgba(64, 26, 17, 0.32), rgba(5, 13, 8, 0.45)); }
.state-card.is-unlisted { border-style: dashed; border-color: rgba(236, 227, 208, 0.2); }
.state-card.is-unseen { border-color: rgba(130, 150, 141, 0.3); }
.sc-stamp {
  align-self: flex-start;
  padding: 2px 5px 3px;
  border: 1px solid currentColor;
  transform: rotate(-1.6deg);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.is-instock .sc-stamp { color: var(--ok); }
.is-oos .sc-stamp { color: var(--gap); }
.is-unlisted .sc-stamp { color: var(--chalk-faint); }
.is-unseen .sc-stamp { color: var(--unknown); filter: blur(0.3px); }
.sc-item {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 14.5px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.sc-meta {
  font-family: var(--mono);
  font-size: 5.9px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--chalk-faint);
}
.sc-price {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--money);
}
.sc-price small {
  display: block;
  margin-top: 1px;
  font-size: 5.4px;
  letter-spacing: 0.05em;
  color: var(--chalk-faint);
}
.sc-price.is-oos { color: var(--gap); }
.sc-price.is-none { color: var(--chalk-faint); }
.sc-note {
  font-family: var(--mono);
  font-size: 5.7px;
  line-height: 1.5;
  color: var(--chalk-dim);
}
.sc-fog {
  position: absolute;
  left: -14px; right: -14px; bottom: -20px;
  height: 64%;
  background: radial-gradient(ellipse at 50% 70%, rgba(130, 150, 141, 0.3), rgba(130, 150, 141, 0.04) 66%, transparent 78%);
  filter: blur(10px);
  pointer-events: none;
  animation: fog-seep 9s ease-in-out infinite alternate;
}
@keyframes fog-seep {
  from { opacity: 0.55; transform: translateY(2px) scale(1); }
  to { opacity: 0.95; transform: translateY(-2px) scale(1.05); }
}
.specimen-foot {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 6.4px;
  line-height: 1.55;
  color: var(--chalk-faint);
}

/* ─────────────────────────────────────────────────────────────
   SCENE 5 · the printed receipt and the fourth change
   ───────────────────────────────────────────────────────────── */
.reveal {
  padding: 92px var(--edge) 94px;
  border-top: 1px solid rgba(236, 227, 208, 0.1);
  background:
    radial-gradient(56% 54% at 82% 16%, rgba(203, 164, 103, 0.09), transparent 62%),
    var(--ink);
}
.reveal-copy { max-width: 800px; }
.reveal-copy p {
  margin-top: 16px;
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--chalk-dim);
}
.reveal-copy p strong { color: var(--chalk); font-weight: 500; }
.reveal-sentence {
  margin-top: 24px !important;
  max-width: 36ch !important;
  padding-left: 17px;
  border-left: 2px solid var(--money);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(19px, 1.9vw, 25px) !important;
  line-height: 1.4 !important;
  color: var(--chalk) !important;
}
.reveal-stage {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  margin-top: 42px;
}
.reveal-receipt {
  position: relative;
  padding: 17px 19px 52px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.55deg);
}
.reveal-receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(27, 33, 23, 0.025) 3px 4px);
}
.rr-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(27, 33, 23, 0.72);
  font-family: var(--mono);
  font-size: 6.6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rr-head span:last-child { color: rgba(27, 33, 23, 0.62); }
.rr-cols {
  display: flex;
  justify-content: space-between;
  padding: 7px 0 3px;
  border-bottom: 1px solid rgba(27, 33, 23, 0.3);
  font-family: var(--mono);
  font-size: 5.6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 33, 23, 0.58);
}
.rr-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0 8px;
  border-bottom: 1px dotted rgba(27, 33, 23, 0.3);
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}
.reveal-stage.is-printed .rr-line {
  animation: rr-print 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(180ms + var(--i) * 150ms);
}
@keyframes rr-print {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-4px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}
.rr-what b {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.rr-what span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 6.1px;
  line-height: 1.5;
  color: rgba(27, 33, 23, 0.62);
}
.rr-save {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gap-ink);
  text-align: right;
}
.rr-save small {
  display: block;
  margin-top: 1px;
  font-size: 5.4px;
  letter-spacing: 0.04em;
  color: rgba(27, 33, 23, 0.58);
}
.rr-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 2px solid rgba(27, 33, 23, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rr-total b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.03em;
  text-transform: none;
}
.rr-next {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 6.4px;
  line-height: 1.5;
  color: var(--money-deep);
}
.rr-stamp {
  position: absolute;
  right: 15px; bottom: 11px;
  transform: rotate(-5deg) scale(1.35);
  opacity: 0;
}
.reveal-stage.is-printed .rr-stamp {
  animation: stamp-thud 0.34s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: 1.05s;
}
@keyframes stamp-thud {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.5); }
  70% { opacity: 1; transform: rotate(-4deg) scale(0.96); }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}
.rr-stamp b {
  display: block;
  padding: 2px 6px 3px;
  border: 2px solid var(--gap-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gap-ink);
}
.rr-stamp span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  color: var(--gap-ink);
  text-align: center;
}
.reveal-figure { display: flex; flex-direction: column; gap: 4px; }
.rf-value {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--money);
}
.rf-label {
  max-width: 24ch;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}
.reveal-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(236, 227, 208, 0.1);
}
.rb-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
}
.rb-track {
  position: relative;
  height: 9px;
  background: rgba(236, 227, 208, 0.07);
  box-shadow: inset 0 0 0 1px rgba(236, 227, 208, 0.08);
}
.rb-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #7c5e2a, var(--money));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}
.reveal-stage.is-printed .rb-track i { transform: scaleX(1); }
.rb-row b { font-weight: 500; color: var(--chalk); text-align: right; }
.reveal-note {
  margin-top: 24px;
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--chalk-dim);
}

/* ─────────────────────────────────────────────────────────────
   SCENE 6 · the closing marks
   ───────────────────────────────────────────────────────────── */
.closing-marks {
  display: grid;
  grid-template-columns: repeat(63, 1fr);
  gap: 2px;
  align-items: end;
  height: 34px;
  margin-bottom: 34px;
}
.cm {
  height: 5px;
  background: rgba(236, 227, 208, 0.12);
  transform-origin: bottom;
}
.cm.has-gap { height: 8px; background: rgba(224, 81, 47, 0.55); }
.cm.has-unseen { height: 8px; background: rgba(130, 150, 141, 0.5); }
.cm.is-open { height: 15px; background: var(--money); box-shadow: 0 0 8px rgba(203, 164, 103, 0.4); }
.closing-marks.is-lit .cm {
  animation: mark-light 2.5s ease both;
  animation-delay: calc(var(--i) * 24ms);
}
.closing-marks.is-lit .cm.is-open {
  animation: mark-stay 1s ease forwards;
  animation-delay: 0.8s;
}
@keyframes mark-light {
  0% { opacity: 0.2; filter: none; }
  30% { opacity: 1; filter: drop-shadow(0 0 5px rgba(203, 164, 103, 0.55)); }
  100% { opacity: 0.55; filter: none; }
}
@keyframes mark-stay {
  from { opacity: 0.3; transform: scaleY(0.4); }
  to { opacity: 1; transform: scaleY(1); }
}
.closing-line {
  margin-top: 34px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--chalk);
}

/* ─────────────────────────────────────────────────────────────
   new scenes · responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .tape-head { grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); gap: 32px; }
  .specimen { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 36px; }
  .reveal-stage { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 980px) {
  .tape-head { grid-template-columns: 1fr; gap: 14px; }
  .tape-lede { max-width: 64ch; }
  .specimen { grid-template-columns: 1fr; gap: 28px; }
  .specimen-copy { max-width: 640px; }
  .reveal-stage { grid-template-columns: 1fr; gap: 34px; }
  .reveal-side { max-width: 560px; }
}
@media (max-width: 760px) {
  .tape-scene { padding: 48px var(--edge) 52px; }
  .tape-head h2, .specimen-copy h2, .reveal h2 { font-size: 40px; }
  .tape-head { margin-bottom: 18px; }
  .tape-lede { font-size: 11.5px; padding-left: 11px; }
  .tape-figure { padding: 10px 10px 8px; }
  .tape-legend { gap: 4px 12px; font-size: 5.4px; letter-spacing: 0.06em; }
  .lg i { width: 12px; }
  .lg-nick i { width: 2px; height: 7px; }
  .lg-fog i { width: 10px; height: 7px; }
  .tape-board { margin-top: 2px; }
  .tape-board svg { height: 236px; }
  .tape-rule-tag { font-size: 5.2px; right: 2px; padding: 1px 3px; }
  .tape-read { font-size: 6.4px; min-height: 18px; }
  .tape-axis { font-size: 5.2px; }
  .tape-rail { height: 28px; margin-top: 9px; }
  .tape-ticks { top: 5px; height: 12px; gap: 1px; }
  .tape-tick { height: 4px; }
  .tape-tab { font-size: 5.2px; padding: 1px 3px; }
  .tape-note { font-size: 5.9px; margin-top: 7px; padding-top: 6px; }

  .specimen { padding: 48px var(--edge) 52px; gap: 22px; }
  .specimen-copy p { font-size: 11.5px; }
  .specimen-board { padding: 11px 10px 10px; }
  .specimen-head { font-size: 5.4px; flex-direction: column; gap: 3px; padding-bottom: 7px; }
  .spec-key { text-align: left; }
  .specimen-record { grid-template-columns: 1fr 1fr; margin-top: 9px; }
  .rec-cell { padding: 7px 8px 8px; }
  .rec-cell .rec-v { font-size: 9.5px; }
  .state-row { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
  .state-card { min-height: 132px; padding: 8px 8px 8px; }
  .sc-stamp { font-size: 5px; padding: 1px 4px 2px; }
  .sc-item { font-size: 11.5px; }
  .sc-meta { font-size: 5px; }
  .sc-price { font-size: 12px; }
  .sc-note { font-size: 4.9px; }
  .specimen-foot { font-size: 5.4px; }

  .reveal { padding: 48px var(--edge) 56px; }
  .reveal-copy p { font-size: 11.5px; }
  .reveal-sentence { font-size: 17px !important; margin-top: 18px !important; padding-left: 12px; }
  .reveal-stage { margin-top: 26px; gap: 30px; }
  .reveal-receipt { padding: 12px 12px 44px; transform: none; }
  .rr-head { font-size: 5.2px; padding-bottom: 6px; }
  .rr-head span:last-child { display: none; }
  .rr-cols { font-size: 4.8px; padding: 5px 0 2px; }
  .rr-line { padding: 7px 0 6px; }
  .rr-what b { font-size: 8px; }
  .rr-what span { font-size: 5.2px; }
  .rr-save { font-size: 9px; }
  .rr-total { font-size: 7px; }
  .rr-total b { font-size: 25px; }
  .rr-next { font-size: 5.6px; }
  .rr-stamp { right: 8px; bottom: 7px; }
  .rr-stamp b { font-size: 9px; padding: 2px 4px; }
  .rr-stamp span { font-size: 4.8px; }
  .rf-value { font-size: 58px; }
  .rf-label { font-size: 6.2px; max-width: none; text-wrap: balance; }
  .reveal-bars { margin-top: 20px; }
  .rb-row { grid-template-columns: 88px minmax(0, 1fr) 38px; gap: 8px; font-size: 5.6px; }
  .rb-track { height: 7px; }
  .reveal-note { font-size: 10.5px; }

  .closing-marks { gap: 1px; height: 26px; margin-bottom: 24px; }
  .cm { height: 4px; }
  .cm.has-gap, .cm.has-unseen { height: 6px; }
  .cm.is-open { height: 11px; }
  .closing-line { margin-top: 24px; font-size: 25px; }

  .hero-caption {
    display: block;
    margin-top: 8px;
    font-size: 6.6px;
    line-height: 1.5;
    color: rgba(236, 227, 208, 0.42);
  }
}
@media (max-width: 380px) {
  .state-card { min-height: 124px; }
  .sc-item { font-size: 10.5px; }
  .rb-row { grid-template-columns: 78px minmax(0, 1fr) 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .tape-path { stroke-dashoffset: 0; opacity: 1; }
  .tape-dot, .tape-fog-mark, .tape-readhead { opacity: 1; }
  .tape-nick { transform: scaleY(1); }
  .rr-line { opacity: 1; clip-path: none; }
  .rr-stamp { opacity: 1; }
  .rb-track i { transform: scaleX(1); }
  .sc-fog { animation: none; opacity: 0.8; }
}

