/* AGENTS materials page. Type, color and imagery come from the investor deck
   and key art: deep teal night, the neon wordmark, wide-tracked caps with one
   heavy word. Every scene is a still from the deck; Cassidy's own lines are the
   italic ones with the neon dot. */

@property --neon { syntax: '<color>'; inherits: true; initial-value: #63e6ff; }

:root {
  color-scheme: dark;
  --night: #03080b;
  --ink: #eaf4f6;
  --soft: #c9d8dc;
  --dim: #9db1b7;
  --neon: #63e6ff;
  --face: "Avenir Next", Avenir, Jost, "Helvetica Neue", Arial, sans-serif;
  --g: max(18px, env(safe-area-inset-left, 0px));
  --glow: 0 0 6px color-mix(in srgb, var(--neon) 62%, transparent),
          0 0 26px color-mix(in srgb, var(--neon) 34%, transparent),
          0 0 64px color-mix(in srgb, var(--neon) 16%, transparent);
  transition: --neon 1.4s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 var(--face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: color-mix(in srgb, var(--neon) 32%, transparent); color: #fff; }
:focus-visible { outline: 1px solid var(--neon); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Film grain and Cassidy's lighting sit over everything but take no clicks. */
.grain, .lighting { position: fixed; pointer-events: none; }
.grain {
  inset: -80px;
  z-index: 50;
  opacity: .1;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (pointer: fine) and (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .grain { animation: grain .8s steps(4) infinite; }
}
@keyframes grain { 25% { translate: -22px 14px; } 50% { translate: 16px -18px; } 75% { translate: -8px 22px; } }
.lighting { inset: 0; z-index: 45; opacity: 0; mix-blend-mode: soft-light; transition: opacity 1.4s ease, background 1.4s ease; }

/* ---- Top bar ---------------------------------------------------------------- */
.bar {
  position: fixed; z-index: 60; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--g) 28px;
  background: linear-gradient(180deg, rgba(3, 8, 11, .94) 0%, rgba(3, 8, 11, .72) 55%, rgba(3, 8, 11, 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-mark { width: 116px; opacity: 0; translate: 0 -6px; transition: opacity .5s ease, translate .5s ease; }
.past-hero .bar-mark { opacity: 1; translate: 0 0; }
.bar-mark img { width: 100%; height: auto; }
.bar nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.bar nav a {
  padding: 6px 0;
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--soft);
  transition: color .25s, text-shadow .25s;
}
.bar nav a:hover, .bar nav a:focus-visible { color: #fff; text-shadow: var(--glow); }

/* ---- Scenes: a pinned still behind the copy --------------------------------- */
.scene {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 1200px); justify-content: center; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: 16vh var(--g) 14vh;
}
.still { position: absolute; inset: 0; z-index: -1; }
.pin { position: sticky; top: 0; height: min(100vh, 100%); height: min(100svh, 100%); overflow: hidden; container-type: size; }
.frame {
  position: absolute;
  left: var(--fx, 50%); top: var(--fy, 50%);
  width: max(100cqw, 100cqh * var(--ar));
  aspect-ratio: var(--ar);
  translate: calc(var(--fx, 50%) * -1) calc(var(--fy, 50%) * -1);
  scale: 1.01;
  transition: scale 18s cubic-bezier(.16, .6, .24, 1);
}
.scene.is-in .frame { scale: 1.075; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--lift, brightness(1)) var(--grade, brightness(1)); transition: filter 1.4s ease; }
.pin::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--scrim, linear-gradient(transparent, transparent)), var(--fade);
}
:root {
  /* Every still dissolves through black into the next. */
  --fade: linear-gradient(180deg, var(--night) 0%, rgba(3, 8, 11, .7) 4%, rgba(3, 8, 11, .38) 9%, rgba(3, 8, 11, .12) 14%, transparent 19%,
          transparent 81%, rgba(3, 8, 11, .12) 86%, rgba(3, 8, 11, .38) 91%, rgba(3, 8, 11, .7) 96%, var(--night) 100%);
}
.frame.fx { z-index: 2; pointer-events: none; }
.frame.fx > * { pointer-events: auto; }

.copy { position: relative; max-width: 35rem; }
.copy.at-right { justify-self: end; }
.copy.at-center { justify-self: center; max-width: 52rem; text-align: center; }
.copy.wide { max-width: none; width: 100%; }
/* A soft dark halo keeps type readable where the stills run bright. */
.scene .copy { text-shadow: 0 1px 3px rgba(3, 8, 11, .6), 0 0 28px rgba(3, 8, 11, .55); }

/* ---- Type ------------------------------------------------------------------- */
.title {
  margin: 0 0 clamp(22px, 3.6vh, 38px);
  font-size: clamp(25px, 3vw, 42px); font-weight: 300; line-height: 1.12;
  letter-spacing: .26em; text-transform: uppercase; color: #fff;
}
.title b { font-weight: 700; letter-spacing: .14em; text-shadow: var(--glow); }
.copy p { color: var(--soft); font-size: clamp(16.5px, 1.18vw, 18.5px); }
.copy p + p { margin-top: 1.05em; }
.copy p.lead { color: var(--ink); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; }
.copy .beat {
  margin-top: .5em;
  font-size: clamp(34px, 4.8vw, 70px); font-weight: 300; line-height: 1.04; letter-spacing: .01em;
  color: #f4fbfc;
}
.copy .beat.small { font-size: clamp(26px, 3vw, 42px); }
.beat b, .name b, .tagline b, .facts b, .run b, .card-line b { font-weight: 600; color: #fff; text-shadow: var(--glow); }
.credit, .copy p.credit { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--soft); }
.credit b { font-weight: 700; color: #fff; }

/* Cassidy's asides: her voice, marked by her dot. */
.aside {
  display: flex; align-items: baseline; gap: 11px;
  margin: 22px 0 0; padding: 0; border: 0; background: none;
  font: italic 400 15.5px/1.45 var(--face); text-align: left;
  color: color-mix(in srgb, var(--neon) 72%, #fff);
}
.copy p.aside { color: color-mix(in srgb, var(--neon) 72%, #fff); font-size: 15.5px; }
.aside::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 10px var(--neon);
  translate: 0 -2px; animation: breathe 2.6s ease-in-out infinite;
}
.at-center .aside { justify-content: center; margin-inline: auto; }
button.aside { cursor: pointer; transition: color .25s; }
button.aside:hover, button.aside:focus-visible { color: #fff; }
.needs-cassidy { visibility: hidden; }
.cassidy-ready .needs-cassidy { visibility: visible; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---- Reveals ---------------------------------------------------------------- */
.js .rv {
  opacity: 0; translate: 0 18px;
  transition: opacity 1s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 110ms + 100ms);
}
.js .rv.is-in { opacity: 1; translate: 0 0; }

/* ---- Hero ------------------------------------------------------------------- */
.hero {
  justify-items: center; text-align: center; padding-block: 14vh 12vh;
  --scrim: radial-gradient(70% 62% at 50% 52%, rgba(3, 8, 11, 0), rgba(3, 8, 11, .3));
  --lift: brightness(1.45);
}
.mark { margin: 0 auto; width: min(82vw, 1000px); }
.mark img { width: 100%; height: auto; }
.js .mark img { animation: ignite 2.4s linear .35s both; }
@keyframes ignite {
  0% { opacity: 0; } 6% { opacity: .85; } 8% { opacity: .05; } 15% { opacity: .9; } 17% { opacity: .15; }
  24% { opacity: 1; filter: brightness(1.3); } 27% { opacity: .35; } 34%, 100% { opacity: 1; filter: brightness(1); }
}
.hero .credit { margin-top: clamp(14px, 2.6vh, 28px); line-height: 2.1; }
.hero .copy p.logline {
  max-width: 34em; margin: clamp(26px, 6vh, 60px) auto 0;
  font-size: clamp(17px, 1.45vw, 21px); color: var(--ink); text-shadow: 0 1px 18px rgba(0, 0, 0, .7);
}
.hero .copy p.format { margin-top: 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.js .late { animation: rise 1.1s ease both; animation-delay: calc(2.3s + var(--d, 0) * .18s); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.flare {
  position: absolute; left: 49.6%; top: 6%; width: 26%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(235, 255, 255, .5), rgba(140, 230, 255, .16) 45%, transparent);
  animation: flare 7s ease-in-out infinite;
}
@keyframes flare { 0%, 100% { opacity: .5; scale: 1; } 45% { opacity: .8; scale: 1.07; } 50% { opacity: .45; } 53% { opacity: .85; } }
.cue {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); margin-left: -.5px;
  width: 1px; height: 56px; background: linear-gradient(var(--neon), transparent);
  transform-origin: top; animation: cue 2.6s ease-in-out 3s infinite both;
}
@keyframes cue { 0% { scale: 1 0; opacity: 0; } 30% { opacity: .9; } 60% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; translate: 0 20px; } }

/* ---- The series ------------------------------------------------------------- */
.scene-series { --fx: 58%; --lift: brightness(1.65) contrast(1.04); --scrim: linear-gradient(90deg, rgba(3, 8, 11, .6) 0%, rgba(3, 8, 11, .36) 34%, rgba(3, 8, 11, .04) 62%, transparent); }
.phone-glow {
  position: absolute; left: 83%; top: 85.5%; width: 26%; aspect-ratio: 3.2; translate: -50% -50%;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(closest-side, rgba(175, 232, 255, .62), color-mix(in srgb, var(--neon) 22%, transparent) 55%, transparent);
  mix-blend-mode: screen; opacity: .3;
  transition: opacity 1.4s ease;
  animation: pulse 3.6s ease-in-out infinite;
}
.scene.is-in .phone-glow { opacity: .75; }
.cassidy-on .phone-glow { opacity: 1; animation-duration: 1.4s; }
@keyframes pulse { 0%, 100% { scale: 1; filter: brightness(1); } 50% { scale: 1.08; filter: brightness(1.35); } }
.name {
  display: block; margin-top: .55em;
  font-size: clamp(36px, 5.4vw, 78px); font-weight: 300; line-height: 1.02; letter-spacing: .015em;
  color: #f4fbfc; cursor: pointer;
}
.copy p.name { margin-top: .45em; font-size: clamp(36px, 5.4vw, 78px); color: #f4fbfc; }
.name b { transition: text-shadow .3s ease; }
.name:hover b, .name:focus-visible b {
  text-shadow: 0 0 8px var(--neon), 0 0 32px var(--neon), 0 0 80px color-mix(in srgb, var(--neon) 45%, transparent);
}
.name:focus-visible { outline: none; }

.scene-objective { --fx: 32%; --lift: brightness(1.9) contrast(1.06); --scrim: linear-gradient(270deg, rgba(3, 8, 11, .64) 0%, rgba(3, 8, 11, .4) 40%, rgba(3, 8, 11, .04) 74%); }
.scene-obstacles { --fx: 40%; --lift: brightness(1.6); --scrim: linear-gradient(90deg, rgba(3, 8, 11, .64) 0%, rgba(3, 8, 11, .42) 40%, rgba(3, 8, 11, .08) 76%); }
.acts { list-style: none; margin: 30px 0 32px; padding: 0; }
.acts li { margin: 0 0 .34em; font-size: clamp(23px, 2.6vw, 36px); font-weight: 300; line-height: 1.18; color: #f1f8f9; }

.scene-pool { min-height: 90svh; --scrim: radial-gradient(60% 70% at 50% 50%, rgba(3, 8, 11, .05), rgba(3, 8, 11, .32)); }
.veil {
  position: absolute; inset: -8%;
  background: url(/assets/img/pool-veil.webp) center / cover;
  filter: blur(22px) saturate(1.3);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { scale: 1.04; translate: -1% 0; } to { scale: 1.16; translate: 1.5% -1.2%; } }
.scene-pool .frame { opacity: 0; transition: opacity 2s ease, scale 18s cubic-bezier(.16, .6, .24, 1); }
.scene-pool.is-unveiled .frame { opacity: 1; }

.scene-analog { --fx: 62%; --lift: brightness(1.45); --scrim: linear-gradient(90deg, rgba(3, 8, 11, .68) 0%, rgba(3, 8, 11, .44) 42%, rgba(3, 8, 11, .1) 76%); }

.scene-tagline { min-height: 88svh; --fx: 62%; --lift: brightness(1.42); --scrim: linear-gradient(90deg, rgba(3, 8, 11, .55) 0%, rgba(3, 8, 11, .1) 58%, transparent); }
.copy p.tagline {
  font-size: clamp(30px, 5.4vw, 84px); font-weight: 200; line-height: 1.12;
  letter-spacing: .2em; text-transform: uppercase; color: #fff;
}

/* ---- Tone ------------------------------------------------------------------- */
.scene-tone {
  align-items: end; --fy: 38%;
  --fade: linear-gradient(180deg, var(--night) 0%, rgba(3, 8, 11, .9) 8%, rgba(3, 8, 11, .62) 18%, rgba(3, 8, 11, .3) 28%, transparent 40%,
          transparent 76%, rgba(3, 8, 11, .5) 88%, var(--night) 100%);
  --scrim: linear-gradient(180deg, rgba(3, 8, 11, 0) 30%, rgba(3, 8, 11, .5) 58%, rgba(3, 8, 11, .82) 84%);
}
.copy p.statement { max-width: 30em; font-size: clamp(22px, 2.5vw, 36px); font-weight: 300; line-height: 1.28; color: #f1f8f9; }
.pillars { display: grid; gap: 14px; margin: 34px 0 0; max-width: 62rem; }
.pillars > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 20px; align-items: baseline; }
.pillars dt {
  font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: #fff; text-shadow: var(--glow);
}
.pillars dd { margin: 0; color: var(--soft); }

/* ---- Cast ------------------------------------------------------------------- */
.scene-cast { --lift: brightness(1.4); --scrim: linear-gradient(180deg, rgba(3, 8, 11, .18), rgba(3, 8, 11, .55)); }
.lineup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lineup li { position: relative; outline-offset: -1px; transition: opacity .6s ease, scale .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0a1418; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: scale 1s cubic-bezier(.2, .7, .2, 1); }
.shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(3, 8, 11, .82)); }
.who { position: absolute; z-index: 2; left: 12px; right: 10px; bottom: 12px; display: grid; gap: 3px; }
.copy .who { font-size: inherit; color: inherit; }
.who .actor { font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; line-height: 1.2; color: #fff; }
.who .role { font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--neon); }
.who .credits {
  max-height: 0; overflow: hidden; opacity: 0;
  font-size: 11.5px; font-style: italic; line-height: 1.35; color: var(--soft);
  transition: max-height .5s ease, opacity .5s ease;
}
.lineup li:hover .shot img, .lineup li:focus-visible .shot img, .lineup li.is-featured .shot img { scale: 1.04; }
.lineup li:hover .credits, .lineup li:focus-visible .credits, .lineup li.is-featured .credits { max-height: 4.2em; opacity: 1; }
.lineup.has-feature li:not(.is-featured) { opacity: .38; }
.lineup li.is-featured {
  z-index: 3; scale: 1.07;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 55%, transparent), 0 24px 70px rgba(0, 0, 0, .7);
}
.copy p.note { margin-top: 22px; font-size: 14px; color: var(--dim); }

/* ---- Why now ---------------------------------------------------------------- */
.scene-why { --fx: 66%; --lift: brightness(1.32); --scrim: linear-gradient(90deg, rgba(3, 8, 11, .72) 0%, rgba(3, 8, 11, .48) 42%, rgba(3, 8, 11, .08) 76%); }
.facts { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: .45em; }
.facts li { font-size: clamp(21px, 2.3vw, 33px); font-weight: 300; line-height: 1.2; color: #eef7f8; }

/* ---- Filmmaker -------------------------------------------------------------- */
.scene-filmmaker { --fx: 24%; --lift: brightness(1.2); --scrim: linear-gradient(270deg, rgba(3, 8, 11, .76) 0%, rgba(3, 8, 11, .52) 40%, rgba(3, 8, 11, .05) 72%); }
.scene-filmmaker .credit { margin: -18px 0 30px; }
.quote { margin: 0 0 30px; padding: 0; }
.copy .quote p {
  text-indent: -.42em;
  font-size: clamp(19px, 1.75vw, 25px); font-style: italic; font-weight: 300; line-height: 1.45; color: #e9f3f5;
}
.quote b { font-weight: 600; color: #fff; }

/* ---- Production and the ask ------------------------------------------------- */
.scene-production { --fy: 64%; --lift: brightness(1.65); --scrim: linear-gradient(180deg, rgba(3, 8, 11, .22), rgba(3, 8, 11, .62) 42%, rgba(3, 8, 11, .78)); }
.copy p.run { max-width: 24em; font-size: clamp(26px, 3.4vw, 48px); font-weight: 300; line-height: 1.22; color: #f1f8f9; }
.deal, .ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); }
.deal { margin-top: clamp(40px, 7vh, 72px); }
.model { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: m; }
.model li { counter-increment: m; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); color: var(--soft); font-size: 16px; }
.model li::before { content: "0" counter(m); padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--neon); }
.model b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #fff; }
.ask { margin-top: clamp(56px, 10vh, 110px); align-items: start; }
.ask .credit { margin-bottom: 12px; }
.copy p.sum {
  margin-top: 4px;
  font-size: clamp(56px, 7.4vw, 112px); font-weight: 200; line-height: 1; letter-spacing: .03em;
  color: #fff; text-shadow: var(--glow); font-variant-numeric: tabular-nums;
}
.copy p.sum + p { margin-top: 16px; }
/* Use of funds: one bar per line, all on one baseline, same scale (share of the total). */
.funds { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.funds li {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.4em 6.4em;
  grid-template-areas: "name pct amt" "track track track" "what what what";
  column-gap: 12px; row-gap: 7px; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.funds .name { grid-area: name; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.funds .pct { grid-area: pct; text-align: right; color: var(--soft); font-size: 15px; }
.funds .amt { grid-area: amt; text-align: right; color: #fff; font-size: 15px; }
.funds .track { grid-area: track; height: 8px; }
.funds .track i {
  display: block; height: 100%; width: calc(var(--share) * 1%);
  border-radius: 0 4px 4px 0; background: var(--neon);
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 40%, transparent);
  transform-origin: left; scale: 0 1;
  transition: scale 1.4s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 110ms + 400ms);
}
.funds li.is-in .track i, html:not(.js) .funds .track i { scale: 1 1; }
.funds .what { grid-area: what; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.funds li.total { grid-template-areas: "name name amt"; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.funds li.total .amt { font-size: 17px; font-weight: 600; }
.copy p.floor { margin-top: clamp(40px, 7vh, 72px); max-width: 52em; font-size: 14.5px; color: var(--soft); }
.floor b { margin-right: .9em; font-size: 11.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #fff; }

/* ---- The materials and contact ---------------------------------------------- */
.scene-contact {
  align-items: end; --fx: 36%;
  --scrim: linear-gradient(180deg, rgba(3, 8, 11, .04) 0%, rgba(3, 8, 11, .4) 42%, rgba(3, 8, 11, .8) 76%);
  --lift: brightness(1.42);
}
.mats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mats a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 8px 0; text-decoration: none; }
.mat-name { font-size: clamp(27px, 3.6vw, 52px); font-weight: 300; line-height: 1.12; letter-spacing: .01em; color: #fff; transition: text-shadow .3s ease; }
.mat-name::after { content: "\2009\2197"; font-weight: 200; color: var(--neon); }
.mats a:hover .mat-name, .mats a:focus-visible .mat-name { text-shadow: var(--glow); }
.mats a:focus-visible { outline: none; }
.mat-meta { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.end { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; margin-top: clamp(48px, 9vh, 96px); }
.contact .credit { margin-bottom: 10px; }
.copy .contact-name { font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 300; }
.contact-name b { font-weight: 700; }
.copy .contact-line { margin-top: 6px; font-size: 16px; }
.contact-line a { text-decoration: none; color: var(--soft); transition: color .25s, text-shadow .25s; }
.contact-line a:hover, .contact-line a:focus-visible { color: #fff; text-shadow: var(--glow); }
.end-mark { width: min(340px, 42vw); height: auto; }
.copy p.fin { margin-top: 34px; max-width: 34em; font-size: 15.5px; color: var(--ink); }
.copy p.fine { margin-top: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }

/* ---- Cassidy's controls: cut, show, title card, relight --------------------- */
.scene.cassidy-spotlight .pin::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--neon) 32%, transparent), transparent);
  mix-blend-mode: screen; animation: flash 1.7s ease-out both;
}
.cassidy-spotlight .title b, .cassidy-spotlight .beat b, .cassidy-spotlight .name b,
.cassidy-spotlight.mat .mat-name, .cassidy-spotlight .mat-name { animation: relit 1.8s linear both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes relit {
  0%, 100% { opacity: 1; } 8% { opacity: .3; } 12% { opacity: 1; text-shadow: 0 0 10px var(--neon), 0 0 44px var(--neon), 0 0 96px var(--neon); }
  20% { opacity: .5; } 28% { opacity: 1; }
}

.reel, .card {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  padding: max(64px, 8vh) var(--g) max(104px, 15vh);
  background: rgba(2, 6, 8, .9);
  opacity: 0; transition: opacity .5s ease;
}
.reel.is-on, .card.is-on { opacity: 1; }
.reel figure { margin: 0; display: grid; justify-items: center; gap: 18px; max-width: 100%; }
.reel img {
  width: auto; height: auto; max-width: min(1280px, 100%); max-height: 66vh; max-height: 66svh;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 16%, transparent), 0 40px 120px rgba(0, 0, 0, .75);
}
.reel img.run { animation: project 1.1s linear both; }
@keyframes project {
  0% { opacity: 0; filter: brightness(2.2) blur(6px); } 8% { opacity: .9; } 11% { opacity: .2; }
  18% { opacity: 1; filter: brightness(1.4) blur(1px); } 100% { opacity: 1; filter: none; }
}
.reel figcaption { max-width: 40em; text-align: center; }
.reel figcaption .aside { margin: 0; justify-content: center; }
.card-inner { width: min(1160px, 100%); text-align: center; }
.card-line { max-width: 14em; margin-inline: auto; font-size: clamp(30px, 5.2vw, 78px); font-weight: 300; line-height: 1.08; color: #f3fbfc; }
.card-line.long { max-width: 22em; font-size: clamp(24px, 3.2vw, 48px); line-height: 1.22; }
.card .by { margin-top: 26px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.card.is-on .card-line { animation: rise 1s ease both; }
.overlay-x {
  position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: var(--g);
  padding: 10px 4px; border: 0; background: none; cursor: pointer;
  font: 700 11px/1 var(--face); letter-spacing: .28em; text-transform: uppercase; color: var(--soft);
}
.overlay-x:hover, .overlay-x:focus-visible { color: #fff; }
.lit {
  position: fixed; z-index: 8500; left: var(--g); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--neon) 30%, transparent); border-radius: 99px;
  background: rgba(3, 8, 11, .82); color: var(--soft); cursor: pointer;
  font: 600 10.5px/1 var(--face); letter-spacing: .22em; text-transform: uppercase;
}
.lit b { color: #fff; }

/* ---- The deck and the one-sheet, open on the page ----------------------------
   Below the reel and the title card, so Cassidy can throw either over a slide. */
html.dv-open { overflow: hidden; }
.deck-view {
  position: fixed; inset: 0; z-index: 8900;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #020608;
  opacity: 0; transition: opacity .45s ease;
  outline: none; overscroll-behavior: contain;
}
.deck-view.is-on { opacity: 1; }
.dv-top {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 26px;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--g) 12px;
}
.dv-name { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.dv-name b { font-weight: 700; color: #fff; text-shadow: var(--glow); }
.dv-where { display: flex; gap: 14px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.dv-n { color: var(--neon); font-variant-numeric: tabular-nums; }
.dv-ask { margin: 0 0 0 auto; font-size: 14px; }
.cassidy-on .dv-ask { visibility: hidden; }
.dv-pdf, .dv-x {
  padding: 10px 4px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 700 11px/1 var(--face); letter-spacing: .28em; text-transform: uppercase; color: var(--soft);
}
.dv-pdf::after { content: "\2009\2197"; font-weight: 400; color: var(--neon); }
.dv-pdf:hover, .dv-pdf:focus-visible, .dv-x:hover, .dv-x:focus-visible { color: #fff; }
.dv-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--g); }
.dv-slide {
  width: auto; height: auto; max-width: min(1600px, 100%); max-height: 100%;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon) 16%, transparent), 0 40px 120px rgba(0, 0, 0, .75);
}
.dv-slide:not([src]) { visibility: hidden; }
.dv-slide.run { animation: project 1.1s linear both; }
.dv-slide.flip { animation: flip .3s ease both; }
@keyframes flip { from { opacity: .3; } to { opacity: 1; } }
.dv-prev, .dv-next {
  position: absolute; top: 0; bottom: 0; width: clamp(48px, 7vw, 112px);
  display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--soft); -webkit-tap-highlight-color: transparent;
}
.dv-prev { left: 0; }
.dv-next { right: 0; }
.dv-prev::before, .dv-next::before {
  content: ""; width: 15px; height: 15px; border: solid currentColor; border-width: 0 0 1.5px 1.5px;
  rotate: 45deg; translate: 3px 0; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .9));
}
.dv-next::before { rotate: -135deg; translate: -3px 0; }
.dv-prev:hover, .dv-next:hover, .dv-prev:focus-visible, .dv-next:focus-visible { color: #fff; outline: none; }
.dv-prev:hover::before, .dv-next:hover::before, .dv-prev:focus-visible::before, .dv-next:focus-visible::before { filter: drop-shadow(0 0 6px var(--neon)); }
.dv-prev:disabled, .dv-next:disabled { opacity: .16; cursor: default; }
/* The strip stops short of the corner where Cassidy's widget sits. */
.dv-foot {
  display: grid; justify-items: start; gap: 10px;
  padding: 14px max(var(--g), 440px) max(16px, env(safe-area-inset-bottom, 0px)) var(--g);
}
.dv-strip {
  position: relative; list-style: none; margin: 0; padding: 3px; display: flex; gap: 6px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.dv-strip::-webkit-scrollbar { display: none; }
.dv-strip > li { flex: none; }
.dv-strip button { display: block; padding: 0; border: 0; background: none; cursor: pointer; opacity: .42; transition: opacity .2s ease; }
.dv-strip img { width: 76px; height: auto; box-shadow: 0 0 0 1px rgba(234, 244, 246, .12); }
.dv-strip button:hover { opacity: .8; }
.dv-strip [aria-current="true"] { opacity: 1; }
.dv-strip [aria-current="true"] img { box-shadow: 0 0 0 1px var(--neon), 0 0 16px color-mix(in srgb, var(--neon) 42%, transparent); }
.dv-fine { font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); opacity: .72; text-align: center; }
/* The one-sheet is a portrait page: read it top to bottom. */
.deck-view.is-page .dv-stage { display: block; overflow-y: auto; padding-bottom: 110px; }
.deck-view.is-page .dv-ask { visibility: hidden; }
.deck-view.is-page .dv-slide { max-height: none; width: min(980px, 100%); margin-inline: auto; cursor: auto; }
.deck-view.is-page :is(.dv-prev, .dv-next, .dv-strip, .dv-n) { display: none; }

/* Lighting moods Cassidy can set. */
html[data-light="pool"] { --neon: #5ef8e2; --grade: saturate(1.3) hue-rotate(10deg) brightness(1.05); }
html[data-light="pool"] .lighting { opacity: 1; background: radial-gradient(130% 90% at 50% 110%, rgba(40, 214, 210, .8), rgba(10, 92, 110, .35) 60%, transparent); }
html[data-light="golden"] { --neon: #ffc77a; --grade: sepia(.42) saturate(1.35) hue-rotate(-14deg) brightness(1.08); }
html[data-light="golden"] .lighting { opacity: 1; background: linear-gradient(200deg, rgba(255, 172, 92, .78), rgba(255, 118, 60, .3) 50%, transparent 82%); }
html[data-light="golden"] .mark, html[data-light="golden"] .bar-mark img, html[data-light="golden"] .end-mark { filter: hue-rotate(-158deg) saturate(1.5); }
html[data-light="server"] { --neon: #ff5b52; --grade: saturate(.55) contrast(1.14) brightness(.86); }
html[data-light="server"] .lighting { opacity: 1; background: radial-gradient(80% 60% at 12% 85%, rgba(255, 60, 50, .55), transparent 60%), radial-gradient(60% 50% at 92% 18%, rgba(60, 255, 140, .3), transparent 60%); }
html[data-light="server"] .mark, html[data-light="server"] .bar-mark img, html[data-light="server"] .end-mark { filter: hue-rotate(160deg) saturate(1.6); }
html[data-light="spotlight"] { --neon: #fff0cc; --grade: grayscale(.3) contrast(1.18) brightness(.95); }
html[data-light="spotlight"] .lighting {
  opacity: 1; mix-blend-mode: multiply;
  background: radial-gradient(62% 78% at 50% 36%, #fff 0%, #fff 46%, rgba(70, 58, 44, .62) 100%);
}
.mark, .bar-mark img, .end-mark { transition: filter 1.4s ease; }

/* ---- Small screens ---------------------------------------------------------- */
@media (max-width: 860px) {
  .deal, .ask, .end { grid-template-columns: minmax(0, 1fr); }
  .end-mark { width: min(240px, 60vw); }
  .lineup {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(46vw, 230px); gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--g) * -1); padding: 4px var(--g) 10px; scroll-padding-inline: var(--g);
    scrollbar-width: none;
  }
  .lineup::-webkit-scrollbar { display: none; }
  .lineup li { scroll-snap-align: start; }
  .who .credits { max-height: none; opacity: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .scene { align-items: end; padding: 38vh var(--g) 12vh; }
  .scene:not(.hero) .pin::after {
    background: linear-gradient(180deg, rgba(3, 8, 11, .12) 0%, rgba(3, 8, 11, .06) 24%, rgba(3, 8, 11, .56) 52%, rgba(3, 8, 11, .82) 74%), var(--fade);
  }
  .hero { align-items: center; padding: 16vh var(--g) 14vh; }
  .hero .credit { letter-spacing: .2em; }
  .hero .copy p.format { letter-spacing: .16em; }
  .copy.at-right { justify-self: stretch; }
  .scene-series { --fx: 80%; }
  .scene-objective { --fx: 40%; }
  .scene-filmmaker { --fx: 30%; }
  .scene-why { --fx: 70%; }
  .scene-pool, .scene-tagline { align-items: center; padding-block: 18vh; }
  .pillars > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bar-mark { width: 92px; }
  .bar nav { gap: 16px; }
  .bar nav a { font-size: 10.5px; letter-spacing: .2em; }
  .dv-ask { display: none; }
  .dv-pdf { margin-left: auto; }
  .dv-where { order: 5; flex-basis: 100%; }
  /* On phones Cassidy's widget is a bar along the bottom: sit above it. */
  .dv-foot { padding-right: var(--g); padding-bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 84px); }
  .dv-strip img { width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .frame, .scene.is-in .frame { scale: 1 !important; }
}
