/* Tells: The Line-Up.
   Rooms painted in the collection's own palette (layers/palette.json), a height chart ruled at the
   art's own line weight (32 px on a 2048 canvas = 6 px at line-up scale), letterboard placards. */

@font-face {
  font-family: "Big Shoulders";   /* the first Tells site's display face (website/assets/display.woff2) */
  src: url("assets/fonts/bigshoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --cobalt: #0a85f0;
  --bone: #f6e4ef;
  --ink: #0b0b0b;
  --marigold: #ffc806;

  --rule: 6px;          /* the art's 32 px outline at line-up scale */
  --rule-s: 3px;
  --gutter: 36px;
  --bar: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --paint: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, sans-serif;

  color-scheme: light;
  scrollbar-color: var(--ink) var(--bone);
}
@media (max-width: 1100px) { :root { --gutter: 28px; } }
@media (max-width: 700px) { :root { --gutter: 18px; --rule: 5px; --bar: 52px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);   /* rem: reading text follows the browser's text-size setting */
  font-stretch: 100%;
  font-kerning: normal;
  caret-color: var(--cobalt);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--marigold); color: var(--ink); }
/* respond on press, not after: no grey tap flash, no double-tap zoom wait */
a, button, summary, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, canvas, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

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

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 50;
  background: var(--marigold); color: var(--ink); padding: 12px 18px;
  font: 700 14px/1 var(--text); text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { top: 8px; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter;
}
.icon .dot { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ bar */
.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: var(--bone); color: var(--ink);
  border-bottom: var(--rule-s) solid var(--ink);
}
.bar__mark {
  font: 900 30px/1 var(--paint);
  text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none;
}
.bar__nav { display: flex; gap: 24px; margin-left: auto; }
.bar__nav a, .beat {
  font: 650 13px/1 var(--text);
  text-transform: uppercase; letter-spacing: 0.09em; text-decoration: none;
}
.bar__nav a { position: relative; padding: 8px 0; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background-color: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.bar__nav a[aria-current]::after { transform: scaleX(1); }   /* where am I: the section in view */
.beat {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 10px;
  background: transparent; border: 2px solid var(--ink); border-radius: 0;
  transition: background-color 0.2s, color 0.2s, scale 0.1s ease-out;
}
.beat .icon { width: 20px; height: 20px; }
.beat .icon path:first-child { fill: currentColor; stroke: none; }
.beat__state { min-width: 2.2em; opacity: 0.7; }
.beat__wave { opacity: 0.35; }
.beat[aria-pressed="true"] { background: var(--marigold); border-color: var(--ink); color: var(--ink); }
.beat[aria-pressed="true"] .beat__wave { opacity: 1; }
.beat[aria-pressed="true"] .beat__state { opacity: 1; }
@media (max-width: 860px) { .bar__nav a:not(:first-child) { display: none; } }
@media (max-width: 420px) { .bar__nav { display: none; } .beat { margin-left: auto; } }

/* ------------------------------------------------------------------ rooms */
.room { position: relative; }
/* two wall paints only: cobalt and bone, alternating down the page */
.room--cobalt { background: var(--cobalt); }
.room--bone { background: var(--bone); }
.room + .room, main + .room { border-top: var(--rule) solid var(--ink); }

.paint {
  font-family: var(--paint); font-weight: 900;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.75rem);
  text-wrap: balance;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: var(--rule-s) solid var(--ink); border-radius: 0;
  font: 750 15px/1 var(--text);
  text-transform: uppercase; letter-spacing: 0.07em; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, scale 0.1s ease-out;
}
.btn:active, .beat:active { scale: 0.97; }   /* pressed the instant the finger lands */
.btn[disabled] { cursor: progress; opacity: 0.72; }
.btn--go { background: var(--marigold); color: var(--ink); border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--quiet { background: transparent; color: var(--ink); }

/* ------------------------------------------------------------------ the line-up */
.hero {
  --plac: 62px;            /* placard height */
  --ledge-est: 190px;      /* the ledge's usual height; JS sets the real --ledge-h */
  --lane: 78px;            /* the chart numerals' column: the title and the line never enter it */
  --six: clamp(56px, calc((100svh - var(--bar) - var(--ledge-est)) / 6.3), 124px);   /* one 6-inch interval */
  --title-at: 4;           /* the title's baseline rides chart rule 4... */
  --title-span: 2;         /* ...and its caps fill two intervals */
  --cap: calc((var(--six) * var(--title-span) - var(--rule)) * 0.8);
  /* all seven in view: six steps plus the visible middle of the last bust fill the wall */
  --step: calc((100vw - var(--lane) - var(--gutter)) / 7.3);
  --bust: min(calc(var(--six) * 3.75), calc(var(--step) * 2));
  min-height: calc(100svh - var(--bar));
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  border-top: 0;
}
.chart {
  position: relative; grid-row: 1;
  min-height: calc(var(--six) * (var(--title-at) + var(--title-span)) + 28px);
  background: repeating-linear-gradient(to top, var(--ink) 0 var(--rule), transparent var(--rule) var(--six));
}
.chart::before, .chart::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(to top, var(--ink) 0 var(--rule-s), transparent var(--rule-s) calc(var(--six) / 3));
}
.chart::before { left: 0; }
.chart::after { right: 0; }
.chart span {
  position: absolute; left: 30px; bottom: calc(var(--six) * var(--i) + var(--rule) + 6px);
  font: 700 clamp(13px, 0.9vw + 7px, 18px)/1 var(--paint);
  letter-spacing: 0.02em; color: var(--ink);
}
.chart span.is-cut { visibility: hidden; }

.hero__title {
  position: absolute; z-index: 1;
  left: var(--lane); right: var(--gutter);
  bottom: calc(var(--ledge-h, 190px) + var(--six) * var(--title-at) + var(--rule) + (var(--six) * var(--title-span) - var(--rule) - var(--cap)) / 2);
  font-family: var(--paint); font-weight: 900;
  text-transform: uppercase; color: var(--bone);
  font-size: min(calc(var(--cap) / 0.8), calc((100vw - var(--lane) - var(--gutter)) / 6.9));
  line-height: 0.92; letter-spacing: -0.02em;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}

.line {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: calc(var(--ledge-h, 170px) - var(--plac) / 2);
  height: calc(var(--bust) + var(--plac) / 2);
  --line-pad: calc(var(--lane) - var(--bust) * var(--bleed, 0.18) + (var(--bust) - var(--step)) / 2);
  margin: 0; padding: 0 var(--gutter) 0 var(--line-pad);
  list-style: none;
  display: flex;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* on phones the strip is a native momentum scroll that comes to rest on a look (snap: see 700px) */
}
.line::-webkit-scrollbar { display: none; }
.suspect {
  position: relative; flex: none; width: var(--step); height: 100%;
  /* no z-index here: a li must not become a stacking context, or its placard could be buried under a neighbour's art */
  /* Next! moves the line with springs in tells.js (transform/opacity on .suspect__cut and .placard) */
}
.suspect:hover .suspect__cut, .suspect:focus-within .suspect__cut { z-index: 40; }
.suspect__btn {
  position: absolute; inset: 0; width: 100%;
  padding: 0; border: 0; background: none;
}
/* The ledge hides each bust's straight bottom cut: the art sinks below the ledge line and is clipped
   there, so the cut edge stays out of sight while the art lifts on hover or nods on the beat. */
.suspect__cut {
  position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--plac) / 2);
  z-index: var(--z, 1);    /* earlier looks stand in front; shoulders overlap, heads stay clear */
  clip-path: inset(-50vh -100vw 0 -100vw);
  pointer-events: none;
}
.suspect__art {
  position: absolute; left: 50%; bottom: calc(-1 * max(14px, var(--bust) * 0.06));
  width: var(--bust); height: var(--bust); max-width: none;
  translate: -50% calc(var(--bob, 0) * 7px);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
  user-select: none;
}
.suspect__btn:focus-visible .suspect__art { transform: translateY(-10px); }
.suspect__btn:focus-visible { outline: none; }
.suspect__btn:focus-visible .placard { outline: 3px solid var(--marigold); outline-offset: 3px; }

.placard {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 60;   /* placards sit over every cut-out, lifted or not */
  width: 112px; height: var(--plac);
  display: grid; place-content: center; gap: 4px;
  background: var(--bone); color: var(--ink);
  border: var(--rule-s) solid var(--ink);
  text-align: center; text-transform: uppercase;
  transition: background-color 0.2s;
}
.placard__kind { font: 700 9.5px/1 var(--text); letter-spacing: 0.3em; padding-left: 0.3em; }
.placard__no { font: 900 28px/0.9 var(--paint); letter-spacing: 0.02em; }
.placard__no i { font-style: normal; }
.suspect__btn:active .placard { background: var(--marigold); }
.suspect.is-leaving { pointer-events: none; }

.ledge {
  grid-row: 2; position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: 40px; row-gap: 14px;
  padding: calc(var(--plac) / 2 + 22px) var(--gutter) 24px;
  background: var(--bone); color: var(--ink);
  border-top: var(--rule) solid var(--ink);   /* the ledge line the busts stand behind */
}
.ledge__pitch { max-width: 54ch; font-size: clamp(1rem, 0.45vw + 0.75rem, 1.1875rem); line-height: 1.5; }
.ledge__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ledge__note {
  grid-column: 1 / -1;
  font: 500 13px/1.4 var(--text);
  color: rgba(11, 11, 11, 0.72);
}

@media (max-width: 860px) {
  .hero { --title-span: 1; --title-at: 3.3; --plac: 54px; --cap: calc(var(--six) * 0.8 / 0.92); }   /* line-height .92 = one interval */
  .hero__title { font-size: min(calc(var(--cap) / 0.8), calc((100vw - var(--lane) - var(--gutter)) / 3.6)); }
  .hero__title span { display: block; }
  .placard { width: 84px; }
  .placard__no { font-size: 22px; }
  .ledge { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero {
    --ledge-est: 330px;
    --lane: 60px;
    --bleed: 0.04;   /* the cut-out's empty margin that may cross into the lane */
    --six: clamp(50px, calc((100svh - var(--bar) - var(--ledge-est)) / 6.2), 84px);
    --bust: min(66vw, 300px);
    --step: calc(var(--bust) * 0.72);   /* below 700 px the line is a swipe strip; look 03 peeks at the edge */
    --title-at: 3.2;
  }
  .hero__title { font-size: min(calc(var(--cap) / 0.8), calc((100vw - var(--lane) - var(--gutter)) / 3.6)); }
  .chart span { left: 26px; }
  .placard { width: 92px; }
  .ledge__actions .btn { flex: 1 1 auto; }
  .line { scroll-snap-type: x proximity; scroll-padding-inline-start: var(--line-pad); }
  .suspect { scroll-snap-align: start; }
}

/* ------------------------------------------------------------------ the fitting */
.fitting { padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(72px, 9vw, 136px); }
.fitting__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px 56px; align-items: end;
  padding-bottom: clamp(36px, 4vw, 56px);
}
.fitting__lede { max-width: 46ch; font-size: 1.125rem; }
.fitting__stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  column-gap: clamp(56px, 8vw, 132px); align-items: center;
}
.portrait { margin: 0; position: relative; z-index: 1; }
.portrait__frame {
  position: relative; aspect-ratio: 1; width: 100%; max-width: min(76vh, 720px);
  border: var(--rule) solid var(--ink); background: var(--cobalt);
}
.portrait__canvas { width: 100%; height: 100%; transition: opacity 0.25s; }
.portrait__canvas.is-busy { opacity: 0.86; }
.portrait__tag {
  display: flex; justify-content: space-between; gap: 16px; max-width: min(76vh, 720px);
  padding-top: 12px;
  font: 800 13px/1.3 var(--paint); text-transform: uppercase; letter-spacing: 0.12em;
}
.portrait__pins { position: absolute; inset: 0; display: none; }
.pin {
  position: absolute; width: 26px; height: 26px; translate: -50% -50%;
  display: grid; place-items: center;
  background: var(--bone); border: 2.5px solid var(--ink); border-radius: 50%;
  font: 800 12px/1 var(--text); color: var(--ink);
}

.leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.leaders .halo { fill: none; stroke: var(--bone); stroke-width: 7; stroke-linecap: round; }
.leaders .lead { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.leaders .ring { fill: var(--bone); stroke: var(--ink); stroke-width: 2.5; }
.leaders .tip { fill: var(--ink); }
/* a line shows only while its row is hovered or focused, or all of them while the eye toggle is on */
.leaders g { opacity: 0; transition: opacity 0.15s; }
.leaders g.is-hot, .show-pins .leaders g { opacity: 1; }

/* the eye toggle: shown wherever hovering a row is not possible (phones, tablets, touch screens) */
.pins-toggle {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: var(--bone); color: var(--ink); border: var(--rule-s) solid var(--ink); border-radius: 50%;
  transition: background-color 0.15s, scale 0.1s ease-out;
}
.pins-toggle .icon { width: 22px; height: 22px; }
.pins-toggle .pupil { fill: currentColor; stroke: none; }
.pins-toggle .slash { display: none; }
.pins-toggle[aria-pressed="false"] .slash { display: inline; }
.pins-toggle[aria-pressed="true"] { background: var(--marigold); }
.pins-toggle:active { scale: 0.94; }
@media (max-width: 1100px), (hover: none) { .pins-toggle { display: grid; } }

.register { position: relative; z-index: 3; }
.register__title {
  font: 800 13px/1 var(--paint); text-transform: uppercase; letter-spacing: 0.14em;
  padding-bottom: 14px;
}
.register__rows { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule-s) solid var(--ink); }
.row {
  display: grid; align-items: center;
  grid-template-columns: 26px 100px 40px minmax(0, 1fr) 40px 62px;
  column-gap: 8px; min-height: 66px;
  border-top: var(--rule-s) solid var(--ink);
}
.row__no { font: 800 13px/1 var(--text); }
.row__layer { font: 800 15px/1.1 var(--paint); text-transform: uppercase; letter-spacing: 0.1em; }
.row__step {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--ink);
  transition: background-color 0.15s, color 0.15s, scale 0.1s ease-out;
}
.row__step:active:not([disabled]) { background: var(--ink); color: var(--bone); scale: 0.94; }
.row__step[disabled] { opacity: 0.25; cursor: not-allowed; background: transparent; color: var(--ink); }
.row__step .icon { width: 20px; height: 20px; }
.row__odds { text-align: right; font: 600 12.5px/1.2 var(--text); font-variant-numeric: tabular-nums; color: rgba(11, 11, 11, 0.74); }

.board {
  position: relative; min-height: 46px; min-width: 0;
  background: var(--ink);
  border: var(--rule-s) solid var(--ink);
  color: var(--bone);
  display: flex; align-items: center; padding: 0 12px; overflow: hidden;
}
.board__text {
  display: block; padding: 7px 0;
  font: 600 15px/1.25 var(--text); text-transform: uppercase; letter-spacing: 0.11em;
}
.board__text.is-new { animation: board-in 0.14s var(--ease) both; }
@keyframes board-in { from { opacity: 0; transform: translateY(4px); } }
.board__select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; appearance: none;
}
.board:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.row.is-locked .board { background: transparent; color: var(--ink); }
.row.is-locked .board__select { cursor: not-allowed; }
.row.is-hot .row__layer { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.register__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 26px; }
.register__status { min-height: 3em; padding-top: 16px; font-size: 0.9375rem; max-width: 46ch; }

@media (max-width: 1100px) {
  .fitting__head { grid-template-columns: 1fr; }
  .fitting__stage { grid-template-columns: 1fr; row-gap: 40px; }
  .portrait__frame, .portrait__tag { max-width: none; }
  .leaders { display: none; }
  /* the numbered pins and their row chips stay hidden until the eye toggle is on */
  .portrait__pins { display: block; opacity: 0; transition: opacity 0.15s; }
  .show-pins .portrait__pins { opacity: 1; }
  .row__no { display: grid; place-items: center; width: 24px; height: 24px; border: 2.5px solid var(--ink); border-radius: 50%; font-size: 11.5px; }
  .fitting__stage:not(.show-pins) .row__no { display: none; }
  .fitting__stage:not(.show-pins) .row { grid-template-columns: 100px 40px minmax(0, 1fr) 40px 62px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 24px minmax(0, 1fr) 40px 40px; row-gap: 8px; padding: 10px 0; }
  .row__layer { grid-column: 2; }
  .row__odds { grid-column: 3 / 5; }
  .row__step { width: 40px; }
  .row .row__step:first-of-type { grid-column: 1 / 2; grid-row: 2; justify-self: start; width: 24px; }
  .row .board { grid-column: 2 / 4; grid-row: 2; }
  .fitting__stage:not(.show-pins) .row { grid-template-columns: 24px minmax(0, 1fr) 40px 40px; }
  .fitting__stage:not(.show-pins) .row__layer { grid-column: 1 / 3; }
  .row .row__step:last-of-type { grid-column: 4; grid-row: 2; }
  .register__actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ the queue */
.queue { padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(40px, 5vw, 64px); overflow-x: clip; }
.queue__title { color: var(--bone); padding-bottom: clamp(20px, 2.4vw, 36px); }
.queue__title span { color: var(--ink); }
/* the queue goes round the block: rows of cut-outs, each row standing on its own ink ledge,
   the row in front overlapping the chests of the row behind */
.queue__wall {
  --q-cols: 14;
  --q-step: calc((100vw - 2 * var(--gutter)) / var(--q-cols));
  --q-bust: calc(var(--q-step) * 2);
  --q-row: calc(var(--q-bust) * 0.84);
  list-style: none; margin: 0; padding: calc(var(--q-bust) * 0.16) 0 0;
  display: grid; grid-template-columns: repeat(var(--q-cols), minmax(0, 1fr)); grid-auto-rows: var(--q-row);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--q-row) - var(--rule)), var(--ink) calc(var(--q-row) - var(--rule)) var(--q-row));
  background-origin: content-box; background-clip: content-box;
}
.queue__wall li { position: relative; }
.queue__btn:hover .queue__cut, .queue__btn:focus-visible .queue__cut { z-index: 5; }
.queue__btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; }
.queue__cut {
  position: absolute; left: 0; right: 0; top: 0; bottom: var(--rule);
  clip-path: inset(-50vh -100vw 0 -100vw);
  pointer-events: none;
}
.queue__btn img {
  position: absolute; left: 50%; bottom: calc(-1 * max(11px, var(--q-bust) * 0.06)); translate: -50% 0;
  width: var(--q-bust); height: var(--q-bust); max-width: none;
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.queue__btn:focus-visible img { transform: translateY(-8px); }
.queue__btn:active img { scale: 0.96; transform-origin: 50% 100%; }
.queue__btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: -3px; }
.queue__note { padding-top: 26px; font: 500 0.9375rem/1.4 var(--text); }
@media (max-width: 1100px) { .queue__wall { --q-cols: 10; } .queue__wall li:nth-child(n + 41) { display: none; } }
@media (max-width: 700px) { .queue__wall { --q-cols: 6; } .queue__wall li:nth-child(n + 25) { display: none; } }

/* ------------------------------------------------------------------ one of ones */
.ones { padding: clamp(64px, 8vw, 120px) var(--gutter); }
.ones__head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px 56px; align-items: end; padding-bottom: clamp(36px, 4vw, 56px);
}
.ones__head p { max-width: 40ch; font-size: 1.125rem; }
.ones__wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
.one { margin: 0; }
.one img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: var(--rule-s) solid var(--ink); background: var(--ink);
}
.one figcaption {
  display: inline-flex; margin-top: 12px; padding: 7px 10px 6px;
  background: var(--ink); color: var(--bone);
  font: 600 12px/1 var(--text); text-transform: uppercase; letter-spacing: 0.14em;
}
@media (max-width: 1100px) { .ones__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ones__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ones__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ films */
.films { padding: clamp(64px, 8vw, 120px) var(--gutter); }
.films__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 24px 48px; padding-bottom: clamp(32px, 3.5vw, 48px);
}
.films__head .paint { max-width: 11em; }
.films__still { color: var(--bone); }
.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: var(--rule) solid var(--ink); background: var(--ink);
}
.screen__video { width: 100%; height: 100%; object-fit: cover; }
.screen__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 28px; white-space: nowrap;
  background: var(--marigold); color: var(--ink); border: 0; border-radius: 0;
  font: 800 16px/1 var(--text); text-transform: uppercase; letter-spacing: 0.07em;
  transition: background-color 0.2s, scale 0.1s ease-out;
}
.screen__play .icon { fill: currentColor; stroke: none; }
.screen__play:active { scale: 0.97; }
.screen.is-playing .screen__play { display: none; }
.screen__error {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  background: var(--ink); color: var(--bone); padding: 12px 16px; font-size: 15px;
}
.screen__error button { background: none; border: 0; color: var(--marigold); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 0 6px; }

/* ------------------------------------------------------------------ the record */
.record {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start;
}
.record .paint { position: sticky; top: calc(var(--bar) + 32px); }
.record__list { border-bottom: var(--rule-s) solid var(--ink); }
.record details { border-top: var(--rule-s) solid var(--ink); }
.record summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 800 clamp(22px, 1vw + 16px, 30px)/1.05 var(--paint); text-transform: uppercase;
}
.record summary::-webkit-details-marker { display: none; }
.record summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% var(--rule-s) no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / var(--rule-s) 100% no-repeat;
  transition: rotate 0.35s var(--ease);
}
.record details[open] summary::after { rotate: 45deg; }
.record details p { max-width: 60ch; padding: 0 0 26px; font-size: 1.125rem; }
/* answers open and close by height, from wherever they are, so a second tap mid-motion just reverses */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .record details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size 0.34s var(--ease), content-visibility 0.34s allow-discrete;
  }
  .record details[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) { .record { grid-template-columns: 1fr; } .record .paint { position: static; } }
@media (max-width: 560px) { .screen__play { min-height: 48px; padding: 0 18px; font-size: 14px; gap: 8px; } }

/* ------------------------------------------------------------------ foot */
.foot { padding: 0 var(--gutter) 28px; overflow: hidden; }
.foot__mark {
  margin: 0 calc(var(--gutter) * -1); padding: clamp(40px, 6vw, 88px) var(--gutter);
  font: 900 calc((100vw - 2 * var(--gutter)) / 2.05)/1 var(--paint);
  text-transform: uppercase; color: var(--bone); letter-spacing: -0.02em;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding: 26px 0 18px; border-top: var(--rule) solid var(--ink);
}
.foot__line { font: 900 clamp(28px, 2vw + 16px, 44px)/1 var(--paint); text-transform: uppercase; letter-spacing: -0.02em; }
.foot__top {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px/1 var(--text); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; padding: 10px 0;
}
.foot__small { font-size: 0.8125rem; max-width: 70ch; }

/* ------------------------------------------------------------------ hover (pointers that can hover only;
   on touch a :hover sticks after the tap and leaves the wrong thing lifted or lit) */
@media (hover: hover) {
  .bar__nav a:hover::after { transform: scaleX(1); }
  .beat:hover { background: var(--ink); color: var(--bone); }
  .btn--go:hover { background: var(--ink); color: var(--marigold); }
  .btn--ink:hover { background: var(--cobalt); color: var(--ink); }
  .btn--quiet:hover { background: var(--ink); color: var(--bone); }
  .suspect__btn:hover .suspect__art { transform: translateY(-10px); }
  .suspect__btn:hover .placard { background: var(--marigold); }
  .row__step:hover { background: var(--ink); color: var(--bone); }
  .board:hover { border-color: var(--marigold); }
  .queue__btn:hover img { transform: translateY(-8px); }
  .screen__play:hover { background: var(--bone); scale: 1.04; }
  .foot__top:hover { text-decoration: underline; }
}

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
