/* One More Take: the video village. A field monitor, a call sheet, a film strip.
   Type: Archivo (condensed for display, normal width for text) and IBM Plex Mono, both OFL, self-hosted. */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/plex-mono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* the stage: tungsten work lights on a dark floor */
  --stage: #1c1916; --rig: #151310; --sheet: #25211d; --sheet-2: #2e2924; --band: #201c19;
  --line: #3b352f; --line-strong: #544b42;
  --chalk: #ede7db; --muted: #b2a999;
  --amber: #f0a63a; --amber-hover: #f5b75d; --amber-ink: #1c1916; --amber-text: #f0a63a; --amber-soft: rgba(240, 166, 58, 0.14); --amber-glow: rgba(240, 166, 58, 0.26);
  --tally: #e8402f;
  --tape-language: #7fa8d6; --tape-delivery: #d897b4; --tape-who: #8fbb8a; --tape-when: #b9a1e0;
  /* the monitor is a black device in both modes */
  --mon-bezel: #161412; --mon-screen: #0c0b0a; --mon-chrome: #34302b; --mon-btn: #1d1a17; --mon-text: #efe9dd; --mon-muted: #a89f8f;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 25px; --t-2xl: 32px; --t-3xl: 48px;
  --r: 4px; --r-lg: 8px;
  --focus: #ede7db; --control-edge: #7a7064; --mon-amber: #f0a63a;
  --bar: 48px; --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
html, body { margin: 0; background: var(--stage); color: var(--chalk); font-family: var(--text); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
q { quotes: "\201C" "\201D"; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the device and the film stay black in both themes, so their ring stays light */
.monitor, .strip-film, .mouth-grid { --focus: #efe9dd; }
[hidden] { display: none !important; }
.sprite { display: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; border-radius: var(--r); background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- buttons: one primary, one hairline, one text */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--control-edge);
  border-radius: var(--r); background: transparent; color: var(--chalk); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease); }
.btn:hover { background: var(--sheet-2); border-color: var(--muted); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn:disabled:hover { background: transparent; border-color: var(--control-edge); }
.btn-primary { border-color: var(--amber); background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { border-color: var(--amber-hover); background: var(--amber-hover); }
.btn-primary:disabled, .btn-primary:disabled:hover { border-color: var(--control-edge); background: transparent; color: var(--muted); opacity: 0.45; }
.btn .i { width: 16px; height: 16px; }
.btn-primary .i { fill: currentColor; stroke: none; }
.create-yours { border-color: var(--amber); color: var(--amber-text); }
.create-yours:hover { border-color: var(--amber); background: var(--amber-soft); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--chalk);
  font-size: var(--t-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }
.text-link:hover { text-decoration-color: var(--amber); color: var(--amber-text); }
.text-link .i { width: 16px; height: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r); background: none; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.icon-btn:hover { border-color: var(--line); background: var(--sheet); }

/* ---------- top bar: slim and calm */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: var(--bar); padding: 0 var(--gutter) 0 20px;
  background: var(--stage); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-shrink: 0; align-items: center; min-height: 44px; }
.logo { height: 18px; width: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--chalk); }
.back .i { width: 16px; height: 16px; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar-create { min-height: 36px; padding: 0 14px; }
.bar-create::after { content: ""; position: absolute; inset: -4px 0; }
.bar-create { position: relative; }

/* ---------- the village: rig (monitor + strip) beside the call sheet */
.village { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--bar)); }
.rig { position: sticky; top: var(--bar); height: calc(100dvh - var(--bar)); display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 14px 20px;
  background: var(--rig); border-right: 1px solid var(--line); }

/* the field monitor */
.monitor { flex: 1 1 auto; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px 10px;
  border: 1px solid #2a2622; border-radius: var(--r-lg); background: var(--mon-bezel); color: var(--mon-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mon-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mon-muted); }
.tally { display: inline-flex; align-items: center; gap: 8px; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: #3d3832; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12); transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.monitor.is-rolling .lamp { background: var(--tally); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 8px rgba(232, 64, 47, 0.55); }
.monitor.is-rolling .tally { color: #ff8577; }
.tc { font-variant-numeric: tabular-nums; color: var(--mon-text); }
.mon-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; min-height: 0; }
.pillar { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.pillar-take { align-items: flex-end; text-align: right; }
.pl-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mon-muted); }
.take-num { font-family: var(--display); font-stretch: 64%; font-weight: 800; font-size: clamp(52px, 7.4vw, 124px); line-height: 0.82; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: var(--mon-text); }
.is-idle .take-num { color: #7a7165; }
.is-idle .deck-tag { visibility: hidden; }
.deck-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mon-text); }
.tag-tapes { display: inline-grid; gap: 2px; }
.deck-tag i { display: block; width: 16px; height: 6px; border-radius: 1px; background: var(--tape); transform: rotate(-4deg); }
.deck-tag i + i { transform: rotate(3deg); }
.pl-scene { margin-top: 2px; }
.readout { display: grid; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--mon-chrome); }
.readout div { display: grid; gap: 2px; }
.readout dt { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mon-muted); }
.readout dd { margin: 0; font-family: var(--mono); font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mon-text); }
.picture { position: relative; height: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 2px; background: var(--mon-screen); isolation: isolate; container-type: inline-size; }
@container (max-width: 230px) {
  .b-v, .b-prod .b-v { font-size: 15px; }
  .b-cols .b-v { font-size: 26px; }
  .b-note .b-v { font-size: 15px; }
  .b-row, .b-cols > div { padding: 5px 7px; }
}
@container (max-width: 170px) {
  .clapper { width: 92%; }
  .b-k { font-size: 11px; letter-spacing: 0.06em; }
  .b-cols .b-k { display: none; }
  .b-v, .b-prod .b-v, .b-note .b-v { font-size: 13px; }
  .b-cols .b-v { font-size: 22px; }
  .b-prod .b-v { white-space: normal; }
  .b-row, .b-cols > div { padding: 4px 6px; }
  .sticks { height: 18px; }
  .stick { height: 9px; }
}
.take-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--mon-screen); opacity: 0; transition: opacity 180ms var(--ease); }
.take-video.is-front { opacity: 1; z-index: 1; }
.picture > :not(video) { z-index: 2; }
.frame-lines { position: absolute; inset: 5% 6% 13%; pointer-events: none; }
.frame-lines i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(239, 233, 221, 0.6); transition: opacity 200ms var(--ease); }
.picture:not(.lt-quiet) .frame-lines i:nth-child(n+3), .picture:has(> .endcard:not([hidden])) .frame-lines i:nth-child(n+3),
.picture:has(> .caption:not([hidden])) .frame-lines i:nth-child(n+3) { opacity: 0; }
@media (hover: hover) { .picture.lt-quiet:hover .frame-lines i:nth-child(n+3) { opacity: 0; } }
.frame-lines i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame-lines i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame-lines i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame-lines i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.lower-third { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 44px 14px 14px;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.86), rgba(8, 7, 6, 0)); transition: opacity 200ms var(--ease); }
.picture.lt-quiet .lower-third { opacity: 0; }
@media (hover: hover) { .picture.lt-quiet:hover .lower-third { opacity: 1; } }
.lt-label { justify-self: start; padding: 2px 6px; border-radius: 2px; background: rgba(8, 7, 6, 0.8); font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mon-amber); }
.lt-note { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(16px, 1.4vw, 20px); font-weight: 600;
  line-height: 1.2; color: #f6f1e7; }
.caption { position: absolute; left: 7%; right: 7%; bottom: 96px; padding: 8px 12px; border-radius: var(--r); background: rgba(8, 7, 6, 0.8); color: #f6f1e7;
  font-size: var(--t-sm); line-height: 1.4; text-align: center; }
.caption small { display: block; margin-top: 4px; color: #c9c1b3; }
.caption a { color: var(--mon-amber); }
.caption[hidden] { display: none; }
.bigplay { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(239, 233, 221, 0.35);
  border-radius: 50%; background: rgba(8, 7, 6, 0.6); color: #f6f1e7; cursor: pointer; transition: transform 120ms var(--ease), background-color 150ms var(--ease); }
.bigplay:hover { background: rgba(8, 7, 6, 0.78); }
.bigplay:active { transform: scale(0.95); }
.bigplay .i { width: 24px; height: 24px; }
.bigplay .i-play { fill: currentColor; stroke: none; margin-left: 3px; }
.bigplay .i-replay, .bigplay.replay .i-play { display: none; }
.bigplay.replay .i-replay { display: block; }
.bigplay[hidden] { display: none; }
.endcard { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 40px 12px 14px; z-index: 3;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0)); color: #f6f1e7; animation: rise 200ms var(--ease); }
.endcard[hidden] { display: none; }
.endcard p { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mon-amber); }
.endcard-row { display: flex; flex-wrap: wrap; gap: 6px; }
.endcard button { min-height: 44px; padding: 0 12px; border: 1px solid rgba(239, 233, 221, 0.35); border-radius: var(--r); background: transparent;
  color: #f6f1e7; font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease); }
.endcard button:hover { border-color: var(--mon-amber); background: rgba(240, 166, 58, 0.14); }
.endcard .endcard-more { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: #f6f1e7; font-size: var(--t-sm); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(239, 233, 221, 0.45); text-underline-offset: 4px; }
.endcard .endcard-more:hover { background: none; color: var(--mon-amber); }
.ec-short { display: none; }
.endcard button:active { transform: scale(0.97); }
.picture:has(> .endcard:not([hidden])) .lower-third { opacity: 0; }
.picture:has(> .endcard:not([hidden])) .bigplay { inset: 22% 0 auto; margin: 0 auto; }
/* B16: on small pictures the end card keeps one suggestion and the recipe link, and the replay moves to the corner */
@container (max-width: 230px) {
  .endcard { gap: 6px; padding: 28px 8px 8px; }
  .endcard p, .endcard-row button:nth-child(n+2), .ec-long { display: none; }
  .ec-short { display: inline; }
  .endcard-row button { padding: 0 10px; font-size: 12px; text-align: left; }
  .endcard .endcard-more { font-size: 12px; }
  .picture:has(> .endcard:not([hidden])) .bigplay { inset: 8px 8px auto auto; width: 44px; height: 44px; margin: 0; }
  .picture:has(> .endcard:not([hidden])) .bigplay .i { width: 18px; height: 18px; }
  .picture:has(> .endcard:not([hidden])) .frame-lines { opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.pillar-ctl { align-items: flex-start; }
.mon-btn { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; width: 68px; min-height: 52px; padding: 5px 4px;
  border: 1px solid var(--mon-chrome); border-radius: var(--r); background: var(--mon-btn); color: var(--mon-text); font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease); }
.mon-btn:hover { border-color: #5a524a; background: #26221e; }
.mon-btn:active { transform: scale(0.97); }
.mon-btn[aria-pressed="true"], #muteBtn.is-muted { border-color: var(--mon-amber); color: var(--mon-amber); }
#muteBtn .i-muted, #muteBtn.is-muted .i-sound, #fullMute .i-muted, #fullMute[aria-pressed="true"] .i-sound { display: none; }
#muteBtn.is-muted .i-muted, #fullMute[aria-pressed="true"] .i-muted { display: block; }
#playPause .i-play, #fullPlay .i-play { fill: currentColor; stroke: none; }
#playPause .i-pause, #playPause .i-replay, #playPause[data-state="pause"] .i-play, #playPause[data-state="replay"] .i-play,
#fullPlay .i-pause, #fullPlay .i-replay, #fullPlay[data-state="pause"] .i-play, #fullPlay[data-state="replay"] .i-play { display: none; }
#playPause[data-state="pause"] .i-pause, #fullPlay[data-state="pause"] .i-pause { display: block; fill: currentColor; stroke: none; }
#playPause[data-state="replay"] .i-replay, #fullPlay[data-state="replay"] .i-replay { display: block; }
.lbl-short { display: none; }
.mon-btn span { text-align: center; line-height: 1.15; }
#fullBtn.is-on { border-color: var(--mon-amber); color: var(--mon-amber); }

/* full screen: the picture alone on black, its overlays kept on the take's own column */
.picture.is-full { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #000; --col: min(100%, 100vh * 9 / 16); }
.picture::backdrop { background: #000; }
.picture.is-full .take-video { object-fit: contain; background: #000; }
.picture.is-full .lower-third, .picture.is-full .endcard { left: calc(50% - var(--col) / 2); right: calc(50% - var(--col) / 2); }
.picture.is-full .frame-lines { left: calc(50% - var(--col) * 0.44); right: calc(50% - var(--col) * 0.44); }
.picture.is-full .caption { left: calc(50% - var(--col) / 2 + 16px); right: calc(50% - var(--col) / 2 + 16px); bottom: 14%; padding: 10px 16px;
  font-size: clamp(16px, 2.4vh, 26px); line-height: 1.35; }
.picture.is-full .caption small { display: block; font-size: 0.8em; }
.picture.is-full .lt-note { font-size: clamp(18px, 2.8vh, 30px); }
.picture > .full-bar { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; gap: 8px; }
.full-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(239, 233, 221, 0.35); border-radius: var(--r);
  background: rgba(8, 7, 6, 0.6); color: #f6f1e7; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.full-btn:hover { background: rgba(8, 7, 6, 0.8); }
.full-btn[aria-pressed="true"] { border-color: var(--mon-amber); color: var(--mon-amber); }
.mon-cut { display: none; }
.cut-count-badge { min-width: 24px; padding: 1px 6px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 12px; text-align: center; }
.mon-foot { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 18px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mon-muted); }
.progress { position: relative; flex: 0 0 38%; height: 3px; overflow: hidden; border-radius: 2px; background: #2c2824; }
.progress i { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--mon-text); }
.monitor.is-rolling .progress i { background: var(--tally); }
.mon-models { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; letter-spacing: 0.04em; line-height: 1.35; }
.nw { white-space: nowrap; }

/* the slate: snaps over the picture for about 400 ms */
.slate { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(8, 7, 6, 0.55); opacity: 0; visibility: hidden;
  transition: opacity 160ms var(--ease), visibility 0s linear 160ms; }
.slate.on { opacity: 1; visibility: visible; transition: opacity 80ms var(--ease), visibility 0s; }
.clapper { width: min(88%, 300px); min-width: 0; color: #f6f1e7; }
.slate.on .clapper { animation: slate-in 140ms var(--ease); }
@keyframes slate-in { from { opacity: 0.4; transform: translateY(10px) scale(0.97); } }
.sticks { position: relative; display: block; height: 24px; }
.stick { position: absolute; left: 0; right: 0; height: 12px; border: 2px solid #f6f1e7;
  background: repeating-linear-gradient(135deg, #f6f1e7 0 14px, #141210 14px 28px); }
.stick-base { bottom: 0; }
.stick-top { top: 0; transform-origin: 2px 100%; transform: rotate(-20deg); }
.slate.on .stick-top { animation: clap 150ms cubic-bezier(0.55, 0, 1, 0.45) 110ms forwards; }
@keyframes clap { to { transform: rotate(0deg); } }
.board { border: 2px solid #f6f1e7; border-top: 0; background: #141210; }
.b-row { padding: 6px 10px; border-top: 1px solid rgba(246, 241, 231, 0.55); }
.b-row:first-child { border-top: 0; }
.b-k.b-note-head { display: flex; justify-content: space-between; gap: 8px; }
#slateDate { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.b-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
.b-cols .b-v { font-size: 34px; line-height: 0.95; }
.b-cols > div { padding: 6px 10px; border-left: 1px solid rgba(246, 241, 231, 0.55); }
.b-cols > div:first-child { border-left: 0; }
.b-k { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #bdb4a4; }
.b-v { display: block; overflow: hidden; font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 22px; line-height: 1.05; text-overflow: ellipsis;
  text-transform: uppercase; white-space: nowrap; }
.b-prod .b-v { font-size: 18px; }
.b-note .b-v { font-stretch: 85%; font-weight: 700; font-size: 17px; text-transform: none; white-space: normal; }

/* the film strip: your cut */
.strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.strip-film { position: relative; min-width: 0; padding: 14px 10px; border-radius: var(--r); background-color: #0e0c0a;
  background-image: radial-gradient(circle, #36302a 2.2px, transparent 2.7px), radial-gradient(circle, #36302a 2.2px, transparent 2.7px);
  background-size: 13px 10px; background-repeat: repeat-x; background-position: 4px 2px, 4px calc(100% - 2px); }
.frames { display: grid; grid-template-columns: repeat(6, minmax(0, 60px)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.frame { position: relative; min-width: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.frame.slot { padding-bottom: 32px; }
.frame.slot::before { content: ""; display: block; width: 100%; aspect-ratio: 9 / 16; border: 1px dashed #3e3730; border-radius: 2px; }
.frame.dragging { opacity: 0.55; }
.frame-play { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 1px solid rgba(239, 233, 221, 0.16); border-radius: 2px;
  overflow: hidden; background: #1a1714; cursor: grab; }
.frame-play img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.frame.playing .frame-play { outline: 2px solid var(--mon-amber); outline-offset: 1px; }
.stamp { position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; border-radius: 2px; background: rgba(8, 7, 6, 0.82); color: var(--mon-amber);
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.3; }
.edge { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 28px; margin-top: 4px; font-family: var(--text);
  font-stretch: 75%; font-size: 11px; font-weight: 600; line-height: 1.25; color: #c9c0b1; overflow-wrap: anywhere; }
.frame-remove { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #5a524a;
  border-radius: 50%; background: #1d1a17; color: #efe9dd; cursor: pointer; opacity: 0; transition: opacity 150ms var(--ease); }
.frame-remove::after { content: ""; position: absolute; inset: -8px; }
.frame-remove .i { width: 14px; height: 14px; }
.frame:hover .frame-remove, .frame:focus-within .frame-remove { opacity: 1; }
@media (hover: none) { .frame-remove { opacity: 1; } }
.strip-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-align: center; text-transform: uppercase; color: #c9c0b1; pointer-events: none; }
.strip-empty span { padding: 7px 12px; border: 1px solid #3e3730; border-radius: 2px; background: #0e0c0a; }
.strip-film:has(.strip-empty:not([hidden])) .frame.slot::before { opacity: 0.5; }
.strip-empty[hidden] { display: none; }
.strip-side { display: grid; gap: 8px; width: 188px; }
.strip-side h2 { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-lg);
  letter-spacing: 0.02em; text-transform: uppercase; }
.cut-count { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.strip-side .btn { width: 100%; }
.strip-hint { font-size: var(--t-xs); color: var(--muted); }
.strip:not(:has(.frame[data-i="1"])) .strip-hint { visibility: hidden; }

/* ---------- the call sheet */
.callsheet { container-type: inline-size; min-width: 0; padding: 26px var(--gutter) 40px clamp(20px, 3vw, 44px); }
.cs-kind { font-size: var(--t-sm); font-weight: 600; color: var(--amber-text); }
.cs-head h1 { margin-top: 6px; font-family: var(--display); font-stretch: 64%; font-weight: 800; font-size: clamp(44px, 5.2vw, 76px); line-height: 0.9;
  letter-spacing: 0.005em; text-transform: uppercase; }
.cs-lede { max-width: 62ch; margin-top: 12px; font-size: var(--t-md); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cs-meta { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0; margin: 14px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta > div { padding: 10px 18px 10px 0; }
.cs-meta > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.cs-meta dt { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.cs-meta dd { margin: 3px 0 0; font-size: var(--t-md); line-height: 1.45; }
.cs-line dd { color: var(--muted); }
.cs-line q { color: var(--chalk); }
.cs-direction { margin-top: 14px; font-size: var(--t-lg); font-weight: 600; }

.tabs { position: relative; z-index: 1; display: flex; gap: 4px; margin-top: 22px; padding: 0 2px; }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 12px 8px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--band); color: var(--muted); font-size: var(--t-sm); font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.tab::before { content: ""; position: absolute; top: -1px; left: 12px; width: 22px; height: 5px; border-radius: 0 0 1px 1px; background: var(--tape); }
.tab[data-deck="pairs"]::before { background: linear-gradient(90deg, var(--tape-language) 0 25%, var(--tape-delivery) 25% 50%, var(--tape-who) 50% 75%, var(--tape-when) 75%); }
.tab:hover { color: var(--chalk); }
.tab[aria-selected="true"] { margin-bottom: -1px; padding-bottom: 9px; background: var(--sheet); color: var(--chalk); }
.tab[aria-selected="true"]::before { left: -1px; right: -1px; width: auto; height: 4px; border-radius: var(--r) var(--r) 0 0; }
.tab .count { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.tab.has-current .count { color: var(--amber-text); }
[data-deck="language"] { --tape: var(--tape-language); }
[data-deck="delivery"] { --tape: var(--tape-delivery); }
[data-deck="who"] { --tape: var(--tape-who); }
[data-deck="when"] { --tape: var(--tape-when); }
.sheet-body { position: relative; padding: 10px 14px 16px; border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--sheet); }
.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 18px; }
.line { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px 6px 8px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--chalk); text-align: left; font-size: var(--t-md);
  font-weight: 500; cursor: pointer; transition: background-color 150ms var(--ease); }
.line:hover { background: var(--sheet-2); }
.line:active .label { transform: translateX(1px); }
.tape { display: grid; gap: 3px; justify-items: center; }
.tape i { width: 16px; height: 6px; border-radius: 1px; background: var(--tape); transform: rotate(-5deg); }
.tape i + i { transform: rotate(4deg); }
.label { min-width: 0; line-height: 1.2; overflow-wrap: break-word; }
.native { display: block; margin-top: 2px; font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.group-h { grid-column: 1 / -1; margin: 16px 0 2px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.group-h:first-child { margin-top: 6px; }
.group-h .count { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.shot { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.line[aria-current="true"] { background: radial-gradient(130% 160% at 0% 50%, var(--amber-glow), var(--amber-soft) 55%, transparent 100%);
  box-shadow: inset 0 0 0 1px var(--amber); }
.line[aria-current="true"] .label { font-weight: 700; }
.line[aria-current="true"] .shot { color: var(--amber-text); }
.line.pair-mate { box-shadow: inset 0 0 0 1px var(--line); }
#notes.is-pairs .line.pair-mate { box-shadow: none; }
.pairing:not(:empty) { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pairing-title { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.pairing-title b { color: var(--chalk); }
.pairing .lines { margin-top: 4px; }
.pairing .none { margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.sheet-create { display: none; }
@container (max-width: 520px) { .tab .count { display: none; } }
@container (max-width: 400px) { .tab { padding-inline: 8px; } .tab::before { left: 8px; width: 16px; } }
@container (max-width: 330px) { .tab { min-width: 44px; padding-inline: 4px; } .tab::before { left: 4px; } }

/* ---------- second act */
.act2 { padding: 64px var(--gutter) 24px; border-top: 1px solid var(--line); background: var(--band); }
.act2-head { max-width: 1320px; margin: 0 auto; }
.act2-head h2 { font-family: var(--display); font-stretch: 64%; font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.92; text-transform: uppercase; }
.act2-head p { max-width: 60ch; text-wrap: balance; margin-top: 10px; font-size: var(--t-lg); line-height: 1.45; color: var(--muted); }
.act2-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; max-width: 1320px; margin: 32px auto 0; align-items: start; }
.recipe-panel { padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet); }
.rp-head { display: flex; align-items: center; gap: 16px; }
.rp-thumb { width: 54px; height: 96px; border-radius: 2px; object-fit: cover; background: #0c0b0a; }
.rp-kicker { font-size: var(--t-sm); font-weight: 600; color: var(--amber-text); }
.rp-head h3 { margin-top: 4px; font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; text-transform: uppercase; }
.recipe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.5; }
.recipe dt, .recipe dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.recipe dt { padding-right: 18px; font-weight: 600; color: var(--muted); }
.recipe dd { margin: 0; }
.recipe-panel h4 { margin-top: 22px; font-size: var(--t-md); font-weight: 700; }
.rp-note { margin: 4px 0 12px; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.steps { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.steps { gap: 0; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.steps .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.steps .bar-track { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 2px; }
.steps .bar-track i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--amber); }
.reel-panel { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--sheet); }
.reel-poster { width: 132px; height: auto; aspect-ratio: 9 / 16; border-radius: 2px; object-fit: cover; background: #0c0b0a; }
.reel-copy h3 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; text-transform: uppercase; }
.reel-copy p { margin-top: 8px; font-size: var(--t-md); line-height: 1.5; color: var(--muted); }
.reel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.reel-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.act2-side { display: grid; gap: 24px; align-content: start; min-width: 0; }

/* ---------- take-home downloads: the agent skill and the making-of, clipped to the call sheet */
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl-row { margin-top: 16px; }
.dl-short { display: none; }
.dl-card .dl-help { margin-top: 2px; }
.dl-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px 13px 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
@media (hover: hover) { .dl-card:hover { border-color: var(--amber); background: var(--sheet-2); } }
.dl-card:has(.dl-title:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.dl-icon { width: 22px; height: 22px; margin-top: 1px; color: var(--amber-text); stroke-width: 1.6; }
.dl-title { display: block; color: var(--chalk); font-size: var(--t-md); font-weight: 650; line-height: 1.25; text-decoration: none; }
.dl-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dl-title:focus-visible { outline: none; }
.dl-meta { margin-top: 2px; font-size: var(--t-sm); color: var(--muted); }
.dl-line { margin-top: 6px; font-size: var(--t-sm); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.dl-help { position: relative; z-index: 1; min-height: 26px; font-size: var(--t-sm); }
.dl-help::before { content: ""; position: absolute; inset: -9px -6px; }
.takehome-panel h3 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-xl); line-height: 1; text-transform: uppercase; }
.takehome-panel > p { max-width: 60ch; margin: 8px 0 14px; font-size: var(--t-sm); line-height: 1.55; color: var(--muted); }
.quickstart { margin-top: 18px; }
.quickstart h4 { font-size: var(--t-sm); font-weight: 600; color: var(--amber-text); }
.quickstart ol { margin: 8px 0 0; padding-left: 20px; font-size: var(--t-sm); line-height: 1.55; }
.quickstart li + li { margin-top: 4px; }
.quickstart code { padding: 1px 5px; border-radius: var(--r); background: var(--sheet-2); font-family: var(--mono); font-size: 0.9em; }
.prompt { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); font-family: var(--mono);
  font-size: var(--t-sm); line-height: 1.6; color: var(--chalk); }
.quick-dialog { width: min(520px, 100vw); }
.quick-dialog .quickstart { margin-top: 0; }
.quick-dialog .prompt { background: var(--sheet-2); }
.quick-dialog .btn-primary .i { fill: none; stroke: currentColor; }
.foot-downloads { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.foot-downloads a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.foot-downloads a:hover { color: var(--amber-text); text-decoration-color: var(--amber); }
.mouth { max-width: 1320px; margin: 56px auto 0; }
.mouth-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 28px; }
.mouth-head h3 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; text-transform: uppercase; }
.mouth-head p { max-width: 70ch; margin-top: 10px; font-size: var(--t-md); line-height: 1.5; color: var(--muted); }
.mouth-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.mouth-back { margin-top: 12px; }
.mouth-grid figure { margin: 0; padding: 8px 8px 10px; border-radius: var(--r-lg); background: var(--mon-bezel); }
.mouth-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 2px; background: var(--mon-screen); }
.mouth-grid figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mon-text); }
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; max-width: 1320px; margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid var(--line); }
.wrap h3 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; text-transform: uppercase; }
.wrap p { max-width: 68ch; margin-top: 10px; font-size: var(--t-md); line-height: 1.55; color: var(--muted); }
.wrap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

.foot { border-top: 1px solid var(--line); font-size: var(--t-sm);
  --exploration-footer-bg: var(--stage); --exploration-footer-ink: var(--chalk); --exploration-footer-border: var(--line); }
.foot-copy { max-width: 1320px; margin: 0 auto; padding: 22px var(--gutter) 14px; }
.foot-copy p { margin-bottom: 6px; line-height: 1.5; }
.foot [data-exploration-controls] { padding-inline: var(--gutter); }

/* desktop: the call sheet scrolls in place, so a long deck never pushes the monitor off screen (A4) */
@media (min-width: 1001px) {
  .village { height: calc(100dvh - var(--bar)); min-height: 0; }
  .callsheet { height: calc(100dvh - var(--bar)); overflow-y: auto; scrollbar-gutter: stable; }
}
/* wide screens: the strip and the lines use the room (B11) */
@media (min-width: 1600px) {
  .frames { grid-template-columns: repeat(6, minmax(0, 96px)); }
  .edge { font-size: 12px; }
  .lines { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (max-width: 1000px) {
  .act2-grid { grid-template-columns: minmax(0, 1fr); }
  .mouth-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .mouth-head .btn { justify-self: start; }
  .mouth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- the cut sheet (phones and short screens) */
.sheet-dialog { width: min(460px, 100vw); max-width: 100vw; margin: auto; padding: 18px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--sheet); color: var(--chalk); }
.sheet-dialog[open] { animation: rise 200ms var(--ease); }
.sheet-dialog::backdrop { background: rgba(10, 9, 8, 0.55); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog-head h2 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-dialog .strip-hint { margin-top: 10px; }
.sheet-dialog .frames { grid-template-columns: repeat(3, minmax(0, 76px)); justify-content: center; column-gap: 18px; row-gap: 14px; }
.side-dialog { width: min(480px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  overflow-y: auto; overscroll-behavior: contain; }
.side-dialog[open] { animation: slide-in 220ms var(--ease); }
@keyframes slide-in { from { opacity: 0.6; transform: translateX(24px); } }
.side-dialog::backdrop { background: rgba(10, 9, 8, 0.35); }
.side-dialog .dialog-head { position: sticky; top: 0; z-index: 1; margin: 0; padding: 6px 12px 6px 24px; border-bottom: 1px solid var(--line); background: var(--sheet); }
.side-kicker { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.side-slot .recipe-panel { border: 0; border-radius: 0; background: transparent; }
.side-dialog .back-to-monitor { display: none; }
.side-more { padding: 0 24px 24px; }
/* under 1001 px, a bottom sheet that leaves the top of the monitor in view; short landscape keeps the side sheet */
@media (max-width: 1000px) and (min-height: 501px) {
  .side-dialog { width: 100vw; height: auto; max-height: 85dvh; margin: auto 0 0; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .side-dialog[open] { animation: rise 200ms var(--ease); }
}

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; align-items: center; gap: 14px; width: max-content;
  max-width: calc(100vw - 32px); padding: 6px 8px 6px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--sheet); color: var(--chalk); font-size: var(--t-sm);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.18); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.toast .text-link { min-width: 44px; justify-content: center; color: var(--amber-text); }
.toast:not(:has(#toastAction:not([hidden]))) { padding-right: 16px; min-height: 44px; }

/* ---------- short screens (landscape phones, small laptops): the cut opens as a sheet */
@media (min-width: 700px) and (max-height: 640px) {
  .strip { display: none; }
  .mon-cut { display: grid; }
  .rig { gap: 6px; padding-block: 8px; }
  .monitor { padding: 6px 10px; gap: 6px; }
  /* A11: no readout in a short monitor; five 44 px icon buttons in two columns (their names are in aria-label) */
  .readout, .pl-scene { display: none; }
  .pillar-ctl { display: grid; grid-template-columns: repeat(2, 44px); align-content: center; gap: 6px; }
  .mon-btn { width: 44px; min-height: 44px; padding: 2px; }
  .mon-btn span:not(.cut-count-badge) { display: none; }
  .mon-cut { gap: 2px; }
  .mon-cut span.lbl-short { display: inline; }
  .mon-models { -webkit-line-clamp: 1; }
  /* B1: the notes come first on a short screen */
  .cs-kind, .cs-meta > div:not(.cs-line) { display: none; }
  .cs-meta { grid-template-columns: minmax(0, 1fr); }
  .cs-meta .cs-line { padding-left: 0; border-left: 0; }
  .dl-card { padding: 10px 11px 11px; gap: 8px; }
  .dl-card .dl-line { display: none; }
  .cs-head h1 { font-size: 36px; }
  .cs-lede { margin-top: 8px; font-size: var(--t-sm); }
  .cs-aside, .cs-direction { display: none; }
  .tabs { margin-top: 12px; }
}
/* C4: a short cut sheet keeps its actions in view; C N3: captions below the mouth */
@media (max-height: 500px) {
  .caption { left: 4px; right: 4px; bottom: 4px; padding: 6px 8px; font-size: 12px; line-height: 1.3; }
  .caption small { display: none; }
  .picture:has(> .caption:not([hidden])) .lower-third { opacity: 0; }
  .sheet-dialog { max-height: calc(100dvh - 16px); padding: 10px 20px 12px; overscroll-behavior: contain; }
  .sheet-dialog .dialog-head { margin-bottom: 6px; }
  .sheet-dialog .frames { grid-template-columns: repeat(6, minmax(0, 52px)); column-gap: 10px; }
  .sheet-dialog .dialog-actions { margin-top: 10px; }
  .sheet-dialog .strip-hint { margin-top: 6px; }
}

/* ---------- phones: the monitor fills the width and stays on top */
@media (max-width: 699px) {
  .cs-head h1 { font-size: 40px; }
  .cs-lede { margin-top: 8px; font-size: var(--t-sm); line-height: 1.45; }
  .dl-row { margin-top: 12px; }
  .dl-card { gap: 6px; padding: 9px 9px 10px 8px; }
  .dl-card .dl-icon { width: 16px; height: 16px; }
  .dl-card .dl-title { font-size: 15px; line-height: 1.2; }
  .dl-card .dl-long { display: none; }
  .dl-card .dl-short { display: inline; }
  .dl-card .dl-line { margin-top: 2px; font-size: var(--t-xs); line-height: 1.35; }
  /* B1: on a phone the call sheet leads with the line and the notes */
  .cs-kind, .cs-meta > div:not(.cs-line) { display: none; }
  .tabs { margin-top: 12px; }
  /* B13, C7: the deck tabs stick under the monitor, and focus never lands behind either */
  html { scroll-padding-top: calc(var(--bar) + var(--mon-h, 0px) + 60px); }
  .tabs { position: sticky; top: calc(var(--bar) + var(--mon-h, 0px)); z-index: 9; padding-top: 6px; background: var(--stage); }
  /* A4: the Pairs deck as a two-column grid of compact rows */
  #notes.is-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  #notes.is-pairs .line { grid-template-columns: 16px minmax(0, 1fr); gap: 8px; min-height: 48px; padding: 6px 4px; font-size: var(--t-sm); }
  #notes.is-pairs .shot { grid-column: 2; }
  #notes.is-pairs .shot:empty { display: none; }
  /* B2, C8: frame lines above the title band; captions at the bottom edge, below the mouth */
  .frame-lines { inset: 5% 6% 20%; }
  .caption { left: 4px; right: 4px; bottom: 4px; padding: 6px 8px; font-size: 12px; line-height: 1.3; }
  .caption small { display: none; }
  .picture:has(> .caption:not([hidden])) .lower-third { opacity: 0; }
  :root { --bar: 48px; }
  .bar { gap: 10px; padding: 0 12px; }
  .back { padding-left: 10px; }
  .village { display: flex; flex-direction: column; }
  .rig { display: contents; }
  .monitor { position: sticky; top: var(--bar); z-index: 10; gap: 6px; padding: 8px 10px; border: 0; border-bottom: 1px solid #2a2622; border-radius: 0; }
  .mon-body { gap: 10px; grid-template-rows: clamp(190px, 40svh, 420px); }
  .take-num { font-size: clamp(40px, 13vw, 64px); }
  .pillar { gap: 6px; }
  .pl-scene, .readout { display: none; }
  .deck-tag { gap: 5px; font-size: 11px; letter-spacing: 0.06em; }
  .deck-tag i { width: 12px; height: 5px; }
  /* six controls in two columns of 44 px beside the picture */
  .mon-body { grid-template-columns: minmax(0, 1fr) auto 94px; }
  .pillar-ctl { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; align-content: center; justify-content: end; }
  .mon-btn { width: 44px; min-height: 44px; padding: 2px 0; gap: 2px; font-size: 11px; letter-spacing: 0; }
  .mon-btn .i { width: 16px; height: 16px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .mon-cut { display: grid; }
  .lt-note { font-size: var(--t-md); }
  .lower-third { padding: 32px 10px 10px; }
  .strip { display: none; }
  .callsheet { padding: 22px 16px 32px; }
  .cs-meta { grid-template-columns: minmax(0, 1fr); }
  .cs-meta .cs-line { padding-left: 0; border-left: 0; }
  .cs-direction { font-size: var(--t-md); }
  .sheet-body { padding: 6px 8px 12px; }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .act2 { padding: 48px 16px 16px; }
  .act2-grid, .wrap { grid-template-columns: minmax(0, 1fr); }
  .reel-panel { grid-template-columns: 96px minmax(0, 1fr); padding: 18px; }
  .reel-poster { width: 96px; }
  .recipe-panel { padding: 18px; }
  .mouth-head { grid-template-columns: minmax(0, 1fr); }
  .mouth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-dialog { width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
/* short phones: the pinned monitor already takes most of the screen, so the tabs scroll with the notes */
@media (max-width: 699px) and (max-height: 600px) {
  html { scroll-padding-top: calc(var(--bar) + var(--mon-h, 0px) + 12px); }
  .tabs { position: static; padding-top: 0; }
}
@media (max-width: 400px) {
  .bar { gap: 8px; padding: 0 10px; }
  .bar-end { gap: 4px; }
  .bar-create { padding: 0 10px; }
  .bar-create .i { display: none; }
}
@media (max-width: 374px) {
  .bar-create { display: none; }
  /* A12: the call sheet's Create yours only where the bar has no room for it */
  .sheet-create { display: flex; width: 100%; margin-top: 20px; }
  .cs-aside { display: none; }
}
@media (max-width: 359px) {
  .logo { height: 15px; }
  .mon-body { grid-template-rows: clamp(180px, 40svh, 300px); gap: 8px; }
  .line { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .slate .stick-top { transform: none; }
  .slate, .slate.on { transition: opacity 120ms linear !important; }
  .take-video { transition: opacity 120ms linear !important; }
}

/* round 4 (Emmanuel review 1) */
/* B24, C N2: in full screen on short screens the caption band uses the black sides and sits below the mouth */
@media (max-height: 500px) {
  .picture.is-full .caption { left: 5%; right: 5%; bottom: 8px; padding: 6px 12px; font-size: 16px; }
  .picture.is-full .caption small { display: none; }
  /* R4-3: the idle instruction gets a third line on the small short-screen picture */
  .picture:not(.is-full) .lt-note { -webkit-line-clamp: 3; font-size: var(--t-sm); }
}
/* C N4: on touch screens Quickstart is its own 44 px target, clear of the card's download link */
@media (pointer: coarse) {
  .dl-card .dl-help { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -8px -10px; padding: 0 10px; }
  .dl-card .dl-help::before { inset: 0; }
}
/* R4-2, B21, C N3: on short phones the model line steps back (the recipe names the models), so the cards show */
@media (max-width: 699px) and (max-height: 600px) {
  .mon-foot .mon-models { display: none; }
}
/* B22: at 320 the take pillar gets back to one-line labels */
@media (max-width: 359px) {
  .monitor { padding-inline: 6px; }
  .mon-body { gap: 6px; }
  .kick-next { display: none; }
  .deck-tag { flex-direction: row; align-items: center; gap: 4px; letter-spacing: 0; white-space: nowrap; }
  .deck-tag i { width: 10px; }
}

/* Emmanuel review 2: How this was made, the whole making-of in a large dialog */
.bar-how { min-height: 36px; padding: 0 14px; }
.bar-how .i { width: 16px; height: 16px; }
.how-dialog { width: min(90vw, 1280px); max-width: 100vw; height: min(90dvh, 1100px); max-height: 100dvh; margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--stage); color: var(--chalk); }
.how-dialog[open] { display: flex; flex-direction: column; animation: rise 200ms var(--ease); }
.how-dialog::backdrop { background: rgba(10, 9, 8, 0.7); }
.how-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line); background: var(--sheet); }
.how-eyebrow { font-size: var(--t-sm); font-weight: 600; color: var(--amber-text); }
.how-head h2 { margin-top: 2px; font-family: var(--display); font-stretch: 64%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; text-transform: uppercase; }
.how-close { flex: none; border-color: var(--line); }
.how-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(20px, 3vw, 40px) 40px; }
.how-intro { max-width: 72ch; }
.how-sub { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-xl); line-height: 1.1; text-transform: uppercase; }
.how-lede { margin-top: 12px; font-size: var(--t-lg); line-height: 1.5; color: var(--chalk); }
.how-note { margin-top: 12px; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.how-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.how-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.how-stats dt { order: 2; margin-top: 4px; font-size: var(--t-sm); color: var(--muted); }
.how-stats div { display: flex; flex-direction: column; }
.how-stats dd { margin: 0; font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; color: var(--amber-text); }
.how-cover { max-width: 960px; margin-top: 24px; }
.how-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.how-kicker { font-size: var(--t-sm); font-weight: 600; color: var(--amber-text); }
.how-sec h3 { margin-top: 6px; font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: var(--t-2xl); line-height: 1.05; text-transform: uppercase; }
.how-text p, .how-text li { font-size: var(--t-md); line-height: 1.55; color: var(--muted); }
.how-text > p, .how-text > .how-block, .how-text > blockquote { margin-top: 12px; }
.how-text h4 { margin-top: 18px; font-size: var(--t-md); font-weight: 700; color: var(--chalk); }
.how-block h4 { margin-top: 0; }
.how-block p { margin-top: 4px; }
.how-list { margin: 8px 0 0; padding-left: 20px; }
.how-list li + li { margin-top: 4px; }
.how-quote { margin: 14px 0 0; padding: 12px 16px; border-left: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.how-quote p { color: var(--chalk); }
.how-qlabel { font-size: var(--t-sm); font-weight: 600; color: var(--muted) !important; }
.how-runs, .how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-runs li, .how-steps li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-md); line-height: 1.5; color: var(--muted); }
.how-steps { margin-top: 12px; }
.how-when, .how-step { font-size: var(--t-sm); font-weight: 700; color: var(--chalk); }
.how-figures { font-family: var(--mono); font-size: var(--t-xs); color: var(--amber-text); }
.how-figs { display: grid; gap: 16px; align-content: start; }
.how-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.how-fig { margin: 0; }
.how-fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: #0c0b0a; }
.how-fig figcaption { margin-top: 6px; font-size: var(--t-sm); line-height: 1.45; color: var(--muted); }
.how-table-wrap { margin-top: 14px; overflow-x: auto; }
.how-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.45; }
.how-table th, .how-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.how-table thead th { font-weight: 600; color: var(--muted); }
.how-table tbody th { font-weight: 600; color: var(--chalk); }
.how-num { font-family: var(--mono); font-size: var(--t-xs); white-space: nowrap; color: var(--chalk) !important; }
.how-cu td { text-align: right; }
.how-take { grid-template-columns: minmax(0, 1fr); }
.how-take .dl-cards { max-width: 820px; }
@media (max-width: 1000px) {
  .how-sec { grid-template-columns: minmax(0, 1fr); }
  .how-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .bar-how { width: 36px; padding: 0; }
  .bar-how .how-label { display: none; }
  .how-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .how-head { padding: 8px 8px 8px 16px; }
  .how-head h2 { font-size: var(--t-xl); }
  .how-body { padding: 20px 16px 32px; }
  .how-lede { font-size: var(--t-md); }
  .how-stats dd { font-size: var(--t-xl); }
}

/* round 5: the making-of reads by keyboard; a 44 px target for the phone button; full-screen sheet in phone landscape */
.how-body:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bar-how { position: relative; }
.bar-how::after { content: ""; position: absolute; inset: -5px; }
@media (max-height: 500px) {
  .how-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .how-head { padding: 6px 8px 6px 16px; }
  .how-head h2 { font-size: var(--t-xl); }
}

/* Emmanuel review 3: the reel at the top, the quickest way in */
.reel-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 8px 14px 8px 8px; border: 1px solid var(--amber); border-radius: var(--r);
  background: var(--amber-soft); color: var(--chalk); text-align: left; cursor: pointer; transition: background-color 150ms var(--ease), transform 120ms var(--ease); }
.reel-cta:hover { background: rgba(240, 166, 58, 0.22); }
.reel-cta:active { transform: scale(0.99); }
.reel-cta-poster { flex: none; width: 36px; height: 64px; border-radius: 2px; object-fit: cover; background: #0c0b0a; }
.reel-cta-text { display: grid; gap: 2px; min-width: 0; }
.reel-cta-title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-md); font-weight: 700; }
.reel-cta-title .i { width: 14px; height: 14px; fill: var(--amber-text); stroke: none; }
.reel-cta-sub { font-size: var(--t-sm); color: var(--muted); }
.reel-cta + .dl-row { margin-top: 10px; }
.reel-stage { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
.reel-stage video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; background: #000; }
.reel-note { flex: none; padding: 8px 16px 10px; font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--line); background: var(--sheet); }
@media (max-width: 699px) {
  .reel-cta { margin-top: 10px; padding: 4px 12px 4px 4px; gap: 10px; }
  .reel-cta-poster { width: 24px; height: 42px; }
  .reel-cta-sub { display: none; }
  .reel-cta + .dl-row { margin-top: 8px; }
}
