/* ==========================================================================
   BMT Productions — styles
   Order: fonts → tokens → base → components → header (slate) → sections →
   form → footer (end credits) → consent → legal pages → 404 → utilities →
   motion → print
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Saira Extra Condensed';
  src: url('../fonts/saira-xc-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Extra Condensed';
  src: url('../fonts/saira-xc-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Extra Condensed';
  src: url('../fonts/saira-xc-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gudea';
  src: url('../fonts/gudea-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gudea';
  src: url('../fonts/gudea-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gudea';
  src: url('../fonts/gudea-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Studio daylight surfaces */
  --studio: #e4e8eb;
  --studio-2: #d5dbdf;
  --paper: #fbfbf9;
  --field: #eef1f3;
  /* Ink and slate */
  --ink: #111417;
  --ink-2: #414952;
  --line: #b4bcc3;
  --slate: #15171b;
  --slate-2: #2a2d33;
  --edit: #1b1e23;
  --chalk: #f2f1ea;
  --chalk-dim: #b9bdc3;
  --chalk-line: rgba(242, 241, 234, 0.22);
  /* Timeline clip colors */
  --tally: #b3202b;
  --tally-dark: #8c1720;
  --tally-bright: #ff6a6e;
  --teal: #0b6468;
  --amber: #e8ac2e;
  --tape: #efe6cf;
  --ok-bg: #e2f0ee;
  --err-bg: #fbeceb;

  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --body: 'Gudea', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --shadow: 0 22px 44px -28px rgba(17, 20, 23, 0.45);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
}

body.nav-open { overflow: hidden; }

h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Components ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--chalk);
  color: var(--ink);
  font: 700 18px/1 var(--display);
  text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons share one height and the condensed display face. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 21px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-rec { background: var(--tally); color: var(--chalk); }
.btn-rec:hover { background: var(--tally-dark); color: var(--chalk); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--chalk); }

/* The red "recording" light used on calls to action. */
.rec-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chalk);
  box-shadow: 0 0 0 3px rgba(242, 241, 234, 0.25);
  animation: rec-blink 2.4s steps(1, end) infinite;
}

/* Section labels are small slates: striped clapstick, field name, take number. */
.slate-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  padding-top: 7px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--slate);
  color: var(--chalk);
  font-family: var(--display);
}
.slate-chip::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: repeating-linear-gradient(-55deg, var(--chalk) 0 8px, var(--slate) 8px 16px);
}
.chip-field {
  padding: 7px 12px 5px;
  border-right: 1px solid var(--chalk-line);
  color: var(--chalk-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.chip-value {
  padding: 2px 14px 0;
  color: var(--amber);
  font-size: 24px;
  font-weight: 800;
}

.section-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  margin: 16px 0 0;
  font: 800 clamp(34px, 4.6vw, 62px)/0.95 var(--display);
  text-transform: uppercase;
}
.section-lede { max-width: 62ch; margin: 18px 0 0; color: var(--ink-2); font-size: 19px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---------- Header: the clapperboard slate ---------- */
.slate {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate);
  color: var(--chalk);
  transition: box-shadow 0.25s;
}
.slate.is-scrolled { box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.55); }

.slate-sticks {
  height: 12px;
  background: repeating-linear-gradient(-55deg, var(--chalk) 0 18px, var(--slate) 18px 36px);
  transform-origin: 0 100%;
  animation: clap 0.7s ease-out 0.3s both;
}

.slate-board {
  display: flex;
  align-items: stretch;
  max-width: 1440px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 20px;
  border-right: 1px solid var(--chalk-line);
  color: var(--chalk);
  text-decoration: none;
}
.brand:hover { color: var(--chalk); }
.brand-mark { flex: none; width: 42px; height: 38px; color: var(--chalk); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-label {
  color: var(--chalk-dim);
  font: 500 12px/1 var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand-name {
  font: 800 25px/1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.slate-nav { flex: 1; }
.slate-fields { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.slate-fields li { flex: 1; border-right: 1px solid var(--chalk-line); }
.slate-fields a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  height: 100%;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.slate-fields a:hover { background: var(--slate-2); }
.slate-fields a[aria-current] { box-shadow: inset 0 -4px 0 var(--tally-bright); }
.field-label {
  color: var(--chalk-dim);
  font: 500 12px/1 var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.field-value {
  font: 700 22px/1.05 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.field-num { color: var(--amber); }

.slate-call {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  min-height: 46px;
  margin-left: 18px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--tally);
  color: var(--chalk);
  font: 700 21px/1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.slate-call:hover { background: var(--tally-dark); color: var(--chalk); }
.call-word { display: none; text-transform: uppercase; }

.slate-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid var(--chalk);
  border-radius: var(--radius);
  background: transparent;
  color: var(--chalk);
  font: 700 20px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.slate-toggle:hover { background: var(--slate-2); }
.toggle-icon { display: grid; gap: 5px; width: 20px; }
.toggle-icon span { height: 3px; background: currentColor; transition: transform 0.25s; }
.slate-toggle[aria-expanded="true"] .toggle-icon span:first-child { transform: translateY(4px) rotate(45deg); }
.slate-toggle[aria-expanded="true"] .toggle-icon span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1179px) {
  :root { --header-h: 70px; }
  .slate-sticks { height: 10px; }
  .slate-board { align-items: center; gap: 10px; min-height: 60px; }
  .brand { flex: 1; padding-right: 0; border-right: 0; }
  .slate-call { margin-left: 0; }
  .slate-toggle { display: inline-flex; }
  .slate-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    padding: 20px var(--pad) 32px;
    overflow-y: auto;
    background: var(--slate);
  }
  .js .slate-nav:not(.is-open) { display: none; }
  .slate-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    max-width: 720px;
    margin: 0 auto;
    border: 2px solid var(--chalk-line);
  }
  .slate-fields li { border: 1px solid var(--chalk-line); }
  .slate-fields li:last-child { grid-column: 1 / -1; }
  .slate-fields a { min-height: 96px; padding: 16px 20px; }
  .field-label { font-size: 14px; }
  .field-value { font-size: 34px; }
}

@media (max-width: 479px) {
  .call-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .brand-rest {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .call-word { display: inline; }
  .slate-call { padding: 0 14px; }
  .brand-label { display: none; }
  .brand-mark { width: 36px; height: 33px; }
  .field-value { font-size: 28px; }
}

@media (max-width: 389px) {
  .brand-name { font-size: 22px; }
  .slate-board { gap: 8px; }
  .slate-toggle { padding: 0 10px; gap: 8px; }
}

/* ---------- Hero: film strip into the timeline ---------- */
.hero { padding-top: clamp(36px, 6vw, 80px); background: var(--studio); }
.hero-head { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.hero-title {
  max-width: 20ch;
  margin: 0 0 clamp(28px, 4vw, 52px);
  font: 800 clamp(40px, 8.6vw, 132px)/0.88 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero-line-accent { display: block; color: var(--tally); }

.reel { margin: 0; background: var(--edit); }
.reel-svg { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 336; }
.playhead { animation: playhead 18s linear infinite; }
.reel-caption {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px var(--pad) 14px;
  color: var(--chalk-dim);
  font-size: 15px;
  text-align: right;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--pad) clamp(24px, 4vw, 40px);
}

/* The editing app's clip inspector, holding the facts from the filing. */
.inspector {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 16px;
}
.inspector::before {
  content: 'Clip info';
  display: block;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--studio-2);
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.inspector div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 14px;
}
.inspector div + div { border-top: 1px solid var(--studio-2); }
.inspector dt {
  color: var(--ink-2);
  font: 500 14px/1.6 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.inspector dd { margin: 0; }

.hero-text { max-width: 46ch; margin: 0; font-size: clamp(19px, 1.6vw, 22px); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 0; }

@media (max-width: 1099px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 759px) {
  .reel-svg { height: 280px; aspect-ratio: auto; }
  .reel-caption { text-align: left; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-text { order: -1; }
}

/* ---------- Scene 01: the shot list ---------- */
.scene { padding: var(--section) 0; }
.shot-list { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.shot {
  display: grid;
  grid-template-columns: 80px minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.shot-code {
  margin: 0;
  color: var(--tally);
  font: 800 64px/0.85 var(--display);
}
.shot-frame {
  padding: 8px;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: var(--shadow);
}
.shot-frame svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.shot-body h3 {
  margin: 0 0 10px;
  font: 700 clamp(30px, 3vw, 38px)/1 var(--display);
  text-transform: uppercase;
}
.shot-body > p { max-width: 60ch; margin: 0; }
.shot-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.shot-specs dt {
  color: var(--ink-2);
  font: 500 14px/1.4 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.shot-specs dd { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }

@media (max-width: 899px) {
  .shot { grid-template-columns: 64px minmax(0, 1fr); }
  .shot-code { font-size: 52px; }
  .shot-body { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .shot { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shot-code { font-size: 44px; }
  .shot-specs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- Take 02: the camera report ---------- */
.process { padding: var(--section) 0; background: var(--studio-2); }
.report {
  --report-cols: 120px 220px minmax(0, 1fr) 130px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.report-head {
  display: grid;
  grid-template-columns: var(--report-cols);
  gap: 0 24px;
  margin: 0;
  padding: 10px 24px;
  background: var(--ink);
  color: var(--chalk);
  font: 500 14px/1.4 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.report-head span:last-child { text-align: right; }
.report-list { margin: 0; padding: 0; list-style: none; }
.take-row {
  display: grid;
  grid-template-columns: var(--report-cols);
  gap: 6px 24px;
  align-items: baseline;
  padding: 24px;
}
.take-row + .take-row { border-top: 1px solid var(--line); }
.take-num { margin: 0; font: 800 34px/1 var(--display); }
.take-word {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.take-digit { position: relative; display: inline-block; padding: 0 6px; }
.take-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 50px;
  max-width: none;
  transform: translate(-50%, -52%);
  overflow: visible;
}
.take-circle path {
  fill: none;
  stroke: var(--tally);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
}
.js .report:not(.is-in) .take-circle path { stroke-dashoffset: 220; }
.js .report.is-in .take-circle path { transition: stroke-dashoffset 1.1s ease-out 0.6s; }
.take-title { margin: 0; font: 700 26px/1.05 var(--display); text-transform: uppercase; }
.take-text { margin: 0; }
.take-when {
  margin: 0;
  color: var(--teal);
  font: 700 19px/1.2 var(--display);
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}
.take-keeper { background: var(--tape); }

@media (max-width: 899px) {
  .report-head { display: none; }
  .take-row { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 20px; }
  .take-title, .take-text { grid-column: 1 / -1; }
  .take-num { grid-row: 1; }
  .take-when { grid-row: 1; grid-column: 2; }
}

/* ---------- Roll 03: film cans ---------- */
.roll { padding: var(--section) 0; background: var(--slate); color: var(--chalk); }
.roll .section-lede { color: var(--chalk-dim); }
.roll .slate-chip, .callsheet .slate-chip, .legal-card .slate-chip { background: var(--slate-2); }
.roll .slate-chip::before, .legal-card .slate-chip::before {
  background: repeating-linear-gradient(-55deg, var(--chalk) 0 8px, var(--slate-2) 8px 16px);
}
.can-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.can-lid {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #2b2e35 0 9%, #5b616a 9.5% 11%, transparent 11.5%),
    repeating-radial-gradient(circle, #4a4f57 0 3px, #555b64 3px 7px);
  box-shadow: inset 0 0 0 10px #3a3e46, inset 0 0 0 13px #6b717a, 0 18px 30px -18px #000;
}
.can-tape {
  position: absolute;
  left: 9%;
  right: 9%;
  padding: 10px 8px 12px;
  background: var(--tape);
  color: var(--ink);
  text-align: center;
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.can-tape p { margin: 0; }
.can-roll {
  color: var(--ink-2);
  font: 500 14px/1.2 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.can-name { font: 800 clamp(24px, 2.2vw, 30px)/1.05 var(--display); text-transform: uppercase; }
.can-price { color: var(--tally); font: 800 clamp(28px, 2.6vw, 36px)/1 var(--display); }
.can-from {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.can-list { margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; text-align: center; }
.can-list li { padding: 7px 0; }
.can-list li + li { border-top: 1px dashed var(--chalk-line); }
.roll-note { max-width: 72ch; margin: clamp(40px, 5vw, 64px) 0 0; color: var(--chalk-dim); font-size: 16px; }
.roll-note a { color: var(--amber); }
.roll-note a:hover { color: var(--chalk); }

@media (max-width: 999px) {
  .can-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 519px) {
  .can-shelf { grid-template-columns: minmax(0, 1fr); }
  .can-lid { max-width: 280px; }
}

/* ---------- Director 04: about ---------- */
.director { padding: var(--section) 0; }
.director-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 0 clamp(32px, 6vw, 96px);
  align-items: start;
}
.director-grid .section-head { grid-column: 1 / -1; }
.director-copy > p { max-width: 62ch; margin: 0 0 18px; }
.notes { margin: 28px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); }
.notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 14px;
  border: 2px solid var(--slate);
  border-radius: 2px;
  background: repeating-linear-gradient(-55deg, var(--slate) 0 3px, var(--chalk) 3px 6px) top / 100% 5px no-repeat, var(--chalk);
}

/* The call sheet's location list. */
.locations {
  padding: 24px 26px 26px;
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--chalk);
  box-shadow: var(--shadow);
}
.locations-title {
  margin: 0 0 12px;
  color: var(--amber);
  font: 800 26px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.locations-list { margin: 0; padding: 0; list-style: none; counter-reset: loc; }
.locations-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--chalk-line);
  font: 700 21px/1.2 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  counter-increment: loc;
}
.locations-list li::before {
  content: 'Loc ' counter(loc, decimal-leading-zero);
  min-width: 52px;
  color: var(--chalk-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.locations-note { margin: 14px 0 0; color: var(--chalk-dim); font-size: 15px; }

@media (max-width: 859px) {
  .director-grid { grid-template-columns: minmax(0, 1fr); }
  .locations { margin-top: 36px; }
}

/* ---------- Script notes: FAQ as a screenplay page ---------- */
.script { padding: var(--section) var(--pad); background: var(--studio-2); }
.script-page {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) clamp(28px, 8vw, 104px);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
/* Three brass brads down the binding edge. */
.script-page::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 14px;
  background: radial-gradient(circle, #b08a3a 0 5px, var(--studio-2) 5.5px 7px, transparent 7.5px) center / 14px 33.33% repeat-y;
}
.script-head { text-align: center; }
.script-heading {
  margin: 0;
  font: 700 19px/1.3 var(--display);
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.script-head h2 {
  margin: 20px 0 0;
  font: 800 clamp(30px, 4vw, 48px)/1 var(--display);
  text-transform: uppercase;
}
.script-body { margin: 40px 0 0; }
.script-beat + .script-beat { margin-top: 34px; }
.script-beat dt, .script-beat dd { margin: 0; }
.script-beat dd { margin-top: 18px; }
.script-cue {
  display: block;
  margin-bottom: 4px;
  font: 700 18px/1.2 var(--display);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}
dt .script-cue { color: var(--teal); }
dd .script-cue { color: var(--tally); }
.script-line { display: block; max-width: 32em; margin: 0 auto; }
dt .script-line { font-weight: 700; }
.script-paren { margin: 0 0 6px; color: var(--ink-2); font-style: italic; text-align: center; }
.script-fade {
  margin: 40px 0 0;
  font: 700 19px/1 var(--display);
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .script { padding-left: 12px; padding-right: 12px; }
  .script-page { padding-left: 38px; padding-right: 20px; }
  .script-page::before { left: 10px; }
}

/* ---------- Date 05: the call-sheet booking form ---------- */
.callsheet { padding: var(--section) 0; }
.callsheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.callsheet-head { margin-bottom: 0; }
.callsheet-hours {
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--amber);
  color: var(--ink-2);
  font-size: 16px;
}

.sheet { position: relative; border: 2px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.sheet-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  margin: 0;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--chalk);
  font: 800 24px/1.1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sheet-prod { color: var(--chalk-dim); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; }

.sheet-kind { margin: 0; padding: 18px 20px 20px; border: 0; border-bottom: 1px solid var(--line); }
.sheet-kind legend, .field label {
  padding: 0;
  font: 700 16px/1.3 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.req, .opt {
  font: 400 14px/1 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.req { color: var(--tally); }
.opt { color: var(--ink-2); }

.kind-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kind { position: relative; display: inline-flex; }
.kind input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.kind span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 700 19px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.kind input:hover + span { background: var(--studio); }
.kind input:checked + span { background: var(--ink); color: var(--chalk); }
.kind input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.kind input[aria-invalid="true"] + span { border-color: var(--tally); }

.sheet-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sheet-row .field + .field { border-left: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 2px 2px 0 0;
  background: var(--field);
  color: var(--ink);
  font: 400 17px/1.4 var(--body);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.field [aria-invalid="true"] { border-bottom-color: var(--tally); background: var(--err-bg); }
.field-hint { margin: 0; color: var(--ink-2); font-size: 15px; }
.field-error { margin: 0; color: var(--tally); font-size: 15px; font-weight: 700; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sheet-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 4px 20px 20px; }
.sheet-note { flex: 1 1 260px; margin: 0; color: var(--ink-2); font-size: 15px; }
.form-status { margin: 0 20px 20px; font-size: 16px; }
.form-status:empty { margin: 0; }
.form-status.is-success { padding: 12px 16px; border-left: 4px solid var(--teal); background: var(--ok-bg); }
.form-status.is-error { padding: 12px 16px; border-left: 4px solid var(--tally); background: var(--err-bg); }

@media (max-width: 999px) {
  .callsheet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .sheet-row { grid-template-columns: minmax(0, 1fr); }
  .sheet-row .field + .field { border-top: 1px solid var(--line); border-left: 0; }
  .sheet-foot .btn { width: 100%; }
}

/* ---------- Footer: end credits ---------- */
.credits {
  padding: clamp(64px, 9vw, 120px) var(--pad) 40px;
  background: var(--slate);
  color: var(--chalk);
  text-align: center;
}
.credits-inner { max-width: 860px; margin: 0 auto; }
.credits-title { margin: 0; }
.brand-footer { display: inline-flex; padding: 0; border: 0; }
.brand-footer .brand-mark { width: 52px; height: 47px; }
.brand-footer .brand-name { font-size: 38px; }
.credits-list { margin: 44px 0 0; }
.credits-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 7px 0;
}
.credits-list dt {
  padding-top: 3px;
  color: var(--chalk-dim);
  font: 500 15px/1.5 var(--display);
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
}
.credits-list dd { margin: 0; text-align: left; }
.credits a { color: var(--chalk); text-decoration-color: var(--amber); }
.credits a:hover { color: var(--amber); }
.credits-legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.credits-legal a, .credits-legal .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--chalk);
  font: 700 18px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.credits-legal .link-button { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.18em; }
.credits-legal .link-button:hover { color: var(--amber); }
.credits-end { margin: 24px 0 0; color: var(--chalk-dim); font-size: 15px; }
.credits-fin {
  margin: 36px 0 0;
  color: var(--amber);
  font: 800 clamp(44px, 7vw, 84px)/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .credits-list div { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 9px 0; }
  .credits-list dt, .credits-list dd { text-align: center; }
  .brand-footer .brand-name { font-size: 32px; }
}

/* ---------- Consent: a broadcast lower third ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 580px;
  padding: 20px 22px;
  border-left: 8px solid var(--tally);
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--chalk);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}
body.nav-open .consent { display: none; }
.consent-title { margin: 0 0 6px; font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.consent-text { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; }
.consent a { color: var(--amber); }
.consent a:hover { color: var(--chalk); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: 700 18px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.consent .consent-btn:hover { background: var(--chalk); color: var(--slate); }
.consent-link {
  min-height: 46px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: inherit;
  font: 400 16px/1 var(--body);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.consent-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-top: 10px solid var(--slate);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.consent-dialog::backdrop { background: rgba(10, 11, 13, 0.62); }
.consent-dialog-inner { padding: 24px; }
.consent-dialog .consent-text { color: var(--ink-2); }
.consent-dialog a { color: var(--teal); }
.consent-dialog .consent-btn:hover { background: var(--ink); color: var(--chalk); }
.consent-dialog .consent-btn-save { background: var(--ink); color: var(--chalk); }
.consent-dialog .consent-btn-save:hover { background: var(--tally); border-color: var(--tally); }
.consent-categories { margin: 16px 0 20px; padding: 0; list-style: none; }
.consent-category { padding: 14px 0; border-top: 1px solid var(--line); }
.consent-category p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.consent-category-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.consent-category-head h3 { margin: 0; font: 700 21px/1.1 var(--display); text-transform: uppercase; }
.consent-always { color: var(--teal); font: 700 15px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.consent-switch { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 15px;
  background: #6b737c;
  transition: background-color 0.2s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--chalk);
  transition: transform 0.2s;
}
.consent-switch input:checked + .consent-switch-track { background: var(--teal); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(24px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal-card { padding: clamp(48px, 7vw, 96px) var(--pad); background: var(--slate); color: var(--chalk); }
.legal-card-inner { max-width: 1140px; margin: 0 auto; }
.legal-card h1 {
  margin: 18px 0 14px;
  font: 800 clamp(46px, 7.4vw, 100px)/0.9 var(--display);
  text-transform: uppercase;
}
.legal-lede { max-width: 60ch; margin: 0; font-size: 20px; }
.legal-updated {
  margin: 18px 0 0;
  color: var(--chalk-dim);
  font: 500 16px/1.3 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad) var(--section);
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc-title {
  margin: 0 0 8px;
  color: var(--ink-2);
  font: 500 14px/1.3 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--ink); }
.legal-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  color: var(--ink);
  font: 700 17px/1.15 var(--display);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}
.legal-toc a:hover { background: var(--paper); color: var(--tally); }

.prose { max-width: 74ch; }
.prose h2 {
  margin: 52px 0 14px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font: 800 clamp(28px, 3.2vw, 38px)/1 var(--display);
  text-transform: uppercase;
}
.prose h3 { margin: 30px 0 8px; font: 700 23px/1.1 var(--display); text-transform: uppercase; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose address { font-style: normal; }
.callout { padding: 18px 22px; border-left: 6px solid var(--tally); background: var(--paper); }

.prose table { width: 100%; margin: 18px 0 20px; border-collapse: collapse; background: var(--paper); font-size: 16px; }
.prose caption { padding-bottom: 8px; color: var(--ink-2); font-size: 15px; text-align: left; }
.prose th {
  padding: 10px 12px;
  background: var(--ink);
  color: var(--chalk);
  font: 700 15px/1.2 var(--display);
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.prose td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }

@media (max-width: 899px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}
/* Tables stack into label / value blocks instead of scrolling sideways. */
@media (max-width: 699px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .prose caption { display: block; }
  .prose tr { border-top: 3px solid var(--ink); }
  .prose td { position: relative; padding-left: 128px; }
  .prose td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 104px;
    color: var(--ink-2);
    font: 700 14px/1.5 var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* ---------- 404: the slate for a missing scene ---------- */
.lost { padding: clamp(56px, 9vw, 120px) var(--pad) var(--section); }
.lost-board {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
  color: var(--chalk);
  box-shadow: var(--shadow);
}
.lost-sticks { height: 28px; background: repeating-linear-gradient(-55deg, var(--chalk) 0 26px, var(--slate) 26px 52px); }
.lost-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--chalk-line); }
.lost-fields div { padding: 14px 18px; }
.lost-fields div + div { border-left: 1px solid var(--chalk-line); }
.lost-fields dt { color: var(--chalk-dim); font: 500 14px/1.2 var(--display); letter-spacing: 0.22em; text-transform: uppercase; }
.lost-fields dd { margin: 4px 0 0; color: var(--amber); font: 800 clamp(28px, 5vw, 44px)/1 var(--display); text-transform: uppercase; }
.lost-body { padding: clamp(24px, 5vw, 44px); }
.lost-body h1 { margin: 0 0 12px; font: 800 clamp(38px, 6vw, 68px)/0.95 var(--display); text-transform: uppercase; }
.lost-body p { max-width: 52ch; margin: 0 0 22px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; }
.lost-links .btn-ghost { border-color: var(--chalk); color: var(--chalk); }
.lost-links .btn-ghost:hover { background: var(--chalk); color: var(--slate); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes clap {
  0% { transform: rotate(-3deg); }
  60% { transform: rotate(0deg); }
  80% { transform: rotate(-0.6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes playhead {
  from { transform: translateX(1000px); }
  to { transform: translateX(1500px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .playhead, .rec-dot, .slate-sticks { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .slate, .reel, .credits-legal, .consent, .consent-dialog, .legal-toc, .sheet { display: none; }
  body { background: #fff; font-size: 12pt; }
  .roll, .credits, .legal-card, .locations { background: #fff; color: #000; }
}
