/* cast.css: the cast page (/cast). Flow layout; numbers measured from the live Framer page at 1440
   and 390 wide. Desktop is 1200px and up; tablet and phone (below 1200) share the phone design,
   as live does (on tablet the cards and the finale stay 366/390px wide, centred). */

.cast-page { --ink: rgb(0, 0, 5); --display: "Inter Display", "Inter", sans-serif; }

/* ---------- 1. Hero ---------- */
.cast-hero { position: relative; height: 494px; overflow: hidden; background: #000; }
.cast-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-hero p { position: absolute; left: 62px; color: var(--white); }
.cast-hero .kicker { top: 178px; font: 400 24px/28.8px var(--mono); white-space: pre; }
.cast-hero .kicker b { color: var(--gold); }
.cast-hero .intro { top: 237.5px; width: 484px; font: 400 24px/28.8px var(--sans); white-space: pre-wrap; }
@media (max-width: 1199.98px) {
  .cast-hero { height: 402px; }
  .cast-hero p { left: 32px; }
  .cast-hero .kicker { top: 62px; width: 216px; white-space: pre-wrap; }
  .cast-hero .intro { top: 178.5px; width: 235px; }
}

/* ---------- 2. The cast ---------- */
.team { position: relative; padding: 49px 0 0; height: 2866px; }   /* hero end to finale start, as live */
.team h1 { margin: 0 0 0 62px; font: 600 66px/80px var(--display); letter-spacing: -3px; color: var(--ink); font-feature-settings: "ss02", "salt"; }
.cards { display: grid; grid-template-columns: repeat(3, 360px); grid-auto-rows: 385px; column-gap: 20px; row-gap: 13.83px; align-items: start;
  justify-content: center; margin-top: 76px; }
.card { display: flex; flex-direction: column; padding: 20px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(79, 83, 94, 0.2);
  background-color: rgba(0, 229, 255, 0); transition: background-color .2s var(--ease); color: var(--ink); }
.card:hover { background-color: rgb(0, 229, 255); }
.card img { width: 100%; height: 250px; border-radius: 8px; object-fit: cover; }
.card .who { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.card .txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card .name { font: 500 20px/26px var(--display); white-space: pre; font-feature-settings: "salt"; }
.card .role { font: 400 16px/22px var(--display); letter-spacing: -0.2px; white-space: pre-wrap; font-feature-settings: "blwf", "cv09", "cv03", "cv04", "cv11", "salt", "ss02", "ss01"; }
.card .li { flex: none; width: 30px; height: 33px; fill: var(--ink); }
/* where each face sits in its frame (live values; desktop first) */
.pos-harry { object-position: 59.5% 10.3%; } .pos-eckel { object-position: 61.5% 11.5%; } .pos-gladden { object-position: 43.8% 14.3%; }
.pos-gulbranson { object-position: 51.7% 13.2%; } .pos-tracey { object-position: 44.7% 19.5%; } .pos-garnet { object-position: 49.3% 16%; }
.pos-patel { object-position: 49.1% 13.7%; } .pos-yager { object-position: 43.8% 16.7%; }
@media (max-width: 1199.98px) {
  /* deliberate fix: live fixes this at 6100px, so the finale covers the last card (Deb Yager) on phone and tablet. Here it grows to fit. */
  .team { padding-top: 48px; height: auto; padding-bottom: 40px; }
  .team h1 { width: 343px; margin-left: 32px; font-size: 52px; line-height: 56px; }
  .cards { grid-template-columns: 366px; grid-auto-rows: auto; row-gap: 5px; margin-top: 48px; }
  .card { padding: 20px; }
  .pos-harry { object-position: 55.7% 13.2%; } .pos-eckel { object-position: 62.1% 9.4%; } .pos-gladden { object-position: 42.4% 15.8%; }
  .pos-gulbranson { object-position: 51.9% 11.8%; } .pos-tracey { object-position: 45.9% 16.4%; } .pos-garnet { object-position: 48.9% 15.8%; }
  .pos-patel { object-position: 49.8% 21.4%; } .pos-yager { object-position: 46% 18.2%; }
}

/* ---------- 3. Finale ---------- */
.finale { position: relative; height: 1652px; overflow: hidden; color: var(--white); }
.finale > * { position: absolute; margin: 0; }
.finale .bg { left: 0; top: 31px; width: 100%; height: 1709px; object-fit: cover; }
.finale .fade { left: 0; width: 100%; object-fit: cover; }
.finale .f1 { top: 0; height: 600px; }
.finale .f2 { top: 3px; height: 910px; }
.finale .directed { left: 50%; translate: -50% 0; top: 121px; font: 400 24px/28.8px var(--mono); white-space: pre; }
.finale .names { left: 50%; translate: -50% 0; top: 198.7px; display: flex; align-items: center; gap: 92px; width: max-content; }
.finale .names p { font: 700 21px/25.2px var(--mono); text-align: center; white-space: pre; }
.finale .names p:last-child { width: 126px; white-space: pre-wrap; }
.finale .title { left: 50%; translate: -50% 0; top: 327px; width: 715px; height: 326px; object-fit: cover; }
.finale .streaming { left: 50%; translate: -50% 0; top: 709px; font: 400 50px/60px var(--sans); white-space: pre; }
.finale .streaming b { color: var(--cyan); }
.finale .join { left: 50%; translate: -50% 0; top: 1069.5px; font: 400 24px/28.8px var(--mono); text-align: center; white-space: pre; }
.finale .signup-form { left: 50%; translate: -50% 0; top: 1125px; width: 465px; }
/* desktop: the consent line sits under the form, wider than it (36% of the window), as live */
.finale .signup-form .consent { position: absolute; left: 50%; top: 355.2px; width: 36vw; translate: -50% -50%; }
@media (max-width: 1199.98px) {
  .finale { position: relative; z-index: 1; width: 390px; height: 1076px; margin-left: calc(50% - 195px); }
  .finale .bg { top: 0; height: 1076px; }
  .finale .f1 { top: 0; height: 311px; }
  .finale .f2 { top: 20px; height: 735px; }
  .finale .directed { top: 60px; font-size: 18px; line-height: 21.6px; }
  .finale .names { top: 106px; gap: 12px; }
  .finale .names p { font-size: 9px; line-height: 10.8px; }
  .finale .names p.hemal { font-size: 11px; line-height: 13.2px; }
  .finale .names p:last-child { width: auto; white-space: pre; }
  .finale .title { left: 41.5px; translate: none; top: 181px; width: 301px; height: 171px; object-fit: contain; }
  .finale .streaming { left: 33px; translate: none; top: 370px; width: 336px; font-size: 25px; line-height: 30px; text-align: center; }
  .finale .join { left: 20.5px; translate: none; top: 592.8px; width: 349px; font-size: 18px; line-height: 21.6px; white-space: pre-wrap; }
  .finale .signup-form { left: 43px; translate: none; top: 621.1px; width: 304px; }
  .finale .signup-form .consent { position: static; width: auto; translate: none; }
}

/* Heading fades up from a blur when it scrolls into view (cast.js), as on live. */
.js-reveal .reveal { transition: opacity .45s cubic-bezier(.2, .7, .2, 1), filter .45s cubic-bezier(.2, .7, .2, 1), translate .45s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal:not(.in) { opacity: 0; filter: blur(10px); translate: 0 10px; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { transition: none; } .js-reveal .reveal:not(.in) { opacity: 1; filter: none; translate: none; } }
