/*
 * EVACut site: shared styles for all three variations.
 * The paper system is ported from the films (src/paper.tsx) by way of the designer handoff (09 Motion & web/paper.css):
 * torn cream sheets with a pale core, fiber texture, a warm two-layer shadow and a small random tilt.
 * Motion is stop-motion: everything is held on threes (one change every 100 ms) with steps(), never smooth easing.
 * Each variation adds its own theme file (theme-a/b/c.css) on top of this one.
 */

/* Fallbacks sized close to the brand fonts, so the swap when the fonts arrive barely moves anything */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); size-adjust: 106%; ascent-override: 90%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Courier Prime Fallback"; src: local("Courier New"); size-adjust: 100%; ascent-override: 86%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Marker Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 98%; descent-override: 30%; }

:root {
  --kraft: #111517;
  --kraft-dark: #0b0e0f;
  --ink: #1d2224;
  --slate: #2b3335;
  --cream: #f4eddc;
  --paper-core: #fbf7ee;
  --text: #eef2f0;
  --muted: #9ca8a5;
  --mint: #7ec8b3;
  --mint-deep: #2a6f5c;
  --coral: #ef8f82;
  --mustard: #e9b949;
  --sky: #8fb6d8;
  --plum: #8a6a9c;
  --on-paper-muted: #4d5557;

  --font-display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, sans-serif;
  --font-hand: "Permanent Marker", "Marker Fallback", "Comic Sans MS", cursive;
  --display-weight: 700;
  --display-track: -0.02em;

  --paper-shadow: drop-shadow(3px 6px 5px rgba(40, 25, 10, 0.35)) drop-shadow(1px 2px 1px rgba(40, 25, 10, 0.3));
  --step: 100ms; /* one change every 3 frames at 30 fps */
  --gutter: 16px;
  --max: 1200px;

  --h1: clamp(44px, 7vw, 88px);
  --h2: clamp(34px, 4.6vw, 56px);
  --h3: clamp(22px, 2.2vw, 28px);
  --body: clamp(18px, 1.4vw, 20px);
  --small: clamp(14px, 1vw, 15px);
  --heckle: clamp(19px, 1.8vw, 26px);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--kraft);
  color: var(--text);
  font: 400 var(--body) / 1.5 var(--font-body);
  overflow-x: hidden;
}
/* the stage: dark kraft with the films' mint and plum glows (no image needed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 20% 22%, rgba(42, 111, 92, 0.32), transparent 70%),
    radial-gradient(38vmax 38vmax at 78% 72%, rgba(138, 106, 156, 0.2), transparent 70%),
    var(--kraft);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--mint); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
::selection { background: var(--mustard); color: var(--ink); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--mustard); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; }
.small, .fine { font-size: var(--small); line-height: 1.45; }
/* placeholders Tri still has to fill */
.tbd { background: rgba(233, 185, 73, 0.2); outline: 1px dashed var(--mustard); outline-offset: 1px; border-radius: 2px; padding: 0 0.12em; }
[hidden] { display: none !important; }

/* ---------- paper ---------- */
.paper {
  --tilt: 0deg;
  --color: var(--cream);
  position: relative;
  isolation: isolate;
  display: block;
  color: var(--ink);
  rotate: var(--tilt);
  filter: var(--paper-shadow);
}
.paper > .paper-face {
  position: relative;
  display: block;
  background: var(--color) url("/assets/img/paper-fiber.webp") 0 0 / 256px 256px;
  background-blend-mode: multiply;
  clip-path: var(--torn, none);
}
.paper::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: var(--paper-core);
  clip-path: var(--torn-core, inset(3px));
}
.paper.cream { --color: var(--cream); }
.paper.slate { --color: var(--slate); color: var(--text); }
.paper.slate::before { background: #59625f; }
.paper.mustard { --color: var(--mustard); }
.paper.mint { --color: var(--mint); }
.paper.coral { --color: var(--coral); }
.paper.sky { --color: var(--sky); }
/* tape and pins */
.taped::after, .pinned::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.taped::after { width: 110px; height: 34px; left: calc(50% - 55px); top: -16px; background: url("/assets/img/tape.webp") center / contain no-repeat; rotate: -3deg; }
.pinned::after { width: 28px; height: 28px; left: calc(50% - 14px); top: -10px; background: url("/assets/img/pin.webp") center / contain no-repeat; }

.strip { display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--display-track); max-width: 100%; }
.strip > .paper-face { padding: 0.12em 0.55em 0.16em; }
.strip-h { margin: 0 0 18px; font-size: var(--h2); line-height: 1.05; }
.strip-h .strip { line-height: 1.08; }

/* buttons */
.btn { display: inline-block; cursor: pointer; text-decoration: none; border: 0; padding: 0; background: none; font: 700 20px/1.1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.btn > .paper-face { padding: 14px 26px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.small { font-size: 16px; }
.btn.small > .paper-face { padding: 10px 16px; min-height: 44px; }
.btn.big { font-size: 24px; }
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 1px; }
.btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 5px; }
.btn .icon { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 10px 2px; min-height: 44px; cursor: pointer; color: var(--mint); font: 600 var(--small) / 1.3 var(--font-body); text-decoration: underline; text-underline-offset: 0.2em; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.link-btn .icon { width: 16px; height: 16px; flex: none; }

/* ---------- motion: shot on threes ---------- */
.jitter { animation: jitter calc(var(--step) * 3) steps(1) infinite; }
@keyframes jitter {
  0% { translate: 0.6px -0.4px; rotate: calc(var(--tilt) - 0.25deg); }
  33% { translate: -0.5px 0.7px; rotate: calc(var(--tilt) + 0.3deg); }
  66% { translate: 0.2px 0.3px; rotate: calc(var(--tilt) - 0.1deg); }
}
.will-pop { opacity: 0; }
.pop-in { animation: pop calc(var(--step) * 7) steps(7, jump-none) both; }
@keyframes pop {
  0% { scale: 0.4; rotate: calc(var(--tilt) + 14deg); opacity: 0; }
  29% { scale: 0.86; rotate: calc(var(--tilt) + 4deg); opacity: 1; }
  57% { scale: 1.06; rotate: calc(var(--tilt) - 1deg); }
  100% { scale: 1; rotate: var(--tilt); opacity: 1; }
}
@keyframes wobble { 0% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes talk { 0% { rotate: -4deg; translate: 0 0; } 33% { rotate: 3deg; translate: 0 -6px; } 66% { rotate: -1deg; translate: 0 -2px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 15, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; gap: 3px; text-decoration: none; padding: 8px 0; }
.logo .tile { font: 700 19px/1 var(--font-display); width: 26px; text-align: center; }
.logo .tile > .paper-face { padding: 5px 0 6px; }
.logo .t0, .logo .t5 { --color: var(--mint); }
.logo .t1 { --color: var(--cream); }
.logo .t2 { --color: var(--coral); }
.logo .t3 { --color: var(--mustard); }
.logo .t4 { --color: var(--cream); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 12px 10px; color: var(--text); text-decoration: none; font: 600 15px var(--font-body); }
.nav a:hover { color: var(--mint); }
@media (max-width: 760px) { .nav { display: none; } .topbar .cta { margin-left: auto; } }
.topbar .btn, .callbar .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .logo { gap: 2px; }
  .logo .tile { width: 22px; font-size: 16px; }
  .hero { padding-top: 20px; }
  .badge { margin-bottom: 10px; }
  .headline { margin-bottom: 14px; }
  .subhead { margin-bottom: 18px; }
  .form-card > .paper-face { padding: 18px 16px 16px; }
  .not-connected { font-size: 13px; padding: 6px 10px; }
}

/* ---------- hero ---------- */
.hero { padding: 28px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; } .hero { padding: 48px 0 40px; } .hero-film { margin-top: 40px; } }
.badge { margin: 0 0 14px; font-size: 16px; }
.headline { font-size: var(--h1); line-height: 1; margin: 0 0 18px; }
.subhead { color: var(--muted); margin: 0 0 24px; max-width: 40ch; }
.subhead strong { color: var(--text); font-weight: 600; }
.form-card { max-width: 520px; }
.form-card > .paper-face { padding: 22px 22px 18px; }

.screen { position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.screen video { width: 100%; height: 100%; object-fit: cover; background: #000; }
/* gag posters are lazy images behind a transparent video, since a video's own poster always loads eagerly */
.screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .poster + video { position: relative; opacity: 0; }
.screen .poster + video.ready { opacity: 1; }
.screen-16x9 { aspect-ratio: 16 / 9; }
.screen-9x16 { aspect-ratio: 9 / 16; }
.film-frame > .paper-face { padding: 12px; }
.film-note { margin: 14px 4px 4px; font-size: var(--heckle); color: var(--mustard); rotate: -1.5deg; }
.film-switches { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }

/* round paper-ish video buttons */
.vcontrols { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; z-index: 2; }
.vbtn { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(17, 21, 23, 0.82); color: var(--text); font: 600 15px var(--font-body); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.vbtn:hover { background: var(--ink); }
.vbtn .icon { width: 22px; height: 22px; flex: none; }
.vbtn[aria-pressed="true"]:not(.sound-btn) { background: var(--mint); color: var(--ink); }
.sound-btn { background: var(--mustard); color: var(--ink); }
.sound-btn:hover { background: var(--cream); }
.sound-btn[aria-pressed="true"] { background: rgba(17, 21, 23, 0.82); color: var(--text); }
.sound-btn[aria-pressed="true"] span { display: none; }

/* transcripts: the text alternative for every video */
.transcript { margin-top: 6px; font-size: var(--small); color: var(--muted); }
.transcript summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--mint); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.transcript ol, .transcript dl { margin: 4px 0 8px; padding-left: 1.2em; }
.transcript dl { padding-left: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.transcript dt { font-weight: 600; color: var(--text); }
.transcript dd { margin: 0; }
.paper .transcript { color: var(--on-paper-muted); }
.paper .transcript dt { color: var(--ink); }
.paper .transcript summary, .paper .link-btn { color: var(--mint-deep); }
.paper.slate .transcript, .paper.slate .transcript dt { color: var(--text); }
.paper.slate .transcript summary { color: var(--mint); }

/* ---------- shot for ---------- */
.shot-for { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 8px auto 0; }
.shot-for > .paper > .paper-face { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 20px; }
.shot-label { font-size: 22px; }
.shot-for ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 700 clamp(17px, 2vw, 22px) / 1.25 var(--font-display); letter-spacing: -0.01em; }
.shot-for li:not(:last-child)::after { content: "·"; margin: 0 12px; opacity: 0.6; }

/* ---------- sections ---------- */
.sec { padding: 64px 0 24px; }
@media (min-width: 960px) { .sec { padding: 96px 0 32px; } }
.lead { max-width: 52ch; margin: 0 0 28px; color: var(--muted); }
.paper .lead { color: var(--on-paper-muted); }

/* cast lineup: one scale for everyone (--u px per SVG unit), feet on one floor */
.lineup { --u: 0.118; list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px 0; }
@media (min-width: 560px) { .lineup { --u: 0.16; } }
@media (min-width: 960px) { .lineup { --u: 0.235; flex-wrap: nowrap; } }
.cast-member { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 -6px; }
.cast-btn { position: relative; display: block; width: calc(var(--vbw) * var(--u) * 1px); aspect-ratio: var(--vbw) / var(--vbh); background: none; border: 0; padding: 0; cursor: pointer; transform-origin: 50% 100%; }
.cast-btn img { width: 100%; height: 100%; }
.cast-btn:focus-visible { outline-offset: 6px; border-radius: 8px; }
.heckle { position: absolute; z-index: 3; left: 50%; top: 0; translate: calc(-50% + var(--nudge, 0px)) -70%; width: max-content; max-width: min(220px, 60vw); display: none; pointer-events: none; font: 400 var(--heckle) / 1.1 var(--font-hand); }
.heckle > .paper-face { padding: 10px 14px 12px; }
.heckle::after { content: ""; position: absolute; left: 38%; bottom: -12px; width: 18px; height: 16px; background: var(--paper-core); clip-path: polygon(0 0, 100% 0, 20% 100%); }
.cast-btn:hover .heckle, .cast-btn:focus-visible .heckle, .cast-btn.talking .heckle { display: block; }
.cast-btn:hover, .cast-btn:focus-visible { animation: wobble calc(var(--step) * 6) steps(1) infinite; }
.cast-btn.talking { animation: talk calc(var(--step) * 3) steps(1) infinite; }
.cast-name { margin: 10px 0 0; text-align: center; font-size: var(--small); line-height: 1.3; max-width: 22ch; color: var(--muted); padding: 0 8px; }
.cast-name strong { display: block; color: var(--text); font: 700 17px var(--font-display); }
.cast-hint { text-align: center; color: var(--mustard); font-size: 20px; margin: 20px 0 0; }

/* gag wall */
.gag-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 8px 16px; border-radius: 22px; border: 2px solid rgba(238, 242, 240, 0.25); background: transparent; color: var(--text); font: 600 15px var(--font-body); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip-btn.autoplay[aria-pressed="false"] { border-style: dashed; color: var(--muted); }
.gag-note { font-size: var(--small); color: var(--muted); margin: 0 0 22px; }
.gag-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
@media (min-width: 720px) { .gag-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
@media (min-width: 1080px) { .gag-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gag { display: flex; flex-direction: column; min-width: 0; }
.phone > .paper-face { padding: 10px 8px 14px; border-radius: 4px; }
.phone .screen { border-radius: 14px; }
.phone .screen::before { content: ""; position: absolute; z-index: 2; top: 7px; left: calc(50% - 22px); width: 44px; height: 6px; border-radius: 3px; background: rgba(17, 21, 23, 0.85); }
.gag .vcontrols { left: 8px; bottom: 8px; gap: 6px; }
.gag-hook { margin: -14px 0 0; position: relative; z-index: 3; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.15; }
.gag-hook .strip > .paper-face { padding: 0.3em 0.6em 0.34em; }
.gag-title { font: 600 var(--small) / 1.35 var(--font-body); letter-spacing: 0; color: var(--muted); margin: 10px 2px 0; }
.gag-actions { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; }
.gag-actions .transcript { margin: 0; flex-basis: 100%; }
.gag.playing .phone { animation: jitter calc(var(--step) * 3) steps(1) infinite; }
.gag.flash .phone { outline: 3px solid var(--mustard); outline-offset: 6px; }
.more-wrap { text-align: center; margin: 36px 0 0; }
.more { font-size: 18px; }

/* features */
.features { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px 28px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature > .paper-face { padding: 26px 24px 24px; height: 100%; }
.features > li { display: grid; }
.feature { height: 100%; }
.feature h3 { font-size: var(--h3); line-height: 1.15; margin: 0 0 8px; padding-right: 76px; }
.feature p { margin: 0; }
.feature .doodle { position: absolute; right: 10px; top: 12px; width: 70px; height: auto; rotate: 6deg; }
.feature .note { margin-top: 14px; color: var(--mint-deep); font-size: 19px; line-height: 1.25; rotate: -1deg; }

/* where it works */
.apps { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 720px) { .apps { grid-template-columns: 1fr 1fr; } }
.app-card > .paper-face { padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 4px 18px; align-items: start; }
.app-card img { grid-row: span 2; width: 72px; height: 72px; border-radius: 16px; }
.app-card h3 { margin: 4px 0 0; font-size: var(--h3); }
.app-card p { margin: 0; }
.editors { list-style: none; margin: 32px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.editor .paper { font: 700 20px var(--font-display); }
.editor .paper-face { padding: 12px 18px; display: flex; gap: 12px; align-items: baseline; }
.editor-status { font: 400 18px var(--font-hand); }
.sec-works .small, .slide .small { color: var(--muted); }

/* sign-up */
.signup { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .choices legend { font: 600 16px / 1.3 var(--font-body); color: var(--ink); }
.hint { font-weight: 400; color: var(--on-paper-muted); font-size: 14px; }
.signup input[type="email"], .signup input[type="text"] { width: 100%; min-height: 50px; padding: 10px 14px; font: 400 18px var(--font-body); color: var(--ink); background: var(--paper-core); border: 2px solid var(--ink); border-radius: 4px; }
.signup input::placeholder { color: #7d8486; }
.signup input:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 1px; }
.signup-more { display: grid; gap: 14px; }
.more-lead { margin: 4px 0 0; color: var(--mint-deep); font: 400 18px / 1.25 var(--font-hand); }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border: 2px solid rgba(29, 34, 36, 0.3); border-radius: 22px; cursor: pointer; font-size: 16px; line-height: 1.2; background: rgba(251, 247, 238, 0.6); }
.chip:has(input:checked) { border-color: var(--mint-deep); background: rgba(126, 200, 179, 0.35); }
.chip input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--mint-deep); flex: none; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 16px; cursor: pointer; }
.field-error { margin: 6px 0 0; color: #a33a2c; font-weight: 600; font-size: 15px; }
.signup .btn { justify-self: start; margin-top: 4px; }
.signup .fine { margin: 0; color: var(--on-paper-muted); }
.signup .fine a { color: var(--mint-deep); }
.form-status { margin: 0; font-weight: 600; font-size: 15px; color: var(--mint-deep); }
.form-status:empty { display: none; }
.form-status.warn { color: #a33a2c; }
.not-connected { margin: 0; padding: 8px 12px; background: var(--coral); color: var(--ink); font: 600 14px / 1.35 var(--font-body); border-radius: 3px; rotate: -0.6deg; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup.collapsed .signup-more { display: none; }
.download { display: grid; gap: 12px; justify-items: start; }
.download .fine { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 18px; max-width: 820px; margin-top: 32px; }
.faq-item > .paper-face { padding: 4px 22px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 28px var(--font-display); color: var(--mint-deep); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; }
.faq details p { margin: 0 0 18px; max-width: 62ch; }

/* footer */
.footer { margin-top: 80px; background: var(--kraft-dark); border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 0 48px; color: var(--muted); }
.footer-in { display: grid; gap: 18px; }
.footer-joke { margin: 0; font-size: 22px; color: var(--mustard); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.social a { display: inline-block; padding: 10px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.social a span { color: var(--muted); font-weight: 400; }
.footer-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--small); }
.footer-meta a { color: var(--mint); padding: 10px 0; display: inline-block; }
.footer-meta span { padding: 10px 0; }

/* the cast's gag player */
.gag-dialog { border: 0; padding: 0; background: none; width: min(380px, 100% - 32px); max-height: calc(100dvh - 24px); overflow: visible; color: var(--text); }
.gag-dialog::backdrop { background: rgba(8, 10, 11, 0.8); }
.dialog-sheet > .paper-face { padding: 12px 12px 6px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.dialog-head h3 { margin: 0 0 0 6px; font-size: 19px; line-height: 1.2; color: var(--text); }
.gag-dialog .screen-9x16 { max-height: calc(100dvh - 190px); aspect-ratio: 9 / 16; margin-inline: auto; }

/* ---------- other pages ---------- */
.page { padding: 40px 0 0; }
.sheet { max-width: 820px; margin: 24px auto 0; }
.sheet > .paper-face { padding: clamp(24px, 5vw, 48px); }
.sheet h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 0 0 16px; }
.sheet .lead { color: var(--on-paper-muted); }
.sheet .film-frame { margin-top: 28px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 28px 0 8px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; max-width: 64ch; }
.draft-flag { display: inline-block; margin: 0 0 18px; background: var(--coral); color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 12px; rotate: -1deg; }
.show-head { margin-bottom: 40px; }
.show-head h1 { font-size: var(--h1); line-height: 1; margin: 16px 0 12px; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 48px 28px; }
.ep-meta { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.ep-title { font-size: 20px; margin: 16px 0 4px; line-height: 1.2; }
.ep-hook { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.quote-card > .paper-face { padding: 22px 18px 16px; }
.quote-label { margin: 0 0 6px; font: 600 12px var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-paper-muted); }
.quote-card blockquote { margin: 0; font: 400 21px / 1.2 var(--font-hand); }
.quote-card blockquote p { margin: 0; }
.quote-by { margin: 8px 0 0; font-size: 14px; color: var(--on-paper-muted); }
.picks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 900px) { .picks { grid-template-columns: repeat(3, 1fr); } }
.pick > .paper-face { padding: 12px 12px 18px; }
.pick a { display: block; text-decoration: none; color: var(--ink); }
.pick img { border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pick-name { display: block; margin-top: 12px; font: 700 24px var(--font-display); }
.pick p { margin: 6px 0 0; color: var(--on-paper-muted); font-size: 16px; }

/* ---------- reduced motion: hold still frames ---------- */
@media (prefers-reduced-motion: reduce) {
  .jitter, .pop-in, .cast-btn:hover, .cast-btn:focus-visible, .cast-btn.talking, .gag.playing .phone { animation: none !important; }
  .will-pop { opacity: 1; }
  .btn:hover, .btn:active { translate: none; }
}

/* Variation A · Paper Stage: the brief as written. Torn cream paper on the dark kraft stage (base.css is this look). */

[data-variant="a"] .hero .headline { max-width: 11ch; }
[data-variant="a"] .hero-film .film-frame { margin-inline: 4px; }
[data-variant="a"] .sec-cast .lead, [data-variant="a"] .sec-cast .strip-h { text-align: center; margin-inline: auto; }
[data-variant="a"] .sec-signup .wrap { display: grid; justify-items: center; text-align: center; }
[data-variant="a"] .sec-signup .lead { margin-inline: auto; }
[data-variant="a"] .sec-signup .form-card { text-align: left; width: min(560px, 100%); }
/* a few loose scraps on the stage, like the film's title card */
[data-variant="a"] .hero { position: relative; }
[data-variant="a"] .hero::before, [data-variant="a"] .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; filter: var(--paper-shadow); }
[data-variant="a"] .hero::before { width: 70px; height: 46px; right: 6%; top: 12px; background: var(--sky); rotate: 14deg; clip-path: polygon(4% 8%, 96% 0, 100% 88%, 6% 100%); }
[data-variant="a"] .hero::after { width: 54px; height: 40px; left: 46%; bottom: 0; background: var(--plum); rotate: -18deg; clip-path: polygon(0 10%, 92% 0, 100% 94%, 8% 86%); }
@media (max-width: 959px) { [data-variant="a"] .hero::after { display: none; } }
