/* Tablix investor deck — viewer and slide styles.
   Every colour resolves to a design-system custom property from tokens.css
   (generated from frontend/src/app/globals.css). No literal colours here:
   tests/test_build.py fails the build if one appears. */

/* The deck speaks in the product's own typefaces, so its line breaks belong to
   the deck and not to the machine showing it. build.py publishes these two files
   beside this stylesheet and stamps the URLs with the deck version. The generic
   tail is only what a viewer uses if the font request itself fails. */

@font-face {
  font-family: "Geist";
  src: url("GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Geist Mono";
  src: url("GeistMonoVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --deck-font-sans: "Geist", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --deck-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --deck-ground: hsl(var(--background));
  --deck-panel: hsl(var(--card));
  --deck-panel-lift: hsl(var(--surface-overlay));
  --deck-logo-surface: hsl(var(--primary-foreground));
  --deck-ink: hsl(var(--foreground));
  --deck-ink-muted: hsl(var(--muted-foreground));
  --deck-line: hsl(var(--border));
  --deck-line-strong: hsl(var(--border-hover));
  --deck-action: rgb(var(--hunter-700));
  --deck-on-action: hsl(var(--primary-foreground));
  --deck-figure: rgb(var(--hunter-700));
  --deck-figure-soft: rgb(var(--hunter-700) / 0.1);
  --deck-figure-line: rgb(var(--hunter-700) / 0.35);
  --deck-highlight: rgb(var(--hunter-700));
  --deck-glow: hsl(var(--primary) / 0.16);
  --deck-glow-2: hsl(var(--tablix-accent) / 0.08);
  --deck-stage-shadow: 0 30px 80px -40px hsl(var(--foreground) / 0.25);
  --deck-focus: rgb(var(--hunter-700));
  --deck-grid-line: hsl(var(--foreground) / 0.04);

  /* Provenance grades: one hue, softened as the claim becomes more ours. */
  --deck-src: hsl(var(--primary));
  --src-observed: hsl(var(--primary));
  --src-internal: hsl(var(--primary) / 0.72);
  --src-assumption: hsl(var(--primary) / 0.5);
  --src-target: hsl(var(--primary) / 0.34);

  --deck-radius: var(--radius);
  --deck-radius-card: calc(var(--radius) + 4px);
  --deck-radius-stage: calc(var(--radius) + 8px);
  --deck-ease-out: cubic-bezier(.16, 1, .3, 1);
  --deck-spring: cubic-bezier(.34, 1.56, .64, 1);
  --deck-slide-ms: 620ms;
  --story-delay: 450ms;
  --field-delay: 1250ms;
  --motion-duration: 1.65s;
  /* Legibility floor for anything inside the scaled stage. tests/test_type_floor.py
     fails the build on a smaller font-size unless the selector is viewer chrome. */
  --deck-type-floor: 16px;
  --deck-stage-w: 1600px;
  --deck-stage-h: 900px;
  --deck-grid: 48px;
  --deck-pad-x: 104px;
  --deck-pad-y: 76px;
  --deck-pad-y-compact: 40px;
  --deck-product-gap: 12px;
  --deck-reach: hsl(var(--chart-4));
  --deck-trial: rgb(var(--hunter-500));
  --deck-paid: var(--brand-square-front);
  --deck-chart-ink: rgb(var(--hunter-950));
}

:root[data-theme="dark"] {
  /* Canonical brand-kit colours: near-black, Hunter green and the logo's lime.
     WCAG 2.2 contrast-minimum and MDN custom-property guidance checked 2026-10-02.
     Green text / raised surface: 6.66:1; dark text / green fill: 7.49:1. */
  --deck-ground: var(--dark-bg);
  --deck-panel: rgb(var(--hunter-950));
  --deck-panel-lift: rgb(var(--hunter-900));
  --deck-logo-surface: hsl(var(--foreground));
  --cinema-foreground-channel: var(--foreground);
  --deck-ink-muted: hsl(var(--foreground) / 0.78);
  --deck-line: rgb(var(--hunter-500) / 0.2);
  --deck-line-strong: rgb(var(--hunter-500) / 0.4);
  --deck-action: rgb(var(--hunter-500));
  --deck-on-action: rgb(var(--hunter-950));
  --deck-figure: rgb(var(--hunter-500));
  --deck-figure-soft: rgb(var(--hunter-500) / 0.09);
  --deck-figure-line: rgb(var(--hunter-500) / 0.4);
  --deck-highlight: var(--brand-square-front);
  --deck-focus: rgb(var(--hunter-500));
  --deck-glow: rgb(var(--hunter-500) / 0.14);
  --deck-glow-2: hsl(var(--tablix-accent) / 0.06);
  --deck-stage-shadow: 0 40px 140px -50px var(--dark-bg);
  --deck-grid-line: rgb(var(--hunter-500) / 0.035);
  --src-observed: rgb(var(--hunter-500));
  --src-internal: rgb(var(--hunter-500) / 0.85);
  --src-assumption: rgb(var(--hunter-500) / 0.7);
  --src-target: rgb(var(--hunter-500) / 0.55);
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--deck-ground);
  color: var(--deck-ink);
  font-family: var(--deck-font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

[hidden] { display: none !important; }

/* ── Player ──────────────────────────────────────────────────────────── */

.player {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
/* Ambient page light behind the stage. */
.player::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, var(--deck-glow), transparent 70%),
    radial-gradient(35% 45% at 85% 75%, var(--deck-glow-2), transparent 70%);
  opacity: .55;
  animation: deck-drift 22s ease-in-out infinite alternate;
}

.stage-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  outline: none;
}

.stage {
  --stage-center-y: 50%;
  position: absolute;
  left: 50%;
  top: var(--stage-center-y, 50%);
  width: var(--deck-stage-w);
  height: var(--deck-stage-h);
  transform: translate(-50%, -50%) scale(var(--scale, 0.5));
  transform-origin: center;
  border-radius: var(--deck-radius-stage);
  box-shadow: var(--deck-stage-shadow);
}

.deck { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; border: 1px solid var(--deck-line); background: var(--deck-ground); }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--deck-pad-y) var(--deck-pad-x);
  background: var(--deck-ground);
  overflow: hidden;
  visibility: hidden;
  isolation: isolate;
}
/* Dense layouts reserve more space for unchanged type at the 16px floor. */
.layout-product,
.layout-market,
.layout-channels,
.layout-sources { --deck-pad-y: var(--deck-pad-y-compact); }
/* The 48px hairline grid of the product, fading toward the edges. */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--deck-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--deck-grid-line) 1px, transparent 1px);
  background-size: var(--deck-grid) var(--deck-grid);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, hsl(var(--foreground)) 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 20%, hsl(var(--foreground)) 30%, transparent 85%);
}
.slide-glow {
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 700px;
  right: -260px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--deck-glow), transparent);
  pointer-events: none;
}
.slide.is-current .slide-glow { animation: deck-drift 18s ease-in-out infinite alternate; }
.layout-cover .slide-glow { right: auto; left: 40%; top: -200px; width: 1100px; height: 900px; }
.layout-market .slide-glow { right: auto; left: -300px; top: 200px; }

.slide.is-current, .slide.is-leaving { visibility: visible; }
.slide.is-leaving { z-index: 1; pointer-events: none; }
.slide.is-current { z-index: 2; }
.stage[data-dir="next"] .slide.is-current.is-entering { animation: deck-enter-next var(--deck-slide-ms) var(--deck-ease-out) both; }
.stage[data-dir="prev"] .slide.is-current.is-entering { animation: deck-enter-prev var(--deck-slide-ms) var(--deck-ease-out) both; }
.stage[data-dir="next"] .slide.is-leaving { animation: deck-leave-next var(--deck-slide-ms) var(--deck-ease-out) both; }
.stage[data-dir="prev"] .slide.is-leaving { animation: deck-leave-prev var(--deck-slide-ms) var(--deck-ease-out) both; }

.slide-body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Without JS every French slide stacks, readable top to bottom. */
.no-js body { overflow: auto; }
.no-js .player { overflow: visible; }
.no-js .stage { position: static; transform: none; width: auto; height: auto; box-shadow: none; }
.no-js .slide { position: relative; visibility: visible; aspect-ratio: 16 / 9; margin-bottom: 24px; }

/* Fullscreen: the stage owns the screen. `f` raises it; `.is-expanded` is the
   fallback where the Fullscreen API is missing (iOS Safari on iPhone). */
.player:fullscreen { background: var(--deck-ground); }
.player:fullscreen .stage { box-shadow: none; border-radius: 0; }
.player:fullscreen .deck { border: 0; border-radius: 0; }
.player.is-expanded { position: fixed; inset: 0; z-index: 20; background: var(--deck-ground); }

/* Chrome shares the cinematic backdrop, with measured space outside slide data. */
:root {
  --cinema-foreground-channel: var(--foreground);
  --cinema-ground: hsl(var(--background) / 0.94);
  --cinema-panel: hsl(var(--popover) / 0.98);
  --cinema-ink: hsl(var(--cinema-foreground-channel));
  --cinema-muted: hsl(var(--cinema-foreground-channel) / 0.72);
  --cinema-line: hsl(var(--cinema-foreground-channel) / 0.2);
  --cinema-hover: hsl(var(--cinema-foreground-channel) / 0.12);
  --cinema-focus: var(--deck-focus);
  --cinema-shadow: 0 12px 48px hsl(var(--foreground) / 0.18);
  --cinema-chrome-left: 0px;
  --cinema-chrome-width: 100%;
  --cinema-controls-height: 0px;
  --cinema-content-height: var(--deck-stage-h);
  --cinema-caption-bottom: 0px;
  --cinema-gap: 12px;
  --cinema-compact-width: 1100px;
  --cinema-compact-height: 600px;
  --cinema-short-height: 500px;
  --cinema-narrow-width: 480px;
  --cinema-canvas-min-width-ratio: 0.8;
  --cinema-consent-measure: 640px;
  --cinema-panel-measure: 640px;
  --cinema-settings-measure: 320px;
  --cinema-min-text-size: 14px;
  --cinema-tight-height: 240px;
  --cinema-portrait-tight-height: 360px;
  --cinema-roomy-height: 420px;
  --deck-compact-type-floor: 14px;
  --scene-step-ms: 3600;
}

.cinema-reveal-zone {
  position: absolute;
  left: var(--cinema-chrome-left);
  bottom: 0;
  width: var(--cinema-chrome-width);
  height: 100px;
  z-index: 4;
  pointer-events: none;
}

.cinema-controls {
  position: absolute;
  z-index: 6;
  bottom: 0;
  left: var(--cinema-chrome-left);
  width: var(--cinema-chrome-width);
  padding: 16px max(24px, calc((var(--cinema-chrome-width) - 1040px) / 2)) max(12px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: linear-gradient(to top, var(--cinema-ground) 0%, var(--cinema-ground) 62%, transparent 100%);
  color: var(--cinema-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.player.is-controls-visible .cinema-controls,
.player[data-input="keyboard"] .cinema-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.cinema-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 13px; line-height: 1.5; }
.cinema-meta > span { font-size: 13px; color: var(--cinema-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cinema-meta > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.cinema-meta > [data-player="time"] { margin-left: auto; font-family: var(--deck-font-mono); }
.cinema-progress { display: block; width: 100%; height: 20px; margin: 0 0 8px; padding: 0; accent-color: var(--deck-action); cursor: pointer; }
.cinema-progress:disabled { opacity: 0.45; cursor: default; }
.cinema-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cinema-transport, .cinema-options { display: flex; align-items: center; gap: 6px; }
.cinema-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--deck-radius);
  background: transparent;
  color: var(--cinema-ink);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.cinema-button:hover, .cinema-button[aria-expanded="true"], .cinema-button[aria-pressed="true"] { background: var(--cinema-hover); border-color: var(--cinema-line); }
.cinema-button:disabled { opacity: 0.35; cursor: default; }
.cinema-button-label { font-size: 13px; font-weight: 500; }
.cinema-button:focus-visible, .cinema-language:focus-visible, .chapter-jump:focus-visible, .cinema-field select:focus-visible, .cinema-choice:focus-visible, .cinema-progress:focus-visible { outline: 2px solid var(--cinema-focus); outline-offset: 3px; }
.cinema-language { min-width: 62px; min-height: 44px; padding: 8px; border: 1px solid var(--cinema-line); border-radius: var(--deck-radius); background: transparent; color: var(--cinema-ink); font: inherit; font-size: 16px; cursor: pointer; }
.cinema-language:hover { background: var(--cinema-hover); }
.cinema-language option { background: var(--cinema-panel); color: var(--cinema-ink); }
.cinema-status { display: block; min-height: 17px; margin-top: 6px; color: var(--cinema-muted); font-size: 11px; line-height: 1.5; }

.cinema-panel {
  position: absolute;
  z-index: 7;
  bottom: calc(var(--cinema-controls-height) + var(--cinema-gap));
  right: max(12px, calc((var(--cinema-chrome-width) - 1040px) / 2));
  width: min(var(--cinema-panel-measure), calc(var(--cinema-chrome-width) - 24px));
  max-height: min(440px, max(80px, calc(100% - var(--cinema-controls-height) - 2 * var(--cinema-gap))));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--cinema-line);
  border-radius: calc(var(--deck-radius) + 10px);
  background: var(--cinema-panel);
  color: var(--cinema-ink);
  box-shadow: var(--cinema-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cinema-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cinema-panel-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.cinema-panel[data-panel="settings"] { --cinema-panel-measure: var(--cinema-settings-measure); padding: 16px; border-radius: var(--deck-radius-card); overscroll-behavior: contain; }
.cinema-panel[data-panel="settings"] .cinema-panel-heading { margin-bottom: 0; }
.cinema-panel[data-panel="settings"] .cinema-field { margin-top: 12px; }
.cinema-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chapter-jump { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px; border: 1px solid var(--cinema-line); border-radius: var(--deck-radius); background: transparent; color: var(--cinema-ink); font: inherit; text-align: left; cursor: pointer; }
.chapter-jump:hover, .chapter-jump.is-active { background: var(--cinema-hover); border-color: var(--deck-action); }
.cinema-chapter-number { color: var(--cinema-muted); font-family: var(--deck-font-mono); font-size: 12px; }
.cinema-chapter-name { font-size: 14px; font-weight: 500; }
.cinema-field { display: grid; min-width: 0; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; font-size: 13px; color: var(--cinema-muted); }
.cinema-field legend { margin-bottom: 8px; padding: 0; }
.cinema-field select { min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--cinema-line); border-radius: var(--deck-radius); background: var(--cinema-panel); color: var(--cinema-ink); font: inherit; font-size: 16px; }
.cinema-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cinema-choice { display: grid; align-content: center; gap: 3px; min-width: 44px; min-height: 44px; padding: 10px 8px; border: 1px solid var(--cinema-line); border-radius: var(--deck-radius); background: transparent; color: var(--cinema-ink); font: inherit; font-size: 16px; line-height: 1.25; text-align: center; cursor: pointer; }
.cinema-choice:not(:disabled):hover, .cinema-choice[aria-pressed="true"] { background: var(--cinema-hover); border-color: var(--deck-action); }
.cinema-choice[aria-pressed="true"] { font-weight: 600; }
.cinema-choice:disabled { color: var(--cinema-muted); cursor: default; }
.cinema-choice-availability { font-size: var(--deck-type-floor); font-weight: 400; line-height: 1.25; }


.cinema-captions { position: absolute; left: calc(var(--cinema-chrome-left) + var(--cinema-chrome-width) / 2); bottom: var(--cinema-caption-bottom); z-index: 5; width: min(900px, calc(var(--cinema-chrome-width) - 32px)); transform: translateX(-50%); text-align: center; pointer-events: none; }
.cinema-captions span { display: block; padding: 7px 12px; border-radius: var(--deck-radius); background: var(--cinema-ground); color: var(--cinema-ink); font-size: 16px; font-weight: 500; line-height: 1.4; text-shadow: none; overflow-wrap: anywhere; }

/* An upright phone shows the approved canvas near a quarter of its size. The
   player offers landscape or the PDF in the empty band above the stage; the
   offer is dismissible and absent in landscape (owner decision, 2026-10-08). */
.cinema-notice {
  position: absolute;
  z-index: 7;
  top: max(var(--cinema-gap), env(safe-area-inset-top));
  left: calc(var(--cinema-chrome-left) + var(--cinema-gap));
  width: calc(var(--cinema-chrome-width) - 2 * var(--cinema-gap));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px var(--cinema-gap);
  padding: 12px 6px 12px 16px;
  border: 1px solid var(--cinema-line);
  border-radius: calc(var(--deck-radius) + 4px);
  background: var(--cinema-panel);
  color: var(--cinema-ink);
  box-shadow: var(--cinema-shadow);
  font-size: var(--deck-type-floor);
  line-height: 1.4;
}
.cinema-notice[hidden] { display: none; }
.cinema-notice-text { grid-column: 1; margin: 0; }
.cinema-notice-link { grid-column: 1; justify-self: start; color: var(--deck-action); font-weight: 600; text-underline-offset: 3px; }
.cinema-notice-link:focus-visible { outline: 2px solid var(--cinema-focus); outline-offset: 3px; }
.cinema-notice-dismiss { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
@media (orientation: landscape) { .cinema-notice { display: none; } }

/* The consent gate covers the viewport rather than floating beside it: nothing may
   be tapped until the viewer has answered it, and the answer is what starts the
   narrator inside the same gesture. */
.cinema-consent {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--cinema-gap);
  padding: 24px max(20px, calc((var(--cinema-chrome-width) - var(--cinema-consent-measure)) / 2));
  background: var(--cinema-ground);
  color: var(--cinema-ink);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cinema-consent[hidden] { display: none; }
.cinema-consent h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.cinema-consent p { margin: 0; max-width: var(--cinema-consent-measure); font-size: var(--deck-type-floor); line-height: 1.5; }
.cinema-consent-hint { color: var(--cinema-muted); }
.cinema-consent-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: calc(var(--cinema-gap) / 2); }
.cinema-consent .cinema-consent-choice { padding: 10px 18px; border-color: var(--cinema-line); font-size: var(--deck-type-floor); }
.cinema-consent .cinema-consent-choice:hover { background: var(--cinema-hover); }
.cinema-consent .cinema-consent-choice[data-action="consentSound"] { border-color: var(--deck-action); color: var(--deck-action); }

.no-js .cinema-controls, .no-js .cinema-panel, .no-js .cinema-captions, .no-js .cinema-reveal-zone, .no-js .cinema-consent { display: none; }

.player[data-stage-size="compact"] .cinema-controls, .player[data-stage-size="narrow"] .cinema-controls { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }

.player[data-stage-size="compact"] .cinema-button, .player[data-stage-size="narrow"] .cinema-button { min-width: 44px; padding: 8px; }

.player[data-stage-size="compact"] .cinema-controls .cinema-button-label, .player[data-stage-size="narrow"] .cinema-controls .cinema-button-label { display: none; }

.player[data-stage-size="compact"] .cinema-transport, .player[data-stage-size="compact"] .cinema-options, .player[data-stage-size="narrow"] .cinema-transport, .player[data-stage-size="narrow"] .cinema-options { gap: 2px; }

.player[data-stage-size="compact"] .cinema-toolbar, .player[data-stage-size="narrow"] .cinema-toolbar { gap: 4px; }

.player[data-stage-size="compact"] .cinema-meta, .player[data-stage-size="narrow"] .cinema-meta { gap: 8px; }

.player[data-stage-size="compact"] .cinema-panel, .player[data-stage-size="narrow"] .cinema-panel { right: 12px; width: min(var(--cinema-panel-measure), calc(var(--cinema-chrome-width) - 24px)); padding: 14px; }

.player[data-stage-size="compact"] .cinema-chapter-grid, .player[data-stage-size="narrow"] .cinema-chapter-grid { grid-template-columns: 1fr; }

.player[data-stage-size="narrow"] .cinema-controls { padding: 4px 12px max(4px, env(safe-area-inset-bottom)); }

.player[data-stage-size="narrow"] .cinema-toolbar { flex-wrap: wrap; gap: 4px; }

.player[data-stage-size="narrow"] .cinema-transport, .player[data-stage-size="narrow"] .cinema-options { width: 100%; justify-content: space-between; }

.player[data-stage-size="narrow"] .cinema-button { min-width: 44px; min-height: 44px; font-size: 18px; }

.player[data-stage-size="narrow"] .cinema-meta > strong { min-width: 0; }

/* A phone in landscape (viewer.js sets data-stage-height="short" from
   --cinema-short-height): the chapter line, progress, buttons and status took
   three rows (152px at 844×390) and the canvas they reserve space for shrank to
   0.25 scale. One row keeps every 44px target and the canvas above the chrome:
   transport, progress, options. The status line stays in the live region and
   becomes visible only when it says more than « ready ». */
.player[data-stage-height="short"] .cinema-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 6px 12px max(6px, env(safe-area-inset-bottom)); }
.player[data-stage-height="short"] .cinema-meta { display: none; }
.player[data-stage-height="short"] .cinema-toolbar { display: contents; }
.player[data-stage-height="short"] .cinema-transport { grid-column: 1; grid-row: 1; }
.player[data-stage-height="short"] .cinema-progress { grid-column: 2; grid-row: 1; margin: 0; }
.player[data-stage-height="short"] .cinema-options { grid-column: 3; grid-row: 1; }
.player[data-stage-height="short"] .cinema-status { grid-column: 1 / -1; margin-top: 2px; min-height: 0; }
.player[data-stage-height="short"] .cinema-status[data-state="ready"] { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Below the configured narrow width, the two transport groups need their own
   rows even in landscape. The viewer reserves their measured height. */
.player[data-stage-height="short"][data-stage-size="narrow"] .cinema-controls { display: block; }
.player[data-stage-height="short"][data-stage-size="narrow"] .cinema-toolbar { display: flex; }
.player[data-stage-height="short"][data-stage-size="narrow"] .cinema-progress { margin: 0 0 8px; }

/* ── Slide typography (stage pixels: 1600 × 900) ─────────────────────── */

.counter {
  position: absolute;
  top: 40px;
  right: 56px;
  font-family: var(--deck-font-mono);
  font-size: var(--deck-type-floor);
  color: var(--deck-ink-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.counter b { color: var(--deck-ink); font-weight: 700; }

/* The head is the one block allowed to span the whole stage: a 62px title that
   needs 1340px of Geist would otherwise buy a second line and push whatever
   sits under it out of the slide. The running text below keeps its own, shorter
   measure (`.lead`). Deriving the number from the stage and padding tokens means
   it follows a padding change instead of going stale next to one. */
.slide-head { max-width: calc(var(--deck-stage-w) - 2 * var(--deck-pad-x)); }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deck-figure);
}
.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--deck-figure);
  box-shadow: 5px 5px 0 -1px var(--deck-figure-line);
}
.slide-title {
  margin: 0;
  font-size: 62px;
  line-height: 68px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.slide .slide-title strong, .slide .cover-title strong { color: inherit; font-weight: inherit; }
.lead {
  margin: 20px 0 0;
  font-size: 25px;
  line-height: 37px;
  color: var(--deck-ink-muted);
  max-width: 1200px;
  text-wrap: pretty;
}
.slide strong { color: var(--deck-ink); font-weight: 700; }
/* Slide links carry the same focus ring as the player controls. */
.slide a:focus-visible { outline: 2px solid var(--deck-focus); outline-offset: 2px; }

/* Icon badge: a Lucide glyph in a tinted brand tile. */
.badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--deck-radius);
  background: var(--deck-figure-soft);
  border: 1px solid var(--deck-figure-line);
  color: var(--deck-figure);
}
.badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge-sm { width: 34px; height: 34px; border-radius: calc(var(--radius) - 2px); }
.badge-sm svg { width: 17px; height: 17px; }

/* Shared surfaces */
.stat, .card, .step, .channel-group, .tracking, .calc {
  background: linear-gradient(145deg, var(--deck-panel-lift), var(--deck-panel));
  border: 1px solid var(--deck-line);
  border-radius: var(--deck-radius-card);
  transition: border-color 200ms ease, transform 200ms var(--deck-ease-out);
}
.stat:hover, .card:hover, .step:hover, .channel-group:hover { border-color: var(--deck-line-strong); transform: translateY(-3px); }

.group-label {
  margin: 0 0 14px;
  font-size: var(--deck-type-floor);
  line-height: 21px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deck-ink-muted);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 22px; line-height: 31px; color: var(--deck-ink-muted); }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--deck-figure);
}

/* Cover: text left, a looping product vignette right */
.cover { margin: auto 0; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.cover-mark { margin-bottom: 56px; }
/* Reuse the native 1920×1080 splash at the deck's fixed 1600×900 canvas size.
   Its font, colors, logo, words, ground and score stay entirely in that source. */
.brand-lockup { display: block; width: 360px; height: auto; }
.layout-closing { padding: 0; }
.layout-closing::before, .layout-closing .slide-glow { display: none; }
.layout-closing .counter { z-index: 2; }
.closing-scene { position: relative; width: 100%; height: 100%; flex: 1; min-height: 0; text-align: center; }
.closing-brand-frame { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform: scale(.8333333333); transform-origin: top left; pointer-events: none; }
.closing-invite, .closing-contact { position: absolute; z-index: 1; left: var(--deck-pad-x); right: var(--deck-pad-x); font-weight: 600; letter-spacing: -.025em; }
.closing-invite { top: 690px; margin: 0; font-size: 52px; line-height: 64px; text-wrap: balance; }
.closing-contact { top: 774px; width: max-content; max-width: calc(100% - 2 * var(--deck-pad-x)); margin: 0 auto; padding: 4px 8px; color: var(--deck-figure); font-size: 36px; line-height: 48px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; border-radius: var(--deck-radius); }
.closing-contact:hover { color: var(--deck-ink); }
.closing-contact:focus-visible { outline-width: 3px; outline-offset: 6px; }

.cover-title {
  margin: 0;
  font-size: 80px;
  line-height: 84px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cover .lead { font-size: 27px; line-height: 40px; margin-top: 30px; }
.cover-tagline { margin: 44px 0 0; display: flex; align-items: center; gap: 18px; font-size: 19px; color: var(--deck-ink-muted); letter-spacing: 0.02em; }
.cover-founders { display: flex; flex: none; }
.cover-founder {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--deck-ground);
  border-radius: 50%;
  background: var(--deck-figure-soft);
  color: var(--deck-ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  object-fit: cover;
}
.cover-founder + .cover-founder { margin-left: -14px; }
.hero-visual { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px hsl(var(--primary) / 0.18)); }
.hero-scan { fill: var(--deck-figure); }
.hero-flow { fill: none; stroke: var(--deck-figure); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-row .tbl-cell { opacity: .25; }
.hero-check rect { fill: var(--deck-figure); opacity: 0; }
.hero-check path { fill: none; stroke: var(--deck-on-action); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }

/* Stats */
.stats { list-style: none; padding: 0; margin: auto 0; display: grid; gap: 24px; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 14px; padding: 34px 32px; }
.stat .badge { margin-bottom: 10px; }
.stat-value {
  font-size: 96px;
  line-height: 104px;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--deck-figure);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stats-4 .stat-value { font-size: 64px; line-height: 68px; }
.stat-label { font-size: 21px; line-height: 29px; color: var(--deck-ink-muted); }

/* Three-sided value */
.cards { margin: auto 0; display: grid; gap: 24px; align-items: stretch; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; padding: 60px 32px; }
.card-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: var(--deck-type-floor);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deck-ink-muted);
}
.card-value {
  margin: 0;
  font-size: 96px;
  line-height: 104px;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--deck-figure);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-value-label { margin: 6px 0 24px; font-size: 19px; line-height: 27px; color: var(--deck-ink-muted); }
.card-title { margin: 0 0 10px; font-size: 27px; line-height: 33px; font-weight: 700; letter-spacing: -0.01em; padding-top: 22px; border-top: 1px solid var(--deck-line); }
.card-body { margin: 0; font-size: 19px; line-height: 28px; color: var(--deck-ink-muted); }
.card-title:empty, .card-body:empty { display: none; }

/* Market: Nota's Québec scene in Tablix ink */
.market { margin: auto 0; display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: center; }
.market-map { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qc-map { display: block; width: auto; height: 460px; overflow: visible; }
.market-map figcaption { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--deck-figure); }
.map-ground path { fill: var(--deck-panel); }
.map-outline path { fill: none; stroke: var(--deck-figure); stroke-width: 1.6; stroke-linejoin: round; }
.map-pin { fill: var(--deck-figure); }
.map-pulse { fill: none; stroke: var(--deck-figure); stroke-width: 1.5; opacity: 0; }
.map-label { font-size: var(--deck-type-floor); font-weight: 700; fill: var(--deck-ink); }
.map-link { fill: none; stroke: var(--deck-figure); stroke-width: 1.5; }
.market-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; }
.tier {
  display: grid;
  grid-template-columns: 90px 260px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--deck-line);
}
.tier-name { grid-row: span 2; font-size: 18px; font-weight: 700; letter-spacing: 0.12em; color: var(--deck-ink-muted); }
.tier-value { grid-row: span 2; font-size: 56px; line-height: 60px; font-weight: 750; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-0 .tier-value { color: var(--deck-figure); }
.tier-label { font-size: 22px; line-height: 30px; font-weight: 600; }
.tier-detail { font-size: 16px; line-height: 22px; color: var(--deck-ink-muted); font-variant-numeric: tabular-nums; }
.calc {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: baseline;
  padding: 18px 24px;
  border-color: var(--deck-figure-line);
  background: var(--deck-figure-soft);
}
.calc-value { grid-row: span 2; font-size: 50px; line-height: 54px; font-weight: 750; letter-spacing: -0.035em; color: var(--deck-figure); font-variant-numeric: tabular-nums; }
.calc-label { font-size: 21px; line-height: 28px; font-weight: 600; }
.calc-detail { font-size: 16px; line-height: 22px; color: var(--deck-ink-muted); font-family: var(--deck-font-sans); font-variant-numeric: tabular-nums; }

/* Product: document scan → table, then the time bar compresses */
.product { margin: var(--deck-product-gap) 0 0; display: grid; grid-template-columns: 700px 1fr; gap: 48px; align-items: start; }
.product-figure { margin: 0; }
.product-visual { width: 100%; height: auto; overflow: visible; }
.product-labels { display: grid; grid-template-columns: 280fr 104fr 392fr; margin-top: 10px; font-size: var(--deck-type-floor); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deck-ink-muted); }
.product-labels span:last-child { grid-column: 3; }
.doc-page, .tbl-frame { fill: var(--deck-panel); stroke: var(--deck-line); stroke-width: 1.5; }
.doc-head, .tbl-head { fill: var(--deck-line-strong); }
.doc-line { fill: var(--deck-line); }
.doc-field { fill: var(--deck-figure-soft); stroke: var(--deck-figure); stroke-width: 1.5; opacity: 0; }
.doc-scan { fill: var(--deck-figure); opacity: 0; }
.flow { fill: none; stroke: var(--deck-figure); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tbl-cell { fill: var(--deck-figure-soft); stroke: var(--deck-figure-line); stroke-width: 1; }
.psteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pstep { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; row-gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--deck-line); }
.pstep:last-child { border-bottom: 0; }
.pstep-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--deck-radius);
  background: var(--deck-figure-soft);
  border: 1px solid var(--deck-figure-line);
  color: var(--deck-figure);
  font-weight: 700;
  font-size: 17px;
}
.pstep-title { font-size: 26px; line-height: 32px; font-weight: 700; }
.pstep-body { font-size: 19px; line-height: 27px; color: var(--deck-ink-muted); }
/* English runs wider than French: at 62px this slide's title wraps to two lines and the timebars land on the footer. */
.deck[data-locale="en"] .layout-product .slide-title { font-size: 50px; line-height: 56px; }
.timebars { position: relative; margin-top: auto; display: grid; gap: 10px; padding-top: 18px; padding-right: 250px; }
.timebar { display: grid; grid-template-columns: 230px 1fr 90px; gap: 20px; align-items: center; font-size: 19px; }
.timebar-label { color: var(--deck-ink-muted); }
.timebar-track { height: 14px; border-radius: 999px; background: var(--deck-line); overflow: hidden; }
.timebar-fill { display: block; height: 100%; border-radius: inherit; transform-origin: left center; }
.is-manual .timebar-fill { width: 100%; background: var(--deck-ink-muted); }
.is-tablix .timebar-fill { width: calc(var(--ratio) * 100%); background: var(--deck-figure); }
.timebar-value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.is-tablix .timebar-value { color: var(--deck-figure); }
.timebar-saving {
  position: absolute;
  right: 0;
  bottom: 2px;
  padding: 12px 20px;
  border-radius: var(--deck-radius);
  background: var(--deck-action);
  color: var(--deck-on-action);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px -12px hsl(var(--primary) / 0.7);
}

/* RDPRM journey: fictional PDF pages and the fixture-based Tablix table. */
.workflow-slide { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.workflow-product { --deck-workflow-gap: 34px; --deck-workflow-paper-height: 500px; --deck-workflow-paper-offset: 6px; --deck-workflow-output-width: 515px; }
.workflow-product .slide-title { max-width: none; }
.workflow-slide .lead { margin-top: 12px; font-size: 22px; line-height: 30px; }
.workflow-media, .workflow-papers { margin: 0; min-width: 0; }
.workflow-disclosure { margin: 14px 0 0; font-size: var(--deck-type-floor); line-height: 22px; color: var(--deck-ink-muted); }
.workflow-metrics { margin: auto 0 0; gap: 20px; }
.workflow-metrics .stat { padding: 16px 20px; gap: 6px; background: transparent; }
.workflow-metrics .badge { display: none; }
.workflow-metrics .stat-value { font-size: 38px; line-height: 42px; }
.workflow-metrics .stat-label { font-size: 17px; line-height: 23px; }

/* Manual work: one paper-and-pencil scene, distinct from the product captures. */
.workflow-problem .slide-title, .deck[data-locale="en"] .workflow-problem .slide-title { font-size: 62px; line-height: 68px; }
.manual-scene { position: relative; display: grid; grid-template-columns: 380px 180px 1fr; align-items: start; gap: 30px; height: 396px; margin-top: 22px; padding-bottom: 64px; }
.manual-papers, .manual-reentry { margin: 0; min-width: 0; }
.manual-papers figcaption { display: flex; flex-direction: column; gap: 5px; }
.manual-registry { display: flex; align-items: center; gap: 10px; font-size: 23px; line-height: 29px; font-weight: 750; letter-spacing: .06em; }
.manual-registry-icon { display: inline-flex; width: 25px; height: 25px; }
.manual-registry-icon svg { fill: none; stroke: var(--deck-figure); stroke-width: 1.8; }
.manual-download { font-size: 18px; line-height: 26px; color: var(--deck-ink-muted); }
.manual-paper-art { display: block; width: 100%; height: 290px; margin-top: 8px; overflow: visible; }
.manual-paper-back { fill: var(--deck-ground); stroke: var(--deck-line-strong); stroke-width: 2; }
.manual-paper-front { fill: var(--deck-panel); stroke: var(--deck-line-strong); stroke-width: 2; }
.manual-paper-title { fill: var(--deck-ink); font-size: 24px; font-weight: 750; }
.manual-paper-heading { stroke: var(--deck-ink-muted); stroke-width: 7; stroke-linecap: round; }
.manual-paper-rule { stroke: var(--deck-line-strong); stroke-width: 5; stroke-linecap: round; }
.manual-paper-mark { stroke: var(--deck-figure); stroke-width: 9; opacity: .55; stroke-linecap: round; }
.manual-transfer { display: flex; flex-direction: column; align-items: center; padding-top: 96px; color: var(--deck-ink-muted); font-size: 19px; line-height: 26px; }
.manual-transfer svg { display: block; width: 100%; height: 128px; overflow: visible; }
.manual-copy-path { fill: none; stroke: var(--deck-figure); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.manual-copy-dot { fill: var(--deck-figure); opacity: 0; }
.manual-reentry { padding-top: 20px; }
.manual-reentry figcaption { margin: 0 0 22px; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; }
.manual-reentry ul { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.manual-reentry li { display: grid; grid-template-columns: 154px 1fr; gap: 18px; align-items: center; min-height: 60px; font-size: 22px; line-height: 30px; color: var(--deck-ink-muted); }
.manual-field { display: block; height: 42px; border-bottom: 2px solid var(--deck-line-strong); }
.manual-field svg { display: block; width: 100%; height: 36px; overflow: visible; }
.manual-handwriting { fill: none; stroke: var(--deck-ink-muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.manual-repeat { position: absolute; width: 100%; height: 94px; bottom: -2px; left: 0; overflow: visible; }
.manual-repeat-path { fill: none; stroke: var(--deck-line-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.manual-clock circle { fill: var(--deck-ground); stroke: var(--deck-ink-muted); stroke-width: 2; }
.manual-clock-hand { fill: none; stroke: var(--deck-ink-muted); stroke-width: 2.5; stroke-linecap: round; }
.workflow-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--deck-workflow-gap); align-items: center; margin: 0; flex: 1; min-height: 0; }
.workflow-input { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.workflow-document-label { position: relative; z-index: 4; width: 100%; margin: 0; font-size: 22px; line-height: 28px; font-weight: 650; text-align: center; }
.workflow-document-detail { position: relative; z-index: 4; width: 100%; margin: 0; font-size: 18px; line-height: 24px; color: var(--deck-ink-muted); text-align: center; }
.workflow-document-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(var(--deck-workflow-paper-height) + 2 * var(--deck-workflow-paper-offset)); }
.workflow-papers { width: 100%; }
.workflow-matrix { width: min(100%, var(--deck-workflow-output-width)); }
.workflow-matrix-column { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.workflow-product .workflow-paper-stack { position: relative; height: var(--deck-workflow-paper-height); width: 100%; margin: 0; }
.workflow-product .workflow-paper-stack img { position: absolute; left: 50%; width: auto; height: 100%; max-width: 100%; object-fit: contain; border: 1px solid var(--deck-line); border-radius: var(--deck-radius); background: var(--deck-panel); box-shadow: var(--deck-stage-shadow); }
.workflow-product .workflow-paper-stack img:first-child { position: relative; top: 0; z-index: 3; transform: translateX(-50%); }
.workflow-product .workflow-paper-stack img:nth-child(2) { top: var(--deck-workflow-paper-offset); z-index: 2; transform: translateX(calc(-50% + var(--deck-workflow-paper-offset))); }
.workflow-product .workflow-paper-stack img:nth-child(3) { top: calc(2 * var(--deck-workflow-paper-offset)); z-index: 1; transform: translateX(calc(-50% + 2 * var(--deck-workflow-paper-offset))); }
.workflow-table { --workflow-output-ground: var(--deck-logo-surface); --workflow-output-line: hsl(var(--tablix-dark) / 0.15); overflow: hidden; border: 1px solid var(--workflow-output-line); border-radius: var(--deck-radius); background: var(--workflow-output-ground); box-shadow: var(--deck-stage-shadow); }
.workflow-table-preview { display: block; width: 100%; height: auto; object-fit: contain; object-position: top; }
.workflow-review { margin: 8px 0 0; padding-left: 14px; border-left: 3px solid var(--deck-figure); font-size: 18px; line-height: 25px; color: var(--deck-ink-muted); }

/* Steps / roadmap: a rail draws across, then each step lands on it */
.steps-wrap { margin: auto 0; position: relative; }
.steps-rail {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 54px;
  height: 2px;
  background: var(--deck-figure-line);
  transform-origin: left center;
}
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 42px 28px; display: flex; flex-direction: column; }
.step .badge { width: 80px; height: 80px; margin-bottom: 28px; }
.step .badge svg { width: 40px; height: 40px; }
.step-tag {
  align-self: flex-start;
  font-size: var(--deck-type-floor);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deck-figure);
  padding: 3px 12px;
  border: 1px solid var(--deck-figure-line);
  border-radius: 999px;
  margin-bottom: 18px;
}
.step-title { margin: 0 0 16px; font-size: 32px; line-height: 39px; font-weight: 700; letter-spacing: -0.01em; }
.step-body { margin: 0; font-size: 22px; line-height: 32px; color: var(--deck-ink-muted); }

/* Channels */
.channels { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.channel-group { padding: 26px 30px; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chip { display: grid; grid-template-columns: 300px 1fr; gap: 16px; font-size: 19px; line-height: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--deck-line); }
.chip:last-child { border-bottom: 0; padding-bottom: 0; }
.chip-name { font-weight: 700; }
.chip-note { color: var(--deck-ink-muted); }
.loop { counter-reset: acquisition-step; list-style: none; margin: auto 0 0; padding: 22px 0 0; display: flex; gap: 12px; }
.loop-step {
  counter-increment: acquisition-step;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  line-height: 23px;
  padding: 14px 16px;
  border: 1px solid var(--deck-line);
  border-radius: var(--deck-radius);
  color: var(--deck-ink-muted);
  background: var(--deck-panel);
}
.loop-step::before {
  content: counter(acquisition-step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--deck-action);
  color: var(--deck-on-action);
  font-size: var(--deck-type-floor);
  font-weight: 700;
}

/* With only the authored three phases, the journey becomes the main visual. */
.channels:empty { display: none; }
.slide-body:has(> .channels:empty) .loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: auto 0; padding: 0; }
.slide-body:has(> .channels:empty) .loop-step { position: relative; flex-direction: column; align-items: flex-start; gap: 28px; padding: 50px 32px; font-size: 34px; line-height: 44px; color: var(--deck-ink); }
.slide-body:has(> .channels:empty) .loop-step::before { width: 96px; height: 96px; font-size: 64px; }
.slide-body:has(> .channels:empty) .loop-step:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: calc(50% - 7px); width: 14px; height: 14px; border-top: 2px solid var(--deck-figure); border-right: 2px solid var(--deck-figure); transform: rotate(45deg); }

/* Acquisition funnel: log-scaled bars, tiles flowing down */
.funnel-wrap { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 470px; gap: 40px; align-items: start; }
.funnel { position: relative; }
.fn-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fn-stage { position: relative; display: grid; grid-template-columns: 96px 520px 1fr; column-gap: 24px; align-items: center; min-height: 68px; }
.fn-rate {
  grid-column: 1;
  justify-self: end;
  font-size: var(--deck-type-floor);
  font-weight: 700;
  color: var(--deck-figure);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--deck-figure-line);
  background: var(--deck-figure-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fn-bar {
  grid-column: 2;
  justify-self: center;
  width: var(--w);
  height: 60px;
  border-radius: var(--deck-radius);
  background: var(--deck-figure-soft);
  border: 1px solid var(--deck-figure-line);
  transform-origin: center;
}
.fn-paid .fn-bar { background: var(--deck-figure); border-color: var(--deck-figure); }
.fn-value { grid-column: 3; grid-row: 1; align-self: start; font-size: 34px; line-height: 38px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fn-label { grid-column: 3; grid-row: 1; align-self: end; font-size: 17px; line-height: 22px; color: var(--deck-ink-muted); }
.fn-paid .fn-value { color: var(--deck-figure); }
.fn-scale { margin: 18px 0 0 120px; width: 520px; text-align: center; font-size: var(--deck-type-floor); line-height: 22px; letter-spacing: 0.02em; color: var(--deck-ink-muted); }
.funnel-flow { position: absolute; left: 120px; width: 520px; top: 0; bottom: 0; pointer-events: none; z-index: 1; }
.funnel-link {
  position: absolute;
  left: calc(50% - 6px);
  top: calc(123px + var(--i) * 144px);
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--deck-figure-line);
  border-bottom: 2px solid var(--deck-figure-line);
  transform: rotate(45deg);
}

/* An empty tracking panel leaves the model's three bars as the whole scene.
   :has() anchors stay on these bounded containers; proportions still use --w. */
.tracking:has(> .group-label:empty):has(> .ticks:empty) { display: none; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) { grid-template-columns: minmax(0, 1fr); margin: auto 0; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-stages { gap: 28px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-stage { grid-template-columns: 120px minmax(0, 1fr) 260px; min-height: 126px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-bar { height: 108px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-bar[data-motion="bar"] { animation-duration: 2.4s; animation-timing-function: cubic-bezier(.25, .65, .3, 1); }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-value { font-size: 68px; line-height: 76px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-label { font-size: 24px; line-height: 32px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-rate { font-size: 26px; line-height: 32px; padding: 6px 12px; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .funnel-flow { left: 144px; right: 284px; width: auto; }
.funnel-wrap:not(.funnel-dashboard):has(> .tracking > .ticks:empty) .fn-scale { width: auto; margin: 20px 284px 0 144px; }
.tracking { padding: 26px 28px; border-color: var(--deck-figure-line); }
.tracking .ticks { font-size: 19px; line-height: 27px; gap: 12px; }
.tracking .ticks li::before { top: 9px; }

/* Acquisition operating map: audience, a larger distribution hub and the
   measurement return. Filled surfaces represent actual workflow boundaries. */
.gtm-dashboard { margin: auto 0; padding-top: 24px; }
.gtm-compact-fact { display: none; }
.acquisition-compact-title, .acquisition-compact-lead { display: none; }
.gtm-operating-map { list-style: none; display: grid; grid-template-columns: .9fr 1.55fr .95fr; gap: 48px; margin: 0; padding: 0; }
.gtm-operating-map > .loop-step { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--deck-ink); }
.gtm-operating-map > .loop-step::before { display: none; }
.gtm-operating-map > .loop-step:not(:last-child)::after { content: ""; position: absolute; top: 180px; right: -32px; width: 20px; height: 20px; border-right: 2px solid var(--deck-figure); border-top: 2px solid var(--deck-figure); transform: rotate(45deg); }
.gtm-phase { margin: 0 0 26px; min-height: 56px; font-size: 23px; line-height: 28px; font-weight: 600; color: var(--deck-ink-muted); }
.gtm-glyph { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.gtm-glyph svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gtm-audience { padding: 28px 0; }
.gtm-audience > .gtm-glyph { color: var(--deck-reach); margin-bottom: 20px; }
.gtm-audience h3 { font-size: 37px; line-height: 43px; letter-spacing: -.025em; margin: 0 0 24px; }
.gtm-audience > span:not(.gtm-glyph) { display: block; font-size: 24px; line-height: 33px; color: var(--deck-ink-muted); }
.gtm-hub { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 28px 32px; border-radius: var(--deck-radius-card); background: var(--deck-trial); color: var(--deck-chart-ink); }
.gtm-hub .gtm-glyph { grid-row: 1 / 3; }
.gtm-hub .gtm-glyph svg { width: 46px; height: 46px; }
.gtm-hub h3 { margin: 0; font-size: 42px; line-height: 50px; letter-spacing: -.025em; }
.gtm-hub p { grid-column: 2; margin: 6px 0 0; font-size: 24px; line-height: 31px; }
.gtm-approval { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 23px; line-height: 30px; margin: 18px 0; color: var(--deck-paid); }
.gtm-approval::before, .gtm-approval::after { content: ""; flex: 1; height: 1px; background: var(--deck-line-strong); }
.gtm-approval .gtm-glyph svg { width: 26px; height: 26px; }
.gtm-routes { display: grid; gap: 2px; border-radius: var(--deck-radius); overflow: hidden; }
.gtm-routes span { display: block; padding: 13px 24px; font-size: 24px; line-height: 32px; background: var(--deck-panel-lift); }
.gtm-signals { display: grid; gap: 14px; margin-top: 28px; }
.gtm-signals span { display: flex; align-items: center; gap: 14px; font-size: 32px; line-height: 39px; }
.gtm-signals span::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--deck-reach); }
.gtm-signals span:nth-child(2)::before { background: var(--deck-trial); }
.gtm-signals span:nth-child(3)::before { background: var(--deck-paid); }
.gtm-consent { margin: 22px 0 0; font-size: 20px; line-height: 28px; color: var(--deck-ink-muted); }
.gtm-return { margin: auto 0 0; padding-top: 24px; font-size: 21px; line-height: 28px; font-weight: 600; color: var(--deck-paid); }
.gtm-feedback-path { display: block; width: 100%; height: 60px; margin-top: 10px; fill: none; stroke: var(--deck-figure-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* One log-scaled funnel, with the quantity and unit inside every filled band.
   Colour identifies a stage; width represents log10(model quantity). */
.funnel-wrap.funnel-dashboard { display: block; margin: auto 0; padding-top: 24px; }
.funnel-dashboard .fn-stages { gap: 28px; }
.funnel-dashboard .fn-stage { display: block; width: var(--w); min-height: 116px; margin: 0 auto; }
.funnel-dashboard .fn-bar { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; height: 116px; padding: 12px 26px; background: var(--deck-reach); border: 0; color: var(--deck-chart-ink); }
.funnel-dashboard .fn-trials .fn-bar { background: var(--deck-trial); }
.funnel-dashboard .fn-paid .fn-bar { background: var(--deck-paid); }
.funnel-dashboard .fn-value { align-self: auto; font-size: 82px; line-height: 90px; font-weight: 750; letter-spacing: -.045em; color: var(--deck-chart-ink); white-space: nowrap; }
.funnel-dashboard .fn-label { align-self: auto; font-size: 30px; line-height: 34px; font-weight: 550; color: var(--deck-chart-ink); }
.funnel-dashboard .fn-paid .fn-bar { gap: 18px; padding-inline: 18px; }
.funnel-dashboard .fn-paid .fn-value { font-size: 72px; line-height: 80px; }
.funnel-dashboard .fn-paid .fn-label { font-size: 25px; line-height: 29px; }
.funnel-dashboard .fn-scale { width: auto; margin: 24px 0 0; font-size: var(--deck-type-floor); }
.funnel-dashboard .funnel-flow { left: 0; width: 100%; }

/* The same acquisition content reflows in physical pixels only while one of
   these two chapters is current. Other chapters retain their native canvas.
   Compact bands are workflow steps: equal widths no longer encode quantity. */
@media screen {
  .player[data-layout="acquisition"] .stage { left: 0; top: 0; width: 100%; height: var(--cinema-content-height); transform: none; }
  .player[data-layout="acquisition"] .slide { padding: 16px 24px; }
  .player[data-layout="acquisition"] .counter { top: 16px; right: 24px; }
  .player[data-layout="acquisition"] .slide-head { max-width: 100%; }
  .player[data-layout="acquisition"] .kicker { font-size: 16px; line-height: 20px; margin-bottom: 6px; padding-right: 74px; letter-spacing: .08em; }
  .player[data-layout="acquisition"] .slide-title, .player[data-layout="acquisition"] .lead { display: none; }
  .player[data-layout="acquisition"] .acquisition-compact-title { display: block; margin: 0; font-size: 28px; line-height: 32px; font-weight: 750; letter-spacing: -.03em; }
  .player[data-layout="acquisition"] .acquisition-compact-lead { display: block; font-size: 16px; line-height: 22px; margin: 6px 0 0; color: var(--deck-ink-muted); }
  .player[data-layout="acquisition"] .gtm-dashboard { padding-top: 16px; }
  .player[data-layout="acquisition"] .gtm-operating-map { grid-template-columns: .95fr 1.35fr 1fr; gap: 24px; }
  .player[data-layout="acquisition"] .gtm-phase { display: none; }
  .player[data-layout="acquisition"] .gtm-glyph { display: none; }
  .player[data-layout="acquisition"] .gtm-audience { padding: 6px 0; }
  .player[data-layout="acquisition"] .gtm-audience h3 { font-size: 22px; line-height: 26px; margin-bottom: 8px; }
  .player[data-layout="acquisition"] .gtm-audience > span:not(.gtm-glyph) { font-size: 16px; line-height: 22px; }
  .player[data-layout="acquisition"] .gtm-hub { display: block; padding: 12px 16px; }
  .player[data-layout="acquisition"] .gtm-hub h3 { font-size: 24px; line-height: 28px; }
  .player[data-layout="acquisition"] .gtm-hub p { font-size: 16px; line-height: 22px; margin-top: 3px; }
  .player[data-layout="acquisition"] .gtm-approval { font-size: 16px; line-height: 22px; gap: 8px; margin: 7px 0; }
  .player[data-layout="acquisition"] .gtm-routes span { padding: 5px 12px; font-size: 16px; line-height: 22px; }
  .player[data-layout="acquisition"] .gtm-signals { gap: 5px; margin-top: 6px; }
  .player[data-layout="acquisition"] .gtm-signals span { font-size: 21px; line-height: 25px; gap: 8px; }
  .player[data-layout="acquisition"] .gtm-signals span::before { width: 8px; height: 8px; }
  .player[data-layout="acquisition"] .gtm-consent, .player[data-layout="acquisition"] .gtm-return { margin-top: 8px; padding-top: 0; font-size: 16px; line-height: 22px; }
  .player[data-layout="acquisition"] .gtm-feedback-path { display: none; }
  .player[data-layout="acquisition"] .gtm-operating-map > .loop-step:not(:last-child)::after { top: 70px; right: -16px; width: 10px; height: 10px; }
  .player[data-layout="acquisition"] .funnel-dashboard { padding-top: 14px; }
  .player[data-layout="acquisition"] .fn-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .player[data-layout="acquisition"] .fn-stage { width: 100%; min-height: 110px; }
  .player[data-layout="acquisition"] .fn-bar { height: 110px; flex-direction: column; gap: 4px; padding: 10px; }
  .player[data-layout="acquisition"] .fn-value, .player[data-layout="acquisition"] .fn-paid .fn-value { font-size: 44px; line-height: 48px; }
  .player[data-layout="acquisition"] .fn-label, .player[data-layout="acquisition"] .fn-paid .fn-label { font-size: 20px; line-height: 24px; }
  .player[data-layout="acquisition"] .fn-paid .fn-bar { gap: 4px; padding: 10px; }
  .player[data-layout="acquisition"] .fn-scale, .player[data-layout="acquisition"] .funnel-flow { display: none; }
  .player[data-layout="acquisition"] .fn-stage:not(:last-child)::after { content: ""; position: absolute; top: calc(50% - 5px); right: -16px; width: 10px; height: 10px; border-top: 2px solid var(--deck-figure-line); border-right: 2px solid var(--deck-figure-line); transform: rotate(45deg); }
}
@media screen and (max-width: 600px) {
  .player[data-layout="acquisition"] .slide { padding: 16px 20px; }
  .player[data-layout="acquisition"] .counter { right: 20px; }
  .player[data-layout="acquisition"] .acquisition-compact-title { font-size: 26px; line-height: 30px; }
  .player[data-layout="acquisition"] .gtm-dashboard { padding-top: 12px; }
  .player[data-layout="acquisition"] .gtm-operating-map { grid-template-columns: 1fr; gap: 12px; }
  .player[data-layout="acquisition"] .gtm-audience { padding: 0; }
  .player[data-layout="acquisition"] .gtm-audience h3 { font-size: 20px; line-height: 24px; margin-bottom: 3px; }
  .player[data-layout="acquisition"] .gtm-audience > span:not(.gtm-glyph) { display: inline; font-size: 16px; line-height: 21px; }
  .player[data-layout="acquisition"] .gtm-audience > span:not(.gtm-glyph):not(:last-child)::after { content: " · "; }
  .player[data-layout="acquisition"] .gtm-hub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 12px; }
  .player[data-layout="acquisition"] .gtm-hub h3 { font-size: 21px; line-height: 25px; }
  .player[data-layout="acquisition"] .gtm-hub p { margin: 0; font-size: 16px; line-height: 21px; }
  .player[data-layout="acquisition"] .gtm-approval { margin: 5px 0; line-height: 21px; }
  .player[data-layout="acquisition"] .gtm-routes { grid-template-columns: 1fr 1fr; }
  .player[data-layout="acquisition"] .gtm-routes span { padding: 5px 9px; line-height: 21px; }
  .player[data-layout="acquisition"] .gtm-signals { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 0; }
  .player[data-layout="acquisition"] .gtm-signals span { font-size: 19px; line-height: 23px; }
  .player[data-layout="acquisition"] .gtm-consent, .player[data-layout="acquisition"] .gtm-return { margin-top: 5px; line-height: 21px; }
  .player[data-layout="acquisition"] .gtm-feedback-path, .player[data-layout="acquisition"] .gtm-operating-map > .loop-step::after { display: none; }
  .player[data-layout="acquisition"] .fn-stages { grid-template-columns: 1fr; gap: 14px; }
  .player[data-layout="acquisition"] .fn-stage { min-height: 72px; }
  .player[data-layout="acquisition"] .fn-bar, .player[data-layout="acquisition"] .fn-paid .fn-bar { height: 72px; flex-direction: row; justify-content: space-between; gap: 16px; padding: 10px 16px; }
  .player[data-layout="acquisition"] .fn-value, .player[data-layout="acquisition"] .fn-paid .fn-value { font-size: 43px; line-height: 48px; }
  .player[data-layout="acquisition"] .fn-label, .player[data-layout="acquisition"] .fn-paid .fn-label { font-size: 18px; line-height: 22px; }
  .player[data-layout="acquisition"] .fn-stage:not(:last-child)::after { top: calc(100% + 2px); right: calc(50% - 4px); width: 8px; height: 8px; border-top: 0; border-bottom: 2px solid var(--deck-figure-line); }
}

@media screen and (max-width: 360px) and (max-height: 650px), screen and (max-width: 720px) and (max-height: 400px) {
  .player[data-layout="acquisition"] .slide { padding: 12px 16px; }
  .player[data-layout="acquisition"] .acquisition-compact-title { font-size: 24px; line-height: 28px; }
  .player[data-layout="acquisition"] .gtm-dashboard { padding-top: 6px; }
  .player[data-layout="acquisition"] .gtm-operating-map { gap: 8px; }
  .player[data-layout="acquisition"] .gtm-operating-map > .loop-step > :not(.gtm-compact-fact) { display: none; }
  .player[data-layout="acquisition"] .gtm-operating-map > .loop-step::after { display: none; }
  .player[data-layout="acquisition"] .gtm-compact-fact { display: block; }
  .player[data-layout="acquisition"] .gtm-compact-fact h3 { margin: 0 0 2px; font-size: 18px; line-height: 22px; }
  .player[data-layout="acquisition"] .gtm-compact-fact p { margin: 0; font-size: 16px; line-height: 20px; color: var(--deck-ink-muted); }
  .player[data-layout="acquisition"] [data-gtm="distribution"] .gtm-compact-fact { padding: 6px 8px; border-radius: var(--deck-radius); background: var(--deck-panel-lift); }
}

/* These chapters already show their title and position on the stage. Reclaim
   that duplicate chrome before measuring the caption reserve; keep all 44px
   controls and the live status region. Other chapters keep their own layout. */
@media screen {
  .player[data-layout="acquisition"] .cinema-meta { display: none; }
  .player[data-layout="acquisition"] .cinema-status[data-state="ready"] { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .slide:has(.gtm-dashboard) :is(.kicker, .counter) { display: none; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-dashboard { padding-top: 6px; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-operating-map { gap: 8px; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-operating-map > .loop-step > :not(.gtm-compact-fact) { display: none; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-operating-map > .loop-step::after { display: none; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-compact-fact { display: block; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-compact-fact h3 { margin: 0 0 2px; font-size: 18px; line-height: 22px; }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) .gtm-compact-fact p { margin: 0; font-size: 16px; line-height: 20px; color: var(--deck-ink-muted); }
  .player[data-layout="acquisition"]:is([data-density="tight"], [data-stage-height="short"].has-captions) [data-gtm="distribution"] .gtm-compact-fact { padding: 6px 8px; border-radius: var(--deck-radius); background: var(--deck-panel-lift); }
}

@media screen and (max-width: 600px) {
  .player[data-layout="acquisition"][data-density="tight"] .fn-stages { gap: 8px; }
  .player[data-layout="acquisition"][data-density="tight"] .fn-stage { min-height: 56px; }
  .player[data-layout="acquisition"][data-density="tight"] .fn-bar, .player[data-layout="acquisition"][data-density="tight"] .fn-paid .fn-bar { height: 56px; padding: 6px 12px; }
  .player[data-layout="acquisition"][data-density="tight"] .fn-value, .player[data-layout="acquisition"][data-density="tight"] .fn-paid .fn-value { font-size: 34px; line-height: 40px; }
  .player[data-layout="acquisition"][data-density="tight"] .fn-stage:not(:last-child)::after { top: calc(100% - 1px); }
}

/* Competition grid */
.grid { margin: auto 0; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 27px; line-height: 36px; }
.grid th {
  text-align: left;
  font-size: var(--deck-type-floor);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deck-ink-muted);
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--deck-line);
}
.grid td { padding: 30px 20px; border-bottom: 1px solid var(--deck-line); color: var(--deck-ink-muted); vertical-align: top; }
.grid td:first-child { color: var(--deck-ink); font-weight: 700; }
.grid tr.is-us td { background: var(--deck-figure-soft); color: var(--deck-ink); border-bottom-color: var(--deck-figure-line); }
.grid tr.is-us td:first-child { color: var(--deck-figure); border-radius: var(--deck-radius) 0 0 var(--deck-radius); }
.grid tr.is-us td:last-child { border-radius: 0 var(--deck-radius) var(--deck-radius) 0; }

/* Ask */
.ask { margin: auto 0; display: grid; grid-template-columns: 1fr 1.2fr 1.15fr; gap: 40px; align-items: start; }
.ask-amount {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px;
  border: 1px solid var(--deck-figure-line);
  background: var(--deck-figure-soft);
  border-radius: var(--deck-radius-card);
  box-shadow: 0 24px 60px -30px hsl(var(--primary) / 0.6);
}
.ask-value { font-size: 84px; line-height: 88px; font-weight: 750; letter-spacing: -0.035em; color: var(--deck-highlight); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-status { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--deck-figure-line); font-size: 18px; line-height: 26px; color: var(--deck-ink); }
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.use { display: grid; grid-template-columns: 1fr 64px; row-gap: 8px; font-size: 20px; line-height: 27px; }
.use-share { grid-row: 1; grid-column: 2; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.use-bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--deck-line); overflow: hidden; }
.use-fill { display: block; height: 100%; width: var(--share); background: var(--deck-figure); border-radius: inherit; transform-origin: left center; }

/* Sources — a graded provenance ledger. Each kind gets a softer mark as its
   evidence gets softer: public source, our own measurement, planning input, goal.
   The ledger splits by band, not by row: the public band reads down the left
   column, the three softer kinds stack on the right. Splitting by row instead
   (the first pass here) zig-zags the entry numbering and pushed the last row on
   top of the foot band. */
.ledger {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 44px;
  align-content: start;
}
.ledger .src-observed { grid-column: 1; grid-row: 1 / span 3; }
.ledger .src-internal { grid-column: 2; grid-row: 1; }
.ledger .src-assumption { grid-column: 2; grid-row: 2; }
.ledger .src-target { grid-column: 2; grid-row: 3; }
.src-band { --deck-src: var(--src-observed); }
.src-band.src-internal { --deck-src: var(--src-internal); }
.src-band.src-assumption { --deck-src: var(--src-assumption); }
.src-band.src-target { --deck-src: var(--src-target); }
.src-band-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
}
.src-band-head::before {
  content: "";
  align-self: stretch;
  width: 3px;
  border-radius: 2px;
  background: var(--deck-src);
}
.src-band-label {
  font-size: var(--deck-type-floor);
  line-height: 21px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deck-ink);
  white-space: nowrap;
}
.src-band-note {
  font-size: var(--deck-type-floor);
  line-height: 21px;
  font-weight: 400;
  color: var(--deck-ink-muted);
}
.src-band-count {
  margin-left: auto;
  padding-left: 18px;
  font-family: var(--deck-font-mono);
  font-size: var(--deck-type-floor);
  line-height: 21px;
  font-weight: 500;
  color: var(--deck-ink-muted);
  font-variant-numeric: tabular-nums;
}
.src-entries { list-style: none; margin: 3px 0 0; padding: 0; display: grid; }
.src-row { display: grid; grid-template-columns: 2.4em 1fr; padding: 1px 8px 1px 0; border-left: 2px solid transparent; }
.src-n {
  font-family: var(--deck-font-mono);
  font-size: var(--deck-type-floor);
  line-height: 22px;
  color: var(--deck-ink-muted);
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
}
.src-text { margin: 0; font-size: var(--deck-type-floor); line-height: 22px; color: var(--deck-ink-muted); text-wrap: pretty; }
.src-title { color: var(--deck-ink); text-decoration: none; }
a.src-title:hover, a.src-title:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.src-meta { font-size: var(--deck-type-floor); white-space: nowrap; }

/* Centre the six references and their CTA below the heading as one reading block. */
.layout-sources .ledger { display: block; margin: auto 0 0; }
.layout-sources .src-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; margin-top: 24px; }
.layout-sources .src-row { min-height: 96px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--deck-line); }
.layout-sources .src-n { font-size: 18px; line-height: 32px; }
.layout-sources .src-text { font-size: 22px; line-height: 32px; }
.layout-sources .src-meta { display: block; font-size: 18px; line-height: 28px; white-space: normal; }
.layout-sources .source-reference-link { margin-bottom: auto; }
.source-reference-link { display: inline-flex; align-self: flex-start; margin-top: 24px; padding: 10px 16px; border: 1px solid var(--deck-figure-line); border-radius: var(--deck-radius); color: var(--deck-figure); background: var(--deck-figure-soft); font-size: 18px; line-height: 26px; text-decoration: none; }
.source-reference-link:hover { border-color: var(--deck-figure); text-decoration: underline; text-underline-offset: 3px; }
.source-reference-link:focus-visible { outline: 2px solid var(--deck-focus); outline-offset: 3px; }

.references-page { display: block; height: auto; min-height: 100vh; overflow: auto; page: references; }
.references-page main { width: min(100%, 1200px); margin: 0 auto; padding: 64px 40px; }
.references-page h1 { margin: 0 0 20px; font-size: 42px; line-height: 50px; letter-spacing: -0.025em; }
.references-page h2 { margin: 0; font-size: 24px; line-height: 32px; }
.references-page p { font-size: 18px; line-height: 28px; color: var(--deck-ink-muted); }
.references-page .ledger { display: block; margin-top: 30px; }
.references-section + .references-section { margin-top: 44px; }
.references-page .src-entries { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.references-page .src-row { padding: 12px 0; border-bottom: 1px solid var(--deck-line); }
.references-page .src-text { font-size: 18px; line-height: 28px; }
.references-page a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .references-page main { padding: 32px 20px; }
  .references-page h1 { font-size: 32px; line-height: 40px; }
  .references-page .src-meta { white-space: normal; }
}

@page references { size: A4; margin: 18mm; }
@media print {
  .references-page { min-height: 0; overflow: visible; }
  .references-page main { width: auto; padding: 0; }
  .references-page .src-row { break-inside: avoid; }
}

/* Unit economics waterfall */
.waterfall { margin: auto 0; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
.waterfall-chart { width: 100%; height: auto; overflow: visible; }
.wf-axis { stroke: var(--deck-line); stroke-width: 2; }
.wf-total { fill: var(--deck-line-strong); }
.wf-cost { fill: var(--deck-panel); stroke: var(--deck-ink-muted); stroke-width: 1.5; stroke-dasharray: 6 4; }
.wf-result { fill: var(--deck-figure); stroke: none; }
.wf-link { fill: none; stroke: var(--deck-ink-muted); stroke-width: 1.5; }
.wf-value { font-size: 24px; font-weight: 700; fill: var(--deck-ink); font-variant-numeric: tabular-nums; }
.wf-label { font-size: 18px; fill: var(--deck-ink-muted); }
.stats-col { grid-template-columns: 1fr; margin: 0; }

/* ── Motion (Nota's vocabulary, Tablix timing) ─────────────────────────
   Nothing moves until its slide is current; re-entering replays it.
   Each chapter builds its substantive content. Repeated task illustrations
   finish after a bounded demonstration and leave all figures legible. */
.slide [data-motion] { animation-fill-mode: both; animation-play-state: paused; }
.slide.is-current [data-motion] { animation-play-state: running; animation-delay: var(--delay, 0ms); }
.slide:not(.is-current) [data-motion], .slide:not(.is-current) [data-motion] path { animation-name: none; }
.slide [data-motion="rise"] { animation-name: deck-rise; animation-duration: .7s; animation-timing-function: var(--deck-ease-out); }
.slide [data-motion="fade"] { animation-name: deck-fade; animation-duration: .6s; }
.slide [data-motion="slide"] { animation-name: deck-slide; animation-duration: .7s; animation-timing-function: var(--deck-ease-out); }
.slide [data-motion="pop"], .slide [data-motion="land"] { animation-name: deck-land; animation-duration: .6s; animation-timing-function: var(--deck-spring); transform-box: fill-box; transform-origin: center; }
.slide [data-motion="trace"] { animation: none; }
.slide [data-motion="trace"] path, .slide path[data-motion="trace"] { stroke-dasharray: 1; animation: deck-trace 1.6s cubic-bezier(.3, .1, .25, 1) both paused; animation-delay: var(--delay, 0ms); }
.slide.is-current [data-motion="trace"] path, .slide.is-current path[data-motion="trace"] { animation-play-state: running; }
.slide [data-motion="pulse"] { animation-name: deck-pulse; animation-duration: 2.4s; animation-iteration-count: 3; animation-fill-mode: backwards; transform-box: fill-box; transform-origin: center; }
.slide [data-motion="bar"] { animation-name: deck-bar; animation-duration: var(--motion-duration, 1.65s); animation-timing-function: var(--deck-ease-out); }
.slide [data-motion="compress"] { animation-name: deck-compress; animation-duration: 1.4s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
.slide [data-motion="grow"] { animation-name: deck-grow; animation-duration: 1.6s; transform-box: fill-box; transform-origin: center bottom; animation-timing-function: var(--deck-ease-out); }
.slide [data-motion="scan"] { animation-name: deck-scan; animation-duration: 3.2s; animation-timing-function: linear; animation-iteration-count: 2; animation-fill-mode: backwards; }
.slide [data-motion="flash"] { animation-name: deck-flash; animation-duration: .9s; }
.slide [data-motion="fill"] { animation-name: deck-fill; animation-duration: .45s; }
.slide [data-motion="sweep"] { animation-name: deck-sweep; animation-duration: .9s; animation-timing-function: ease-in-out; }
.fn-bar[data-motion="bar"] { animation-name: deck-bar-center; }

/* Sequence hooks come from the existing chapter content, never new values. */
.slide.is-current [data-story-step] { animation-name: deck-story-reveal; animation-duration: .95s; animation-timing-function: var(--deck-ease-out); animation-delay: var(--story-delay, 450ms); animation-fill-mode: both; }
.slide.is-current .workflow-product [data-story-step] { animation-fill-mode: backwards; }
.slide.is-current .fn-stage[data-story-step] { animation-name: deck-funnel-stage; }
.step[data-story-step]::after, .card[data-story-step]::after { content: ""; display: block; height: 3px; background: var(--deck-figure); transform-origin: left center; }
.step[data-story-step]::after { position: absolute; bottom: 0; left: 28px; right: 28px; }
.card[data-story-step]::after { margin-top: 30px; }
.slide.is-current .step[data-story-step]::after, .slide.is-current .card[data-story-step]::after { animation: deck-bar 1.5s var(--deck-ease-out) both; animation-delay: calc(var(--story-delay) + 300ms); }
.figure-final { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.figure-moving { font-variant-numeric: tabular-nums; }

/* Cover: reading becomes checked rows, then the completed table rests. */
.slide.is-current .hero-scan { animation: deck-hero-scan 4.8s linear 2; }
.slide.is-current .hero-row .tbl-cell { animation: deck-hero-row 4.8s ease-in-out 2 both; animation-delay: calc(var(--i) * 0.6s + 0.4s); }
.slide.is-current .hero-check rect, .slide.is-current .hero-check path { animation: deck-hero-check 4.8s var(--deck-spring) 2 both; animation-delay: calc(var(--i) * 0.6s + 0.7s); transform-box: fill-box; transform-origin: center; }
.slide.is-current .hero-flow { animation: deck-nudge 1.6s ease-in-out 3; animation-delay: var(--highlight-delay, 0s); }

/* The problem repeats the manual copying gesture three times, then stops. */
.slide.is-current .manual-copy-dot { animation: deck-manual-copy 1.15s ease-in-out 3; animation-delay: 1.05s; }
.slide.is-current .manual-handwriting { stroke-dasharray: 1; animation: deck-trace 1.1s ease-out both; animation-delay: var(--field-delay); }
.slide.is-current .manual-repeat-path { stroke-dasharray: 1; animation: deck-trace 1.8s ease-in-out both var(--highlight-delay, 2.8s); }
.slide.is-current .manual-clock-hand { transform-origin: 0px 0px; animation: deck-manual-clock 5.2s linear both var(--highlight-delay, 1.25s); }

/* Funnel: connectors reveal the relationship without particles crossing data.
   Highlights like this one start at --highlight-delay, which a narrated hold sets
   when the voice reaches the step they demonstrate (viewer.js highlightSelectors);
   the fallback is the authored time from the slide's entrance. */
.slide.is-current .funnel-link { animation: deck-fade .7s both; animation-delay: calc(var(--i) * .2s + var(--highlight-delay, 2.2s)); }

/* A narrated build waits, hidden in its delay phase, until the voice reaches the
   phrase it illustrates (viewer.js `holdStory`); releasing it resumes the same
   animation, so the entrance itself is unchanged. */
.slide [data-beat-held], .slide [data-beat-held] *, .slide [data-beat-held]::before, .slide [data-beat-held]::after, .slide [data-beat-held] *::before, .slide [data-beat-held] *::after { animation-play-state: paused !important; }

/* Daily loop: each step lights up in turn */
.slide.is-current .loop-step[data-motion] {
  animation: deck-rise .7s var(--deck-ease-out) both var(--delay),
             deck-cycle calc(var(--n) * 1.6s) ease-in-out calc(3s + var(--i) * 1.6s) 2;
}
.slide.is-current .gtm-operating-map > .loop-step[data-motion] { animation: deck-rise .7s var(--deck-ease-out) both var(--delay); }
.slide.is-current .gtm-operating-map > .loop-step[data-story-step] { animation: deck-story-reveal .95s var(--deck-ease-out) both var(--story-delay, 450ms); }
.slide.is-current .gtm-feedback-path { animation: deck-feedback-return 1.4s var(--deck-ease-out) both var(--highlight-delay, 2.1s); }
@keyframes deck-feedback-return { from { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; } }

@keyframes deck-story-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes deck-funnel-stage { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes deck-manual-copy { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(152px); } }
@keyframes deck-manual-clock { from { transform: rotate(0deg); } to { transform: rotate(315deg); } }
@keyframes deck-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes deck-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes deck-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes deck-land { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes deck-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes deck-pulse { 0% { opacity: 0; transform: scale(.35); } 20% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes deck-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes deck-bar-center { from { opacity: 0; transform: scaleX(.05); } to { opacity: 1; transform: scaleX(1); } }
@keyframes deck-compress { 0%, 15% { transform: scaleX(calc(1 / var(--ratio, 1))); } 100% { transform: scaleX(1); } }
@keyframes deck-grow { from { opacity: .3; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes deck-scan { 0% { opacity: 0; transform: none; } 8% { opacity: 1; } 80% { opacity: 1; } 90%, 100% { opacity: 0; transform: translateY(330px); } }
@keyframes deck-flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .55; } }
@keyframes deck-fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes deck-sweep { 0% { opacity: 0; transform: translateX(-100%); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%); } }
@keyframes deck-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
@keyframes deck-enter-next { from { opacity: 0; transform: translateX(6%) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes deck-enter-prev { from { opacity: 0; transform: translateX(-6%) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes deck-leave-next { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-4%) scale(.97); } }
@keyframes deck-leave-prev { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(4%) scale(.97); } }
@keyframes deck-hero-scan { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(300px); opacity: 0; } }
@keyframes deck-hero-row { 0%, 8% { opacity: .25; } 18%, 100% { opacity: 1; } }
@keyframes deck-hero-check { 0%, 10% { opacity: 0; transform: scale(.4); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes deck-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes deck-cycle { 0%, 100% { border-color: var(--deck-line); color: var(--deck-ink-muted); } 6%, 16% { border-color: var(--deck-figure); color: var(--deck-ink); } 24% { border-color: var(--deck-line); color: var(--deck-ink-muted); } }

/* Reduced motion and print show every diagram complete, immediately. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .player::before, .slide-glow { animation: none !important; }
  .slide, .slide [data-motion], .slide [data-motion] path, .slide *, .slide *::before, .slide *::after { animation: none !important; }
  .map-pulse, .doc-scan, .hero-scan { display: none; }
  .doc-field { opacity: .55; }
  .hero-row .tbl-cell, .hero-check rect, .hero-check path { opacity: 1; }
}

/* Print / PDF: one landscape page per slide in the current language. */
@page { size: 1600px 900px; margin: 0; }
@media print {
  body { display: block; min-height: 0; overflow: visible; }
  .player { display: block; padding: 0; overflow: visible; }
  .player::before, .cinema-controls, .cinema-panel, .cinema-captions, .cinema-notice, .cinema-reveal-zone { display: none; }
  .stage-wrap { overflow: visible; }
  .stage { position: static; transform: none; width: var(--deck-stage-w); height: auto; box-shadow: none; }
  .deck { border: 0; border-radius: 0; overflow: visible; }
  .slide [data-motion], .slide [data-motion] path, .slide *, .slide *::before, .slide *::after { animation: none !important; }
  .slide [data-beat-held], .slide [data-beat-held] * { animation: none !important; }
  .map-pulse, .doc-scan, .hero-scan { display: none; }
  .doc-field { opacity: .55; }
  .hero-row .tbl-cell, .hero-check rect, .hero-check path { opacity: 1; }
  .slide {
    position: relative;
    visibility: visible;
    width: var(--deck-stage-w);
    height: var(--deck-stage-h);
    break-after: page;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* No forced break after the last slide: some engines print it as an empty sheet. */
  .deck > .slide:last-child { break-after: auto; }
}

/* Current-player compatibility: keep the consent legible in short windows. */
@media screen and (max-width: 1000px) and (max-height: 500px) {
  .cinema-consent { --deck-type-floor: var(--deck-compact-type-floor); gap: 8px; padding: 12px; }
  .cinema-consent h2 { font-size: var(--deck-type-floor); }
}
@media print { .cinema-consent { display: none !important; } }

/* The real, paused deck remains visible behind the floating film. */
:root { --intro-hud-channel: var(--background); --intro-hud-ink: hsl(var(--intro-hud-channel)); --intro-hud-ground: rgb(var(--hunter-950) / .9); --intro-backdrop: rgb(var(--hunter-950) / .4); --intro-caption-ground: rgb(var(--hunter-950) / .72); }
:root[data-theme="dark"] { --intro-hud-channel: var(--foreground); }
.player[data-phase="introduction"] > :is(.cinema-controls, .cinema-panel, .cinema-consent, .cinema-captions, .cinema-notice, .cinema-reveal-zone) { visibility: hidden; }
.player[data-phase="introduction"] .stage-wrap { pointer-events: none; }
.player[data-phase="introduction"] .slide,
.player[data-phase="introduction"] .slide * { animation-play-state: paused !important; }
.player[data-intro-underlay="true"] .slide.is-current [data-motion] { animation: none !important; opacity: 1 !important; transform: none !important; }
.pitch-introduction { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; isolation: isolate; font-family: var(--deck-font-sans); }
.pitch-introduction:focus { outline: none; }
.pitch-introduction::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(8px); background: var(--intro-backdrop); }
.pitch-introduction-frame { position: relative; width: min(94vw, calc(90dvh * 16 / 9), 1280px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; box-shadow: 0 20px 64px var(--intro-backdrop); color: var(--intro-hud-ink); background: var(--intro-hud-ground); }
.pitch-introduction video { display: block; width: 100%; height: 100%; object-fit: contain; }
.pitch-introduction video::cue { opacity: 0; }
.pitch-introduction-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pitch-introduction button, .pitch-introduction select { min-height: 44px; min-width: 44px; font: inherit; font-size: 16px; color: var(--intro-hud-ink); background: var(--intro-hud-ground); border: 0; border-radius: 6px; cursor: pointer; }
.pitch-introduction button { padding: 8px 12px; }
.pitch-introduction button:hover, .pitch-introduction button[aria-pressed="true"] { background: var(--deck-action); color: var(--deck-on-action); }
.pitch-introduction-skip { position: absolute; top: 12px; left: 12px; z-index: 8; }
.pitch-introduction-skip-compact { display: none; }
.pitch-introduction :focus-visible { outline: 3px solid var(--deck-action); outline-offset: -3px; }
.pitch-introduction-hud { position: absolute; inset: auto 0 0; padding: 8px 12px; background: linear-gradient(transparent, var(--intro-hud-ground)); opacity: 1; transition: opacity 160ms var(--motion-ease-standard); }
.pitch-introduction[data-controls="hidden"] .pitch-introduction-hud { opacity: 0; pointer-events: none; }
.pitch-introduction[data-controls="hidden"] .pitch-introduction-hud:focus-within,
.pitch-introduction[data-controls="hidden"] .pitch-introduction-hud:hover { opacity: 1; pointer-events: auto; }
.pitch-introduction-transport { display: flex; align-items: center; gap: 4px; }
.pitch-introduction-transport button { flex: none; background: none; }
.pitch-introduction-transport [data-intro-icon] { font-size: 22px; }
.pitch-introduction-transport [data-intro-state] { display: block; line-height: 0; }
.pitch-introduction-transport svg { display: block; width: 24px; height: 24px; }
.pitch-introduction-transport [data-intro-icon="captions"] { font-size: 16px; font-weight: 650; }
.pitch-introduction-spacer { flex: 1; }
.pitch-introduction [data-intro-time] { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pitch-introduction input[type="range"] { min-height: 44px; width: 100%; margin: 0; accent-color: var(--deck-action); cursor: pointer; }
.pitch-introduction-caption { position: absolute; left: 6%; right: 6%; bottom: 20px; display: flex; justify-content: center; text-align: center; white-space: pre-line; font-size: 18px; line-height: 1.3; pointer-events: none; }
.pitch-introduction-caption span:not(:empty) { padding: 4px 8px; border-radius: 4px; background: var(--intro-caption-ground); }
.pitch-introduction[data-controls="visible"] .pitch-introduction-caption { bottom: 112px; }
.pitch-introduction-settings { position: absolute; bottom: 108px; right: 12px; z-index: 6; width: min(360px, calc(100% - 24px)); padding: 12px; border-radius: 8px; background: var(--intro-hud-ground); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.pitch-introduction-settings [data-intro-action="close-settings"] { grid-column: 1 / -1; justify-self: end; }
.pitch-introduction-settings label { display: grid; min-width: 0; gap: 4px; font-size: 16px; }
.pitch-introduction-settings label:last-child { grid-column: 1 / -1; }
.pitch-introduction-settings select { width: 100%; padding: 4px 8px; background: var(--intro-caption-ground); }
.pitch-introduction-settings .cinema-field { margin: 0; font-size: 16px; color: var(--intro-hud-ink); }
.pitch-introduction-settings .cinema-field legend { margin-bottom: 4px; }
.pitch-introduction-settings .cinema-choice { min-width: 44px; min-height: 44px; padding: 6px; border: 1px solid var(--cinema-line); border-radius: var(--deck-radius); background: transparent; color: var(--intro-hud-ink); }
.pitch-introduction-settings .cinema-choice:not(:disabled):hover,
.pitch-introduction-settings .cinema-choice[aria-pressed="true"] { background: var(--cinema-hover); border-color: var(--deck-action); color: var(--intro-hud-ink); }
.pitch-introduction-error { position: absolute; inset: auto 12px 108px; margin: 0; padding: 8px; background: var(--intro-hud-ground); font-size: 16px; }
.pitch-introduction-frame:fullscreen { width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
.pitch-introduction-frame:fullscreen video { object-fit: contain; }
.cinema-panel[data-panel="settings"] .cinema-intro-replay { width: 100%; justify-content: flex-start; margin-top: 12px; padding: 8px 12px; font-size: 16px; }
.no-js .pitch-introduction { display: none; }
@media screen and (max-height: 500px), screen and (max-width: 480px) and (max-height: 650px) {
  .player .cinema-panel[data-panel="settings"] { bottom: var(--cinema-gap); max-height: calc(100% - 2 * var(--cinema-gap)); padding: 12px; }
  .cinema-panel[data-panel="settings"] .cinema-field { margin-top: 8px; }
  .cinema-panel[data-panel="settings"] .cinema-field legend { margin-bottom: 4px; }
  .cinema-panel[data-panel="settings"] .cinema-choice { padding-top: 6px; padding-bottom: 6px; }
  .cinema-panel[data-panel="settings"] .cinema-intro-replay { margin-top: 8px; }
}
@media screen and (max-width: 540px) {
  .pitch-introduction-hud { padding: 4px 6px; }
  .pitch-introduction-transport { gap: 0; }
  .pitch-introduction-transport button { padding: 8px; }
  .pitch-introduction-caption { font-size: 16px; bottom: 12px; }
  .pitch-introduction[data-controls="visible"] .pitch-introduction-caption { bottom: 106px; }
  .pitch-introduction-settings { bottom: 4px; padding: 8px; gap: 4px 8px; }
  .pitch-introduction-settings label:not(:last-child) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pitch-introduction-settings label:last-child { display: flex; align-items: center; gap: 8px; }
  .pitch-introduction-settings input[type="range"] { min-width: 0; }
  .pitch-introduction-skip { top: 0; left: 6px; max-width: calc(100% - 12px); }
  .pitch-introduction-settings { top: 8px; bottom: auto; left: 8px; right: auto; width: calc(100% - 112px); max-height: calc(100% - 16px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 56px; grid-template-columns: 1fr; }
  .pitch-introduction-settings [data-intro-action="close-settings"] { position: sticky; top: 0; z-index: 2; width: 100%; text-align: right; background: var(--intro-hud-ground); }
  .pitch-introduction[data-menu="open"] .pitch-introduction-skip { top: 8px; bottom: auto; left: auto; right: 6px; max-width: 84px; }
  .pitch-introduction[data-menu="open"] .pitch-introduction-skip-full { display: none; }
  .pitch-introduction[data-menu="open"] .pitch-introduction-skip-compact { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .pitch-introduction-hud { transition: none; } }
@media screen and (max-width: 390px) {
  .pitch-introduction-frame { width: min(96vw, calc(90dvh * 16 / 9)); }
  .pitch-introduction-skip { top: auto; bottom: 4px; left: 56px; max-width: 84px; }
  .pitch-introduction-skip-full, .pitch-introduction [data-intro-time], .pitch-introduction [data-intro-action="fullscreen"] { display: none; }
  .pitch-introduction-skip-compact { display: inline; }
  .pitch-introduction-spacer { min-width: 84px; }
  .pitch-introduction-hud > input { display: block; }
  .pitch-introduction-transport button { height: 44px; }
  .pitch-introduction-transport [data-intro-icon] { line-height: 1; }
  .pitch-introduction-caption { bottom: 56px; }
  .pitch-introduction[data-controls="visible"] .pitch-introduction-caption { bottom: 100px; }
}
.pitch-introduction[data-caption-placement="top"] .pitch-introduction-caption { top: 4%; bottom: auto; left: 20%; right: 20%; }
@media screen and (max-width: 540px), screen and (max-height: 650px) {
  .pitch-introduction[data-caption-placement="top"] .pitch-introduction-caption { top: 1%; left: 54%; right: 6%; }
}
@media screen and (max-width: 540px) {
  .pitch-introduction[data-caption-placement="top"] .pitch-introduction-caption { font-size: var(--cinema-min-text-size); line-height: 1.2; }
  .pitch-introduction[data-caption-placement="top"] .pitch-introduction-caption span:not(:empty) { padding: 3px 6px; }
}
@media screen and (max-width: 390px) {
  .pitch-introduction[data-caption-placement="top"] .pitch-introduction-caption { left: 6%; right: 6%; font-size: 16px; }
}
@media print { .pitch-introduction { display: none !important; } .player[data-phase="introduction"] > :is(.cinema-controls, .cinema-panel, .cinema-consent, .cinema-captions, .cinema-reveal-zone) { visibility: visible; } }
