/* ==========================================================================
   Cosmos Consult · The Call Sheet
   Projection black + script revision pages (white, blue, pink, yellow, green,
   goldenrod). Forum for credits, PT Mono for the typed production documents,
   Onest for prose.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: 'Forum'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/forum-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Forum'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/forum-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Forum'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/forum-cyrillic-400.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-mono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-mono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pt-mono-cyrillic-400.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-latin-wght.woff2) format('woff2-variations'), url(../fonts/onest-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-latin-ext-wght.woff2) format('woff2-variations'), url(../fonts/onest-latin-ext-wght.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-cyrillic-wght.woff2) format('woff2-variations'), url(../fonts/onest-cyrillic-wght.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  --black: #0D0D0C;          /* projection black */
  --board: #1E1915;          /* stripboard backing */
  --base: #17120E;           /* film base */
  --white: #F4F1EA;          /* white page */
  --blue: #A9C7E8;           /* blue revision */
  --pink: #F2B8C6;           /* pink revision */
  --yellow: #F3E08A;         /* yellow revision */
  --green: #B9DDB0;          /* green revision */
  --gold: #E2B33C;           /* goldenrod revision */
  --ink: #141414;
  --edge: #E07A2E;           /* film-base orange: edge codes, frame numbers only */
  --pencil: #B42318;         /* red pencil */
  --soft: #C9C3B6;           /* secondary type on black */
  --muted: #A8A296;          /* tertiary type on black */
  --line-dark: rgba(244, 241, 234, 0.16);

  --paper: var(--white);
  --ink2: #4A463E;
  --focus: var(--gold);

  --f-display: 'Forum', 'Iowan Old Style', 'Palatino Linotype', serif;
  --f-mono: 'PT Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-text: 'Onest', ui-sans-serif, system-ui, sans-serif;

  --bar-h: 60px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --page-m: clamp(8px, 2.6vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}
@media (max-width: 959px) { :root { --bar-h: 56px; } }

[data-paper="white"]  { --paper: var(--white);  --ink2: #4A463E; }
[data-paper="blue"]   { --paper: var(--blue);   --ink2: #26384D; }
[data-paper="pink"]   { --paper: var(--pink);   --ink2: #5A2333; }
[data-paper="yellow"] { --paper: var(--yellow); --ink2: #4D4318; }
[data-paper="green"]  { --paper: var(--green);  --ink2: #2C4427; }
[data-paper="gold"]   { --paper: var(--gold);   --ink2: #3D2E08; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #5A5449 var(--black);
  scrollbar-width: thin;
  scroll-padding-top: var(--bar-h);
  background: var(--black);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #4A453C; border: 2px solid var(--black); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #6B655A; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: var(--gold);
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
p, h1, h2, h3, h4, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: 400; text-align: left; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--ink); }
.page ::selection, .memo__page ::selection, .budget ::selection { background: var(--ink); color: var(--white); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
.page, .memo__page, .budget, .strip, .rev { --focus: var(--ink); }

.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 2 * var(--gutter), 1312px); margin-inline: auto; }

/* ---------- Icons (one stroke weight) ---------- */
svg[viewBox="0 0 24 24"] {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Film grain (canvas, behind content, visible on black only) ---------- */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.11;
}
.bar, main, .credits { position: relative; z-index: 1; }
.bar { z-index: 40; }

/* ---------- Skip link ---------- */
.skip {
  position: fixed; left: 12px; top: 10px; z-index: 100;
  padding: 10px 14px; background: var(--white); color: var(--ink);
  font: 0.8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; transform: translateY(-160%);
  --focus: var(--ink);
}
.skip:focus-visible { transform: none; }

/* ==========================================================================
   Header: title-card bar (a letterbox strip)
   ========================================================================== */
.bar {
  position: sticky; top: 0;
  height: var(--bar-h);
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}
.bar__in {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1472px);
  margin-inline: auto;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
}
.brand {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; color: var(--white); margin-right: auto; min-width: 0;
}
.brand__name {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: 1.125rem; line-height: 1; letter-spacing: 0.24em;
  white-space: nowrap;
}
.brand__desc {
  font-family: var(--f-mono); font-size: 0.6875rem; line-height: 1.2;
  letter-spacing: 0.04em; color: var(--muted); white-space: nowrap;
}

.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav__a {
  display: inline-block; padding: 6px 0;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--soft); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.25s var(--ease-out);
}
.nav__a:hover, .nav__a.is-here { color: var(--white); background-size: 100% 1px; }
.nav__a--book {
  position: relative; padding: 9px 12px 6px; margin-left: 4px;
  border: 1px solid rgba(244, 241, 234, 0.55); color: var(--white); background: none;
}
.nav__a--book::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px;
  background: repeating-linear-gradient(-55deg, var(--white) 0 6px, var(--ink) 6px 12px);
}
.nav__a--book:hover, .nav__a--book.is-here { background: none; border-color: var(--white); }

/* Subtitle-track selector */
.subs {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.subs__icon { width: 20px; height: 20px; color: var(--soft); }
.subs__label { margin-right: 2px; }
.subs__sep { color: #5A5449; }
.subs__btn {
  border: 0; background: none; padding: 4px 6px; min-height: 28px;
  letter-spacing: 0.08em; color: var(--soft);
  transition: background-color 0.15s, color 0.15s;
}
.subs__btn:hover { color: var(--white); }
.subs__btn[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.subs__btn[aria-pressed="true"]:focus-visible { outline-color: var(--gold); }

.menu {
  display: none; align-items: center; gap: 8px;
  border: 1px solid rgba(244, 241, 234, 0.4); background: none; color: var(--white);
  padding: 7px 10px; min-height: 36px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.menu svg { width: 18px; height: 18px; }

@media (max-width: 959px) {
  .menu { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--bar-h);
    background: var(--black); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .bar.is-open .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__a {
    display: block; padding: 16px 0; background: none;
    font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0.14em; color: var(--white);
  }
  .nav__a--book { margin: 16px 0 0; padding: 18px 14px 14px; text-align: center; }
  .nav__a--book::before { height: 8px; }
}
@media (max-width: 559px) {
  .brand__name { font-size: 0.9375rem; letter-spacing: 0.18em; }
  .brand__desc { font-size: 0.6875rem; letter-spacing: 0; }
  .bar .subs__label { display: none; }
  .bar .subs { gap: 2px; }
  .bar .subs__icon { width: 18px; height: 18px; margin-right: 2px; }
  .menu span { display: none; }
  .menu { padding: 7px 8px; }
}
@media (max-width: 429px) {
  .bar .subs__icon { display: none; }
  .brand__desc { white-space: normal; max-width: 22ch; line-height: 1.12; }
  .brand { gap: 2px; }
}

/* ==========================================================================
   Type
   ========================================================================== */
.h1 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 0.85rem + 3.6vw, 4.25rem);
  line-height: 1.04; letter-spacing: 0.035em;
  color: var(--white);
  text-wrap: balance;
}
.h1__l { display: block; }
.nw { white-space: nowrap; }
:lang(ru) .h1 { font-size: clamp(1.75rem, 0.75rem + 3.1vw, 3.75rem); letter-spacing: 0.02em; }

.h2 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.625rem, 0.95rem + 2.3vw, 3.125rem);
  line-height: 1.06; letter-spacing: 0.05em;
  text-wrap: balance;
}
:lang(ru) .h2 { letter-spacing: 0.03em; }
.h2--light { color: var(--white); }

/* ==========================================================================
   1 · Opening titles + hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(66svh - var(--bar-h));
  display: flex; flex-direction: column;
}
.hero__in {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(32px, 6.5vh, 72px) clamp(28px, 4.5vh, 48px);
}
.hero__copy { max-width: 60rem; }
.hero__lead {
  margin-top: clamp(18px, 2.8vh, 28px);
  max-width: 54ch;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
  line-height: 1.55; color: var(--soft);
}
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.35);
  min-height: 32px;
}
.hero__more:hover { color: var(--white); text-decoration-color: var(--gold); }
.hero__more svg { transition: translate 0.25s var(--ease-out); }
.hero__more:hover svg { translate: 0 3px; }

@media (max-width: 899px) {
  .hero__in { grid-template-columns: 1fr; align-items: start; }
  .hero__cta { width: 100%; }
}

/* Title cards: shown only while the intro runs */
.titles { display: none; }
.intro .titles {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
}
.titles__card {
  grid-area: 1 / 1;
  padding-inline: var(--gutter); text-align: center;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.05rem, 0.75rem + 1.3vw, 1.75rem);
  letter-spacing: 0.32em; line-height: 1.3; color: var(--white);
  visibility: hidden;
}
.intro .bar,
.intro .hero__copy,
.intro .hero__cta { opacity: 0; }
.intro .page--rise { transform: translateY(46vh); }
.intro .h1 { visibility: hidden; }
.intro.intro-run .h1 { visibility: visible; }

/* ==========================================================================
   Slate (clapperboard) — the primary call to action
   ========================================================================== */
.slate {
  --slate-w: 340px;
  position: relative; display: block;
  width: min(100%, var(--slate-w));
  padding: 38px 0 0; margin: 0;
  border: 0; background: none; color: var(--white);
  text-align: left; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: translate 0.12s;
}
.slate__sticks { position: absolute; left: 0; right: 0; top: 0; height: 40px; }
.slate__base,
.slate__clap {
  position: absolute; left: 0; right: 0; height: 20px;
  border: 2px solid var(--white);
}
.slate__base {
  bottom: 0;
  background: repeating-linear-gradient(-56deg, var(--white) 0 14px, var(--ink) 14px 28px);
}
.slate__clap {
  bottom: 19px;
  background: repeating-linear-gradient(56deg, var(--white) 0 14px, var(--ink) 14px 28px);
  transform-origin: 2px 100%;
  rotate: var(--open, -9deg);
  transition: rotate 0.38s var(--ease-out);
}
.slate__sticks::after { /* hinge pin */
  content: ""; position: absolute; left: -3px; bottom: 13px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--white);
}
.page .slate__base, .page .slate__clap { border-color: var(--ink); }
.page .slate__sticks::after { background: var(--white); border-color: var(--ink); }
.slate:hover .slate__clap,
.slate:focus-visible .slate__clap { rotate: var(--lift, -23deg); }
.slate.is-clap .slate__clap { rotate: 0deg; transition: rotate 0.075s cubic-bezier(0.55, 0, 1, 0.45); }
.slate.is-jolt { translate: 0 3px; }
.slate:focus-visible { outline-offset: 6px; }

.slate__board {
  display: flex; flex-direction: column;
  background: var(--ink);
  border: 2px solid var(--white);
}
.slate__row {
  display: flex;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.slate__row:first-child { border-bottom: 1px solid rgba(244, 241, 234, 0.7); }
.slate__row:last-child { border-top: 1px solid rgba(244, 241, 234, 0.7); }
.slate__f {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px; min-width: 0;
}
.slate__f + .slate__f { border-left: 1px solid rgba(244, 241, 234, 0.7); }
.slate__k { color: var(--muted); font-size: 0.625rem; }
.slate__v { color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slate__label {
  display: block; padding: 16px 14px 18px;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  line-height: 1.08; letter-spacing: 0.05em;
  text-wrap: balance;
}
:lang(ru) .slate__label { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5625rem); letter-spacing: 0.03em; }
.slate:hover .slate__label { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

.slate.is-busy { cursor: progress; }
.slate.is-no { animation: slate-no 0.42s steps(6) 1; }
@keyframes slate-no {
  0%, 100% { translate: 0 0; }
  20% { translate: -5px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; }
}

@media (max-width: 899px) {
  .hero .slate { --slate-w: 100%; --open: -4deg; --lift: -11deg; }
  .hero__cta { padding-top: 10px; }
}

/* ==========================================================================
   Pages (paper on the black desk)
   ========================================================================== */
.page {
  position: relative;
  width: min(100% - 2 * var(--page-m), 1240px);
  margin-inline: auto;
  background: var(--paper); color: var(--ink);
  padding: clamp(18px, 3vw, 40px) clamp(16px, 3.6vw, 52px) clamp(18px, 2.6vw, 30px) clamp(34px, 6vw, 92px);
}
.page--white { --paper: var(--white); --ink2: #4A463E; }
.page--blue  { --paper: var(--blue);  --ink2: #26384D; }
.page--green { --paper: var(--green); --ink2: #2C4427; }
.page + .page { margin-top: clamp(20px, 3.5vw, 48px); }

/* three-hole punch: the desk shows through */
.punch {
  position: absolute; top: 0; bottom: 0; left: clamp(9px, 1.9vw, 30px); width: 18px;
  background:
    radial-gradient(circle, var(--black) 0 7px, transparent 7.6px) 50% max(48px, 10%) / 18px 18px no-repeat,
    radial-gradient(circle, var(--black) 0 7px, transparent 7.6px) 50% 50% / 18px 18px no-repeat,
    radial-gradient(circle, var(--black) 0 7px, transparent 7.6px) 50% min(calc(100% - 48px), 90%) / 18px 18px no-repeat;
  pointer-events: none;
}
@media (max-width: 599px) { .punch { width: 12px; left: 8px; background-size: 12px 12px; background-image: radial-gradient(circle, var(--black) 0 4.5px, transparent 5px), radial-gradient(circle, var(--black) 0 4.5px, transparent 5px), radial-gradient(circle, var(--black) 0 4.5px, transparent 5px); } }

.page__foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(28px, 4vw, 48px); padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink2);
}

/* Call-sheet header block */
.cs-head {
  display: grid;
  border: 1.5px solid var(--ink);
}
.cs-head--p1 { grid-template-columns: 1.35fr 1fr 1fr; }
.cs-head--p1 .cs-cell--title { grid-row: span 2; }
.cs-head--crew, .cs-head--order { grid-template-columns: 1fr 2.2fr 1fr; }
.cs-cell {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 10px 14px; min-width: 0;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  margin: 0 -1px -1px 0;
}
.cs-k {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink2);
}
.cs-v {
  font-family: var(--f-mono); font-size: 0.9375rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.03em;
}
.cs-tag {
  display: inline-block; margin-left: 4px; padding: 1px 6px 0;
  border: 1px solid var(--ink); border-radius: 2px;
  font-size: 0.6875rem; letter-spacing: 0.08em; vertical-align: 2px;
}
.cs-cell--title { align-items: center; text-align: center; padding-block: 14px; gap: 6px; }
.cs-title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); line-height: 1; letter-spacing: 0.16em;
}
:lang(ru) .cs-title { letter-spacing: 0.08em; }
.cs-day {
  font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.cs-cell--title .h2 { font-size: clamp(1.5rem, 0.95rem + 1.9vw, 2.75rem); }
@media (max-width: 719px) {
  .cs-head--p1 { grid-template-columns: 1fr 1fr; }
  .cs-head--p1 .cs-cell--title { grid-row: auto; grid-column: 1 / -1; }
  .cs-head--crew, .cs-head--order { grid-template-columns: 1fr 1fr; }
  .cs-head--crew .cs-cell--title, .cs-head--order .cs-cell--title { order: -1; grid-column: 1 / -1; }
  .cs-cell { padding: 9px 11px; }
  .cs-v { font-size: 0.8125rem; }
}

/* ---------- 2 · Page 1: advance schedule + deliverables ---------- */
.page--rise { will-change: auto; }
.adv { margin-top: 18px; }
.adv__cap {
  caption-side: top; text-align: left; padding: 0 0 8px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.adv th {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2);
  padding: 6px 12px 6px 0; border-bottom: 1.5px solid var(--ink);
}
.adv td {
  font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.4;
  padding: 9px 14px 9px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.22);
  vertical-align: top;
}
.adv td:first-child { width: 6.5rem; white-space: nowrap; text-transform: uppercase; }
.adv td:first-child::before {
  content: ""; display: inline-block; vertical-align: -5px;
  width: 9px; height: 20px; margin-right: 12px;
  background: var(--paper); border: 1px solid rgba(20, 20, 20, 0.55);
}
.adv tr[data-paper] { background: none; }
.adv td:nth-child(3) { color: var(--ink2); width: 36%; }
.adv tbody tr { --ink2: #4A463E; }
@media (max-width: 639px) {
  .adv thead { display: none; }
  .adv tr { display: grid; grid-template-columns: 4.6rem 1fr; border-bottom: 1px solid rgba(20, 20, 20, 0.22); padding: 9px 0; }
  .adv td { border: 0; padding: 0; width: auto !important; }
  .adv td:nth-child(3) { grid-column: 2; font-size: 0.8125rem; margin-top: 3px; }
  .adv td:first-child::before { margin-right: 8px; width: 7px; }
}

.pkg { margin-top: clamp(44px, 6vw, 80px); }
.pkg__h { max-width: 22ch; margin-bottom: clamp(18px, 2.4vw, 28px); }
.pkg__row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 8px 32px; align-items: baseline;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--ink);
}
.pkg__row:last-child { border-bottom: 1px solid var(--ink); }
.pkg__t {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); line-height: 1.05; letter-spacing: 0.06em;
}
.pkg__d { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); max-width: 56ch; }
@media (max-width: 639px) { .pkg__row { grid-template-columns: 1fr; } }

/* ---------- 3 · Page 2: the crew ---------- */
.crew__intro {
  max-width: 64ch; margin: clamp(18px, 2.4vw, 28px) 0 clamp(18px, 2.4vw, 28px);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
}
.crew { font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.4; }
.crew thead th {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2);
  padding: 8px 14px 8px 0; border-bottom: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink);
}
.crew td, .crew tbody th {
  padding: 11px 14px 11px 0; vertical-align: top;
  border-bottom: 1px solid rgba(20, 20, 20, 0.22);
}
.crew__dept { width: 15%; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); padding-top: 13px !important; }
.crew__role { width: 17%; text-transform: uppercase; letter-spacing: 0.06em; }
.crew td:nth-child(3) { width: 33%; }
.crew__call { width: 14%; white-space: nowrap; text-transform: uppercase; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.crew__lbl { display: none; }
.crew .crew__dir td, .crew .crew__dir th { border-bottom: 1.5px solid var(--ink); padding-block: 14px; }
.hl {
  /* highlighter: someone marked the directors' line on the call sheet */
  color: inherit; padding: 1px 4px 0; margin-left: -4px;
  background: linear-gradient(97deg, rgba(243, 224, 138, 0) 0 1px, rgba(243, 224, 138, 0.95) 3px calc(100% - 3px), rgba(243, 224, 138, 0) calc(100% - 1px)) 0 58% / 100% 82% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (max-width: 839px) {
  .crew thead { display: none; }
  .crew, .crew tbody, .crew tr, .crew td, .crew tbody th { display: block; width: auto !important; }
  .crew tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
    padding: 16px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.3);
  }
  .crew tr.crew__dir { border-bottom: 1.5px solid var(--ink); }
  .crew td, .crew tbody th { border: 0 !important; padding: 0 !important; }
  .crew__dept { grid-column: 1; grid-row: 1; font-size: 0.6875rem; }
  .crew__role { grid-column: 1 / -1; grid-row: 2; font-size: 1.0625rem; margin-bottom: 4px; }
  .crew__call { grid-column: 2; grid-row: 1; text-align: right; }
  .crew td:nth-child(3), .crew td:nth-child(5) { grid-column: 1 / -1; display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; }
  .crew__call .crew__lbl { display: none !important; }
  .crew__lbl { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); padding-top: 2px; }
}

/* ==========================================================================
   4 · Shooting schedule — the stripboard
   ========================================================================== */
.sched {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px) clamp(64px, 8vw, 120px);
}
.sched__in {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 72px); align-items: start;
}
.sched__side { position: sticky; top: calc(var(--bar-h) + 32px); }
.sched__lead { margin-top: 18px; color: var(--soft); max-width: 36ch; }
.readout, .sched__ctrl { display: none; }

/* Strips (static layout: readable, every strip open) */
.board { position: relative; }
.board__window { position: relative; }
.board__rail { display: none; }
.board__aperture { display: none; }
.strips { display: flex; flex-direction: column; }
.strip {
  position: relative;
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 20px;
  background: var(--paper); color: var(--ink);
  padding: 18px 20px 0;
}
.strip__head { display: contents; }
.strip__day {
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  position: sticky; top: calc(var(--bar-h) + 12px);
  font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding-top: 4px;
}
.strip__day .num { font-size: 1.0625rem; }
.strip__title {
  grid-column: 2; font-weight: 400;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.1; letter-spacing: 0.08em;
}
.strip__sc {
  position: absolute; right: 16px; top: 16px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--ink2);
}
.strip__body { grid-column: 2; padding: 8px 0 20px; }
.strip__text { max-width: 54ch; }
.strip__cast { margin-top: 10px; font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink2); }
.strip__k { display: inline-block; margin-right: 8px; padding: 1px 6px 0; border: 1px solid currentColor; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.strip__break {
  grid-column: 1 / -1; margin: 0 -20px;
  display: block; padding: 5px 20px 4px;
  background: var(--black); color: var(--muted);
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  border-block: 1px solid #2A2520;
}

/* Pink revision page (honest status) — always inside the build strip */
.rev-slot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.rev {
  --paper: var(--pink); --ink2: #5A2333;
  position: relative; z-index: 2;
  width: min(100%, 560px); min-height: 212px;
  margin: -4px 6px 22px 0;
  background: var(--pink); color: var(--ink);
  padding: 18px 64px 18px 22px;
  rotate: -0.8deg;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.18);
}
.rev__title {
  margin: 0; font-weight: 400;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.05; letter-spacing: 0.06em;
}
.rev__text { margin-top: 8px; font-size: 1rem; max-width: 46ch; }
.rev__fields { margin-top: 12px; display: grid; gap: 6px; }
.rev__fields div { display: grid; grid-template-columns: 6.5rem 1fr; align-items: end; gap: 10px; }
.rev__fields dt { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rev__fields dd { height: 1.1em; border-bottom: 1px dashed rgba(20, 20, 20, 0.5); }
/* right margin of a revised script page: the colour tag and the change asterisks */
.rev__margin {
  position: absolute; top: 14px; bottom: 14px; right: 0; width: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-left: 1px solid rgba(20, 20, 20, 0.28);
}
.rev__tag {
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
}
.rev__stars { font-family: var(--f-mono); font-size: 1.125rem; line-height: 1.45; text-align: center; color: var(--ink); }

@media (max-width: 959px) {
  .sched__in { grid-template-columns: 1fr; }
  .sched__side { position: static; }
}
@media (max-width: 599px) {
  .strip { grid-template-columns: 1fr; padding: 0 16px; }
  .strip__day {
    grid-row: auto; grid-column: 1; z-index: 3;
    margin: 0 -16px; padding: 10px 16px 8px;
    background: var(--paper); border-bottom: 1px solid rgba(20, 20, 20, 0.25);
    top: var(--bar-h);
  }
  .strip__title, .strip__body { grid-column: 1; }
  .strip__title { padding-top: 12px; }
  .strip__sc { top: 12px; }
  .strip__break { margin: 0 -16px; padding-inline: 16px; }
  .rev { margin: 4px 2px 18px 0; padding: 16px 56px 16px 16px; }
  .rev__fields div { grid-template-columns: 5.5rem 1fr; }
}

/* ---------- Scrub mode (desktop, motion allowed): the board advances frame by frame ---------- */
.sched.is-scrub {
  height: calc(100svh - var(--bar-h)); padding: clamp(20px, 3.4vh, 40px) 0;
  --strip-h: 58px; --break-h: 24px; --rail: 30px;
  --gate-top: clamp(96px, 18vh, 170px);
}
.sched.is-scrub .sched__in { height: 100%; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.sched.is-scrub .sched__side { position: relative; top: 0; display: flex; flex-direction: column; }
.sched.is-scrub .readout {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px;
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.readout__k { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.readout__day {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(4.5rem, 3rem + 4.5vw, 7.5rem); line-height: 0.9; letter-spacing: 0.02em; color: var(--white);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.readout__day.is-word { font-size: clamp(3rem, 2rem + 3vw, 5rem); }
.readout.is-word .readout__k, .readout.is-word .readout__of { visibility: hidden; }
.readout__of { font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding-bottom: 10px; }
.readout__edge {
  grid-column: 1 / -1; margin-top: 16px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.readout__edge .num { color: var(--edge); letter-spacing: 0.08em; margin-left: 8px; font-size: 0.875rem; }
.sched.is-scrub .sched__ctrl { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.ctrl {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid rgba(244, 241, 234, 0.4); background: none; color: var(--white);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color 0.15s, background-color 0.15s;
}
.ctrl:hover:not(:disabled) { border-color: var(--white); background: rgba(244, 241, 234, 0.06); }
.ctrl:disabled { opacity: 0.38; cursor: default; }
.ctrl--ink { color: var(--ink); border-color: rgba(20, 20, 20, 0.5); }
.ctrl--ink:hover:not(:disabled) { border-color: var(--ink); background: rgba(20, 20, 20, 0.05); }

.sched.is-scrub .board { height: 100%; min-height: 0; }
.sched.is-scrub .board__window {
  height: 100%; overflow: hidden;
  background: var(--board);
  border: 1px solid #2E2822;
}
.sched.is-scrub .board__film {
  position: relative;
  padding: var(--gate-top) var(--rail) 120vh;
  will-change: transform;
}
.sched.is-scrub .board__rail {
  display: block; position: absolute; top: 0; bottom: 0; width: var(--rail);
  background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20.5'%3E%3Crect x='9' y='5' width='12' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 30px 20.5px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20.5'%3E%3Crect x='9' y='5' width='12' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 30px 20.5px;
}
.board__rail--l { left: 0; }
.board__rail--r { right: 0; }
.board__head, .board__tail { display: none; }
.sched.is-scrub .board__head {
  position: absolute; left: var(--rail); right: var(--rail);
  top: calc(var(--gate-top) - 104px); height: 92px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 24px; align-items: center;
  padding: 10px 18px; background: var(--black); border: 1px solid #3A332B; color: var(--white);
}
.board__head-t {
  grid-row: span 2; font-family: var(--f-display); text-transform: uppercase;
  font-size: 1.75rem; letter-spacing: 0.16em; line-height: 1;
  padding-right: 24px; border-right: 1px solid #3A332B; align-self: stretch; display: flex; align-items: center;
}
.board__head-l { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.board__head .cs-tag { border-color: var(--soft); }
.sched.is-scrub .board__tail {
  display: flex; align-items: center; justify-content: center; height: 64px;
  background: var(--black);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.sched.is-scrub .strips { background: var(--black); }
.sched.is-scrub .strip {
  display: flex; flex-direction: column; padding: 0; cursor: pointer;
  background: none;
}
.sched.is-scrub .strip.is-current { cursor: default; }
.sched.is-scrub .strips .strip__head {
  position: relative;
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
  height: var(--strip-h); padding: 0 18px;
  background-color: var(--paper);
  transition: background-color 0.2s, opacity 0.2s;
}
.sched.is-scrub .strips .strip__day { position: static; grid-row: auto; align-self: center; padding: 0; }
.sched.is-scrub .strips .strip__title { font-size: 1.375rem; }
.sched.is-scrub .strip.is-current .strip__title { font-size: clamp(1.5rem, 1rem + 1.1vw, 2.125rem); line-height: 1; }
.sched.is-scrub .strips .strip__sc { position: static; }
/* the body opens in the column itself, so the next strip always follows it */
.sched.is-scrub .strips .strip__body {
  height: 0; overflow: hidden;
  padding: 0 18px 0 calc(8.5rem + 34px);
  background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(20, 20, 20, 0.28);
}
.sched.is-scrub .strips .strip__text { padding-top: 18px; font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.3125rem); line-height: 1.5; max-width: 44ch; }
.sched.is-scrub .strips .strip__cast { margin: 0; padding: 14px 0 22px; }
.sched.is-scrub .rev-slot {
  display: block; height: 0; overflow: hidden;
  padding: 0 18px 0 calc(8.5rem + 34px);
  background: var(--paper);
}
.sched.is-scrub .rev { margin: 10px 6px 24px auto; max-width: 560px; }
.sched.is-scrub .strip__break {
  margin: 0; height: var(--break-h); padding: 0 18px; display: block; line-height: var(--break-h);
  border: 0; background: transparent; color: #8F897D;
}
/* shot strips keep their full revision colour; they are marked done in ink: dimmer type, a struck title, a SHOT stamp */
.sched.is-scrub .strip.is-past .strip__head { color: var(--ink2); }
.sched.is-scrub .strip.is-past .strip__title { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: currentColor; }
.sched.is-scrub .strip.is-past .strip__sc { visibility: hidden; }
.sched.is-scrub .strip.is-past .strip__head::before {
  content: "SHOT"; position: absolute; right: 18px; top: 50%;
  translate: 0 -50%; rotate: -5deg;
  padding: 4px 9px 3px; border: 1.5px solid currentColor; border-radius: 2px;
  font-family: var(--f-mono); font-size: 0.75rem; line-height: 1; letter-spacing: 0.2em; color: var(--ink2);
}
:lang(ru) .sched.is-scrub .strip.is-past .strip__head::before { content: "СНЯТО"; }
.sched.is-scrub .strip:not(.is-current):hover .strip__head { box-shadow: inset 0 -3px 0 rgba(20, 20, 20, 0.35); }
.sched.is-scrub .strip.is-revised.is-past .strip__head::after {
  content: "REV."; position: absolute; right: 104px; top: 50%; translate: 0 -50%;
  padding: 4px 8px 3px; background: var(--pink); color: var(--ink); line-height: 1;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  rotate: 4deg;
}
:lang(ru) .sched.is-scrub .strip.is-revised.is-past .strip__head::after { content: "ИСПР."; right: 124px; }

.sched.is-scrub .board__aperture {
  display: block; position: absolute; z-index: 4; pointer-events: none;
  top: calc(var(--gate-top) - 8px); left: calc(var(--rail) - 8px); right: calc(var(--rail) - 8px);
  height: calc(var(--strip-h) + 16px);
}
.sched.is-scrub .board__aperture::before,
.sched.is-scrub .board__aperture::after {
  content: ""; position: absolute; top: 0; width: 18px; height: 18px;
  border-top: 2px solid var(--gold);
}
.sched.is-scrub .board__aperture::before { left: 0; border-left: 2px solid var(--gold); }
.sched.is-scrub .board__aperture::after { right: 0; border-right: 2px solid var(--gold); }

@media (max-height: 760px) {
  .sched.is-scrub { --strip-h: 50px; --break-h: 20px; --gate-top: clamp(96px, 15vh, 130px); }
  .sched.is-scrub .strips .strip__text { padding-top: 14px; }
  .sched.is-scrub .strips .strip__cast { padding: 10px 0 16px; }
  .sched.is-scrub .board__head { top: calc(var(--gate-top) - 88px); height: 78px; }
  .sched.is-scrub .readout__day { font-size: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem); }
  .sched.is-scrub .sched__lead { display: none; }
}

/* ==========================================================================
   Film stock (shared by dailies and one-sheets)
   ========================================================================== */
.film { --hole: var(--black); }

/* ==========================================================================
   5 · Dailies: four takes
   ========================================================================== */
.dailies { padding-block: clamp(80px, 11vw, 160px) clamp(72px, 9vw, 140px); }
.dailies__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 96px); align-items: end; }
.dailies__text { color: var(--soft); max-width: 52ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); }
@media (max-width: 899px) { .dailies__head { grid-template-columns: 1fr; } }

.reel {
  margin-top: clamp(36px, 5vw, 64px);
  width: min(100% - 2 * var(--gutter), 1472px); margin-inline: auto;
}
.film--takes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.take { position: relative; min-width: 0; }
.take__a { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--white); text-decoration: none; }
.take__frame {
  position: relative; display: block;
  background: var(--base);
  padding: 40px 7px 34px;
}
.take__frame::before, .take__frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34px;
  background: var(--hole);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34'%3E%3Crect x='7' y='12' width='10' height='11' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 34px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34'%3E%3Crect x='7' y='12' width='10' height='11' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 34px;
}
.take__frame::before { top: 0; height: 40px; -webkit-mask-position: 0 18px; mask-position: 0 18px; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: 24px 22px; mask-size: 24px 22px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22'%3E%3Crect x='7' y='4' width='10' height='11' rx='2' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22'%3E%3Crect x='7' y='4' width='10' height='11' rx='2' fill='%23000'/%3E%3C/svg%3E"); }
.take__frame::after { bottom: 0; }
.take__frame img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 3px;
  background: #0A0908;
  transition: filter 0.3s;
}
.take__edge {
  position: absolute; left: 12px; right: 12px; top: 3px; height: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.6875rem; line-height: 1; letter-spacing: 0.1em; color: var(--edge);
  pointer-events: none;
}
.take__num { text-transform: uppercase; letter-spacing: 0.16em; }
.take__cap {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 10px 0 4px;
}
.take__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); letter-spacing: 0.08em; line-height: 1.1; }
.take__desc { color: var(--soft); font-size: 0.9375rem; }
.take__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.35); text-underline-offset: 0.3em;
}
.take__go svg { transition: translate 0.25s var(--ease-out); }
.take__go--here { color: var(--gold); text-decoration: none; }
a.take__a:hover .take__frame img { filter: brightness(1.12) contrast(1.04); animation: flicker 0.34s steps(2) 1; }
a.take__a:hover .take__go { text-decoration-color: var(--gold); }
a.take__a:hover .take__go svg { translate: 4px 0; }
a.take__a:focus-visible { outline-offset: 4px; }
@keyframes flicker { 0% { opacity: 0.86; } 50% { opacity: 1; } 100% { opacity: 1; } }

.take--now .take__frame img { filter: none; }
.take__live {
  position: absolute; left: 18px; top: 52px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px 4px; background: var(--gold); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.take__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pencil); box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.15); }

@media (max-width: 1099px) {
  .film--takes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 599px) {
  .reel { width: min(100% - 2 * var(--gutter), 520px); }
  .film--takes { grid-template-columns: 1fr; row-gap: 0; }
  .take__frame { padding: 7px 30px 7px 42px; }
  .take__frame::before, .take__frame::after {
    top: 0; bottom: 0; height: auto; width: 30px; left: auto; right: auto;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Crect x='10' y='6' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 30px 22px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Crect x='10' y='6' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 30px 22px;
  }
  /* left rail is wider: the rotated edge-code lane carries the take number */
  .take__frame::before { left: 0; width: 42px; -webkit-mask-position: 12px 0; mask-position: 12px 0; }
  .take__frame::after { right: 0; }
  /* the rotated rail label lives in the frame's own cell, never past it */
  .take__a { display: grid; grid-template-columns: minmax(0, 1fr); }
  .take__frame, .take__edge { grid-area: 1 / 1; }
  .take__cap { grid-area: 2 / 1; }
  .take__edge {
    position: relative; left: auto; right: auto; top: auto; height: auto; width: 16px;
    justify-self: start; align-self: stretch; margin: 10px 0 10px 3px;
    writing-mode: vertical-rl; transform: rotate(180deg);
    justify-content: space-between;
  }
  .take__cap { padding: 14px 4px 28px; }
  .take__live { left: 52px; top: 16px; }
}

/* ==========================================================================
   6 · Previous productions: one-sheets
   ========================================================================== */
.prods { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 140px); }
.prods__h { margin-bottom: clamp(24px, 3.5vw, 44px); }
.onesheet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
  padding-bottom: clamp(30px, 4vw, 56px);
}
.onesheet--flip .onesheet__text { order: 2; }
.os-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border: 1.5px solid var(--ink); }
.os-head .onesheet__title { grid-column: 1 / -1; margin: 0; padding: 16px 16px 14px; border-bottom: 1px solid var(--ink); }
.os-cell { display: flex; flex-direction: column; gap: 3px; padding: 9px 14px; min-width: 0; }
.os-cell + .os-cell { border-left: 1px solid var(--ink); }
.onesheet__title {
  font-weight: 400;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.875rem, 0.9rem + 2.3vw, 3.125rem); line-height: 1; letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.onesheet__dl { margin-top: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; }
.onesheet__dl dt { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); margin-bottom: 5px; }
.onesheet__log { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); max-width: 44ch; }
.onesheet__figs { font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.02em; line-height: 1.6; }
.extlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; min-height: 40px;
  padding: 9px 14px; border: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.extlink:hover { background: var(--ink); color: var(--paper); }
.extlink svg { transition: translate 0.25s var(--ease-out); }
.extlink:hover svg { translate: 2px -2px; }

.onesheet__media { position: relative; padding-bottom: 150px; }
.film--case {
  --hole: var(--paper);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  background: var(--base);
  padding: 30px 0;
  position: relative;
}
.film--case::before, .film--case::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30px;
  background: var(--hole);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='30'%3E%3Crect x='6' y='10' width='10' height='10' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 22px 30px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='30'%3E%3Crect x='6' y='10' width='10' height='10' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 22px 30px;
}
.film--case::before { top: 0; }
.film--case::after { bottom: 0; }
.film__frame { position: relative; padding: 0 5px; overflow: hidden; }
.film__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 3px; background: #0A0908; }
.film__frame--close img { object-fit: cover; transform: scale(2.1); transform-origin: 90% 42%; }
.film__frame--close { border-radius: 3px; }
.film__frame--close::after { content: ""; position: absolute; inset: 0 5px; border-radius: 3px; pointer-events: none; }
.film__no {
  position: absolute; left: 8px; bottom: -22px;
  font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.12em; color: var(--edge);
}
.film__shot {
  position: absolute; right: 8px; top: -22px;
  font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--edge);
}
.film--case.film--v { grid-template-columns: 1fr; padding: 0 26px; }
.film--case.film--v::before, .film--case.film--v::after {
  top: 0; bottom: 0; height: auto; width: 26px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20'%3E%3Crect x='8' y='5' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 26px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20'%3E%3Crect x='8' y='5' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 26px 20px;
}
.film--case.film--v::before { left: 0; right: auto; }
.film--case.film--v::after { right: 0; left: auto; }
.film--v .film__frame { padding: 6px 0; }
.film--v .film__no { left: auto; right: -21px; bottom: 10px; writing-mode: vertical-rl; }
.polaroid {
  position: absolute; right: 9%; bottom: 0; z-index: 2;
  width: clamp(100px, 9vw, 128px);
  background: #FBFAF6; padding: 7px 7px 0;
  rotate: 3.5deg;
  box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.45), 0 2px 5px rgba(0, 0, 0, 0.2);
}
.onesheet--flip .polaroid { right: 5%; rotate: -3deg; }
.onesheet__media--v {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(118px, 11vw, 160px);
  align-items: end; gap: 0 26px; padding-bottom: 0;
}
.onesheet__media--v .polaroid { position: relative; right: auto; bottom: auto; width: 100%; margin-bottom: 22px; }
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; }
.polaroid figcaption {
  padding: 7px 2px 9px;
  font-family: var(--f-mono); font-size: 0.6875rem; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; color: #3A372F;
}
@media (max-width: 899px) {
  .onesheet { grid-template-columns: 1fr; }
  .onesheet--flip .onesheet__text { order: 0; }
}
@media (max-width: 599px) {
  .film--case { grid-template-columns: 1fr; padding: 0 26px; }
  .film--case::before, .film--case::after {
    top: 0; bottom: 0; height: auto; width: 26px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20'%3E%3Crect x='8' y='5' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 26px 20px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20'%3E%3Crect x='8' y='5' width='10' height='9' rx='2' fill='%23000'/%3E%3C/svg%3E") repeat-y 0 0 / 26px 20px;
  }
  .film--case::before { left: 0; right: auto; }
  .film--case::after { right: 0; left: auto; }
  .film__frame { padding: 6px 0; }
  .film__no { left: auto; right: -22px; bottom: 8px; writing-mode: vertical-rl; }
  .film__shot { right: auto; left: -22px; top: 8px; writing-mode: vertical-rl; }
  .onesheet__media { padding-bottom: 0 !important; padding-right: 0; }
  .polaroid { position: relative; right: auto; bottom: auto; margin: -36px 6px 0 auto; width: 118px; }
  .onesheet--flip .polaroid { left: auto; margin: -36px 6px 0 auto; }
  .onesheet__media--v { grid-template-columns: 1fr; }
  .onesheet__media--v .polaroid { width: 118px; margin: -36px 6px 0 auto; }
}

/* ==========================================================================
   7 · On-set rules: the yellow memo
   ========================================================================== */
.memo { padding-block: clamp(24px, 3vw, 40px) clamp(72px, 9vw, 140px); }
.memo__page {
  --paper: var(--yellow); --ink2: #4D4318;
  position: relative;
  width: min(100% - 2 * var(--page-m), 1240px);
  background: var(--yellow); color: var(--ink);
  padding: clamp(22px, 3.4vw, 48px) clamp(16px, 4vw, 60px) clamp(28px, 4vw, 56px) clamp(34px, 6vw, 92px);
}
.memo__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end;
  padding-bottom: clamp(18px, 2.4vw, 28px); border-bottom: 3px double var(--ink);
}
.memo__word {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: 0.82; letter-spacing: 0.12em;
}
.memo__meta { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.memo__meta div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 12px; align-items: baseline; }
.memo__meta dt { color: var(--ink2); font-size: 0.75rem; letter-spacing: 0.12em; }
.memo__h { font-weight: 400; font-family: var(--f-mono); font-size: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 0.25em; }
.rules { counter-reset: rule; margin-top: clamp(10px, 1.6vw, 20px); }
.rules li {
  counter-increment: rule;
  display: grid; grid-template-columns: clamp(2.5rem, 5vw, 4.5rem) minmax(0, 1fr); align-items: baseline;
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.28);
  font-family: var(--f-mono); font-size: clamp(1.125rem, 0.85rem + 1.15vw, 1.875rem); line-height: 1.25; letter-spacing: -0.005em;
}
.rules li::before { content: counter(rule) "."; font-size: 0.6em; letter-spacing: 0.1em; color: var(--ink2); }
@media (max-width: 599px) {
  .memo__head { grid-template-columns: 1fr; }
  .memo__meta div { grid-template-columns: 3.5rem 1fr; }
}

/* ==========================================================================
   8 · Budget & schedule (goldenrod title card)
   ========================================================================== */
.budget {
  --paper: var(--gold); --ink2: #3D2E08;
  background: var(--gold); color: var(--ink);
  padding-block: clamp(72px, 10vw, 150px) clamp(56px, 7vw, 110px);
}
.budget__h {
  font-weight: 400;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2.25rem, 1rem + 4.6vw, 5.75rem); line-height: 1; letter-spacing: 0.06em;
}
.budget__h span { display: block; }
:lang(ru) .budget__h { font-size: clamp(2rem, 0.9rem + 4vw, 5rem); letter-spacing: 0.04em; }
.topsheet { margin-top: clamp(36px, 5vw, 64px); font-family: var(--f-mono); }
.topsheet__cap {
  caption-side: top; text-align: left; padding-bottom: 10px;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
}
.topsheet th, .topsheet td { padding: 12px 18px 12px 0; vertical-align: top; text-align: left; }
.topsheet thead th { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); border-block: 1.5px solid var(--ink); }
.topsheet tbody th { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); letter-spacing: 0.08em; line-height: 1.15; width: 18%; }
.topsheet tbody td { font-size: 0.9375rem; line-height: 1.45; }
.topsheet tbody tr { border-bottom: 1px solid rgba(20, 20, 20, 0.35); }
.topsheet__lbl { display: none; }
.budget__stack { margin-top: 22px; font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.04em; }
.budget__k { display: inline-block; margin-right: 10px; padding: 1px 6px 0; border: 1px solid var(--ink); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 719px) {
  .topsheet thead { display: none; }
  .topsheet tr, .topsheet th, .topsheet td, .topsheet tbody { display: block; width: auto !important; }
  .topsheet tbody tr { padding: 14px 0; }
  .topsheet th, .topsheet td { padding: 0; }
  .topsheet tbody th { margin-bottom: 8px; }
  .topsheet td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; padding: 3px 0; }
  .topsheet__lbl { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); padding-top: 3px; }
}

/* ==========================================================================
   9 · Book the shoot (form on a fresh call sheet)
   ========================================================================== */
.page--order { margin-top: clamp(72px, 9vw, 140px); margin-bottom: clamp(72px, 9vw, 140px); }
.order { margin-top: clamp(22px, 3vw, 36px); }
.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px) clamp(24px, 4vw, 56px);
}
.form__lead { grid-column: 1 / -1; max-width: 60ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); }
.field { position: relative; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--need { grid-column: 1 / -1; }
.field__label {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 0; margin-bottom: 6px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.field__req { font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ink2); }
.field__req::before { content: "* "; }
.field__input {
  display: block; width: 100%;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; padding: 8px 0 7px;
  font-family: var(--f-mono); font-size: 1.125rem; line-height: 1.35; color: var(--ink);
  caret-color: var(--pencil);
  transition: border-color 0.15s, background-color 0.15s;
}
.field__input--area { resize: none; min-height: 5.5rem; background-image: repeating-linear-gradient(transparent 0 calc(1.35em * 1 + 6px), rgba(20, 20, 20, 0.18) calc(1.35em + 6px) calc(1.35em + 7px)); background-position: 0 8px; line-height: calc(1.35em + 7px); }
.field__input:hover { background-color: rgba(20, 20, 20, 0.03); }
.field__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-bottom-width: 2px; background-color: rgba(243, 224, 138, 0.35); }

.need { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 6px; }
.need__opt {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  font-family: var(--f-mono); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
}
.need__opt input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.need__box { position: relative; width: 20px; height: 20px; border: 1.5px solid var(--ink); flex: none; }
.need__box::before, .need__box::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 21px; margin: -10.5px 0 0 -1px;
  background: var(--ink); transform: rotate(45deg) scaleY(0); transition: transform 0.12s steps(3);
}
.need__box::after { transform: rotate(-45deg) scaleY(0); }
.need__opt input:checked + .need__box::before { transform: rotate(45deg) scaleY(1); }
.need__opt input:checked + .need__box::after { transform: rotate(-45deg) scaleY(1); }
.need__opt input:focus-visible + .need__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.need__opt:hover .need__box { background: rgba(20, 20, 20, 0.06); }

/* Red-pencil validation */
.field__err {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.4; color: var(--pencil);
}
.field__err::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B42318' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 3.4c3.3 2.6 6.6 6.2 10 9.4M12.6 3c-2.7 3-6 6.3-9.4 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.is-invalid .field__input {
  border-bottom-color: var(--pencil);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M0 3.2c5-2.2 10 2 15 0s10-2.1 15 0 10 2.2 15 0 10-2.1 15 0' fill='none' stroke='%23B42318' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 100%; background-size: 60px 6px;
}
.field.is-invalid .field__label > span:first-child {
  padding: 2px 8px; margin: -2px -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none' fill='none' stroke='%23B42318' stroke-width='1.3'%3E%3Cpath d='M8 6C30 1 78 1 94 8c6 6 2 15-14 18-22 3-60 3-74-3C-2 19 1 9 14 5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.form__go {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 28px;
  margin-top: 30px;
}
.slate--submit { --slate-w: 380px; --open: -6deg; --lift: -15deg; grid-row: span 2; }
.form__fine { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink2); max-width: 40ch; }
.form__summary { font-family: var(--f-mono); font-size: 0.875rem; color: var(--pencil); max-width: 44ch; min-height: 1.4em; }
@media (max-width: 719px) {
  .form { grid-template-columns: 1fr; }
  .form__go { grid-template-columns: 1fr; }
  .slate--submit { --slate-w: 100%; --open: -4deg; --lift: -10deg; grid-row: auto; }
}

/* Success: that's a wrap */
.wrapcard, .failcard { position: relative; padding: clamp(12px, 2vw, 24px) 0 8px; max-width: 760px; }
.wrapcard:focus, .failcard:focus { outline: none; }
.wrapcard__stamp {
  display: inline-block; margin-bottom: 18px;
  padding: 8px 18px 6px; border: 3px solid var(--pencil); color: var(--pencil);
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: 0.2em; line-height: 1;
  rotate: -4deg;
}
.wrapcard__h, .failcard__h {
  font-weight: 400; font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem); line-height: 1.02; letter-spacing: 0.06em;
}
.wrapcard__text, .failcard__text { margin-top: 14px; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); max-width: 50ch; }
.wrapcard__alt { margin-top: 18px; font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink2); }
.wrapcard__mail { color: var(--ink); text-decoration-thickness: 1px; }
.wrapcard .ctrl, .failcard .ctrl { margin-top: 26px; }
.failcard__h { color: var(--pencil); }

/* ==========================================================================
   10 · End credits
   ========================================================================== */
.credits { padding-top: clamp(48px, 6vw, 96px); }
.credits__screen { position: relative; }
.credits__roll { text-align: center; }
.credits__set { display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 6vw, 72px); padding-block: 20px 60px; }
.cr--title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4.5rem); letter-spacing: 0.24em; line-height: 1.1; padding-left: 0.24em; max-width: 100%;
}
.cr--desc { margin-top: -28px; font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--muted); }
.cr__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cr__big { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); letter-spacing: 0.18em; line-height: 1.1; }
.cr__names { display: grid; gap: 12px; justify-items: center; }
.cr__names li {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.375rem); letter-spacing: 0.16em; line-height: 1.2;
}

/* rolling (JS + motion allowed) */
.roll-on .credits__screen {
  height: clamp(420px, 70svh, 760px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.roll-on .credits__roll { will-change: transform; }
.ctrl--roll { display: flex; margin: 18px auto 0; }
.ctrl--roll .i-play { display: none; }
.ctrl--roll[aria-pressed="true"] .i-pause { display: none; }
.ctrl--roll[aria-pressed="true"] .i-play { display: block; }

.credits__end {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
  padding-block: 28px clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.also__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.also__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.also__list a, .also__here {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 0;
  font-family: var(--f-display); text-transform: uppercase; font-size: 1.125rem; letter-spacing: 0.1em;
  color: var(--white);
}
.also__list a { text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.3); text-underline-offset: 0.3em; }
.also__list a:hover { text-decoration-color: var(--gold); }
.also__take { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--muted); }
.also__here { color: var(--gold); }
.also__now { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.12em; padding: 3px 6px 2px; border: 1px solid var(--gold); align-self: center; }
.subs--foot { justify-self: end; }
.credits__fine { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.credits__dot { margin-inline: 6px; }
@media (max-width: 719px) {
  .credits__end { grid-template-columns: 1fr; }
  .subs--foot { justify-self: start; }
}

/* ==========================================================================
   i18n guard + reduced motion
   ========================================================================== */
html.i18n-pending .bar, html.i18n-pending main, html.i18n-pending .credits { visibility: hidden; }

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