/* Your Crew Story. Mobile first: 360-430 px is the primary target; nothing scrolls sideways at 320. */

/* The two typefaces are served from this site (SIL Open Font License, see /assets/fonts/*-OFL.txt):
   no request leaves for a font host, and the page looks the same with no network beyond this origin. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bebas-neue-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --bg: #0A0C10;
  --bg-raise: #11141B;
  --bg-deep: #07090C;
  --surface: #161A23;
  --surface-2: #1F2530;
  --line: #2B313E;
  --line-strong: #6A7389;   /* 3:1 or better against --bg and --surface: used for control borders */
  --text: #F5F2EB;
  --muted: #B4BAC6;
  --dim: #8E96A6;
  --accent: #FF4A2B;
  --accent-hi: #FF6A4F;
  --accent-ink: #160806;
  --error: #FF9C8A;
  --radius: 12px;
  --gutter: 16px;
  --display: "Bebas Neue", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --ui: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font: 500 18px/1.4 var(--ui);
  color: var(--text);
  background:
    radial-gradient(90% 420px at 100% 0, rgba(255, 74, 43, .18), transparent 72%),
    radial-gradient(85% 520px at 0 60px, rgba(46, 96, 138, .24), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

[hidden] { display: none !important; }

/* Opened or reloaded on /#/making/{id}: boot.js marks the page before first paint, so the landing
   form never flashes before the progress view takes over. */
.is-making #landing { display: none; }

/* The display face has capitals only. Saying so here keeps headings in capitals while it loads, or if
   it never does. */
.frame__ph, .btn, .brand__text, .hero__title, .resume__go, .poster__cta, .beats__n, .beats__slug,
.form__head h2, .photo__empty, .photo__ep, .photo__series, .seg__opt, .making__title, .cast__text,
.stage__name, .state__title, .watch__series, .watch--loading .watch__title, .foot h2, .steps__n,
.notice--closed strong {
  text-transform: uppercase;
}

h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* headings and notices that only receive focus from script (to move a screen reader there) */
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 30;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--text); color: var(--bg);
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1120px;
  margin-inline: auto;
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  font: 600 15px/1.25 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  font: 600 15px/1.2 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__opt {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--dim);
}

.tag {
  display: inline-block;
  flex: none;
  padding: 4px 6px 3px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 700 13px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag--hot { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* The 9:16 frame: every picture on the site sits in one. */
.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #1D2533, #0E1118 72%);
}
.frame__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 400 22px/1 var(--display);
  letter-spacing: .1em;
  color: var(--dim);
}
.frame__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .6s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.frame.is-in .frame__img { opacity: 1; transform: none; }
.frame.is-wait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.9s ease-in-out infinite;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 3px 20px 0;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 400 23px/1 var(--display);
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn .ico { margin-top: -3px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn--ghost:hover { border-color: #fff; }
.btn--danger { border-color: var(--error); background: transparent; color: var(--error); }
.btn--danger:hover { background: rgba(255, 74, 43, .14); }
.btn--sm { min-height: 44px; padding-inline: 14px; font-size: 20px; white-space: nowrap; }
.btn--wrap { max-width: 100%; white-space: normal; line-height: 1.05; padding-block: 8px 5px; }
.btn--block { width: 100%; min-height: 58px; font-size: 27px; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: progress; opacity: .78; }
.btn.is-flash { border-color: var(--text); }
.btn--ghost.is-busy .btn__label::after,
.btn--danger.is-busy .btn__label::after { content: "…"; }

.spinner {
  display: none;
  width: 18px; height: 18px;
  margin-top: -3px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
.is-busy > .spinner { display: block; animation: spin .8s linear infinite; }

.btn-link {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  font: 600 17px/1 var(--ui);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-link:hover { color: var(--text); }

.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: 500 21px/1.2 var(--ui);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--dim); opacity: 1; }
.input:hover { border-color: #97A0B4; }
.input:focus-visible { outline-offset: 2px; border-color: #fff; }
.input--copy { font-size: 17px; }
.note .input--copy { margin-top: 2px; }

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.notice--error {
  border: 1.5px solid var(--error);
  background: rgba(255, 74, 43, .12);
  color: #FFD9D1;
}
.notice--ok {
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.notice--closed {
  display: grid;
  gap: 4px;
  border: 1.5px solid var(--accent);
  background: rgba(255, 74, 43, .1);
  font-weight: 500;
  color: var(--text);
}
.notice--closed strong { font: 400 26px/1 var(--display); letter-spacing: .03em; }

/* ------------------------------------------------------------------- top */

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark { flex: none; width: 14px; height: 25px; fill: var(--accent); }
.brand__mark path { fill: var(--bg); }
.brand__text {
  min-width: 0;
  padding-top: 3px;
  overflow: hidden;
  font: 400 24px/1 var(--display);
  letter-spacing: .07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand__text b { font-weight: 400; color: var(--accent); }
.top__chip {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 10px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 600 14px/1 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.top__link {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 2px;
  font: 600 16px/1 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-align: right;
}
@media (max-width: 359px) {
  .top__chip { display: none; }   /* the wordmark alone at 320 px */
  .top__link { font-size: 14px; letter-spacing: .06em; }
}

/* --------------------------------------------------------------- landing */

/* Title card first: the headline with the episode's poster beside it, then the pitch, then the form. */
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 37%);
  grid-template-areas:
    "head  poster"
    "body  body"
    "form  form"
    "beats beats";
  gap: 22px 14px;
  align-items: start;
  max-width: 600px;
  padding-block: 10px 56px;
}
.flash-host { max-width: 600px; }
#flash { margin-top: 10px; }
.hero-head { grid-area: head; align-self: center; min-width: 0; }
.hero-body { grid-area: body; min-width: 0; }
.poster { grid-area: poster; min-width: 0; }
.form { grid-area: form; }
.beats { grid-area: beats; }

.hero__title {
  margin-top: 8px;
  font: 400 clamp(38px, 12.3vw, 62px)/.92 var(--display);
  letter-spacing: .01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero__title em { font-style: normal; color: var(--accent); }

.promise {
  max-width: 30em;
  font-size: 19px;
  line-height: 1.35;
  color: var(--muted);
}
.promise strong { font-weight: 600; color: var(--text); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
  font: 600 14px/1.2 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.facts li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.resume {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}
.resume:hover { border-color: #fff; }
.resume__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.resume.is-paused .resume__dot { background: var(--dim); }
.resume__text { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.resume__go {
  padding-top: 2px;
  font: 400 21px/1 var(--display);
  letter-spacing: .06em;
  color: var(--accent);
  white-space: nowrap;
}

/* The poster: the episode's key art, or the example episode (with a play button) once one is set. */
.poster { display: grid; gap: 8px; }
.poster__frame { box-shadow: 0 0 0 1px var(--line), 0 24px 60px -28px #000; }
.poster__img, .poster__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.poster__play {
  position: absolute; inset: 0;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 6px 14px;
  border: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, .82), rgba(5, 6, 8, 0) 46%);
  color: var(--text);
}
.poster__play:focus-visible { outline-offset: -5px; }
.poster__disc {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55);
  transition: transform .15s ease;
}
.poster__play:hover .poster__disc { transform: scale(1.06); }
.poster__disc .ico { width: 26px; height: 26px; margin-left: 3px; }
.poster__cta { font: 400 19px/1 var(--display); letter-spacing: .06em; text-align: center; }
.poster__frame.is-playing .poster__play, .poster__frame.is-playing .poster__img { display: none; }
.poster__cap { display: grid; gap: 5px; justify-items: start; }
.poster__note { font-size: 14px; line-height: 1.25; color: var(--muted); }

/* What happens in the episode: a four-line scene list. */
.beats { padding-top: 22px; border-top: 1px solid var(--line); }
.beats__list { display: grid; gap: 14px; margin-top: 14px; }
.beats__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
}
.beats__n { font: 400 22px/1 var(--display); color: var(--accent); }
.beats__slug { font: 400 24px/1 var(--display); letter-spacing: .04em; }
.beats__line { grid-column: 2; margin-top: 2px; font-size: 18px; line-height: 1.3; color: var(--muted); }

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

.form {
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form__fields { display: grid; gap: 22px; min-width: 0; }
/* Today's episodes are gone: the fields stay where they are (nothing jumps) but are out of reach. */
.form.is-closed .form__fields { opacity: .4; pointer-events: none; }
.form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.form__head h2 { font: 400 36px/1 var(--display); letter-spacing: .03em; }
.form__head p { font-size: 16px; color: var(--muted); }
.form__foot { font-size: 16px; line-height: 1.35; text-align: center; color: var(--muted); }

.field { display: grid; gap: 8px; min-width: 0; }
legend.label { margin-bottom: 8px; }
.hint { font-size: 16px; line-height: 1.3; color: var(--muted); }
.error { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--error); }
.error:empty { display: none; }
.has-error .input { border-color: var(--error); }

/* Photo: the picker is the poster of your episode. */
.photo {
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.photo__frame {
  --team: #BF5700;
  display: block;
  border: 1.5px dashed var(--line-strong);
  cursor: pointer;
}
.photo__frame.has-photo { border-style: solid; border-color: var(--line); }
.has-error .photo__frame { border-color: var(--error); }
#photo:focus-visible ~ .photo__frame { outline: 2px solid #fff; outline-offset: 3px; }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__empty {
  position: absolute; inset: 0 0 30% 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 0 8px;
  font: 400 21px/1 var(--display);
  letter-spacing: .06em;
  text-align: center;
}
.photo__empty .ico { width: 34px; height: 34px; color: var(--accent); }
.photo__busy {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(8, 10, 14, .74);
  font-weight: 600;
}
.photo__ep {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 6px 2px;
  border-radius: 4px;
  background: rgba(8, 10, 14, .74);
  font: 400 15px/1 var(--display);
  letter-spacing: .1em;
}
.photo__credit {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 3px;
  padding: 40px 8px 11px 16px;
  background: linear-gradient(to top, rgba(5, 6, 8, .95) 38%, rgba(5, 6, 8, 0));
}
.photo__series { font: 400 23px/1 var(--display); letter-spacing: .03em; }
.photo__star {
  font: 600 13px/1.2 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.photo__star b { font-weight: 700; color: var(--text); }
.photo__stripe {
  position: absolute; left: 6px; bottom: 12px;
  width: 5px; height: 40px;
  border-radius: 3px;
  background: var(--team);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}
.photo__side { display: grid; gap: 10px; align-content: start; justify-items: start; min-width: 0; }
.photo__side .btn { max-width: 100%; white-space: normal; line-height: 1.05; }
.tips { display: grid; gap: 3px; font-size: 18px; line-height: 1.3; }
.tips li { display: flex; align-items: center; gap: 9px; }
.tips li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Crew: two big buttons (radio group). */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt {
  display: grid;
  place-items: center;
  min-height: 60px;
  padding: 4px 8px 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: 400 27px/1 var(--display);
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.seg__opt:hover { border-color: #fff; }
.seg input:checked + .seg__opt { border-color: var(--text); background: var(--text); color: var(--bg); }
.seg input:focus-visible + .seg__opt { outline: 2px solid #fff; outline-offset: 3px; }
.has-error .seg__opt { border-color: var(--error); }

/* Team colour: six paint chips (radio group). */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.swatch {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 74px;
  padding: 6px 6px 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.swatch:hover { border-color: var(--line-strong); }
.swatch__chip {
  position: relative;
  height: 32px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}
.swatch__chip--orange { background: #BF5700; }
.swatch__chip--crimson { background: #A51C30; }
.swatch__chip--navy { background: #1F2A44; }
.swatch__chip--green { background: #1E5B3A; }
.swatch__chip--purple { background: #4B2E83; }
.swatch__chip--black { background: #111111; }
.swatch__name {
  font: 600 15px/1.1 var(--ui);
  letter-spacing: .03em;
  text-align: center;
  color: var(--muted);
}
.swatches input:checked + .swatch { border-color: #fff; background: var(--surface-2); }
.swatches input:checked + .swatch .swatch__name { color: var(--text); }
.swatches input:checked + .swatch .swatch__chip::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 13px;
  margin: -9px 0 0 -4px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.swatches input:focus-visible + .swatch { outline: 2px solid #fff; outline-offset: 3px; }

.consent {
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raise);
}
.consent input {
  display: grid;
  place-content: center;
  width: 26px; height: 26px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 7px; height: 13px;
  margin-top: -3px;
  border: solid var(--accent-ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .12s ease;
}
.consent input:hover { border-color: #fff; }
.consent input:checked { border-color: var(--accent); background: var(--accent); }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
@media (forced-colors: active) {
  .consent input { -webkit-appearance: auto; appearance: auto; }
  .consent input::after { content: none; }
}
.consent label { padding: 2px 0; font-size: 17px; line-height: 1.35; cursor: pointer; }
.consent .error { grid-column: 1 / -1; }
.consent.has-error { border-color: var(--error); }

/* ---------------------------------------------------------------- making */

.making-host, .story-host { padding-block: 10px 56px; }

.making {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-inline: auto;
}
.making__title {
  font: 400 clamp(40px, 11vw, 60px)/.94 var(--display);
  letter-spacing: .01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.making__body { display: grid; gap: 22px; margin-top: 4px; }
.making__grid {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  grid-template-areas: "cast side" "scenes scenes";
  gap: 22px 16px;
  align-items: stretch;
}
.cast { grid-area: cast; position: relative; align-self: start; }
.frame--hero { box-shadow: 0 0 0 1px var(--line); }
.cast__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 44px 10px 11px 12px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(5, 6, 8, .94) 30%, rgba(5, 6, 8, 0));
  animation: rise .6s ease .35s both;
}
.cast__text { font: 400 22px/1 var(--display); letter-spacing: .04em; }
.making__side { grid-area: side; display: flex; flex-direction: column; min-width: 0; }
.making__meter { margin-top: auto; padding-top: 16px; }

.stages { display: grid; gap: 12px; }
.stage {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  color: var(--dim);
}
.stage__mark {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}
.stage__mark .ico { grid-area: 1 / 1; width: 14px; height: 14px; opacity: 0; }
.stage__name {
  padding-top: 3px;
  font: 400 22px/1 var(--display);
  letter-spacing: .04em;
}
.stage__meta {
  grid-column: 2;
  font: 600 14px/1.2 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stage__meta:empty { display: none; }
.stage.is-done { color: var(--muted); }
.stage.is-done .stage__mark { border-color: var(--text); background: var(--text); color: var(--bg); }
.stage.is-done .stage__mark .ico { opacity: 1; }
.stage.is-active { color: var(--text); }
.stage.is-active .stage__mark { border-color: var(--accent); }
.stage.is-active .stage__mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
.stage.is-active .stage__meta { margin-top: 3px; color: var(--accent); }

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.bar__fill {
  display: block;
  width: 4%; height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .8s ease;
}
.bar__label { margin-top: 7px; font-size: 16px; line-height: 1.25; color: var(--muted); }
.bar__time {
  margin-top: 3px;
  font: 600 14px/1.25 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}
.bar__time:empty { display: none; }

.scenes { grid-area: scenes; display: grid; gap: 8px; min-width: 0; }
.scenes__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.frame--scene { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }

.cox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cox__tag {
  flex: none;
  padding: 4px 6px 3px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 700 13px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cox__line { font-size: 21px; font-weight: 600; line-height: 1.2; transition: opacity .25s ease; }
.cox__line.is-out { opacity: 0; }

.note { display: grid; gap: 10px; justify-items: start; font-size: 17px; line-height: 1.35; color: var(--muted); }
.note__text strong { font-weight: 600; color: var(--text); }
.note__slow { font-weight: 600; color: var(--text); }
.note__slow:empty { display: none; }
.note__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.note__net { font-weight: 600; color: var(--error); }
.note__net:empty { display: none; }
.state__tries { font-weight: 600; color: var(--text); }
.state__tries:empty { display: none; }

/* Failed / not found / offline. */
.state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.state__title {
  font: 400 clamp(36px, 9.6vw, 52px)/.95 var(--display);
  letter-spacing: .02em;
  text-wrap: balance;
}
.state__text { max-width: 30em; font-size: 19px; line-height: 1.35; color: var(--muted); }
.state--page {
  max-width: 560px;
  margin: 7vh auto 0;
  padding: 0;
  border: 0;
  background: none;
}
.making.is-over .making__title { font-size: 20px; letter-spacing: .1em; color: var(--muted); }

/* ----------------------------------------------------------------- watch */

.watch { display: grid; gap: 16px; justify-items: center; }
.player {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  width: min(100%, calc((100vh - 292px) * .5625));
  width: min(100%, calc((100svh - 292px) * .5625));
  min-width: 236px;
  max-width: 420px;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px #000;
}
.player__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}
.player__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, .5), rgba(5, 6, 8, 0) 45%);
}
.player__play:focus-visible { outline-offset: -6px; }
.player__disc {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
  transition: transform .15s ease;
}
.player__play:hover .player__disc { transform: scale(1.06); }
.player__disc .ico { width: 40px; height: 40px; margin-left: 5px; }
/* When the film ends its own closing card is on screen ("To be continued", the next episode, the
   name). The page adds only the two buttons, in the gap under those words: nothing is said twice and
   nothing is drawn over the film's text. */
.player__end {
  position: absolute; left: 0; right: 0; top: 63.5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
}
.player__end .btn { min-height: 46px; padding-inline: 14px; font-size: 20px; }

.watch__info { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.watch__title { display: grid; gap: 5px; font-weight: 400; }
.watch__series { font: 400 clamp(40px, 11.5vw, 54px)/.92 var(--display); letter-spacing: .015em; }
.watch__ep {
  font: 600 18px/1.2 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.watch__ep b { font-weight: 700; color: var(--text); }
.watch--loading .watch__title { font: 400 30px/1 var(--display); letter-spacing: .04em; color: var(--muted); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn--block { grid-column: 1 / -1; }
.actions .btn--ghost { padding-inline: 8px; font-size: 21px; }
.watch__status { font-size: 16px; color: var(--muted); }
.watch__status:empty { display: none; }
.watch__keep { font-size: 16px; line-height: 1.35; color: var(--dim); }

.manage { display: grid; gap: 8px; justify-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.manage__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.manage__hint { font-size: 16px; line-height: 1.35; color: var(--dim); }

.report { display: grid; gap: 8px; justify-items: start; }
.report__form {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.report__form label { font-weight: 600; line-height: 1.3; }
.report__text {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raise);
  font: 500 18px/1.3 var(--ui);
  color: var(--text);
  resize: vertical;
}
.report__done { font-weight: 600; color: var(--text); }

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--muted);
}

.delete { display: grid; gap: 8px; justify-items: start; }
.delete__confirm {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.delete__q { font-weight: 600; line-height: 1.3; }
.delete__row { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop { background: rgba(4, 5, 7, .9); }
.lightbox__in { position: relative; display: grid; gap: 10px; justify-items: center; }
.player--lightbox {
  width: min(92vw, calc((100vh - 120px) * .5625));
  width: min(92vw, calc((100svh - 120px) * .5625));
  max-width: 440px;
}
.player--lightbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__cap { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.lightbox__close {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 10, 14, .78);
  color: #fff;
}
.lightbox__close .ico { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- footer */

.foot {
  padding-block: 36px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.foot__in { display: grid; gap: 32px; }
.foot h2 { margin-bottom: 14px; font: 400 28px/1 var(--display); letter-spacing: .04em; }
.steps { display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps__n { font: 400 38px/.86 var(--display); color: var(--accent); }
.steps h3 { font: 600 20px/1.2 var(--ui); letter-spacing: .01em; }
.steps p { margin-top: 2px; font-size: 17px; line-height: 1.35; color: var(--muted); }
.foot__privacy p { max-width: 36em; font-size: 17px; line-height: 1.4; color: var(--muted); }
.foot__privacy p + p { margin-top: 8px; }
.foot__credits {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
  color: var(--dim);
}
.foot__credits a {
  padding-block: 13px;   /* inline padding: a 44 px tall hit area without moving the line */
  color: var(--muted);
  text-underline-offset: 3px;
}
.foot__credits a:hover { color: var(--text); }

/* -------------------------------------------------------------- wider */

@media (min-width: 480px) {
  .landing { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 22px; }
  .poster__disc { width: 64px; height: 64px; }
  .poster__cta { font-size: 22px; }
  .photo { grid-template-columns: 180px minmax(0, 1fr); column-gap: 20px; }
  .making__grid { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; }
  .stage__name { font-size: 26px; }
  .stages { gap: 16px; }
}

@media (min-width: 960px) {
  /* Left: the headline, the pitch, then the poster with the scene list beside it. Right: the form. */
  .landing {
    grid-template-columns: 320px minmax(0, 1fr) minmax(0, 480px);
    grid-template-areas:
      "head   head  form"
      "body   body  form"
      "poster beats form";
    grid-template-rows: auto auto 1fr;
    gap: 28px 32px;
    align-items: start;
    max-width: 1120px;
    padding-block: 36px 96px;
  }
  .form { margin-left: 24px; }
  .flash-host { max-width: 1120px; }
  .beats { padding-top: 0; border-top: 0; }
  .beats__list { gap: 20px; }
  .beats__slug { font-size: 28px; }
  .beats__line { font-size: 19px; }
  .hero-head { align-self: start; }
  .hero__title { margin-top: 14px; font-size: clamp(84px, 8.4vw, 118px); line-height: .9; }
  .promise { font-size: 24px; }
  .facts { margin-top: 20px; font-size: 16px; }
  .poster__disc { width: 76px; height: 76px; }
  .poster__disc .ico { width: 36px; height: 36px; margin-left: 4px; }
  .poster__cta { font-size: 26px; }
  .poster__play { padding-bottom: 22px; }
  .poster__note { font-size: 15px; }
  .resume { max-width: 460px; margin-top: 24px; }
  .form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 20, 27, .86);
  }

  .making-host, .story-host { padding-block: 28px 96px; }
  .making { max-width: 760px; gap: 20px; }
  .making__title { font-size: 76px; }
  .making__grid {
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-areas: "cast side" "cast scenes";
    grid-template-rows: auto 1fr;
    gap: 24px 36px;
  }
  .making__meter { margin-top: 0; padding-top: 22px; }
  .scenes { align-self: end; }
  .making__body { gap: 28px; }

  .watch {
    grid-template-columns: auto minmax(0, 440px);
    gap: 64px;
    justify-content: center;
    align-items: center;
  }
  .watch .player {
    width: min(420px, calc((100vh - 150px) * .5625));
    min-width: 280px;
  }
  .watch__info { max-width: 440px; gap: 18px; }
  .watch__series { font-size: 92px; }
  .watch__ep { font-size: 20px; }

  .foot { padding-block: 56px 64px; }
  .foot__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 72px; }
  .foot__credits { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- motion */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .65; } 50% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-head, .poster, .hero-body, .making > * { animation: rise .5s ease both; }
  .poster, .making > :nth-child(2) { animation-delay: .06s; }
  .hero-body, .making > :nth-child(3) { animation-delay: .12s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .frame__img { transform: none; }
  .is-busy > .spinner { border-right-color: currentColor; opacity: .6; }
}
