/* Film my site · Direction C · The Storyboard
   Paper, pencil rules, numbered panels, one red for the playhead. */

:root {
  --paper: #f3efe6;
  --sheet: #fbf9f4;
  --ink: #1b1a17;
  --ink-2: #2a2824;
  --graphite: #5c5850;
  --rule: #cdc6b6;
  --faint: #e4ded1;
  --accent: #c4321c;
  --accent-deep: #9e2614;
  --accent-tint: #f8ddd5;
  --on-accent: #ffffff;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rail-w: 96px;
  --bar-h: 40px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 26, 23, .075) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { top: 52px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* Placeholder pills: Kenn's values still to come */
.ph {
  display: inline;
  font-family: var(--mono);
  font-size: .82em;
  font-weight: 500;
  letter-spacing: .02em;
  color: #6e1a0c;
  background: var(--accent-tint);
  border: 1px dashed var(--accent);
  border-radius: 3px;
  padding: .05em .4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}

/* ============ Margin timeline (desktop) ============ */
.rail {
  position: fixed; z-index: 20;
  left: 0; top: 0; bottom: 0; width: var(--rail-w);
  background: #ebe6da;
  border-right: 1px solid var(--ink);
}
.rail__head { display: none; }
.rail__track { position: absolute; left: 0; right: 0; top: 14px; bottom: 14px; }
.rail__track::before {
  /* the ruler */
  content: ""; position: absolute; top: 0; bottom: 0; left: 14px; width: 14px;
  border-left: 1px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 40px) 0 0 / 14px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--graphite) 0 1px, transparent 1px 8px) 0 0 / 6px 100% no-repeat;
  opacity: .8;
}
.rail__marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail__marks li { position: absolute; left: 0; right: 0; top: calc(var(--f, 0) * 100%); }
.rail__marks a {
  position: absolute; left: 14px; right: 4px; top: -11px; min-height: 24px;
  display: block; padding: 2px 0 0 22px;
  text-decoration: none; color: var(--graphite);
  font-family: var(--mono); font-size: 11px; line-height: 1.2;
}
.rail__marks a::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 1.5px; background: currentColor;
}
.rail__num { font-weight: 600; display: block; letter-spacing: .04em; }
.rail__num::before { content: "SC "; font-weight: 400; }
.rail__label {
  display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
  max-height: 0; overflow: hidden; opacity: 0; transition: opacity .2s;
}
.rail__marks a.is-dev { color: var(--ink); }
.rail__marks a.is-current { color: var(--accent); }
.rail__marks a.is-current .rail__label,
.rail__marks a:hover .rail__label,
.rail__marks a:focus-visible .rail__label { max-height: 3em; opacity: 1; }
.rail__marks a:focus-visible { outline-offset: 0; background: var(--sheet); }

.playhead {
  position: absolute; left: 0; right: 0; top: calc(var(--p, 0) * 100%);
  height: 0; pointer-events: none; z-index: 2;
}
.playhead__line {
  position: absolute; left: 6px; width: calc(100% + 10px); top: -1px; height: 2px; background: var(--accent);
}
.playhead__line::before {
  content: ""; position: absolute; left: -6px; top: -5px;
  border-style: solid; border-width: 6px 0 6px 8px; border-color: transparent transparent transparent var(--accent);
}
.playhead__line::after {
  content: ""; position: absolute; right: -2px; top: -4px; width: 2px; height: 10px; background: var(--accent);
}
.playhead__tc {
  position: absolute; left: 6px; top: 5px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .02em;
  padding: 2px 5px; white-space: nowrap; font-variant-numeric: tabular-nums;
}

body { padding-left: var(--rail-w); }

/* ============ Masthead ============ */
.masthead { padding-top: 22px; }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 32px; }
.brand__flap { fill: var(--accent); }
.brand__stripes { stroke: var(--paper); }
.brand__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.nav a { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 6px 0; display: inline-block; }
.nav a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent); }
.nav .nav__cta { background: var(--ink); color: var(--paper); padding: 7px 14px; }
.nav .nav__cta:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }

.sheet-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px;
  margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--graphite);
}
.sheet-meta span { padding-block: 7px; }
.sheet-meta::before { content: none; }
.masthead .sheet-meta { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }

/* ============ Scenes ============ */
.scene { padding-block: 64px 24px; scroll-margin-top: 8px; }
.scene--hero { padding-top: 34px; }

.slate {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-top: 12px; margin-bottom: 30px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
}
.slate::before {
  /* tick ruler under the slate rule */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 12px);
  opacity: .5;
}
.slate__sc { background: var(--ink); color: var(--paper); font-weight: 600; padding: 3px 8px; }
.slate__slug { font-weight: 600; color: var(--ink); }
.slate__tc { color: var(--accent); font-variant-numeric: tabular-nums; }
.slate__note {
  margin-left: auto; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0;
  color: var(--graphite);
}
.slate__note::before { content: "note: "; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

.scene__intro { margin-bottom: 36px; max-width: 760px; }
.scene__intro h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.scene__intro p { margin-top: 14px; font-size: 1.18rem; color: var(--ink-2); max-width: 58ch; }

.after-note { margin-top: 28px; color: var(--ink-2); max-width: 70ch; }

/* ============ Panels ============ */
.panel {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--ink);
}
.tab {
  position: absolute; z-index: 3; top: -10px; left: 14px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; line-height: 1;
  padding: 4px 7px; border: 1px solid var(--ink);
  white-space: nowrap;
}
.tab--right { left: auto; right: 14px; }
.tab--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Ink overlay injected by site.js: sketch lines + the crisp frame that draws in */
.ink { position: absolute; inset: -.5px; width: calc(100% + 1px); height: calc(100% + 1px); overflow: visible; pointer-events: none; z-index: 2; }
.ink .sketch line { stroke: var(--graphite); stroke-width: 1; fill: none; opacity: .55; }
.ink .sketch .diag { opacity: .22; stroke-dasharray: 3 5; }
.ink .crisp { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.panel--source .ink .crisp, .endslate .ink .crisp { stroke: var(--ink); }
.tier--pick .ink .crisp { stroke: var(--accent); stroke-width: 2; }

/* Develop states (only when site.js turns them on, never with reduced motion) */
.develop .panel { border-color: transparent; }
.develop .tier--pick { border-color: transparent; }
.develop .ink .sketch { opacity: 1; transition: opacity .7s ease .35s; }
.develop .ink .crisp { stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.develop .scene.is-dev .ink .sketch { opacity: 0; }
.develop .scene.is-dev .ink .crisp { stroke-dashoffset: 0; }

.develop .scene :is(.scene__intro, .after-note, .panel > :not(.ink):not(.tab), .shot__cap, .outlets li, .faq, .strip, .slate__note) {
  transition: opacity .8s ease .3s, filter .8s ease .3s;
}
.develop .scene:not(.is-dev) :is(.scene__intro, .after-note, .panel > :not(.ink):not(.tab), .shot__cap, .outlets li, .faq, .strip, .slate__note) {
  opacity: .2; filter: grayscale(1) blur(1.4px);
}
.develop .scene .tab { transition: opacity .5s ease .6s; }
.develop .scene:not(.is-dev) .tab { opacity: .35; }
.develop .scene:not(.is-dev) .panel--source,
.develop .scene:not(.is-dev) .endslate { background: var(--sheet); }

/* ============ SC 01 Hero ============ */
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: stretch; }
.panel--hero .panel__body { padding: 52px 44px 46px; }
.kicker { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.7rem); line-height: 1.0; letter-spacing: -.02em; font-weight: 500; max-width: 13ch; }
.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.lede { margin-top: 26px; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 50ch; }

.panel--source { background: var(--ink); color: var(--paper); border-color: var(--ink); transition: background .8s ease; }
.source { padding: 46px 30px 30px; display: flex; flex-direction: column; height: 100%; }
.panel--source .field__label { color: #e9e3d6; }
.source__input { position: relative; margin-top: 4px; }
.source__rec {
  position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--accent);
  animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: .25; } }
.source input {
  width: 100%; font-family: var(--mono); font-size: 15px; color: var(--paper);
  background: #2b2925; border: 1px solid #77705f; border-radius: 0;
  padding: 15px 12px 15px 32px;
}
.source input::placeholder { color: #a9a294; }
.source input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--paper); }
.source__hint { min-height: 1.4em; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: #f2b4a7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.smallprint { margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: #d8d1c2; border-top: 1px dashed #5d574c; }
.panel--source .smallprint { margin-top: 28px; }

.btn {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0; text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: 14px 22px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.panel--source .btn--primary { box-shadow: 4px 4px 0 #57514a; }
.btn--primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--link { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; padding: 6px 0; }
.panel--source .btn--link:hover { color: #f6c7bc; }
.btn--big { font-size: 1.1rem; padding: 16px 28px; }

/* The film strip */
.strip {
  position: relative; margin-top: 30px; background: var(--ink); padding: 22px 14px 14px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 6px;
  background: repeating-linear-gradient(to right, #d9d2c3 0 9px, transparent 9px 22px);
  opacity: .55;
}
.strip::before { top: 7px; }
.strip::after { bottom: 3px; display: none; }
.frame { margin: 0; }
.frame__pic { position: relative; aspect-ratio: 16 / 9; background: var(--sheet); overflow: hidden; }
.frame__pic svg { width: 100%; height: 100%; }
.frame figcaption { margin-top: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #e6dfd1; }
.frame figcaption span { color: #ff8f78; margin-right: 6px; font-weight: 600; }
.frame__addr {
  position: absolute; left: 10%; right: 10%; top: 31%; text-align: center;
  font-family: var(--mono); font-size: 10px; color: var(--graphite); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame__addr-empty::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--graphite); margin-right: 5px; vertical-align: 1px; }
.frame--source.is-stamped .frame__addr { font-family: var(--serif); font-size: clamp(10px, 1vw, 13px); color: var(--ink); font-weight: 600; }
.frame--source.is-stamped svg .g--faint { opacity: .15; }
.frame__vo { position: absolute; left: 10px; bottom: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent); }

.stamp {
  position: absolute; left: 0; right: 0; bottom: 9%; margin-inline: auto; width: max-content; max-width: 90%;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 4px 8px 5px; border: 2px solid var(--accent); color: var(--accent);
  background: rgba(251, 249, 244, .9);
  transform: rotate(-7deg);
  font-family: var(--mono); line-height: 1.15;
}
.stamp[hidden] { display: none; }
.stamp__head { font-size: 7.5px; font-weight: 600; letter-spacing: .14em; }
.stamp__domain { font-size: 10.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp.is-in { animation: stamp .42s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-12deg) scale(1.9); }
  60% { opacity: 1; transform: rotate(-6deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}
.frame--source.is-stamped .frame__pic { animation: thud .32s ease .18s; }
@keyframes thud { 40% { transform: translateY(1px); } }

/* SVG doodle strokes */
.g { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g--faint { stroke: var(--graphite); opacity: .55; }
.g--bold { stroke-width: 3; }
.g--accent { stroke: var(--accent); }
.fill-accent { fill: var(--accent); }
.fill-paper { fill: var(--sheet); }
.fill-ink { fill: var(--ink); }
.hatch { fill: url(#hatch); }
.t-serif { font-family: var(--serif); font-size: 46px; font-style: italic; fill: var(--ink); }

/* ============ SC 02 Examples ============ */
.film { margin-top: 34px; }
.film + .film { margin-top: 46px; }
.film__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.stage {
  --stage-h: 540px;
  position: relative; height: var(--stage-h); padding: 24px;
  display: grid; place-items: center;
  background:
    linear-gradient(var(--faint), var(--faint)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--faint), var(--faint)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, rgba(27,26,23,.045) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(27,26,23,.045) 0 1px, transparent 1px 40px),
    var(--paper);
  border-right: 1px solid var(--ink);
}
.stage__crop { position: absolute; width: 16px; height: 16px; border-color: var(--graphite); border-style: solid; border-width: 0; }
.stage__crop--tl { left: 8px; top: 8px; border-left-width: 1px; border-top-width: 1px; }
.stage__crop--tr { right: 8px; top: 8px; border-right-width: 1px; border-top-width: 1px; }
.stage__crop--bl { left: 8px; bottom: 8px; border-left-width: 1px; border-bottom-width: 1px; }
.stage__crop--br { right: 8px; bottom: 8px; border-right-width: 1px; border-bottom-width: 1px; }
.player {
  position: relative; z-index: 1;
  width: min(100%, calc((var(--stage-h) - 48px) * var(--w) / var(--h)));
  aspect-ratio: var(--w) / var(--h);
  background: var(--ink);
  outline: 1px solid var(--ink); outline-offset: 5px;
  transition: width .5s var(--ease);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.film__meta { padding: 34px 26px 26px; display: flex; flex-direction: column; gap: 22px; }
.film__title { font-size: 1.75rem; line-height: 1.1; }
.formats { display: flex; flex-wrap: nowrap; gap: 0; }
.fmt {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--ink); margin-left: -1px;
  padding: 9px 10px; min-height: 44px; border-radius: 0;
}
.fmt:first-child { margin-left: 0; }
.fmt:hover { background: var(--paper); }
.fmt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fmt:focus-visible { position: relative; z-index: 1; }
.fmt__glyph { display: inline-block; height: 14px; width: calc(14px * var(--w) / var(--h)); border: 1.5px solid currentColor; }
.film__data { margin: 0; font-family: var(--mono); font-size: 12px; }
.film__data div { display: flex; gap: 8px; padding: 7px 0; border-top: 1px dotted var(--rule); }
.film__data div:last-child { border-bottom: 1px dotted var(--rule); }
.film__data dt { color: var(--graphite); letter-spacing: .08em; text-transform: uppercase; min-width: 64px; }
.film__data dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============ SC 03 How it works ============ */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; counter-reset: none; }
.shot__pic { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.shot__pic > svg:not(.ink) { width: 100%; height: 100%; padding: 6px; }
.shot__cap { margin-top: 18px; padding-left: 2px; }
.shot__no { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 6px; }
.shot__no::before { content: "STEP "; color: var(--graphite); font-weight: 400; }
.shot h3 { font-size: 1.6rem; margin-bottom: 8px; }
.shot p { color: var(--ink-2); }

/* ============ SC 04 Shot list ============ */
.shotlist { padding: 30px 30px 10px; }
.shotlist__head, .shotlist li { display: grid; grid-template-columns: 72px minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: baseline; }
.shotlist__head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); padding-bottom: 10px; }
.shotlist ul { list-style: none; margin: 0; padding: 0; }
.shotlist li { padding: 20px 0; border-top: 1px solid var(--ink); }
.shotlist li + li { border-top: 1px solid var(--rule); }
.shotlist__no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.shotlist strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.shotlist p { color: var(--ink-2); }

/* ============ SC 05 Prices ============ */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.tier { padding: 38px 28px 30px; }
.tier--pick { border: 2px solid var(--accent); }
.tier__name { font-size: 1.6rem; }
.tier__price { margin: 10px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; gap: 8px; }
.tier__amt { font-family: var(--serif); font-size: 3.6rem; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.tier__from { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--graphite); }
.tier__stamp {
  position: absolute; z-index: 3; top: 20px; right: -8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--paper); border: 2px solid var(--accent); padding: 5px 10px;
  transform: rotate(5deg);
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ============ SC 06 Where it plays ============ */
.outlets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.outlets li {
  display: flex; align-items: center; gap: 12px;
  background: var(--sheet); border: 1px solid var(--ink); padding: 11px 16px 11px 12px;
}
.ar { display: inline-block; height: 26px; width: calc(26px * var(--w) / var(--h)); border: 1.5px solid var(--ink); background: var(--paper); flex: none; }
.ar-pair { display: inline-flex; gap: 4px; align-items: center; }
.outlets__name { font-weight: 500; }
.outlets__fmt { margin-left: auto; padding-left: 8px; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 500; }

/* ============ SC 07 Order ============ */
.order { padding: 50px 40px 36px; }
.order__row { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.order__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field__label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 9px; padding: 0; }
.field__help { margin-top: 7px; font-size: .93rem; color: var(--graphite); }
.field__wrap { position: relative; }
.order input[type="url"], .order input[type="email"], .order textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffefb; border: 1px solid var(--ink); border-radius: 0; padding: 13px 14px;
}
.order textarea { resize: vertical; min-height: 110px; }
.order input:focus, .order textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.order input.is-stamped { padding-right: 118px; background: #fff8f4; }
.field__stamp {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-5deg);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1.5px solid var(--accent); padding: 3px 6px; background: var(--sheet); pointer-events: none;
}
.field__stamp[hidden] { display: none; }

.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkg, .chip, .consent { position: relative; cursor: pointer; }
.pkg input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pkg__box { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 16px 16px; border: 1px solid var(--ink); background: #fffefb; transition: background .15s, color .15s; }
.pkg__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.pkg__price { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.pkg:hover .pkg__box { background: var(--paper); }
.pkg input:checked + .pkg__box { background: var(--ink); color: var(--paper); box-shadow: inset 0 -4px 0 var(--accent); }
.pkg input:focus-visible + .pkg__box, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; padding: 9px 13px; min-height: 40px; border: 1px solid var(--ink); background: #fffefb; }
.chip span::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; flex: none; }
.chip:hover span { background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:checked + span::before { background: var(--accent); border-color: var(--accent); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }

.order__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; padding-top: 24px; border-top: 1px dashed var(--rule); }
.order__msg { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--accent-deep); }
.order__msg:empty { display: none; }
.order__msg.is-on { border: 2px solid var(--accent); padding: 6px 14px; font-style: normal; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); }

/* ============ SC 08 Questions ============ */
.faqs { columns: 2; column-gap: 34px; }
.faq { border-top: 1px solid var(--ink); break-inside: avoid; }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 8px;
  align-items: baseline; padding: 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--accent); text-align: right; }
.faq[open] summary::after { content: "\2212"; }
.faq__no { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.faq__q { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; line-height: 1.2; }
.faq summary:hover .faq__q { color: var(--accent-deep); }
.faq p { padding: 0 30px 22px 48px; color: var(--ink-2); }

/* ============ SC 09 End slate ============ */
.scene--end { padding-bottom: 56px; }
.endslate { background: var(--ink); color: var(--paper); border-color: var(--ink); overflow: hidden; transition: background .8s ease; }
.endslate__sticks {
  height: 36px; border-bottom: 2px solid var(--paper);
  background: repeating-linear-gradient(-55deg, var(--paper) 0 22px, var(--ink) 22px 44px);
}
.endslate__brand { padding: 36px 36px 6px; font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.02em; }
.endslate__line { padding: 18px 36px 34px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--mono); font-size: 13px; color: #e6dfd1; }
.endslate__line a { color: var(--paper); }
.endslate__line a:hover { color: #f6c7bc; }
.endslate__line .dot { color: #ff8f78; }
.endslate__legal { display: inline-flex; gap: 12px; }

/* ============ Narrower screens: the timeline becomes a slim top bar ============ */
@media (max-width: 999px) {
  body { padding-left: 0; padding-top: var(--bar-h); }
  .rail { right: 0; bottom: auto; width: auto; height: var(--bar-h); border-right: 0; border-bottom: 1px solid var(--ink); }
  .rail__head { display: none; }
  .rail__track { left: 104px; right: 16px; top: 0; bottom: 0; }
  .rail__track::before {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 10px; border-left: 0; border-bottom: 1px solid var(--ink);
    background:
      repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 40px) 0 100% / 100% 10px no-repeat,
      repeating-linear-gradient(to right, var(--graphite) 0 1px, transparent 1px 8px) 0 100% / 100% 5px no-repeat;
  }
  .rail__marks li { top: 0; bottom: 0; left: calc(var(--f, 0) * 100%); right: auto; width: 0; }
  .rail__marks a { left: -12px; right: auto; top: 3px; width: 24px; min-height: 24px; padding: 0; text-align: center; font-size: 9.5px; }
  .rail__marks a::before { left: 11.5px; top: auto; bottom: -8px; width: 1.5px; height: 12px; }
  .rail__num::before { content: none; }
  .rail__label { display: none; }
  .playhead { top: 0; bottom: 0; height: auto; left: calc(var(--p, 0) * 100%); right: auto; width: 0; }
  .playhead__line { left: -1px; top: 0; width: 2px; height: 100%; }
  .playhead__line::before { left: -5px; top: -1px; border-width: 8px 6px 0 6px; border-color: var(--accent) transparent transparent transparent; }
  .playhead__line::after { display: none; }
  .playhead__tc { position: fixed; left: 8px; top: 9px; bottom: auto; font-size: 11.5px; padding: 3px 6px; }

  .scene { scroll-margin-top: calc(var(--bar-h) + 8px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .film__grid { grid-template-columns: minmax(0, 1fr); }
  .stage { border-right: 0; border-bottom: 1px solid var(--ink); --stage-h: min(560px, 74vh); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .shot { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: center; }
  .shot__cap { margin-top: 0; }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .skip:focus { top: calc(var(--bar-h) + 8px); }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .masthead { padding-top: 16px; }
  .brand__name { font-size: 1.4rem; }
  .nav ul { gap: 2px 18px; }
  .nav a { font-size: 12px; }
  .sheet-meta { font-size: 10px; letter-spacing: .06em; justify-content: flex-start; }
  .sheet-meta span { padding-block: 5px; }
  .scene { padding-top: 52px; }
  .slate__note { margin-left: 0; flex-basis: 100%; }
  .panel--hero .panel__body { padding: 38px 20px 30px; }
  .lede { font-size: 1.08rem; }
  .source { padding: 38px 18px 22px; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 22px 10px 12px; gap: 12px 8px; }
  .frame { grid-column: span 2; }
  .frame--source { grid-column: 1 / -1; }
  .frame:nth-child(5), .frame:nth-child(6) { grid-column: span 3; }
  .frame--source .frame__pic { aspect-ratio: 16 / 7; }
  .frame--source .frame__addr { font-size: 12px; top: 40%; }
  .frame--source .stamp { left: auto; right: 5%; margin: 0; bottom: 8%; }
  .stamp__head { font-size: 8.5px; }
  .frame--source.is-stamped .frame__addr { font-size: 16px; }
  .stamp__domain { font-size: 14px; }
  .frame figcaption { font-size: 9.5px; letter-spacing: .04em; }
  .frame:not(.frame--source) figcaption span { display: block; }
  .stage { padding: 22px 14px; height: auto; --stage-h: min(520px, 66vh); }
  .player { width: min(100%, calc((var(--stage-h) - 28px) * var(--w) / var(--h))); }
  .film__meta { padding: 24px 18px 20px; }
  .shot { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shot__cap { margin-top: 16px; }
  .shotlist { padding: 26px 18px 6px; }
  .shotlist__head { display: none; }
  .shotlist li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tier { padding: 34px 22px 26px; }
  .order { padding: 40px 18px 28px; }
  .order__row--2 { grid-template-columns: minmax(0, 1fr); }
  .pkgs { grid-template-columns: minmax(0, 1fr); }
  .faqs { columns: 1; }
  .faq p { padding: 0 6px 20px 48px; }
  .outlets li { padding: 9px 12px 9px 10px; gap: 10px; }
  .endslate__brand { padding: 28px 20px 4px; }
  .endslate__line { padding: 16px 20px 28px; font-size: 12px; flex-direction: column; gap: 8px; }
  .endslate__line .dot { display: none; }
  .endslate__legal .dot { display: inline; }
  .outlets { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tab { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
