/* ==========================================================================
   COLE · Videographer & Editor
   Design language: camera viewfinder + broadcast graphics + edit timeline.
   Colours, fonts and spacing are all tokens below, so you can restyle from here.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #0b0b0c;          /* page background */
  --ink-2: #111113;        /* alternate section background */
  --ink-3: #18181b;        /* cards / placeholders */
  --ink-4: #232328;
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.2);
  --paper: #f2efe8;        /* main text */
  --paper-2: #cfcbc2;      /* secondary text */
  --mute: #8f8f97;         /* labels */
  --rec: #ff3b2f;          /* the "REC" red accent. Use dark text on it */

  /* Type */
  --font-sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1480px;
  --header-h: 4.5rem;
  --radius: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --intro-delay: 0.15s;

  /* Viewfinder corner brackets, reused on media hover + placeholders */
  --cl: 18px;
  --cw: 2px;
  --corners:
    linear-gradient(currentColor 0 0) top left / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) top left / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) top right / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) top right / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) bottom left / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) bottom left / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) bottom right / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) bottom right / var(--cw) var(--cl);

  color-scheme: dark;
}

.show-leader { --intro-delay: 2.15s; }

@media (max-width: 640px) {
  :root { --header-h: 4rem; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
table { border-collapse: collapse; }

::selection { background: var(--rec); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }

.is-menu-open { overflow: hidden; }

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 400;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.8125rem/1 var(--font-mono);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small uppercase mono labels: the "camera readout" voice */
.label,
.chapter__meta,
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Big condensed display type */
.hero__title,
.chapter__title,
.contact__title,
.wrap,
.scene__title,
.stat__value,
.suite__big,
.leader__nums,
.ticker__group span,
.cta-band__title,
.chapter-nav__title {
  font-family: var(--font-sans);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

/* Letterboxed 2.39:1 frames: scale the bars out of a clipped box */
.lb { scale: 1.36; }
/* Frames with a caption burned into the bottom corner: zoom it out of view */
.crop-low { scale: 1.14; transform-origin: 50% 18%; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.6875rem; }
.btn--rec { background: var(--rec); color: var(--ink); font-weight: 700; }
.btn--rec:hover { background: var(--paper); }
.btn--ghost { border-color: var(--line-2); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgb(255 255 255 / 0.06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-2);
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s, gap 0.3s var(--ease-out);
}
.link-arrow::after { content: "↗"; color: var(--rec); font-size: 1.1em; }
.link-arrow--up::after { content: "↑"; }
.link-arrow--down::after { content: "↓"; }
.link-arrow:hover { border-color: var(--rec); gap: 0.9rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.icon-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn:hover:not(:disabled) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

.tag {
  display: inline-block;
  padding: 0.35em 0.6em;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 0.6875rem;
  color: var(--rec);
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 1.8s ease-out infinite;
}

.play-badge {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: clamp(3.5rem, 6vw, 5rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background: rgb(11 11 12 / 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.play-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28%; height: 32%;
  translate: 10% 0;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ==========================================================================
   Film-leader countdown
   ========================================================================== */

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.leader { display: none; }

.show-leader .leader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2rem;
  background: #0f0f10;
  color: var(--paper);
  cursor: pointer;
  animation: leader-out 0.6s var(--ease-in-out) 1.85s forwards;
}

.leader__dial {
  position: relative;
  width: min(58vmin, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #19191c;
}

.leader__sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(rgb(255 255 255 / 0.13) var(--sweep), transparent 0);
  animation: leader-sweep 0.6s linear 3;
}
.leader__sweep::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 2px; height: 50%;
  background: var(--paper);
  transform-origin: 50% 100%;
  animation: leader-hand 0.6s linear 3;
}

.leader__ring {
  position: absolute;
  inset: 6%;
  border: 2px solid rgb(255 255 255 / 0.75);
  border-radius: 50%;
}
.leader__ring--inner { inset: 14%; border-width: 1px; border-color: rgb(255 255 255 / 0.4); }

.leader__cross::before,
.leader__cross::after {
  content: "";
  position: absolute;
  background: rgb(255 255 255 / 0.35);
}
.leader__cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.leader__cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.leader__nums b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: min(36vmin, 13rem);
  opacity: 0;
  animation: leader-num 0.6s linear both;
}
.leader__nums b:nth-child(2) { animation-delay: 0.6s; }
.leader__nums b:nth-child(3) { animation-delay: 1.2s; }

.leader__slate {
  display: flex;
  gap: 2rem;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

@keyframes leader-sweep { to { --sweep: 360deg; } }
@keyframes leader-hand { to { transform: rotate(360deg); } }
@keyframes leader-num {
  0% { opacity: 0; }
  1%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes leader-out {
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}

/* ==========================================================================
   Overlays: progress bar, film grain, cursor label
   ========================================================================== */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 160;
  height: 2px;
  background: var(--rec);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -150px;
  z-index: 150;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.2 0 0 0 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-60px, 40px); }
  50% { transform: translate(50px, -70px); }
  75% { transform: translate(-30px, 90px); }
  100% { transform: translate(0, 0); }
}

.cursor { display: none; }

.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 170;
  pointer-events: none;
}

.cursor__label {
  position: absolute;
  display: grid;
  place-items: center;
  width: 5.5rem; height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  border-radius: 50%;
  background: var(--rec);
  color: var(--ink);
  font: 700 0.75rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}
.cursor.is-active .cursor__label { transform: scale(1); }
.has-cursor a[data-cursor][href],
.has-cursor button[data-cursor] { cursor: none; }
/* The cursor label takes over from the play badge on hover */
.has-cursor a[data-cursor][href]:hover .play-badge { opacity: 0; transform: scale(0.6); }

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out);
}
/* Background lives on a pseudo-element so the header never becomes a
   containing block for the fixed mobile menu inside it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(11 11 12 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.is-menu-open .site-header { transform: none; }
.is-menu-open .site-header::before { opacity: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  text-decoration: none;
}
.brand__dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.4s steps(1) infinite;
}
.brand__name {
  font-weight: 800;
  font-stretch: 62%;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand__role {
  padding-left: 0.7rem;
  border-left: 1px solid var(--line-2);
  font: 500 0.5625rem/1.3 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-nav__list { display: flex; gap: 0.15rem; }
.site-nav__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font: 500 0.71875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-2);
  transition: color 0.2s, background-color 0.2s;
}
.site-nav__list a:hover { color: var(--paper); background: rgb(255 255 255 / 0.07); }
.site-nav__num { color: var(--rec); font-size: 0.625rem; }
.site-nav__contact,
.site-nav__foot { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 0.6rem; }

.rec-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 700 0.65rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.3s, background-color 0.3s;
}
.rec-toggle:hover { border-color: var(--paper); }
.rec-toggle__dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.4s steps(1) infinite;
}
.rec-toggle__off { display: none; }
.rec-toggle[aria-pressed="true"] .rec-toggle__on { display: none; }
.rec-toggle[aria-pressed="true"] .rec-toggle__off { display: inline; }
.rec-toggle[aria-pressed="true"] .rec-toggle__dot { border-radius: 1px; background: var(--mute); animation: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 16px; height: 8px; }
.menu-toggle__icon i {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 6.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i { top: 3.25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: rotate(-45deg); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
}

@media (max-width: 1099.98px) {
  .site-header__cta { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    background:
      radial-gradient(90% 60% at 100% 100%, rgb(255 59 47 / 0.14), transparent 60%),
      var(--ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  }
  .is-menu-open .site-nav {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.5rem 0;
    border-radius: 0;
    font: 800 clamp(2.4rem, 10.5vw, 4.75rem)/1 var(--font-sans);
    font-stretch: 62%;
    letter-spacing: 0;
    color: var(--paper);
  }
  .site-nav__list a:hover { background: none; color: var(--rec); }
  .site-nav__num { padding-top: 0.45rem; font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.14em; }
  .site-nav__contact { display: block; }
  .site-nav__foot {
    display: block;
    margin-top: 2rem;
    font: 500 0.6875rem/1.4 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
  }
}

@media (max-width: 420px) {
  .brand__role { display: none; }
  .rec-toggle { padding: 0 0.8rem; }
  .rec-toggle__on, .rec-toggle__off { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 9rem) 0 clamp(5.5rem, 12vh, 8rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #000;
  overflow: hidden;
}
.hero__stills img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__stills img {
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 1.6s ease, transform 9s linear;
}
.hero__stills img.is-active { opacity: 1; transform: scale(1.02); }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .hero__video { opacity: 1; }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(11 11 12 / 0.6) 0%, rgb(11 11 12 / 0.1) 28%, rgb(11 11 12 / 0.3) 58%, rgb(11 11 12 / 0.96) 100%),
    radial-gradient(110% 70% at 15% 100%, rgb(11 11 12 / 0.75), transparent 65%);
}

/* Viewfinder overlay */
.viewfinder {
  --vf-x: clamp(0.75rem, 2.2vw, 2rem);
  position: absolute;
  top: calc(var(--header-h) + 0.25rem);
  right: var(--vf-x);
  bottom: var(--vf-x);
  left: var(--vf-x);
  z-index: -1;
  pointer-events: none;
  color: rgb(255 255 255 / 0.88);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fade-in 1.4s ease both;
  animation-delay: var(--intro-delay);
}
.vf-corner {
  position: absolute;
  width: clamp(18px, 2.6vw, 34px);
  aspect-ratio: 1;
  border: 0 solid currentColor;
}
.vf-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-cross {
  position: absolute;
  left: 50%; top: 42%;
  width: 26px; height: 26px;
  translate: -50% -50%;
  opacity: 0.55;
}
.vf-cross::before,
.vf-cross::after { content: ""; position: absolute; background: currentColor; }
.vf-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.vf-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.vf-row {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  padding-inline: clamp(1.75rem, 4vw, 3.5rem);
}
.vf-row--top { top: clamp(0.7rem, 1.4vw, 1.1rem); }
.vf-row--bottom { bottom: clamp(0.7rem, 1.4vw, 1.1rem); }
.vf-gap { flex: 1; }
.vf-rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--paper); font-weight: 700; }
.vf-rec b {
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.4s steps(1) infinite;
}
.vf-tc { font-variant-numeric: tabular-nums; }
.vf-batt {
  position: relative;
  width: 1.6rem; height: 0.8rem;
  padding: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.vf-batt::after {
  content: "";
  position: absolute;
  right: -4px; top: 50%;
  width: 2px; height: 5px;
  translate: 0 -50%;
  background: currentColor;
}
.vf-batt b { display: block; width: 72%; height: 100%; background: currentColor; }
.vf-meter { display: inline-flex; flex-direction: column; gap: 3px; }
.vf-meter b {
  display: block;
  width: 4.5rem; height: 3px;
  background: linear-gradient(90deg, #3ddc84 0 62%, #ffd23f 62% 82%, var(--rec) 82%);
  clip-path: inset(0 55% 0 0);
  animation: meter 0.7s steps(5) infinite alternate;
}
.vf-meter b:last-child { animation-duration: 0.9s; animation-delay: -0.3s; }

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: calc(var(--gutter) + clamp(0rem, 1.6vw, 1.25rem));
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  animation: fade-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.1s);
}

.hero__title {
  font-size: clamp(3.75rem, 13.2vw, 14rem);
  line-height: 0.84;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.05em 0;
  margin-bottom: -0.05em;
}
.hero__title .line > span {
  display: block;
  animation: rise 1.2s var(--ease-out) both;
  animation-delay: var(--intro-delay);
}
.hero__title .line:nth-child(2) > span { animation-delay: calc(var(--intro-delay) + 0.12s); }
.hero__title .accent { color: var(--rec); }

.hero__foot {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  animation: fade-up 1s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.45s);
}
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 33rem) auto; align-items: end; gap: 3rem; }
}
.hero__lede {
  max-width: 33rem;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--paper-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Spinning "Play the reel" button */
.reel {
  position: absolute;
  right: calc(var(--gutter) + clamp(0.5rem, 2vw, 2rem));
  top: calc(var(--header-h) + clamp(3.5rem, 12vh, 9rem));
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(7rem, 11vw, 10.5rem);
  aspect-ratio: 1;
  color: var(--paper);
  text-decoration: none;
  animation: pop-in 1s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.6s);
}
.reel__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  animation: spin 16s linear infinite;
}
.reel__ring text {
  fill: currentColor;
  font: 700 13px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.reel__btn {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rec);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.reel__btn svg { width: 38%; margin-left: 8%; fill: currentColor; }
.reel:hover .reel__btn { transform: scale(1.12); background: var(--paper); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 3vw, 2.4rem);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-2);
}
.hero__scroll i {
  width: 1px; height: 2.25rem;
  background: linear-gradient(var(--paper) 50%, transparent 0) 0 0 / 100% 200%;
  animation: scroll-line 1.8s var(--ease-in-out) infinite;
}

@media (max-width: 640px) {
  .vf-hide-sm,
  .vf-cross { display: none; }
  .hero { padding-top: calc(var(--header-h) + 11rem); }
  .reel { width: 6.5rem; right: calc(var(--gutter) + 0.5rem); top: calc(var(--header-h) + 3.25rem); }
  .reel__ring text { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
}

@media (max-height: 640px) and (min-width: 641px) {
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .reel, .hero__scroll { display: none; }
}

/* ==========================================================================
   Ticker bands
   ========================================================================== */

.tickers {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  padding: 1rem 0 clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
}
.ticker {
  width: 104%;
  margin-left: -2%;
  padding: clamp(0.7rem, 1.4vw, 1rem) 0;
  overflow: hidden;
  transform: rotate(-2deg);
}
.ticker--rec { background: var(--rec); color: var(--ink); }
.ticker--paper {
  margin-top: -0.4rem;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(1.4deg);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 40s) linear infinite;
}
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; }
.ticker__group span {
  padding-inline: clamp(0.9rem, 1.8vw, 1.6rem);
  font-size: clamp(1.75rem, 4.2vw, 3.6rem);
  line-height: 1;
  white-space: nowrap;
}
.ticker__group i {
  flex: none;
  width: clamp(0.55rem, 1vw, 0.85rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}
.ticker--paper .ticker__group i { background: var(--rec); }

/* ==========================================================================
   Intro + scene selection
   ========================================================================== */

.intro { padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }

.intro__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .intro__grid { grid-template-columns: minmax(11rem, 1fr) 3.2fr; gap: 4rem; }
}

.portrait { position: relative; max-width: 20rem; margin-top: 1.5rem; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.portrait figcaption { margin-top: 0.75rem; }
.js .portrait:not(.is-loaded) { display: none; }

.intro__statement {
  font-size: clamp(1.65rem, 1.05rem + 2.5vw, 3.5rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.intro__statement em { font-style: normal; color: var(--rec); }
.intro__statement .w { transition: opacity 0.35s ease; }
.js .intro__statement .w { opacity: 0.16; }
.js .intro__statement .w.is-lit { opacity: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.75rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 1.75rem 1.25rem; border-bottom: 0; }
  .stat:first-child { padding-left: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
}
.stat__value { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.9; }
.stat__label {
  font: 500 0.71875rem/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.scenes { margin-top: clamp(4rem, 9vw, 8rem); }
.scenes__list { margin-top: 1.25rem; border-top: 1px solid var(--line); }

.scene {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.scene__num {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 0.6rem;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--rec);
}
.scene__title {
  font-size: clamp(2.4rem, 7.4vw, 6.75rem);
  transition: color 0.3s, transform 0.6s var(--ease-out);
}
.scene__tags {
  grid-column: 2;
  font: 500 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.scene__arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.scene__arrow svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.scene__thumb { display: none; }
.scene:hover .scene__arrow,
.scene:focus-visible .scene__arrow { background: var(--rec); border-color: var(--rec); color: var(--ink); transform: rotate(-45deg); }

@media (min-width: 960px) {
  .scene { grid-template-columns: 4.5rem auto auto minmax(0, 1fr) auto; gap: 2rem; padding: 1.6rem 0; }
  .scene__num, .scene__tags, .scene__arrow { grid-row: auto; grid-column: auto; }
  .scene__num { align-self: center; padding: 0; }
  .scene__tags { justify-self: end; text-align: right; }
  .scene__thumb {
    display: block;
    width: 0;
    height: clamp(4rem, 5.6vw, 5.5rem);
    overflow: hidden;
    border-radius: var(--radius);
    transition: width 0.7s var(--ease-out);
  }
  .scene__thumb img { width: clamp(7rem, 10vw, 10rem); max-width: none; height: 100%; object-fit: cover; }
  .scene:hover .scene__thumb,
  .scene:focus-visible .scene__thumb { width: clamp(7rem, 10vw, 10rem); }
  .scene:hover .scene__title { transform: translateX(0.4rem); }
}

/* ==========================================================================
   Chapters (section headers)
   ========================================================================== */

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 11vw, 10rem) 0;
}
.section--alt { background: var(--ink-2); }

.chapter { position: relative; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.chapter::before {
  content: attr(data-num);
  position: absolute;
  top: -0.2em;
  right: -0.03em;
  z-index: -1;
  font: 800 clamp(9rem, 28vw, 26rem)/0.8 var(--font-sans);
  font-stretch: 62%;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.07);
  pointer-events: none;
  user-select: none;
}

.chapter__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--paper-2);
}
.chapter__num { color: var(--rec); }
.chapter__rule { width: clamp(2rem, 7vw, 6.5rem); height: 1px; background: var(--line-2); }
.chapter__clip { margin-left: auto; color: var(--mute); }

.chapter__title { font-size: clamp(3rem, 9.6vw, 9.25rem); }
.chapter__title > span { display: block; }
.chapter__title .accent {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.14vw, 2px) var(--paper);
}

.chapter__intro {
  max-width: 40rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--paper-2);
}

@media (min-width: 1100px) {
  .chapter { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; column-gap: 4rem; align-items: end; }
  .chapter__meta { grid-column: 1 / -1; }
  .chapter__intro { margin: 0 0 0.5rem; }
}

/* ==========================================================================
   01 · Films
   ========================================================================== */

.films { display: grid; gap: clamp(4rem, 8vw, 7.5rem); }

.film { display: grid; gap: 1.75rem; }
@media (min-width: 1000px) {
  .film { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  .film--flip .film__media { order: 2; }
}

.film__media {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
  color: var(--paper);
}
.film__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.film__media::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 1.6vw, 1.25rem);
  z-index: 2;
  background: var(--corners);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s, transform 0.7s var(--ease-out);
  pointer-events: none;
}
.film__media:hover img { transform: scale(1.04); }
.film__media:hover::before,
.film__media:focus-visible::before { opacity: 1; transform: none; }
.film__media:hover .play-badge { transform: scale(1.12); background: var(--rec); border-color: var(--rec); }
.film__media:hover .play-badge::after { background: var(--ink); }

.score-bug {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 1.25rem;
  font: 700 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.score-bug > * { display: grid; place-items: center; padding: 0.55em 0.75em; }
.score-bug b { background: var(--paper); color: var(--ink); }
.score-bug span { background: var(--ink-4); color: var(--paper); }
.score-bug em { font-style: normal; background: var(--rec); color: var(--ink); }

.film__series { display: flex; align-items: center; gap: 0.75rem; color: var(--paper-2); }
.film__series .tag { margin: 0; }
.film__title {
  margin-top: 1rem;
  font: 800 clamp(2rem, 3.5vw, 3.4rem)/0.92 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.film__desc { max-width: 34rem; margin-top: 1.1rem; color: var(--paper-2); }

.film__credits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  font: 500 0.71875rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.film__credits div { display: contents; }
.film__credits dt { color: var(--mute); }

.film__stills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5rem; margin-top: 1.25rem; }
.film__stills span { aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 2px; background: var(--ink-3); }
.film__stills img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }

.film .link-arrow { margin-top: 1.5rem; }

/* ==========================================================================
   02 · Live match — multi-cam switcher + matchday flow
   ========================================================================== */

.multicam {
  display: grid;
  gap: 0.75rem;
  padding: clamp(0.6rem, 1.2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #060607;
}
.multicam__pgm { position: relative; align-self: start; }
.multicam__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
}
.multicam__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rec);
  border-radius: 3px;
  pointer-events: none;
}
.multicam__screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.multicam__screen img.is-live { visibility: visible; }

.multicam__hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75));
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.tally { padding: 0.35rem 0.5rem; background: var(--rec); color: var(--ink); font-weight: 700; }
.multicam__tc { margin-left: auto; font-variant-numeric: tabular-nums; }
[data-pgm-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .multicam__hud { gap: 0.5rem; padding: 1.75rem 0.6rem 0.6rem; font-size: 0.5625rem; letter-spacing: 0.1em; }
}

.multicam__angles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }

.angle { display: grid; gap: 0.4rem; text-align: left; }
.angle__screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
}
.angle__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 2px;
}
.angle__screen img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.angle:hover .angle__screen img,
.angle.is-live .angle__screen img { opacity: 1; }
.angle:hover .angle__screen::after { border-color: var(--line-2); }
.angle.is-live .angle__screen::after { border-color: var(--rec); }
.angle__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.angle__label b {
  display: grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  background: var(--ink-4);
  color: var(--paper);
  font-weight: 700;
}
.angle.is-live .angle__label { color: var(--paper); }
.angle.is-live .angle__label b { background: var(--rec); color: var(--ink); }
@media (max-width: 999.98px) {
  .angle__label { gap: 0; font-size: 0; }
  .angle__label b { font-size: 0.625rem; }
}

/* Side-by-side on wide screens: the angle stack takes its height from the PGM screen */
@media (min-width: 1000px) {
  .multicam { grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr); gap: 1rem; }
  .multicam__angles {
    contain: size;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .angle { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .angle__screen { aspect-ratio: auto; height: 100%; }
}

.multicam__hint { grid-column: 1 / -1; text-align: right; font-size: 0.65rem; }

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-2);
}
.flow__step { position: relative; padding: 1.75rem 1.5rem 1.75rem 0; }
.flow__step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 2.5rem; height: 3px;
  background: var(--paper);
}
.flow__time {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-2);
  font: 700 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.flow__time--live { background: var(--rec); border-color: var(--rec); color: var(--ink); }
.flow__title {
  margin-top: 1rem;
  font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.flow__step p { margin-top: 0.6rem; font-size: 0.975rem; color: var(--paper-2); }

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}
.callout__kicker { grid-column: 1; }
.callout__title {
  grid-column: 1;
  font: 800 clamp(1.75rem, 4vw, 3.25rem)/0.95 var(--font-sans);
  font-stretch: 66%;
  text-transform: uppercase;
}
.callout__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: clamp(3rem, 5vw, 4.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rec);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}
.callout__arrow svg { width: 40%; fill: none; stroke: currentColor; stroke-width: 2; }
.callout:hover { background: rgb(255 255 255 / 0.03); border-color: var(--paper); }
.callout:hover .callout__arrow { transform: rotate(45deg); }

.callouts { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.callouts .callout { margin-top: 0; }

/* The red "go deeper" card that links to a sub-page */
.callout--primary { border-color: var(--rec); background: var(--rec); color: var(--ink); }
.callout--primary .callout__kicker { color: var(--ink); opacity: 0.75; }
.callout--primary .callout__arrow { background: var(--ink); color: var(--paper); }
.callout--primary:hover { border-color: var(--paper); background: var(--paper); }
.callout--primary:hover .callout__arrow { transform: translateX(0.35rem); }

/* ==========================================================================
   Placeholders for artwork you haven't added yet
   (shown automatically when an image file is missing)
   ========================================================================== */

[data-slot].is-missing {
  --i: 0.75rem; /* corner inset */
  color: rgb(255 255 255 / 0.4);
  background:
    linear-gradient(currentColor 0 0) left var(--i) top var(--i) / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) left var(--i) top var(--i) / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) right var(--i) top var(--i) / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) right var(--i) top var(--i) / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) left var(--i) bottom var(--i) / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) left var(--i) bottom var(--i) / var(--cw) var(--cl),
    linear-gradient(currentColor 0 0) right var(--i) bottom var(--i) / var(--cl) var(--cw),
    linear-gradient(currentColor 0 0) right var(--i) bottom var(--i) / var(--cw) var(--cl),
    radial-gradient(120% 70% at 50% 115%, rgb(255 59 47 / 0.22), transparent 60%),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 11px),
    var(--ink-3);
  background-repeat: no-repeat;
}
.js [data-slot] img { opacity: 0; transition: opacity 0.5s ease; }
.js [data-slot] img.is-loaded { opacity: 1; }
[data-slot].is-missing img { visibility: hidden; }
[data-slot].is-missing::before {
  content: attr(data-slot);
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: 1.4rem;
  z-index: 1;
  font: 500 0.625rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--mute);
}

/* ==========================================================================
   03 · Shorts rail
   ========================================================================== */

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.rail__nav { display: flex; gap: 0.5rem; }
.rail.is-static .rail__nav { visibility: hidden; }

.rail__track {
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13.5rem, 62vw, 19.5rem);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: 0.25rem var(--pad) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { scroll-snap-align: start; }
.rail__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail__track.is-dragging a { pointer-events: none; }

.short__media {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-3);
  text-decoration: none;
}
.short__media > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.short__media[href]:hover > img { transform: scale(1.04); }
.short__media[href]:hover .play-badge { transform: scale(1.12); background: var(--rec); border-color: var(--rec); }
.short__media[href]:hover .play-badge::after { background: var(--ink); }

.short__poster--grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 3px;
  background: #000;
}
.short__poster--grid span { position: relative; overflow: hidden; }
.short__poster--grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.short__platform {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 2;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
  background: rgb(11 11 12 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

/* "Coming soon" when a short has no link yet */
.short__media:not([href]) .play-badge { display: none; }
.short__media:not([href])::after {
  content: "Coming soon";
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  translate: -50% -50%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(11 11 12 / 0.6);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-2);
}

.short__body { padding-top: 0.9rem; }
.short__title {
  font: 800 1.45rem/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.short__meta {
  margin-top: 0.4rem;
  font: 500 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ==========================================================================
   04 · Graphics wall
   ========================================================================== */

.gfx-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  align-items: start;
}
.gfx-col { display: grid; gap: clamp(0.75rem, 1.6vw, 1.5rem); }

@media (max-width: 899.98px) {
  .gfx-col { display: contents; }
}
@media (min-width: 900px) {
  .gfx-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gfx-col:nth-child(2) { margin-top: clamp(4rem, 9vw, 9rem); }
  .gfx-col:nth-child(3) { margin-top: clamp(1.5rem, 3vw, 3rem); }
}

.gfx__link {
  position: relative;
  display: block;
  aspect-ratio: var(--ar, 4 / 5);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.gfx__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gfx__link[href]:hover img { transform: scale(1.03); }
.gfx figcaption {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
  font: 500 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.gfx figcaption span { color: var(--rec); }

/* ==========================================================================
   05 · Kit
   ========================================================================== */

.kit { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 1000px) {
  .kit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}

.manifest {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--ink-2);
}
.manifest__head {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.manifest__table { width: 100%; }
.manifest__table th,
.manifest__table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.manifest__table thead th {
  padding-block: 0.8rem;
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.manifest__table tbody th {
  font: 800 clamp(1.2rem, 1.8vw, 1.5rem)/1.05 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.manifest__table td:first-child { font: 500 0.75rem/1 var(--font-mono); color: var(--rec); }
.manifest__table td:nth-child(3) { font: 500 0.8125rem/1 var(--font-mono); white-space: nowrap; }
.manifest__table td:last-child { color: var(--paper-2); font-size: 0.95rem; }
.manifest__table tbody tr:last-child > * { border-bottom: 0; }
.manifest__table tbody tr { transition: background-color 0.2s; }
.manifest__table tbody tr:hover { background: rgb(255 255 255 / 0.035); }

@media (max-width: 640px) {
  .manifest__table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .manifest__table tr {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .manifest__table tbody tr:last-child { border-bottom: 0; }
  .manifest__table th,
  .manifest__table td { padding: 0; border: 0; }
  .manifest__table td:last-child { grid-column: 2 / -1; }
}

.suite { display: grid; gap: 1rem; }
.suite__item {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  transition: border-color 0.3s;
}
.suite__item:hover { border-color: var(--line-2); }
.suite__big { font-size: clamp(3.6rem, 5.5vw, 4.75rem); line-height: 0.8; color: var(--rec); }
.suite__big sup { position: relative; top: 0.05em; font-size: 0.45em; vertical-align: top; }
.suite__name {
  font: 800 1.6rem/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.suite__level {
  margin-top: 0.45rem;
  font: 500 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rec);
}
.suite__item p:last-child { margin-top: 0.6rem; font-size: 0.95rem; color: var(--paper-2); }

/* ==========================================================================
   06 · Journey — the edit timeline
   ========================================================================== */

.journey {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) 0;
}
.journey.is-pinned { height: 280vh; padding: 0; }
.journey.is-pinned .journey__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--header-h) + 0.5rem) 0 1.5rem;
  overflow: hidden;
}
.journey__pin > .container { width: 100%; }

.chapter--compact { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.chapter--compact .chapter__title { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.chapter--compact::before { font-size: clamp(8rem, 20vw, 18rem); }

.nle {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #0e0e10;
  font-family: var(--font-mono);
}
.nle__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.45rem 0.4rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.nle__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nle__steps { display: inline-flex; gap: 0.35rem; }
.nle__step {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--paper);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.nle__step svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.2; }
.nle__step:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.nle__step[aria-disabled="true"] { opacity: 0.35; }
@media (max-width: 640px) {
  .nle__fps { display: none; }
}
.nle__bar b {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--rec);
  vertical-align: 0.05em;
}
.nle__body { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); }
.nle__heads,
.nle__lanes { display: grid; grid-template-rows: 1.9rem repeat(4, clamp(2.4rem, 4.2vw, 2.9rem)); }
.nle__heads { border-right: 1px solid var(--line); background: var(--ink-2); }
.nle__heads span {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.nle__heads span:last-child,
.nle__track:last-of-type { border-bottom: 0; }
.nle__lanes {
  position: relative;
  margin-right: 0.5rem;
  cursor: ew-resize;
  touch-action: pan-y; /* sideways drags scrub; up/down swipes still scroll the page */
  -webkit-user-select: none;
  user-select: none;
}
.nle__lanes:focus-visible { outline: 2px solid var(--rec); outline-offset: -2px; }
.nle.is-scrubbing .nle__lanes { cursor: grabbing; }

.nle__ruler {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.2) 0 1px, transparent 1px calc(100% / 36))
    bottom / 100% 5px no-repeat;
}
.nle__ruler span {
  position: absolute;
  top: 0.45rem;
  left: calc((var(--s) - var(--t0)) / (var(--t1) - var(--t0)) * 100%);
  padding-left: 0.3rem;
  border-left: 1px solid var(--line-2);
  font-size: 0.5625rem;
  line-height: 1;
  color: var(--mute);
}

.nle__track { position: relative; border-bottom: 1px solid var(--line); }

.clip {
  position: absolute;
  top: 0.3rem; bottom: 0.3rem;
  left: calc((var(--s) - var(--t0)) / (var(--t1) - var(--t0)) * 100%);
  width: calc((var(--e) - var(--s)) / (var(--t1) - var(--t0)) * 100%);
  display: flex;
  align-items: center;
  padding: 0 0.55rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 3px;
  background: #283245;
  color: var(--paper);
  font-size: clamp(0.5rem, 0.9vw, 0.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.clip--tool { background: #362f48; }
.clip--live { background: #5b1f1b; }
.clip.is-active { border-color: var(--paper); background: #3a4a66; }
.clip--tool.is-active { background: #4b4166; }
.clip--live.is-active { background: var(--rec); color: var(--ink); border-color: var(--rec); }

.nle__track--audio .wave {
  position: absolute;
  inset: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 1px;
}
.wave i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 1px;
  background: #2f5b46;
}

.nle__playhead {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--p, 0) * 100%);
  z-index: 3;
  pointer-events: none;
}
.nle__playhead::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--rec);
  box-shadow: 0 0 12px rgb(255 59 47 / 0.6);
}
/* The playhead's grab handle: the date with arrows either side, so it reads as draggable */
.nle__handle {
  position: absolute;
  top: 0.2rem;
  left: 0;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 3px;
  background: var(--rec);
  color: var(--ink);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.45);
}
.nle__handle::before,
.nle__handle::after {
  content: "";
  border: 0.25rem solid transparent;
}
.nle__handle::before { border-left-width: 0; border-right-color: currentColor; }
.nle__handle::after { border-right-width: 0; border-left-color: currentColor; }
.nle.is-hinting .nle__handle { animation: nudge 1.5s var(--ease-in-out) infinite, pulse 1.5s ease-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-6px); }
  70% { transform: translateX(6px); }
}

.nle__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font: 500 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.nle__hint::before { content: ""; flex: none; width: 1.5rem; height: 1px; background: var(--rec); }
.nle__hint-touch { display: none; }
@media (hover: none) {
  .nle__hint-touch { display: inline; }
  .nle__hint-mouse { display: none; }
}

.journey__list {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 900px) {
  .journey__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}
.journey__item {
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
  transition: opacity 0.45s ease, border-color 0.45s, transform 0.6s var(--ease-out);
}
.journey__when {
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rec);
}
.journey__title {
  margin-top: 0.65rem;
  font: 800 clamp(1.6rem, 2.3vw, 2.15rem)/0.95 var(--font-sans);
  font-stretch: 66%;
  text-transform: uppercase;
}
.journey__role {
  margin-top: 0.45rem;
  font: 500 0.71875rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.journey__text { margin-top: 0.75rem; font-size: 0.95rem; color: var(--paper-2); }

.journey.is-pinned .journey__item { opacity: 0.3; cursor: pointer; }
.journey.is-pinned .journey__item:hover { opacity: 0.6; }
.journey.is-pinned .journey__item.is-active { opacity: 1; border-color: var(--rec); cursor: default; }

@media (max-width: 899.98px) {
  /* One career entry at a time on small screens while pinned */
  .journey.is-pinned .journey__list { display: grid; }
  .journey.is-pinned .journey__item { grid-area: 1 / 1; opacity: 0; transform: translateY(0.75rem); pointer-events: none; }
  .journey.is-pinned .journey__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
}

.motion-paused .nle.is-hinting .nle__handle { animation: none; }

/* ==========================================================================
   07 · Contact + footer
   ========================================================================== */

.contact {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(70% 55% at 85% 0%, rgb(255 59 47 / 0.12), transparent 70%),
    var(--ink-2);
  overflow: clip;
}
.contact__title {
  display: flex;
  align-items: center;
  font-size: clamp(4.5rem, 19vw, 19rem);
  line-height: 0.8;
}
.contact__title .live-dot { width: 0.14em; height: 0.14em; margin-right: 0.1em; }

.contact__grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: end; }
}
.contact__lede {
  max-width: 30rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--paper-2);
}
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.contact__email {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--rec);
  font: 700 clamp(1.2rem, 0.9rem + 1.4vw, 2.2rem)/1.15 var(--font-sans);
  font-stretch: 80%;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact__email:hover { color: var(--rec); }

.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  column-gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.socials li:has(> a[href="#"]) { display: none; }
.socials a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.3s, padding 0.4s var(--ease-out);
}
.socials span {
  font: 800 1.6rem/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.socials span::after { content: " ↗"; color: var(--rec); font-size: 0.8em; }
.socials small {
  font: 500 0.625rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}
.socials a:hover { color: var(--rec); padding-left: 0.5rem; }

.contact__where { margin-top: 2rem; }

.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; overflow: clip; }
.wrap {
  font-size: clamp(3.4rem, 15.5vw, 17rem);
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.22);
}
.wrap .accent { color: var(--rec); -webkit-text-stroke: 0; }

.site-footer__row {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font: 500 0.6875rem/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
@media (min-width: 900px) {
  .site-footer__row { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .site-footer__row p:nth-child(2) { text-align: center; }
}
.site-footer .link-arrow { justify-self: start; color: var(--paper); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in 0.45s var(--ease-out); }
.lightbox::backdrop {
  background: rgb(5 5 6 / 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__inner { display: grid; gap: 0.9rem; }
.lightbox__frame {
  width: min(92vw, calc((100vh - 9rem) * 16 / 9));
  width: min(92vw, calc((100dvh - 9rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.6);
}
.lightbox.is-vertical .lightbox__frame {
  width: min(92vw, calc((100vh - 9rem) * 9 / 16));
  width: min(92vw, calc((100dvh - 9rem) * 9 / 16));
  aspect-ratio: 9 / 16;
}
.lightbox.is-image .lightbox__frame { width: auto; aspect-ratio: auto; background: transparent; }
.lightbox.is-image .lightbox__frame img {
  width: auto;
  max-width: 92vw;
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
}
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox__title {
  font: 500 0.71875rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.lightbox__close {
  position: fixed;
  top: 1rem; right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(11 11 12 / 0.6);
  font: 500 0.71875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.lightbox__close svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox__close:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   Sub-pages (shared): page hero, breadcrumb, broadcast graphics,
   "on this page" index, call-to-action band, previous/next chapter
   ========================================================================== */

.site-nav__list a[aria-current="page"] { color: var(--paper); background: rgb(255 255 255 / 0.08); }
@media (max-width: 1099.98px) {
  .site-nav__list a[aria-current="page"] { background: none; color: var(--rec); }
}

.hero--page {
  min-height: 88vh;
  min-height: 88svh;
  padding-top: calc(var(--header-h) + 8rem);
}
.hero--page .hero__title { font-size: clamp(3.4rem, 12.4vw, 13rem); }

.breadcrumb {
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
  animation: fade-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.1s);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--mute); }
.breadcrumb a { text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--rec); }
.breadcrumb [aria-current] { color: var(--paper); }

/* Broadcast graphics over a page hero: score bug + camera tag */
.broadcast {
  position: absolute;
  top: calc(var(--header-h) + clamp(0.75rem, 2vw, 1.5rem));
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  z-index: -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
  animation: fade-in 1.2s ease both;
  animation-delay: calc(var(--intro-delay) + 0.3s);
}
.bug {
  display: inline-flex;
  align-items: stretch;
  font: 700 clamp(0.6875rem, 1vw, 0.8125rem)/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.35);
}
.bug > span { display: grid; place-items: center; padding: 0.7em 0.8em; }
.bug__live { grid-auto-flow: column; gap: 0.45em; background: var(--rec); color: var(--ink); }
.bug__live b {
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--ink);
  animation: blink 1.4s steps(1) infinite;
}
.bug__team { min-width: 3.6em; background: var(--paper); color: var(--ink); }
.bug__score { min-width: 3.2em; background: var(--ink); color: var(--paper); }
.bug__clock { min-width: 4.4em; background: rgb(11 11 12 / 0.82); color: var(--paper); font-variant-numeric: tabular-nums; }
.bug.is-ft .bug__clock { color: var(--rec); }
.broadcast__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-2);
  background: rgb(11 11 12 / 0.5);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}

/* TV-style lower third under the page title */
.lower-third {
  display: inline-grid;
  justify-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  animation: fade-up 1s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.45s);
}
.lower-third__main {
  padding: 0.75rem 1.15rem;
  border-left: 0.5rem solid var(--rec);
  background: var(--paper);
  color: var(--ink);
  font: 800 clamp(1.05rem, 0.9rem + 0.9vw, 1.6rem)/1.05 var(--font-sans);
  font-stretch: 75%;
  text-transform: uppercase;
  text-wrap: balance;
}
.lower-third__sub {
  padding: 0.55rem 1.15rem;
  border-left: 0.5rem solid var(--ink-4);
  background: rgb(11 11 12 / 0.88);
  font: 500 0.71875rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}

@media (max-width: 640px) {
  .hero--page { padding-top: calc(var(--header-h) + 7rem); }
  .broadcast__tag { display: none; }
}

/* "On this page" index beside a sub-page intro */
.toc { margin-top: 1.5rem; }
.toc ol { border-top: 1px solid var(--line); }
.toc a {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font: 500 0.71875rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-2);
  transition: color 0.2s, padding 0.3s var(--ease-out);
}
.toc a span { color: var(--rec); }
.toc a:hover { color: var(--paper); padding-left: 0.35rem; }
@media (max-width: 959.98px) {
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
}

.cta-band {
  padding: clamp(5rem, 11vw, 9rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 100% 100%, rgb(255 59 47 / 0.16), transparent 70%),
    var(--ink);
}
.cta-band__inner { display: grid; gap: 2rem; }
@media (min-width: 1000px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}
.cta-band__title { font-size: clamp(3rem, 8.5vw, 8.25rem); }
.cta-band__title > span { display: block; }
.cta-band__title .accent { color: var(--rec); }
.cta-band__side p {
  max-width: 26rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--paper-2);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.chapter-nav { border-top: 1px solid var(--line); }
.chapter-nav__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chapter-nav__link {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  padding: clamp(1.75rem, 4vw, 3rem) 1rem clamp(1.75rem, 4vw, 3rem) 0;
  text-decoration: none;
}
.chapter-nav__link--next {
  justify-items: end;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 3rem) 1rem;
  border-left: 1px solid var(--line);
  text-align: right;
}
.chapter-nav__title {
  display: block;
  font-size: clamp(1.8rem, 5vw, 4.25rem);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.chapter-nav__link:hover .chapter-nav__title { color: var(--rec); transform: translateX(-0.4rem); }
.chapter-nav__link--next:hover .chapter-nav__title { transform: translateX(0.4rem); }

/* ==========================================================================
   Live match page · camera setup map
   ========================================================================== */

.setup { display: grid; gap: 1rem; }
@media (min-width: 1000px) {
  .setup { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
  .cam-view { grid-column: 2; grid-row: 1 / span 2; }
}

.pitch { position: relative; aspect-ratio: 1200 / 820; }
.pitch__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch__surround { fill: #0b0c0d; stroke: var(--line); stroke-width: 2; }
.pitch__grass { fill: #0e1411; }
.pitch__lines { fill: none; stroke: rgb(255 255 255 / 0.34); stroke-width: 2; }
.pitch__spots { fill: rgb(255 255 255 / 0.34); }
.pitch__furniture { fill: none; stroke: rgb(255 255 255 / 0.2); stroke-width: 2; }

/* Each camera's field of view, drawn by main.js from the pin's data attributes */
.fov {
  color: var(--paper);
  opacity: 0.45;
  transform-box: view-box;
  transition: opacity 0.4s, color 0.3s, transform 1.1s var(--ease-out);
}
.fov path,
.fov circle { stroke: currentColor; stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 6 6; }
.fov.is-active { color: var(--rec); opacity: 1; }
.js .pitch:not(.is-in) .fov { transform: scale(0); }
.fov:nth-child(2) { transition-delay: 0s, 0s, 0.12s; }
.fov:nth-child(3) { transition-delay: 0s, 0s, 0.24s; }
.fov:nth-child(4) { transition-delay: 0s, 0s, 0.36s; }

.cam-pin {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(1.6rem, 3vw, 2.4rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 clamp(0.6rem, 1vw, 0.8rem)/1 var(--font-mono);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.4s var(--ease-out);
}
.cam-pin:hover { transform: scale(1.12); }
.cam-pin.is-active { border-color: var(--rec); background: var(--rec); color: var(--ink); }
.cam-pin.is-active::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--rec);
  border-radius: 50%;
  animation: ping 1.8s ease-out infinite;
}
.no-js .cam-pin { display: none; }

.cam-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 640px) {
  .cam-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cam-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink);
  text-align: left;
  transition: border-color 0.25s, background-color 0.25s;
}
.cam-tab b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  font: 700 0.75rem/1 var(--font-mono);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.cam-tab span {
  font: 800 1.05rem/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.cam-tab small {
  font: 500 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.cam-tab:hover { border-color: var(--line-2); }
.cam-tab[aria-selected="true"] { border-color: var(--rec); background: rgb(255 59 47 / 0.08); }
.cam-tab[aria-selected="true"] b { border-color: var(--rec); background: var(--rec); color: var(--ink); }

.cam-view { display: grid; gap: 1.25rem; align-content: start; }
.cam-view__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.cam-view__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rec);
  border-radius: 4px;
  pointer-events: none;
}
.cam-view__screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.cam-view__screen img.is-live { visibility: visible; }
.cam-view__hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 2rem;
  background: linear-gradient(rgb(0 0 0 / 0.7), transparent);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.cam-view__hud [data-cam-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-view__tc { margin-left: auto; font-variant-numeric: tabular-nums; }
.cam-detail__title {
  margin-top: 0.6rem;
  font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/0.95 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.cam-detail p:not(.cam-detail__kicker) { margin-top: 0.75rem; color: var(--paper-2); }
.cam-detail__specs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.cam-detail__specs li {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.cam-detail[hidden] { display: none; }

/* ==========================================================================
   Live match page · matchday run of show
   ========================================================================== */

.ros { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) {
  .ros { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .ros__clock { position: sticky; top: calc(50vh - 8.5rem); }
}

.ros__clock {
  container-type: inline-size;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #070708;
  box-shadow: inset 0 0 60px rgb(255 59 47 / 0.06);
}
.ros__phase {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rec);
}
.ros__time {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 4.75rem);
  font-size: clamp(1.75rem, 13.5cqi, 5.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--paper);
  text-shadow: 0 0 28px rgb(255 255 255 / 0.12);
}
.ros__bar { position: relative; height: 3px; margin-top: 1.5rem; overflow: hidden; background: var(--line); }
.ros__bar span {
  position: absolute;
  inset: 0;
  background: var(--rec);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
}
.ros__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.ros__ticks li { transition: color 0.3s; }
.ros__ticks li.is-active { color: var(--paper); }

.ros__step { padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-top: 1px solid var(--line); transition: opacity 0.45s ease; }
.ros__step:last-child { border-bottom: 1px solid var(--line); }
.ros.is-live .ros__step:not(.is-active) { opacity: 0.32; }
.ros__when {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rec);
}
.ros__when b { color: var(--paper); }
.ros__title {
  margin-top: 0.75rem;
  font: 800 clamp(1.9rem, 3.2vw, 2.9rem)/0.95 var(--font-sans);
  font-stretch: 68%;
  text-transform: uppercase;
}
.ros__step > p:not(.ros__when) { max-width: 34rem; margin-top: 0.8rem; color: var(--paper-2); }
.ros__still { margin-top: 1.25rem; aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.ros__still img { width: 100%; height: 100%; object-fit: cover; }
.ros__step .link-arrow { margin-top: 1.25rem; }

@media (max-width: 999.98px) {
  /* The clock becomes a slim scoreboard that sticks to the top while you read */
  .ros__clock {
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.9rem 1rem;
    background: rgb(7 7 8 / 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .ros__time { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: clamp(1.4rem, 6.5vw, 2.4rem); }
  .ros__bar { margin-top: 0; }
  .ros__ticks { display: none; }
  /* Slide down out of the way whenever the site header is showing */
  .ros__clock { transition: top 0.5s var(--ease-out); }
  body:has(.site-header:not(.is-hidden)) .ros__clock { top: calc(var(--header-h) + 0.5rem); }
}

/* ==========================================================================
   Live match page · edit workflow, drawn like a node graph
   ========================================================================== */

.pipeline { display: grid; gap: 1.6rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1000px) {
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.25rem; }
}
.node { position: relative; border: 1px solid var(--line-2); border-radius: 8px; background: var(--ink); }
.node::before,
.node::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
}
.node::before { top: -0.36rem; left: 50%; translate: -50% 0; background: var(--paper); }   /* input */
.node::after { bottom: -0.36rem; left: 50%; translate: -50% 0; background: var(--rec); }   /* output */
.node__head {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font: 700 0.65rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.node__head span:first-child { color: var(--rec); }
.node__title {
  padding: 1rem 0.9rem 0;
  font: 800 1.55rem/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.node > p:not(.node__head) { padding: 0.5rem 0.9rem 1.1rem; font-size: 0.925rem; color: var(--paper-2); }
.node__wire {
  position: absolute;
  top: 100%;
  left: calc(50% - 1px);
  width: 2px; height: 1.6rem;
  background: linear-gradient(var(--rec), var(--paper));
}
@media (min-width: 1000px) {
  .node::before { top: 50%; left: -0.36rem; translate: 0 -50%; }
  .node::after { top: 50%; bottom: auto; left: auto; right: -0.36rem; translate: 0 -50%; }
  .node__wire {
    top: calc(50% - 1px);
    left: 100%;
    width: 2.25rem; height: 2px;
    background: linear-gradient(90deg, var(--rec), var(--paper));
  }
}

/* ==========================================================================
   Live match page · reframing demo (16:9 → 9:16 / 4:5 / 1:1)
   ========================================================================== */

.reframer { display: grid; gap: 1.25rem; }
.reframer__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.reframer__stage > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reframer__window {
  --w: 0.3164; /* window width as a fraction of the frame (set by main.js) */
  --x: 0.5;    /* window position, 0 = far left, 1 = far right */
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--x) * (100% - var(--w) * 100%));
  width: calc(var(--w) * 100%);
  outline: 2px solid var(--paper);
  outline-offset: -2px;
  box-shadow: 0 0 0 100vmax rgb(5 5 6 / 0.68);
  background:
    linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.28)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.28)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.28)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.28)) 0 66.666% / 100% 1px no-repeat;
  cursor: grab;
  touch-action: pan-y;
  transition: width 0.7s var(--ease-out), left 0.7s var(--ease-out);
}
.reframer.is-panning .reframer__window { transition: width 0.7s var(--ease-out); }
.reframer.is-dragging .reframer__window { cursor: grabbing; transition: none; }
.reframer.is-full .reframer__window { cursor: default; }
.reframer__window:focus-visible { outline-color: var(--rec); }
.reframer__label {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  padding: 0.35rem 0.5rem;
  background: var(--rec);
  color: var(--ink);
  font: 700 0.625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reframer__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.reframer__formats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.format-btn {
  display: grid;
  gap: 0.3rem;
  min-width: 6.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  text-align: left;
  transition: border-color 0.25s, background-color 0.25s;
}
.format-btn b { font: 800 1.45rem/1 var(--font-sans); font-stretch: 70%; transition: color 0.25s; }
.format-btn small {
  font: 500 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.format-btn:hover { border-color: var(--paper); }
.format-btn[aria-checked="true"] { border-color: var(--rec); background: rgb(255 59 47 / 0.1); }
.format-btn[aria-checked="true"] b { color: var(--rec); }
.reframer__hint { font-size: 0.65rem; }
.reframer.is-full .reframer__hint { visibility: hidden; }

@media (max-width: 640px) {
  .format-btn { flex: 1 1 calc(50% - 0.5rem); }
  .reframer__name { display: none; }
}

@keyframes ping {
  from { transform: scale(0.8); opacity: 1; }
  to { transform: scale(1.7); opacity: 0; }
}

/* ==========================================================================
   Documentary page · cinematic hero: 2.39:1 letterbox, sound captions, credits
   ========================================================================== */

/* Black bars crop the hero to cinemascope on landscape screens */
.letterbox { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.letterbox::before,
.letterbox::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: max(0px, calc((100% - 100vw / 2.39) / 2));
  background: #000;
  animation: bars-in 1.2s var(--ease-in-out) both;
  animation-delay: var(--intro-delay);
}
.letterbox::before { top: 0; transform-origin: 50% 0; }
.letterbox::after { bottom: 0; transform-origin: 50% 100%; }
@media (max-aspect-ratio: 4 / 3) {
  .letterbox { display: none; }
  .hero__caption { bottom: 3.25rem !important; } /* no bars to sit in on portrait screens */
}
@keyframes bars-in { from { transform: scaleY(0); } }

/* Film-style subtitles describing the sound, sitting in the bottom bar */
.hero__caption {
  position: absolute;
  left: 50%;
  bottom: max(3.25rem, calc((100% - 100vw / 2.39) / 4));
  z-index: 1;
  translate: -50% 50%;
  max-width: calc(100% - 2 * var(--gutter));
  font: 500 clamp(0.75rem, 0.7rem + 0.3vw, 0.95rem)/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #ffd84d;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
  white-space: nowrap;
  transition: opacity 0.3s ease;
  animation: fade-in 1s ease both;
  animation-delay: calc(var(--intro-delay) + 0.9s);
}
.hero__caption.is-out { opacity: 0; }

/* Opening credits under the title */
.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
  animation: fade-up 1s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + 0.45s);
}
.credits dt {
  font: 500 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.credits dd {
  margin-top: 0.3rem;
  font: 800 clamp(1.4rem, 2.4vw, 2rem)/1 var(--font-sans);
  font-stretch: 70%;
  text-transform: uppercase;
}
.credits div + div { padding-left: clamp(1.5rem, 4vw, 3rem); border-left: 1px solid var(--line-2); }
@media (max-width: 420px) {
  .credits div + div { padding-left: 1.25rem; }
}

/* ==========================================================================
   Documentary page · episode guide
   ========================================================================== */

.series-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line-2);
  font: 500 0.71875rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.series-bar span:first-child { color: var(--rec); }

.episodes__heading { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }

.episode {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.6vw, 1.75rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .episode { grid-template-columns: minmax(13rem, 22rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
}
.episode__media {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.episode__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.episode__media .play-badge { width: clamp(2.75rem, 4vw, 3.5rem); }
.episode__media:hover img { transform: scale(1.05); }
.episode__media:hover .play-badge { transform: scale(1.12); border-color: var(--rec); background: var(--rec); }
.episode__media:hover .play-badge::after { background: var(--ink); }

.episode__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr; /* the big number spans all three without stretching the title row */
  align-items: start;
  column-gap: clamp(1rem, 2vw, 1.75rem);
}
.episode__num {
  grid-row: 1 / -1;
  font: 800 clamp(2.6rem, 5vw, 4.25rem)/0.8 var(--font-sans);
  font-stretch: 62%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.episode:hover .episode__num { color: var(--rec); -webkit-text-stroke-color: var(--rec); }
.episode__title {
  font: 800 clamp(1.6rem, 2.6vw, 2.35rem)/0.95 var(--font-sans);
  font-stretch: 68%;
  text-transform: uppercase;
}
.episode__meta {
  margin-top: 0.5rem;
  font: 500 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rec);
}
.episode__desc { max-width: 40rem; margin-top: 0.6rem; color: var(--paper-2); }

/* A rail of 16:9 episode cards (the shorts rail, but widescreen) */
.rail--wide .rail__track { grid-auto-columns: clamp(16rem, 78vw, 26rem); }
.rail--wide .short__media { aspect-ratio: 16 / 9; }
.rail--wide .short__title { font-size: 1.3rem; }
.rail + .container .callouts { margin-top: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   Documentary page · the craft: observational stills + interview framing
   ========================================================================== */

.craft { display: grid; gap: clamp(3rem, 6vw, 4rem); }
@media (min-width: 1000px) {
  .craft { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
}
.craft__title {
  margin-top: 0.75rem;
  font: 800 clamp(1.9rem, 3vw, 2.75rem)/0.95 var(--font-sans);
  font-stretch: 68%;
  text-transform: uppercase;
}
.craft__text { max-width: 36rem; margin-top: 0.85rem; color: var(--paper-2); }

.observe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.5rem; }
.observe figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.observe img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.observe figure:hover img { transform: scale(1.05); }
.observe figcaption {
  position: absolute;
  left: 0.5rem; bottom: 0.5rem;
  padding: 0.3rem 0.45rem;
  background: rgb(11 11 12 / 0.75);
  font: 500 0.5625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.framing {
  position: relative;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.framing img { width: 100%; height: 100%; object-fit: cover; }
.framing__guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background:
    linear-gradient(rgb(255 255 255 / 0.35), rgb(255 255 255 / 0.35)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.35), rgb(255 255 255 / 0.35)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.35), rgb(255 255 255 / 0.35)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(rgb(255 255 255 / 0.35), rgb(255 255 255 / 0.35)) 0 66.666% / 100% 1px no-repeat;
}
.framing.show-guides .framing__guides { opacity: 1; }
.framing__eyeline {
  position: absolute;
  left: 0; right: 0;
  top: var(--y);
  border-top: 1px dashed var(--rec);
}
.framing__eyeline b,
.framing__tag {
  position: absolute;
  padding: 0.3rem 0.45rem;
  background: rgb(11 11 12 / 0.78);
  font: 500 clamp(0.5rem, 0.8vw, 0.625rem)/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}
.framing__eyeline b { right: 0.6rem; top: 0; translate: 0 -50%; border: 1px solid var(--rec); color: var(--rec); }
.framing__tag { left: var(--x); top: var(--y); border-left: 2px solid var(--rec); }
.framing__tag--right { translate: -100% 0; border-left: 0; border-right: 2px solid var(--rec); }
.framing__toggle {
  position: absolute;
  right: 0.6rem; bottom: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(11 11 12 / 0.7);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.framing__toggle[aria-pressed="true"] { border-color: var(--rec); color: var(--rec); }
.framing__toggle:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ==========================================================================
   Documentary page · the process, laid out like an edit decision list
   ========================================================================== */

.edl {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #09090a;
  font-family: var(--font-mono);
}
.edl__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.edl__head b { color: var(--paper); font-weight: 500; }
.edl__event {
  display: grid;
  grid-template-columns: 3rem 7.5rem 2.5rem 1.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: background-color 0.2s;
}
.edl__event:last-child { border-bottom: 0; }
.edl__event:hover { background: rgb(255 59 47 / 0.06); }
.edl__num { color: var(--rec); }
.edl__reel { font-weight: 700; text-transform: uppercase; color: var(--paper); }
.edl__track,
.edl__trans { color: var(--mute); }
.edl__tc { font-variant-numeric: tabular-nums; text-align: right; color: var(--paper-2); }
.edl__note {
  grid-column: 2 / -1;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--paper-2);
}
.edl__note::before { content: "* "; font-family: var(--font-mono); color: var(--rec); }
@media (max-width: 700px) {
  .edl__event { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .edl__track, .edl__trans, .edl__tc { display: none; }
  .edl__note { grid-column: 2; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes blink { 50% { opacity: 0.15; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 59 47 / 0.6); }
  70%, 100% { box-shadow: 0 0 0 0.6rem rgb(255 59 47 / 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6) rotate(-40deg); } }
@keyframes scroll-line { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@keyframes meter { from { clip-path: inset(0 70% 0 0); } to { clip-path: inset(0 8% 0 0); } }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.98); } }

/* ==========================================================================
   Motion off: the REC button, or "reduce motion" in system settings
   ========================================================================== */

.motion-paused :is(.grain, .ticker__track, .reel__ring, .hero__scroll i, .vf-meter b) {
  animation-play-state: paused;
}
.motion-paused :is(.brand__dot, .live-dot, .vf-rec b, .bug__live b) { animation: none; }
.motion-paused .cam-pin::after { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .line > span,
  .hero__kicker,
  .hero__foot,
  .viewfinder,
  .reel,
  .breadcrumb,
  .broadcast,
  .lower-third,
  .credits,
  .hero__caption,
  .letterbox::before,
  .letterbox::after { animation-duration: 0.01ms; animation-delay: 0s; }
  .fov { transition: opacity 0.4s, color 0.3s; }
  .hero__stills img { transform: none; transition: opacity 1s ease; }
  .reveal-ready [data-reveal] { transform: none; transition: opacity 0.6s ease; }
}
