/* =====================================================================
   ATHARIQ GHAZY — A PORTFOLIO IN FIVE ACTS
   Palette: #223D5E (navy, main) · #FFFFFF (text) · #DCA11C (gold, accent)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #223D5E;
  --navy-hi: #2F5682;
  --navy-glow: #3B6A9C;
  --navy-lo: #1A3150;
  --navy-deep: #12263D;
  --ink: #0A1622;
  --ink-2: #0E1B2B;

  --gold: #DCA11C;
  --gold-hi: #F2C14E;
  --gold-soft: rgba(220, 161, 28, 0.16);

  --white: #FFFFFF;
  --w-80: rgba(255, 255, 255, 0.82);
  --w-60: rgba(255, 255, 255, 0.64);
  --w-40: rgba(255, 255, 255, 0.44);
  --w-20: rgba(255, 255, 255, 0.2);
  --w-10: rgba(255, 255, 255, 0.1);
  --w-05: rgba(255, 255, 255, 0.05);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-script: "Courier Prime", "Courier New", Courier, monospace;

  --pad: clamp(20px, 4.2vw, 72px);
  --hud-top: clamp(76px, 10vh, 104px);
  --hud-bottom: 138px;
  --tl-top: 92px; /* space reserved for the NLE timeline */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { display: none; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

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

.noscript {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center;
  background: var(--navy); font-family: var(--f-serif); font-size: 28px; z-index: 999;
}

#scroll-space { width: 1px; pointer-events: none; }

/* ---------- Shared type ---------- */
.t-cond {
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.t-serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  text-transform: none;
}

.title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.16em;
  font-size: clamp(64px, 9.4vw, 160px);
  line-height: 0.84;
}
.title .t-serif { font-size: 0.66em; }
.title .mask { padding: 0.1em 0.1em 0.07em 0; margin: -0.1em -0.1em -0.07em 0; }

.act-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.act-label__line { flex: 0 0 52px; height: 1px; background: currentColor; opacity: 0.7; }
.act-label__sc { color: var(--w-60); }

.headline {
  margin: 22px 0 22px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.9vw, 48px);
  line-height: 1.06;
  max-width: 20ch;
}
.body p {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.04vw, 17px);
  line-height: 1.68;
  color: var(--w-80);
  max-width: 54ch;
}

.mono-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-60);
}

/* ---------- Reveal system (time based, triggered by .is-in) ---------- */
.rv {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.scene.is-in .rv { opacity: 1; transform: none; }

.mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.mask__in {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.scene.is-in .mask__in { transform: none; }

/* =====================================================================
   STAGE + SCENES
   ===================================================================== */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  background: var(--ink);
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg, var(--navy));
  opacity: 1;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.scene[data-state="hidden"] { opacity: 0; pointer-events: none; }
.scene[data-state="under"] { pointer-events: none; }
.scene[data-state="hidden"] *,
.scene[data-state="hidden"] *::before,
.scene[data-state="hidden"] *::after { animation-play-state: paused !important; }

/* dim layer used by transitions */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #050B13;
  opacity: var(--dim, 0);
  pointer-events: none;
  z-index: 5;
}

.scene__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.scene__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  will-change: transform;
}

/* =====================================================================
   SCENE 01 — OPENING TITLE
   ===================================================================== */
.scene--hero {
  --bg: radial-gradient(120% 95% at 16% 8%, #2F5682 0%, #223D5E 36%, #152B44 70%, #0B1826 100%);
}
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--w-05) 1px, transparent 1px),
    linear-gradient(to bottom, var(--w-05) 1px, transparent 1px);
  background-size: 33.334% 33.334%;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(90% 80% at 50% 50%, #000 40%, transparent 100%);
}
.hero-bg__cross {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
.hero-bg__cross::before, .hero-bg__cross::after {
  content: ""; position: absolute; background: var(--white);
}
.hero-bg__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero-bg__cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.leak {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.leak--1 {
  width: 70vmax; height: 70vmax;
  right: -22vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(220, 161, 28, 0.32) 0%, rgba(220, 161, 28, 0.1) 32%, rgba(220, 161, 28, 0) 62%);
  animation: leak-a 16s ease-in-out infinite alternate;
}
.leak--2 {
  width: 80vmax; height: 80vmax;
  left: -36vmax; bottom: -46vmax;
  background: radial-gradient(circle, rgba(82, 136, 196, 0.38) 0%, rgba(59, 106, 156, 0.12) 36%, rgba(59, 106, 156, 0) 64%);
  animation: leak-b 19s ease-in-out infinite alternate;
}
@keyframes leak-a { to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.15); } }
@keyframes leak-b { to { transform: translate3d(10vmax, -8vmax, 0) scale(0.92); } }

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--hud-top) var(--pad) var(--hud-bottom);
}
.hero__content { position: relative; width: 100%; max-width: 1560px; margin: 0 auto; }

.kicker {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker__line { width: 52px; height: 1px; background: currentColor; }

.hero__title {
  position: relative;
  margin: 2.2vh 0 0;
  font-size: clamp(78px, min(18.5vw, 30vh), 330px);
  line-height: 0.82;
  will-change: transform;
}
.hero__line { display: block; overflow: hidden; padding: 0.02em 0 0.07em; margin-bottom: -0.05em; }
.hero__line--2 { padding-left: 0.85em; }
.hero__word { display: inline-block; white-space: nowrap; }
.ch {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.scene.is-in .ch { transform: none; }
.hero__word--outline .ch {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
.hero__word--outline .ch.ch--fill { color: var(--white); -webkit-text-stroke: 0; }

/* anamorphic flares */
.flare {
  position: absolute;
  left: -20%; right: -20%;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.flare--blue {
  top: 47%;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 175, 255, 0) 18%, rgba(185, 215, 255, 0.95) 50%, rgba(120, 175, 255, 0) 82%, transparent 100%);
  box-shadow: 0 0 22px 3px rgba(120, 175, 255, 0.45);
  animation: flare 9s ease-in-out infinite 2.6s;
}
.flare--gold {
  top: 88%;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(242, 193, 78, 0.9) 50%, transparent 90%);
  box-shadow: 0 0 16px 2px rgba(220, 161, 28, 0.4);
  animation: flare 11s ease-in-out infinite 5.5s;
}
@keyframes flare {
  0%, 100% { opacity: 0; transform: translateX(-12%) scaleX(0.6); }
  12% { opacity: 0.9; }
  30% { opacity: 0; transform: translateX(12%) scaleX(1.1); }
}

.hero__sub {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 72px);
  margin-top: 3.4vh;
  flex-wrap: wrap;
}
.roles {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1.2;
  color: var(--gold);
  min-width: 11ch;
}
.roles__list { display: block; transition: transform 0.9s var(--ease-out); }
.roles__list span { display: block; white-space: nowrap; }
.roles__list.is-reset { transition: none; }

.hero__tagline {
  margin: 0.35em 0 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--w-80);
}
.hero__tagline em { font-size: 1.18em; }

.hero__foot {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: calc(var(--tl-top) + 14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-60);
}
.status { display: flex; align-items: center; gap: 10px; }
.status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(220, 161, 28, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 161, 28, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(220, 161, 28, 0); }
}
.scrollcue { display: flex; align-items: center; gap: 12px; color: var(--white); }
.scrollcue__bar { position: relative; width: 60px; height: 1px; background: var(--w-20); overflow: hidden; }
.scrollcue__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-100%);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { 50% { transform: none; } 100% { transform: translateX(100%); } }

/* ---------- Clapperboard ---------- */
.slate-wrap {
  position: absolute;
  right: var(--pad);
  top: 50%;
  width: clamp(230px, 21vw, 330px);
  transform: translateY(-46%) rotate(5deg);
  will-change: transform;
}
.slate {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.slate__arm, .slate__bar, .slate__body, .slate__stripes, .slate__flash, .slate__hinge, .slate__cell { display: block; }
.slate__stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-58deg, var(--white) 0 16px, var(--ink-2) 16px 32px);
}
.slate__arm, .slate__bar {
  position: relative;
  height: clamp(24px, 2.2vw, 32px);
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 3px 3px 0 0;
}
.slate__arm {
  transform-origin: 3px 100%;
  transform: rotate(-24deg);
  margin-bottom: 3px;
  z-index: 2;
}
.slate__bar { border-radius: 0; }
.slate__bar .slate__stripes { background: repeating-linear-gradient(58deg, var(--white) 0 16px, var(--ink-2) 16px 32px); }
.slate__hinge {
  position: absolute;
  left: -3px; top: clamp(20px, 1.9vw, 28px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink-2);
  z-index: 3;
}
.scene.is-in .slate__arm { animation: clap 1.5s var(--ease-io) 0.9s both; }
.slate.is-clapping .slate__arm { animation: clap-again 0.55s var(--ease-io) both; }
@keyframes clap {
  0% { transform: rotate(-24deg); }
  62% { transform: rotate(-30deg); }
  72% { transform: rotate(0deg); }
  80% { transform: rotate(-3deg); }
  88%, 100% { transform: rotate(0deg); }
}
@keyframes clap-again {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-32deg); }
  70% { transform: rotate(0deg); }
  82% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.slate__body {
  position: relative;
  background: linear-gradient(160deg, #14283F, var(--ink-2));
  border: 2px solid var(--white);
  border-top: 0;
  color: var(--white);
  font-family: var(--f-script);
}
.slate__body::after {
  /* chalk texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 7px);
}
.slate__row { display: grid; border-bottom: 1px solid var(--w-40); }
.slate__row:last-child { border-bottom: 0; }
.slate__row--3 { grid-template-columns: repeat(3, 1fr); }
.slate__row--2 { grid-template-columns: 1fr 1fr; }
.slate__cell { padding: 7px 10px 8px; border-right: 1px solid var(--w-40); min-width: 0; }
.slate__cell:last-child { border-right: 0; }
.slate__cell span {
  display: block;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.slate__cell b {
  display: block;
  font-weight: 700;
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slate__cell--big b { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; }
.slate__flash {
  position: absolute; inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%);
  opacity: 0; pointer-events: none;
}
.slate.is-clapping .slate__flash { animation: snap 0.55s ease-out both; }
@keyframes snap { 0%, 55% { opacity: 0; } 62% { opacity: 0.7; } 100% { opacity: 0; } }

/* =====================================================================
   ACT I — THE EDITOR
   ===================================================================== */
.scene--editor {
  --bg: linear-gradient(162deg, #26446A 0%, #223D5E 42%, #18304B 100%);
}
.editor-bg__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 60%);
          mask-image: linear-gradient(115deg, #000 0%, transparent 60%);
}
.editor-bg__hatch {
  position: absolute; right: -10%; bottom: -10%;
  width: 60vmax; height: 60vmax;
  background: repeating-linear-gradient(-45deg, rgba(220, 161, 28, 0.07) 0 1px, transparent 1px 12px);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle, #000 0%, transparent 68%);
}

.about {
  display: flex;
  align-items: center;
  padding: var(--hud-top) var(--pad) var(--hud-bottom);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 5.5vw, 110px);
  align-items: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--w-20);
}
.spec { padding: 16px 14px 0 0; margin: 0; }
.spec dt {
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(40px, 3.9vw, 66px);
  line-height: 1;
  color: var(--white);
}
.spec:nth-child(odd) dt { color: var(--gold); }
.spec dd {
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w-60);
  line-height: 1.45;
}

/* Screenplay page */
.script-wrap { position: relative; }
.script {
  position: relative;
  margin: 0;
  background: #F5F0E6;
  color: #1C2E45;
  font-family: var(--f-script);
  font-size: clamp(12.5px, 0.98vw, 15.5px);
  line-height: 1.5;
  padding: clamp(40px, 4.4vw, 64px) 9% clamp(48px, 5vw, 72px) 14%;
  border-radius: 2px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.6), 0 2px 0 rgba(0, 0, 0, 0.05);
  transform: rotate(1.4deg);
}
.script::before {
  /* three hole punch */
  content: "";
  position: absolute; left: 4.2%; top: 0; bottom: 0; width: 14px;
  background:
    radial-gradient(circle at 7px 16%, #1A3150 6px, transparent 6.5px),
    radial-gradient(circle at 7px 50%, #1A3150 6px, transparent 6.5px),
    radial-gradient(circle at 7px 84%, #1A3150 6px, transparent 6.5px);
}
.script::after {
  /* paper behind */
  content: "";
  position: absolute; inset: 0;
  background: #E6DFD0;
  transform: rotate(-3.2deg) translate(-10px, 8px);
  z-index: -1;
  border-radius: 2px;
}
.script__head {
  display: flex; justify-content: space-between;
  margin-bottom: 2em;
  font-size: 0.82em;
  color: rgba(28, 46, 69, 0.6);
}
.sl { margin: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.scene.is-in .sl { opacity: 1; transform: none; }
.sl--transition { text-align: right; text-transform: uppercase; margin: 1em 0; }
.sl--transition:first-of-type { text-align: left; }
.sl--heading { font-weight: 700; text-transform: uppercase; margin: 1.1em 0 0.9em; }
.sl--action { margin: 0 0 1em; }
.sl--character { margin: 1.2em 0 0 36%; text-transform: uppercase; }
.sl--paren { margin: 0 0 0 29%; }
.sl--dialogue { margin: 0 12% 1em 20%; }
.script em {
  font-family: inherit;
  font-style: normal;
  color: inherit;
  background: linear-gradient(transparent 52%, rgba(220, 161, 28, 0.55) 52%, rgba(220, 161, 28, 0.55) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s var(--ease-io) 1.9s;
}
.scene.is-in .script em { background-size: 100% 100%; }

.stamp {
  position: absolute;
  right: 6%; bottom: 5%;
  padding: 8px 14px 7px;
  border: 2.5px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: rotate(-12deg) scale(1.8);
  mix-blend-mode: multiply;
}
.stamp small { display: block; font-weight: 400; font-size: 0.8em; letter-spacing: 0.16em; }
.scene.is-in .stamp { animation: stamp 0.5s cubic-bezier(.3, 1.6, .5, 1) 2.6s forwards; }
@keyframes stamp { to { opacity: 0.92; transform: rotate(-12deg) scale(1); } }

/* Headshot clipped to the screenplay page */
.about__grid.has-photo {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 3.8vw, 76px);
}
.script-wrap.has-photo {
  --hs: clamp(150px, 13.5vw, 236px);
  padding-left: calc(var(--hs) - 30px);
}
.headshot {
  position: absolute;
  left: 0; top: 8%;
  z-index: 3;
  width: var(--hs);
  margin: 0;
  padding: 7px 7px 0;
  background: #F5F0E6;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translate3d(-18px, 26px, 0) rotate(-10deg);
  transition: opacity 0.8s ease 0.5s, transform 1.4s var(--ease-out) 0.5s;
}
.scene.is-in .headshot { opacity: 1; transform: rotate(-4.5deg); }
.headshot img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  background: #C9A13A;
  /* "develops" like a print in the tray */
  filter: grayscale(1) sepia(0.35) brightness(0.3) contrast(1.3);
  transition: filter 2.6s ease 1.1s;
}
.scene.is-in .headshot img { filter: none; }
.headshot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px 10px;
  font-family: var(--f-script);
  font-size: clamp(9.5px, 0.72vw, 11.5px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #1C2E45;
}
.headshot figcaption span:last-child:not(:first-child) { color: #9A6E0E; text-align: right; }
.headshot__clip {
  position: absolute;
  right: 4px; top: -26px;
  z-index: 2;
  width: 20px;
  color: var(--gold);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
  transform: rotate(6deg);
}
.headshot__clip svg { display: block; width: 100%; height: auto; }

/* =====================================================================
   INTERLUDE — THE SELECTS (two favourite projects, one per page)
   ===================================================================== */
.scene--selects {
  --bg: radial-gradient(90% 80% at 50% 46%, #1A3352 0%, #102236 58%, #08121D 100%);
}
.selects-bg__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px);
}
.selects-bg__beam {
  /* projector light from the booth */
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(59, 106, 156, 0.28) 0%, transparent 70%),
    conic-gradient(from 168deg at 50% -18%, transparent 0deg, rgba(220, 161, 28, 0.05) 10deg, rgba(255, 255, 255, 0.035) 18deg, transparent 26deg);
}
.selects { height: 100%; }
.selects__head {
  position: absolute;
  top: calc(var(--hud-top) + 0.6vh);
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.selects__head .mono-tag { margin: 0; }
.selects__head .mono-tag b { color: var(--gold); font-weight: 400; }
.selects__intro {
  margin: 6px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 1.45vw, 24px);
  color: var(--w-80);
}
.selects__pages { position: absolute; inset: 0; }

.pick {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
  padding:
    calc(var(--hud-top) + 96px)
    max(var(--pad), calc((100vw - 1560px) / 2))
    calc(var(--hud-bottom) + 30px);
}
.pick--tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.pick--tall .pick__media { order: 2; }
.pick__media, .pick__info { will-change: transform; }
.pick__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.pick__frame {
  --avail: calc(100vh - var(--hud-top) - var(--hud-bottom) - 176px);
  position: relative;
  width: min(100%, calc(var(--avail) * var(--rw) / var(--rh)));
  aspect-ratio: var(--rw) / var(--rh);
}
.pick__screen {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 46px 100px -34px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.pick__screen > img, .pick__screen > .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.pick__screen .poster__title { font-size: clamp(34px, 4.4vw, 84px); }
.pick__screen .poster__tc { display: none; }
.pick__frame:hover .pick__screen > img, .pick__frame:hover .pick__screen > .poster { transform: scale(1.03); }
.pick__screen iframe, .pick__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pick__guides {
  /* viewfinder corner marks around the frame */
  position: absolute; inset: -12px;
  pointer-events: none;
  --c: rgba(220, 161, 28, 0.85);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 22px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 22px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 22px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1.5px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 22px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px 22px no-repeat;
}
.pick__play {
  position: absolute; inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.pick__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  background: rgba(5, 11, 19, 0.5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--w-40);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-out);
}
.pick__pill svg { width: 15px; height: 15px; color: var(--gold); transition: color 0.35s ease; }
.pick__play:hover .pick__pill, .pick__play:focus-visible .pick__pill { background: var(--gold); color: var(--ink); transform: scale(1.04); }
.pick__play:hover .pick__pill svg, .pick__play:focus-visible .pick__pill svg { color: var(--ink); }
.pick__play:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* with the custom cursor the cursor itself says "Play" — the pill only shows on touch screens */
html.has-cursor .pick__pill { display: none; }
.pick__frame.is-playing .pick__play,
.pick__soon {
  position: absolute;
  left: 50%; bottom: 7%;
  z-index: 3;
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.pick__frame.is-soon .pick__soon { opacity: 1; transform: translate(-50%, 0); }

.pick__info { min-width: 0; max-width: 470px; }
.pick--tall .pick__info { justify-self: end; }
.pick__no { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.pick__no b { color: var(--gold); font-weight: 500; }
.pick__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, min(4.2vw, 7vh), 76px);
  line-height: 0.96;
}
.pick__meta { margin: 12px 0 0; line-height: 1.6; }
.pick__tag { display: block; margin-bottom: 10px; color: var(--gold); }
.pick__desc {
  margin-top: clamp(16px, 2.6vh, 28px);
  padding-top: clamp(12px, 1.8vh, 18px);
  border-top: 1px solid var(--w-20);
}
.pick__desc p {
  margin: 0;
  color: var(--w-80);
  font-size: clamp(14px, min(1.05vw, 2vh), 17px);
  line-height: 1.62;
}
.pick__tools { margin-top: clamp(16px, 2.6vh, 26px); }
.logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(36px, 5vh, 46px);
  min-width: clamp(36px, 5vh, 46px);
  padding: 0 14px;
  border: 1px solid var(--w-20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.logo:hover { border-color: rgba(220, 161, 28, 0.6); background: rgba(220, 161, 28, 0.08); }
.logo__name {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-80);
  white-space: nowrap;
}
.logo img { display: none; height: 52%; width: auto; max-width: 120px; object-fit: contain; }
.logo.has-img img { display: block; }
.logo.has-img .logo__name { display: none; }
.logos--mono .logo img { filter: brightness(0) invert(1); opacity: 0.86; }

.selects__edge {
  /* the wipe line between pages */
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  margin-left: -1px;
  z-index: 3;
  background: var(--gold);
  box-shadow: 0 0 26px 5px rgba(220, 161, 28, 0.42);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.selects__pager {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tl-top) + 16px);
  z-index: 2;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-60);
  white-space: nowrap;
}
.selects__count b { color: var(--gold); font-weight: 400; }
.selects__dots { display: flex; gap: 8px; }
.selects__dots i { position: relative; width: 34px; height: 2px; overflow: hidden; background: var(--w-20); }
.selects__dots i::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform-origin: left; transform: scaleX(var(--f, 0));
}

/* Pages that don't fit the screen stack and scroll instead of wiping */
.selects.is-stacked { height: auto; padding: var(--hud-top) 0 var(--hud-bottom); }
.selects.is-stacked .selects__head { position: relative; top: auto; padding: 0 var(--pad); }
.selects.is-stacked .selects__pages { position: relative; inset: auto; }
.selects.is-stacked .pick {
  position: relative;
  inset: auto;
  padding: 48px var(--pad) 8px;
}
.selects.is-stacked .pick + .pick { margin-top: 40px; border-top: 1px solid var(--w-10); padding-top: 72px; }
.selects.is-stacked .pick__frame { --avail: 62vh; }
.selects.is-stacked .selects__edge,
.selects.is-stacked .selects__pager { display: none; }

/* =====================================================================
   ACT II — THE CUT (works)
   ===================================================================== */
.scene--works {
  --bg: linear-gradient(180deg, #1C3554 0%, #172E4A 55%, #10233A 100%);
}
.works-bg__lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--w-05) 1px, transparent 1px);
  background-size: 120px 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.works {
  height: 100%;
  display: flex;
  align-items: center;
}
.works__track {
  display: flex;
  align-items: center;
  height: 100%;
  padding: var(--hud-top) var(--pad) var(--hud-bottom);
  will-change: transform;
}
.works__intro {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 470px);
  margin-right: clamp(40px, 6vw, 110px);
}
.works__intro .title { font-size: clamp(64px, 8vw, 138px); }
.works__intro p.body-lead {
  margin: 22px 0 0;
  color: var(--w-80);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  max-width: 34ch;
}
.works__hint {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.works__hint svg { width: 46px; height: 12px; }

.strip { display: flex; flex: 0 0 auto; }
.frame {
  --fw: clamp(270px, min(40vw, 76vh), 680px);
  position: relative;
  flex: 0 0 auto;
  width: var(--fw);
  display: flex;
  flex-direction: column;
  text-align: left;
  color: inherit;
}
.frame__film {
  display: block;
  position: relative;
  padding: 40px 16px;
  background: #08111C;
}
.frame__film::before, .frame__film::after {
  /* sprocket holes */
  content: "";
  position: absolute; left: 0; right: 0;
  height: 13px;
  background-image: linear-gradient(90deg, transparent 9px, rgba(255, 255, 255, 0.82) 9px, rgba(255, 255, 255, 0.82) 23px, transparent 23px);
  background-size: 32px 100%;
  -webkit-mask-image: linear-gradient(transparent 0 1px, #000 1px calc(100% - 1px), transparent calc(100% - 1px));
  opacity: 0.18;
}
.frame__film::before { top: 9px; }
.frame__film::after { bottom: 9px; }
.frame__code {
  position: absolute;
  left: 18px; bottom: 23px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.85;
  white-space: nowrap;
}
.frame__no {
  position: absolute;
  right: 18px; top: 24px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--w-40);
}
.frame__img {
  display: block;
  position: relative;
  aspect-ratio: var(--rw, 16) / var(--rh, 9);
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy-deep);
  transform: translateZ(0);
}
.frame__img > img, .frame__img > .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}
.frame__img > img { filter: saturate(0.75) contrast(1.05); }
.frame:hover .frame__img > img, .frame:focus-visible .frame__img > img { filter: none; }
.frame:hover .frame__img > *, .frame:focus-visible .frame__img > * { transform: scale(1.045); }
.frame__img::after {
  /* gate overlay */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.frame__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--ink);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
  z-index: 2;
}
.frame__play svg { width: 20px; height: 20px; margin-left: 3px; }
.frame:hover .frame__play, .frame:focus-visible .frame__play { opacity: 1; transform: none; }
html.has-cursor .frame__play { display: none; }

.frame__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 18px 28px 0 16px;
}
.frame__idx {
  grid-row: span 2;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 40px;
  line-height: 0.9;
  color: var(--gold);
}
.frame__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.05;
}
.frame__dur {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--w-60);
  letter-spacing: 0.08em;
}
.frame__cat {
  grid-column: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-60);
}

/* 9:16 (vertical) reel — frames sized from the available height */
.works--vertical .frame {
  --ih: clamp(240px, calc(100vh - var(--hud-top) - var(--hud-bottom) - 258px), 560px);
  --fw: calc(var(--ih) * var(--rw) / var(--rh) + 32px);
}
.works--vertical .frame__title { font-size: clamp(19px, 1.5vw, 25px); }
.works--vertical .frame__meta { padding: 16px 14px 0 14px; gap: 4px 12px; }
.works--vertical .frame__idx { font-size: 34px; }
.works--vertical .frame__cat { white-space: normal; line-height: 1.5; }
.works--vertical .frame__img .poster__title { font-size: clamp(24px, 2.4vw, 40px); bottom: 9%; }
.works--vertical .frame__img .poster__tc { left: 7%; right: auto; top: calc(14% + 20px); }

/* platform pill + performance stats under each frame */
.frame__plat {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  padding: 5px 9px 4px;
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
}
.frame__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--w-10);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--w-80);
}
.frame__meta { container-type: inline-size; }
@container (min-width: 290px) {
  .frame__stats { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
.stat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.stat svg { width: 13px; height: 13px; flex: none; color: var(--gold); }
.stat b { font-weight: 500; }
.stat.is-empty { opacity: 0.45; }

/* generated poster (when no thumbnail) */
.poster {
  display: block;
  background:
    radial-gradient(70% 90% at var(--x, 70%) var(--y, 30%), var(--g, rgba(220, 161, 28, 0.5)) 0%, transparent 60%),
    linear-gradient(var(--ang, 140deg), var(--a, #2F5682) 0%, var(--b, #0E1B2B) 100%);
}
.poster::before {
  /* scanlines (full-frame — no letterbox, so the preview reads at its true ratio) */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}
.poster__shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.poster__title {
  position: absolute;
  left: 7%; bottom: 15%;
  right: 7%;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 56px);
  line-height: 0.88;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.poster__cat {
  position: absolute;
  left: 7%; top: 14%;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.poster__tc {
  position: absolute;
  right: 7%; top: 14%;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--w-60);
}

.works__end {
  flex: 0 0 auto;
  width: clamp(260px, 26vw, 400px);
  margin-left: clamp(40px, 6vw, 110px);
}
.works__end h3 {
  margin: 0 0 12px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1;
}
.works__end p { margin: 0 0 26px; color: var(--w-60); }
.works__end p:last-child { margin-bottom: 0; }

.works__hud {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: calc(var(--tl-top) + 8px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-60);
  pointer-events: none;
}
.works__count b { color: var(--white); font-weight: 500; }
.works__bar { flex: 1; height: 1px; background: var(--w-20); position: relative; }
.works__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* =====================================================================
   ACT III — THE SCORE
   ===================================================================== */
.scene--score {
  --bg: linear-gradient(200deg, #213B5B 0%, #182F4C 50%, #0F2034 100%);
}
.score-bg__lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 50%);
          mask-image: linear-gradient(to right, transparent, #000 50%);
}
.score-bg__bpm {
  position: absolute;
  right: -2vw; bottom: -6vh;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: min(58vh, 40vw);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 161, 28, 0.13);
  letter-spacing: -0.02em;
  user-select: none;
  transition: opacity 0.4s ease;
}
.score {
  display: flex;
  align-items: center;
  padding: var(--hud-top) var(--pad) var(--hud-bottom);
}
.score__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.console {
  position: relative;
  padding: clamp(18px, 1.6vw, 26px);
  border: 1px solid var(--w-10);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(10, 22, 36, 0.78), rgba(8, 17, 28, 0.9));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.console__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-60);
}
.console__head b { color: var(--gold); font-weight: 500; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--w-20);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.sound-toggle i { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.sound-toggle i b { width: 2px; height: 3px; background: currentColor; }
.sound-toggle[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.sound-toggle[aria-pressed="true"] i b { animation: sbar 0.6s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] i b:nth-child(2) { animation-delay: -0.2s; }
.sound-toggle[aria-pressed="true"] i b:nth-child(3) { animation-delay: -0.4s; }
@keyframes sbar { to { height: 10px; } }

.genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.genre {
  padding: 8px 13px;
  border: 1px solid var(--w-20);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-80);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.genre:hover { border-color: var(--gold); color: var(--white); }
.genre[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

.readouts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 28px;
  align-items: end;
  padding: 14px 0 16px;
  border-top: 1px solid var(--w-10);
}
.readout span { display: block; }
.readout__bpm {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(40px, 3.6vw, 58px);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.readout__mood {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
}

.monitors {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}
.pgm {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--w-10);
}
.pgm__shot {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at var(--x, 50%) var(--y, 50%), var(--g, rgba(220, 161, 28, 0.55)), transparent 62%),
    linear-gradient(var(--ang, 150deg), var(--a, #2F5682), var(--b, #0B1826));
}
.pgm__shot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: var(--s, 26%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.pgm__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.pgm__flash.is-on { animation: pgmflash 0.22s ease-out; }
@keyframes pgmflash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
.pgm__label, .pgm__shotno {
  position: absolute;
  top: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
  z-index: 2;
}
.pgm__label { left: 10px; }
.pgm__label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.pgm__shotno { right: 10px; color: var(--gold-hi); }

.eq {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--w-10);
}
.eq i {
  flex: 1;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--gold) 0%, var(--gold-hi) 55%, #fff 100%);
  transform-origin: bottom;
  transform: scaleY(0.1);
  will-change: transform;
}

.cutnote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 16px 0 14px;
}
.cutnote p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--w-80); }
.cutnote--band { margin-top: -4px; }
.cutnote--band p { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }

.seq {
  position: relative;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--w-10);
  padding: 8px 0 8px 40px;
}
.seq__name {
  position: absolute; left: 0; top: 0; bottom: 0; width: 34px;
  display: grid; place-items: center;
  border-right: 1px solid var(--w-10);
  font-family: var(--f-mono); font-size: 9.5px; color: var(--w-60);
}
.seq__lane { position: relative; height: 34px; margin-right: 8px; }
.seq__grid {
  position: absolute; inset: -8px 0;
  background-image: linear-gradient(to right, var(--w-10) 1px, transparent 1px);
  background-size: calc(100% / var(--beats, 16)) 100%;
}
.seq__clips { position: absolute; inset: 0; }
.seq__clip {
  position: absolute; top: 0; bottom: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #3B6A9C, #2A4E78);
  border-left: 2px solid var(--gold);
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--w-80);
  padding: 4px 6px;
  overflow: hidden;
  white-space: nowrap;
  transition: background 0.2s;
}
.seq__clip:nth-child(even) { background: linear-gradient(180deg, #31587F, #223D5E); }
.seq__clip.is-live { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink); }
.seq__head {
  position: absolute; top: -8px; bottom: -8px;
  width: 2px; margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  left: 0;
  z-index: 2;
}

/* =====================================================================
   ACT IV — THE VISION
   ===================================================================== */
.scene--vision {
  --bg: linear-gradient(180deg, #223D5E 0%, #1B3453 60%, #13283F 100%);
}
.vision-bg__spot {
  position: absolute;
  left: 50%; top: -30vh;
  width: 140vmax; height: 120vh;
  transform: translateX(-50%);
  background: radial-gradient(42% 56% at 50% 26%, rgba(242, 193, 78, 0.24), rgba(220, 161, 28, 0.06) 48%, transparent 72%);
  animation: spot 8s ease-in-out infinite alternate;
}
@keyframes spot { to { transform: translateX(-50%) scale(1.08); opacity: 0.8; } }
.vision-bg__rays {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 180deg at 50% -10%, rgba(255, 255, 255, 0.03) 0deg 2deg, transparent 2deg 9deg);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.vision {
  padding: var(--hud-top) var(--pad) var(--hud-bottom);
}
.vision__wrap { width: 100%; max-width: 1380px; margin: 0 auto; }
.vision__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px clamp(32px, 5vw, 96px);
  align-items: end;
}
.vision__head .headline { max-width: 18ch; margin-bottom: 0; }
.vision__head .body { margin-top: 16px; }
.vision__head .body p { margin: 0; }

.laurels {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 56px);
  margin: clamp(30px, 5vh, 60px) 0 10px;
  flex-wrap: wrap;
}
.laurel {
  position: relative;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 1;
  margin: 0;
}
.laurel svg { width: 100%; height: 100%; overflow: visible; }
.laurel .stem { fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; opacity: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io) calc(var(--d, 0) * 1ms + 200ms); }
.scene.is-in .laurel .stem { stroke-dashoffset: 0; }
.laurel .leaf {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: 0% 50%;
  transform: scale(0);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms + var(--k) * 90ms + 400ms);
}
.laurel .leaf.leaf--in { fill: var(--gold); opacity: 0.9; }
.scene.is-in .laurel .leaf { transform: scale(1); }
.laurel figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-bottom: 4%;
}
.laurel__top { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--w-80); }
.laurel__main { font-family: var(--f-serif); font-size: clamp(20px, 1.9vw, 28px); line-height: 1; margin: 6px 0 8px; }
.laurel__year { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--gold); }
.laurels__note {
  margin: 0 0 clamp(30px, 5vh, 56px);
  text-align: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--w-60);
}

.vision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.callsheet {
  /* one shared grid → every row's columns line up, whatever the pill says */
  display: grid;
  grid-template-columns: 44px minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
  column-gap: 14px;
  border: 1px solid var(--w-20);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 17, 28, 0.35);
}
.callsheet__head {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.callsheet__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: inherit; /* fallback for browsers without subgrid */
  grid-template-columns: subgrid;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--w-10);
}
.callsheet__row:first-of-type { border-top: 0; }
.callsheet__sc { font-family: var(--f-mono); font-size: 11px; color: var(--w-40); }
.callsheet__phase { font-family: var(--f-sans); font-stretch: 75%; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.callsheet__detail { font-size: 14px; line-height: 1.45; color: var(--w-80); }
.callsheet__row .pill { justify-self: end; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--w-40);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--now { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.pill--now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: blink 1.2s steps(2) infinite; }
.pill--dream { border-color: var(--gold); color: var(--gold); }
.pill--dream::before { content: "★"; font-size: 10px; }
@keyframes blink { 50% { opacity: 0; } }

.kit h3 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--w-20);
  border-radius: 999px;
  font-size: 14px;
  color: var(--w-80);
}
.tools { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--w-10); }
.tools li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--w-10);
  font-family: var(--f-sans);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 19px;
  text-transform: uppercase;
}
.tools li span { font-family: var(--f-mono); font-size: 10px; color: var(--w-40); font-weight: 400; }

/* =====================================================================
   END CREDITS
   ===================================================================== */
.scene--credits { --bg: #000; }
.credits-photo {
  /* fades up from black behind "Fin" → the end; stays still */
  --r: 0;
  position: absolute; inset: 0;
  opacity: calc(var(--r) * 1.4);
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--r) * 170% - 70%), transparent calc(var(--r) * 170%));
          mask-image: linear-gradient(to top, #000 calc(var(--r) * 170% - 70%), transparent calc(var(--r) * 170%));
}
.credits-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: brightness(var(--exp, 0.42)) saturate(0.85) contrast(1.06);
}
.credits-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 52% at 50% 54%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 80%),
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 24%, transparent 50%, rgba(0, 0, 0, 0.3) 80%, #000 100%);
}
.credits .final { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5); }
.credits { height: 100%; }
.credits__roll {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 0 var(--pad);
  will-change: transform;
}
.credit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  align-items: baseline;
  padding: 10px 0;
  max-width: 980px;
  margin: 0 auto;
}
.credit__role {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--w-60);
}
.credit__name {
  font-family: var(--f-sans);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.credit--big { grid-template-columns: 1fr; text-align: center; padding: 0 0 7vh; }
.credit--big .credit__role { text-align: center; color: var(--gold); margin-bottom: 14px; }
.credit--big .credit__name { font-stretch: 62%; font-weight: 800; font-size: clamp(56px, 8vw, 128px); line-height: 0.86; }
.credit--gap { height: 7vh; padding: 0; }

.final {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 26vh;
  text-align: center;
}
.final__eyebrow { margin: 0 0 22px; }
.final__title {
  margin: 0 0 20px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 94px);
  line-height: 0.98;
}
.final__text { margin: 0 auto 32px; max-width: 46ch; color: var(--w-80); font-size: clamp(15px, 1.1vw, 18px); }
@property --c1 { syntax: "<color>"; inherits: false; initial-value: #DCA11C; }
@property --c2 { syntax: "<color>"; inherits: false; initial-value: #FFFFFF; }
.final__cta { margin: 0; }
.final__cta span {
  display: inline-block;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 60px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c1);
  background: linear-gradient(100deg, var(--c1) 10%, var(--c2) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  transition: --c1 var(--cta-dur, 2800ms) ease-in-out, --c2 var(--cta-dur, 2800ms) ease-in-out;
}
.final__cta em { font-style: italic; color: inherit; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--w-40); }
.btn--ghost:hover { color: var(--ink); }

.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.socials a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--w-80);
  padding: 4px 0;
}
.socials a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.socials a:hover { color: var(--white); }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }
.final__mail { display: inline-block; margin-top: 22px; font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); color: var(--white); text-decoration: none; border-bottom: 1px solid var(--w-20); }
.final__mail:hover { border-color: var(--gold); color: var(--gold-hi); }
.final__copy { margin: 36px 0 0; }

.postcredits {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tl-top) + 10px);
  transform: translateX(-50%);
  width: min(92vw, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.postcredits.is-live { pointer-events: auto; }
.postcredits p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--w-80); }
.postcredits p b { font-family: var(--f-mono); font-style: normal; font-weight: 500; font-size: 10px; letter-spacing: 0.22em; color: var(--gold); margin-right: 10px; text-transform: uppercase; }
.rewind {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 12px;
  border: 1px solid rgba(220, 161, 28, 0.5);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.rewind:hover { background: var(--gold); color: var(--ink); }

/* =====================================================================
   TRANSITION OVERLAYS
   ===================================================================== */
.fx { position: absolute; inset: 0; pointer-events: none; visibility: hidden; z-index: 1000; }
.fx-sketch { width: 100%; height: 100%; }
.fx-sketch path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.fx-sketch .s-gold { stroke: var(--gold); stroke-width: 330; }
.fx-sketch .s-navy { stroke: #223D5E; stroke-width: 300; }
.fx-sketch .s-pencil { stroke: rgba(255, 255, 255, 0.85); stroke-width: 2.4; }
.fx-sketch .s-pencil--gold { stroke: var(--gold-hi); stroke-width: 1.6; }

.fx-eq { background: linear-gradient(to top, var(--gold) 0%, var(--gold-hi) 100%); }

.fx-iris { width: 100%; height: 100%; }
.fx-iris__edge { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.fx-iris__blades line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; }

.fx-curtain__bar {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #070F18;
  transform: scaleY(0);
}
.fx-curtain__bar--top { top: 0; transform-origin: top; box-shadow: inset 0 -1px 0 var(--gold); }
.fx-curtain__bar--bottom { bottom: 0; transform-origin: bottom; box-shadow: inset 0 1px 0 var(--gold); }
.fx-curtain__label {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}

.fx-edge {
  right: auto;
  width: 3px;
  background: var(--gold-hi);
  box-shadow: 0 0 30px 8px rgba(220, 161, 28, 0.55), 0 0 90px 20px rgba(220, 161, 28, 0.25);
}
.fx-flash {
  background: radial-gradient(70% 70% at 50% 50%, rgba(242, 193, 78, 0.55), rgba(220, 161, 28, 0.15) 45%, transparent 75%);
  mix-blend-mode: screen;
}

/* =====================================================================
   GRAIN / VIGNETTE / REWIND
   ===================================================================== */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 50;
  pointer-events: none;
  opacity: var(--grain-op, 0.0175); /* 0.07 × settings.grainAmount */
  background-repeat: repeat;
  /* 10 held frames per cycle → low, choppy frame rate. Speed: settings.grainSpeed in content.js */
  animation: grain var(--grain-dur, 1.5s) step-end infinite;
  animation-play-state: var(--grain-play, running);
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-37px, 21px); }
  20% { transform: translate(24px, -48px); }
  30% { transform: translate(-58px, -12px); }
  40% { transform: translate(41px, 33px); }
  50% { transform: translate(-12px, 52px); }
  60% { transform: translate(55px, -27px); }
  70% { transform: translate(-29px, -55px); }
  80% { transform: translate(14px, 44px); }
  90% { transform: translate(-50px, 8px); }
}
.vignette {
  position: fixed; inset: 0; z-index: 51; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(3, 8, 14, 0.5) 100%);
}
.rewind-fx {
  position: fixed; inset: 0; z-index: 52; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 5px),
    linear-gradient(to bottom, transparent 0 62%, rgba(255, 255, 255, 0.14) 62% 64%, transparent 64%);
  transition: opacity 0.3s ease;
}
html.is-rewinding .rewind-fx { opacity: 1; animation: rew 0.35s linear infinite; }

/* Dip to black (Index / logo / timeline jumps) — above the HUD, below the menu */
.dip {
  position: fixed; inset: 0; z-index: 75;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 1s;
}
.dip.is-on { opacity: 1; pointer-events: auto; }
.scene:focus { outline: none; }
@keyframes rew { to { background-position: 0 12px, 0 -40vh; } }

/* =====================================================================
   HUD
   ===================================================================== */
.hud {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}
html.is-ready .hud { opacity: 1; }
.hud::before {
  /* soft scrim so content scrolling under the HUD stays readable */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 104px;
  background: linear-gradient(to bottom, rgba(6, 13, 22, 0.86) 0%, rgba(6, 13, 22, 0.55) 50%, rgba(6, 13, 22, 0) 100%);
  pointer-events: none;
}
.hud a, .hud button, .hud .tl { pointer-events: auto; }

.hud__corner { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255, 255, 255, 0.55); }
.hud__corner--tl { top: 12px; left: 12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--tr { top: 12px; right: 12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--br { bottom: 12px; right: 12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hud__top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px var(--pad) 0;
}
.hud__left, .hud__right { display: flex; align-items: center; gap: 22px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 34px;
  padding-top: 7px;
  border: 1.5px solid var(--white);
  border-radius: 2px;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}
.brand__mark::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: repeating-linear-gradient(-58deg, var(--gold) 0 5px, transparent 5px 10px);
  border-bottom: 1.5px solid var(--white);
  transform-origin: 0 100%;
  transition: transform 0.35s var(--ease-io);
}
.brand:hover .brand__mark::before { transform: rotate(-14deg); }
.brand__name { font-size: 11px; letter-spacing: 0.22em; white-space: nowrap; }

.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--w-80); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.4s steps(2) infinite; }
.hud__scene { color: var(--w-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__scene b { color: var(--white); font-weight: 500; }

.hud__fx {
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.hud__fx.is-on { opacity: 1; }
.hud__play { color: var(--gold); min-width: 0; white-space: nowrap; }
.tc { display: inline-flex; align-items: baseline; gap: 8px; }
.tc small { font-size: 9px; color: var(--gold); letter-spacing: 0.2em; }
.tc__value { font-weight: 500; font-size: 13px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.hud__fps { color: var(--w-60); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--w-40);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.menu-btn__icon { display: grid; gap: 4px; width: 14px; }
.menu-btn__icon i { display: block; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-io); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* timeline */
.tl {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: 22px;
  height: 62px;
  display: grid;
  grid-template-columns: 70px 1fr;
  border: 1px solid var(--w-10);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.62);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  overflow: hidden;
}
.tl__gutter {
  display: grid;
  grid-template-rows: 16px 1fr 1fr;
  border-right: 1px solid var(--w-10);
  font-size: 9px;
  color: var(--w-60);
}
.tl__gutter span { display: flex; align-items: center; padding-left: 10px; border-bottom: 1px solid var(--w-05); }
.tl__seq { color: var(--gold); font-size: 8px; overflow: hidden; white-space: nowrap; }
.tl__lanes {
  position: relative;
  display: grid;
  grid-template-rows: 16px 1fr 1fr;
  cursor: ew-resize;
  touch-action: none;
}
.tl__ruler {
  position: relative;
  border-bottom: 1px solid var(--w-05);
  background-image: linear-gradient(to right, var(--w-20) 1px, transparent 1px);
  background-size: 2% 5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.tl__ruler span { position: absolute; top: 2px; font-size: 7.5px; letter-spacing: 0.06em; color: var(--w-40); padding-left: 4px; border-left: 1px solid var(--w-40); line-height: 1; height: 13px; }
.tl__track { position: relative; border-bottom: 1px solid var(--w-05); }
.tl__clip {
  position: absolute; top: 3px; bottom: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #33608F, #264A73);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--w-80);
  padding: 0 7px;
  display: flex; align-items: center;
  overflow: hidden; white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.tl__clip.is-live { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink); border-color: transparent; }
.tl__trans {
  position: absolute; top: 3px; bottom: 3px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.35) 0 2px, rgba(255, 255, 255, 0.08) 2px 5px);
  border-radius: 3px;
  z-index: 1;
}
.tl__wave { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); }
.tl__wave path { fill: rgba(220, 161, 28, 0.55); }
.tl__playhead {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  z-index: 3;
  will-change: transform;
}
.tl__playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.tl__head {
  position: absolute; top: 0; left: -6px;
  width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.hud__hint {
  position: absolute;
  right: calc(var(--pad) + 8px);
  bottom: 4px;
  margin: 0;
  font-size: 9.5px;
  color: var(--w-60);
  letter-spacing: 0.16em;
  display: flex; align-items: center; gap: 4px;
}
.hud__hint kbd {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border: 1px solid var(--w-40);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--white);
}
.hud__hint kbd:last-of-type { margin-right: 8px; }

.mprog { display: none; }

/* =====================================================================
   MENU
   ===================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(47, 86, 130, 0.9), transparent 60%),
    linear-gradient(160deg, #1A3150, #0A1622);
  clip-path: circle(0% at calc(100% - 70px) 40px);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
  overflow-y: auto;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 70px) 40px); visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.menu__inner {
  min-height: 100%;
  display: flex; flex-direction: column;
  padding: 26px var(--pad) 40px;
}
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4vh; }
.menu__eyebrow { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.menu__close { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--w-40); border-radius: 999px; }
.menu__close:hover { background: var(--white); color: var(--ink); }
.menu__list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu__list li { border-top: 1px solid var(--w-10); overflow: hidden; }
.menu__list li:last-child { border-bottom: 1px solid var(--w-10); }
.menu__item {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: clamp(8px, 1.4vh, 16px) 0;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out), color 0.3s;
  transition-delay: calc(var(--i) * 60ms + 250ms);
}
.menu.is-open .menu__item { transform: none; }
.menu__num { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.12em; }
.menu__title { font-family: var(--f-sans); font-stretch: 62%; font-weight: 800; font-size: clamp(36px, 6.4vh, 76px); line-height: 0.95; text-transform: uppercase; transition: transform 0.5s var(--ease-out), color 0.3s; }
.menu__act { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--w-60); }
.menu__tc { font-family: var(--f-mono); font-size: 11px; color: var(--w-40); letter-spacing: 0.1em; min-width: 104px; text-align: right; }
.menu__item:hover .menu__title, .menu__item:focus-visible .menu__title { color: var(--gold); transform: translateX(14px); }
.menu__item.is-current .menu__num::after { content: " ●"; }
.menu__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 4vh;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--w-60);
}
.menu__foot a { text-decoration: none; color: var(--white); }
.menu__foot a:hover { color: var(--gold); }

/* =====================================================================
   SCREENING ROOM
   ===================================================================== */
.screening { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 4vh var(--pad); }
.screening[hidden] { display: none; }
.screening:not(.is-open) { pointer-events: none; } /* closing: let the page under it take the pointer */
.screening__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 8, 14, 0.94);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.screening.is-open .screening__backdrop { opacity: 1; }
.screening__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
}
.screening.is-open .screening__panel { opacity: 1; transform: none; }
.screening__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 0 12px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w-60);
}
.screening__label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.screening__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.4s steps(2) infinite; }
.screening__close { padding: 8px 14px; border: 1px solid var(--w-40); border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.screening__close:hover { background: var(--white); color: var(--ink); }
.screening__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.screening__video iframe, .screening__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screening__soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 24px;
}
.screening__soon .poster { position: absolute; inset: 0; opacity: 0.55; }
.screening__soon .poster > span:not(.poster__shape) { display: none; }
.screening__soon > *:not(.poster) { position: relative; }
.screening__soon h4 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 52px); line-height: 1; }
.screening__soon p { margin: 0; color: var(--w-80); }
.screening__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px 40px;
  padding: 26px 0 6px;
}
.screening__cat { margin: 0 0 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.screening__title { margin: 0; font-family: var(--f-sans); font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 4.6vw, 72px); line-height: 0.9; text-transform: uppercase; }
.screening__desc { margin: 0 0 18px; color: var(--w-80); font-size: 16px; line-height: 1.6; }
.screening__meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0; }
.screening__meta > div { display: grid; gap: 4px; }
.screening__meta dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w-40); }
.screening__meta dd { margin: 0; font-family: var(--f-mono); font-size: 13px; }
.screening__stats {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  margin: 0 0 22px;
  border-top: 1px solid var(--w-10);
  border-bottom: 1px solid var(--w-10);
}
.screening__stats[hidden], .screening__src[hidden] { display: none; }
.screening__stats .stat { flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 10px 14px 0; min-width: 0; }
.screening__stats .stat + .stat { padding-left: 14px; border-left: 1px solid var(--w-10); }
.screening__stats .stat svg { width: 16px; height: 16px; }
.screening__stats .stat b {
  font-family: var(--f-sans); font-stretch: 62%; font-weight: 800;
  font-size: clamp(28px, 2.7vw, 42px); line-height: 0.9;
  color: var(--white);
}
.screening__stats .stat small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w-40); }
.screening__src {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 20px 0 0;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--w-40);
}
.screening__src a { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); text-decoration: none; }
.screening__src a svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.screening__src a:hover { color: var(--white); }
.screening__src a:hover svg { transform: translateX(3px); }

/* vertical (9:16) screening: video left, notes right */
.screening--vertical .screening__panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.screening--vertical .screening__bar { grid-column: 1 / -1; }
.screening--vertical .screening__video {
  height: min(78vh, 820px);
  aspect-ratio: var(--rw) / var(--rh);
}
.screening--vertical .screening__info { grid-template-columns: 1fr; align-content: center; padding: 0; }
.screening--vertical .screening__soon h4 { font-size: clamp(24px, 2.4vw, 36px); }

/* =====================================================================
   LEADER (preloader)
   ===================================================================== */
.leader {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 50%, #1A3150 0%, #0B1826 80%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s var(--ease-io);
}
.leader.is-done { clip-path: inset(50% 0 50% 0); pointer-events: none; }
.leader.is-gone { display: none; }
.leader__cross { position: absolute; background: rgba(255, 255, 255, 0.22); }
.leader__cross--h { left: 0; right: 0; top: 50%; height: 1px; }
.leader__cross--v { top: 0; bottom: 0; left: 50%; width: 1px; }
.leader__frame {
  position: relative;
  width: min(60vmin, 520px);
  aspect-ratio: 1;
  animation: flicker 0.18s steps(2) infinite;
}
@keyframes flicker { 50% { opacity: 0.93; } }
.leader__ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.78); }
.leader__ring--outer { inset: 0; }
.leader__ring--inner { inset: 9%; border-width: 1.5px; border-color: rgba(255, 255, 255, 0.5); }
.leader__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(220, 161, 28, 0.5) 0deg, rgba(220, 161, 28, 0.5) var(--a, 0deg), transparent var(--a, 0deg));
}
.leader__num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: min(36vmin, 310px);
  line-height: 1;
  padding-top: 0.04em;
  color: var(--white);
}
.leader__meta {
  position: absolute; left: var(--pad); bottom: 6vh;
  display: flex; gap: 26px;
  margin: 0;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--w-60);
}
.leader__meta span:first-child { color: var(--gold); }
.leader__skip {
  position: absolute; right: var(--pad); bottom: calc(6vh - 8px);
  padding: 8px 14px;
  border: 1px solid var(--w-20);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w-80);
}
.leader__skip:hover { border-color: var(--white); color: var(--white); }
.leader__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.leader.is-flash .leader__flash { animation: lflash 0.22s ease-out; }
@keyframes lflash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* =====================================================================
   CURSOR
   ===================================================================== */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; }
/* video players + screening room get the normal system cursor back
   (native video controls, fullscreen and embeds can't show the custom one) */
html.has-cursor .screening, html.has-cursor .screening *,
html.has-cursor video, html.has-cursor iframe,
html.has-cursor .pick__frame.is-playing .pick__screen,
html.has-cursor .pick__frame.is-playing .pick__screen * { cursor: auto !important; }
html.has-cursor .screening :is(a, button) { cursor: pointer !important; }
.cursor__ring, .cursor__dot {
  position: fixed; left: 0; top: 0; z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); transition: opacity 0.2s; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.45s var(--ease-out), background 0.3s, border-color 0.3s;
}
.cursor__label {
  position: relative;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
  white-space: nowrap;
  /* letter-spacing leaves a gap after the last letter; pad the front so the word sits dead centre */
  padding-left: 0.18em;
  -webkit-font-smoothing: antialiased;
}
.cursor.is-hover .cursor__ring::before { transform: scale(1.5); border-color: var(--gold); }
.cursor.has-label .cursor__ring::before { transform: scale(2.3); background: var(--gold); border-color: var(--gold); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
/* with a label (Play / Scrub / View…) the dot would sit on top of the word — hide it */
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(0.8); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .slate-wrap { width: clamp(200px, 24vw, 260px); }
  .callsheet { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .callsheet__detail { grid-column: 2 / 4; grid-row: 2; }
}

@media (max-width: 900px) {
  :root { --hud-top: 78px; --hud-bottom: 64px; --tl-top: 34px; }

  .brand__name, .hud__fps, .hud__scene, .hud__fx, .hud__hint, .tl, .rec { display: none; }
  .hud__top { padding-top: 18px; }
  .hud__right { gap: 14px; }
  .mprog {
    display: block;
    position: absolute; left: 24px; right: 24px; bottom: 20px;
    height: 2px; background: var(--w-20);
  }
  .mprog__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

  .hero { justify-content: flex-start; padding-top: calc(var(--hud-top) + 4vh); padding-bottom: 90px; }
  .hero__line--2 { padding-left: 0.5em; }
  .slate-wrap {
    position: relative;
    right: auto; top: auto;
    width: min(230px, 62vw);
    margin: 104px 4px 0 auto;
    transform: rotate(4deg);
  }
  .hero__foot { position: relative; left: auto; right: auto; bottom: auto; margin-top: 5vh; flex-wrap: wrap; }
  .hero__foot .loc { display: none; }

  .about__grid, .about__grid.has-photo, .score__grid, .vision__head, .vision__grid { grid-template-columns: minmax(0, 1fr); }
  .about { padding-bottom: 80px; }
  .script-wrap.has-photo { padding-left: 0; }
  .headshot { position: relative; top: auto; left: auto; width: min(54vw, 230px); margin: 0 0 -34px 10px; }
  .headshot figcaption { font-size: 10px; }

  .pick, .pick--tall {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 22px;
    padding: calc(var(--hud-top) + 70px) var(--pad) calc(var(--hud-bottom) + 34px);
  }
  .pick--tall .pick__media { order: 0; }
  .pick--tall .pick__info { justify-self: stretch; }
  .pick__info { max-width: none; }
  .pick__frame { --avail: 30vh; }
  .pick__guides { inset: -8px; }
  .pick__no { margin-bottom: 8px; }
  .pick__title { font-size: 32px; }
  .pick__meta { margin-top: 8px; }
  .pick__desc { margin-top: 12px; padding-top: 10px; }
  .pick__tag { margin-bottom: 6px; }
  .pick__desc p { font-size: 14px; line-height: 1.5; }
  .pick__tools { margin-top: 12px; }
  .logo { height: 34px; min-width: 34px; padding: 0 9px; border-radius: 8px; }
  .logo__name { font-size: 9px; letter-spacing: 0.1em; }
  .selects__intro { font-size: 16px; }
  .selects.is-stacked .pick { padding-top: 40px; }
  .selects.is-stacked .pick__frame { --avail: 40vh; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .script { transform: rotate(0.8deg); }

  .works__intro { width: 78vw; }
  .frame { --fw: min(78vw, 64vh); }
  .works__end { width: 72vw; }

  .monitors { grid-template-columns: 1fr; }
  .eq { height: 70px; }
  .score { padding-bottom: 80px; }

  .laurels { gap: 0; }
  .laurel { width: min(31vw, 170px); }
  .laurel__top { font-size: 7.5px; letter-spacing: 0.2em; }
  .laurel__main { font-size: 17px; }
  .laurel__year { font-size: 10px; }
  .vision { padding-bottom: 80px; }

  .credit { grid-template-columns: 1fr; gap: 4px; text-align: center; padding: 12px 0; }
  .credits-photo img { object-position: 58% 40%; }
  .credit__role { text-align: center; }

  .menu__item { grid-template-columns: 44px 1fr; }
  .menu__act, .menu__tc { display: none; }

  .screening__info { grid-template-columns: 1fr; }
  .screening--vertical .screening__panel { grid-template-columns: minmax(0, 1fr); }
  .screening--vertical .screening__video { height: min(62vh, 150vw); margin: 0 auto; }
  .screening--vertical .screening__info { padding: 22px 0 6px; }
  .works--vertical .frame { --ih: clamp(240px, calc(100vh - var(--hud-top) - var(--hud-bottom) - 236px), 470px); }
}

@media (max-width: 520px) {
  .leader__meta { flex-direction: column; gap: 6px; bottom: 5vh; }
  .hero__title { font-size: 21.5vw; }
  .callsheet__row { padding: 14px; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .grain,
  html:not(.force-motion) .leak,
  html:not(.force-motion) .flare,
  html:not(.force-motion) .leader__frame,
  html:not(.force-motion) .vision-bg__spot { animation: none !important; }
  html:not(.force-motion) .rv,
  html:not(.force-motion) .mask__in,
  html:not(.force-motion) .ch,
  html:not(.force-motion) .sl,
  html:not(.force-motion) .laurel .leaf,
  html:not(.force-motion) .laurel .stem,
  html:not(.force-motion) .menu__item { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html:not(.force-motion) .scene.is-in .slate__arm,
  html:not(.force-motion) .scene.is-in .stamp { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  html:not(.force-motion) .headshot { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
