:root {
  --cast-blue: #3270ee;
  --cast-gold: #c89045;
  --cast-red: #ef3038;
  --cast-ink: #090a0d;
  --cast-paper: #f2f0ea;
}

.cast-floor .floor-scene {
  display: block;
  background: #070605;
}

.cast-floor .floor-scene::before {
  z-index: 1;
  opacity: 1;
  background: linear-gradient(90deg, rgba(2, 3, 5, .22), transparent 32%), linear-gradient(0deg, rgba(0, 0, 0, .2), transparent 54%);
  mask-image: none;
  pointer-events: none;
}

.cast-floor__image,
.cast-floor__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cast-floor__image { object-fit: contain; }

.cast-floor__shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 6, 9, .35), transparent 26%), linear-gradient(180deg, rgba(0, 0, 0, .06), transparent 62%, rgba(0, 0, 0, .18));
  pointer-events: none;
}

.cast-floor .room-back-link { z-index: 5; }

.cast-room-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cast-hotspot {
  pointer-events: all;
  cursor: pointer;
  outline: none;
}

.cast-hotspot__glow {
  fill: rgba(50, 112, 238, 0);
  stroke: rgba(138, 179, 255, 0);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: pointer;
  transition: fill .24s ease, stroke .24s ease, filter .24s ease;
}

.cast-hotspot__label {
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.cast-hotspot__label rect {
  fill: rgba(7, 9, 14, .92);
  stroke: #7ca9ff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.cast-hotspot__label text {
  fill: #fff;
  font: 700 10px "DM Sans", sans-serif;
  letter-spacing: 1.1px;
}

.cast-hotspot:hover .cast-hotspot__glow,
.cast-hotspot:focus-visible .cast-hotspot__glow {
  fill: rgba(50, 112, 238, .23);
  stroke: rgba(170, 202, 255, .96);
  filter: drop-shadow(0 0 10px #3270ee) drop-shadow(0 0 24px rgba(50, 112, 238, .72));
}

.cast-hotspot:hover .cast-hotspot__label,
.cast-hotspot:focus-visible .cast-hotspot__label {
  opacity: 1;
}

.cast-content {
  overflow: hidden;
  color: var(--cast-paper);
  background: var(--cast-ink);
}

.cast-shell {
  width: min(1420px, calc(100% - clamp(40px, 8vw, 150px)));
  margin: 0 auto;
}

.cast-kicker {
  margin: 0 0 20px;
  color: var(--cast-blue);
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.cast-intro { padding: clamp(90px, 11vw, 165px) 0 clamp(85px, 10vw, 145px); }

.cast-intro__grid,
.cast-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .68fr);
  gap: clamp(55px, 9vw, 150px);
  align-items: end;
}

.cast-intro h2,
.cast-section-heading h2,
.credits-heading h2,
.cast-contact h2 {
  margin: 0;
  font: clamp(46px, 5.8vw, 90px)/.91 "Archivo Black", sans-serif;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.cast-intro h2 span,
.cast-section-heading h2 span,
.credits-heading h2 span,
.cast-contact h2 span { color: var(--cast-blue); }

.cast-intro__grid > div,
.cast-section-heading > p {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.cast-intro p,
.cast-section-heading > p,
.credits-heading > p,
.cast-contact > p {
  color: #b5b8c0;
  font-size: 15px;
  line-height: 1.75;
}

.cast-intro .cast-lead {
  color: #fff;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
}

.cast-section-heading { margin-bottom: 58px; }
.cast-section-heading h2 { font-size: clamp(42px, 5vw, 76px); }
.cast-section-heading > p { margin: 0; }

.public-roster {
  padding-bottom: clamp(110px, 13vw, 190px);
  scroll-margin-top: 96px;
}

.cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.cast-card {
  display: grid;
  grid-template-rows: 600px auto;
  border-right: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  background: #101219;
}

.cast-card__image { overflow: hidden; background: #0b1018; }

.cast-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-card--fei .cast-card__image img { object-position: center 24%; }
.cast-card--dalisay .cast-card__image img { object-position: center; }

.cast-card__copy {
  position: relative;
  min-height: 320px;
  padding: clamp(32px, 4.2vw, 58px);
  background-image: linear-gradient(rgba(50, 112, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(50, 112, 238, .07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.cast-file-number {
  position: absolute;
  top: 22px;
  right: 24px;
  margin: 0;
  color: rgba(255, 255, 255, .23);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cast-card__copy > small {
  color: var(--cast-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cast-card h3 {
  margin: 16px 0 20px;
  color: #fff;
  font: clamp(32px, 3.4vw, 54px)/.95 "Archivo Black", sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.cast-card__copy > p:not(.cast-file-number) {
  max-width: 50ch;
  color: #b7bbc4;
  font-size: 15px;
  line-height: 1.7;
}

.cast-card__copy > span {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #e9edf7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.roster-note {
  margin-top: 24px;
  padding: 26px 30px;
  border-left: 4px solid var(--cast-blue);
  color: #aeb3bd;
  background: #11141b;
}

.roster-note p { max-width: 92ch; margin: 0; font-size: 13px; line-height: 1.7; }
.roster-note strong { color: #fff; }

.production-register {
  padding: clamp(100px, 12vw, 170px) 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  scroll-margin-top: 96px;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .23);
  border-left: 1px solid rgba(255, 255, 255, .23);
}

.production-grid article {
  min-height: 390px;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, .23);
  border-bottom: 1px solid rgba(255, 255, 255, .23);
  background: #101219;
}

.production-grid article > span {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--cast-blue);
  font: 24px/1 "Archivo Black", sans-serif;
}

.production-grid small {
  color: var(--cast-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.production-grid h3 {
  margin: 14px 0 18px;
  font: 27px/1 "Archivo Black", sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.production-grid p { color: #aeb3bd; font-size: 13px; line-height: 1.65; }

.credits-register {
  padding: clamp(100px, 12vw, 180px) 0;
  scroll-margin-top: 96px;
}

.credits-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.credits-heading .cast-kicker { grid-column: 1 / -1; }
.credits-heading h2 { font-size: clamp(42px, 5vw, 76px); }
.credits-heading > p { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .25); }

.credits-table { border-top: 1px solid rgba(255, 255, 255, .28); }

.credits-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .7fr;
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.credits-row > * {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  color: #b8bcc5;
  font-size: 12px;
  line-height: 1.45;
}

.credits-row > *:last-child { border-right: 0; }
.credits-row strong { color: #fff; }
.credits-row a { color: #fff; text-underline-offset: 5px; }

.credits-row--head {
  min-height: 46px;
  color: #fff;
  background: var(--cast-blue);
}

.credits-row--head > * {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cast-contact {
  padding: clamp(85px, 11vw, 150px) clamp(30px, 8vw, 120px);
  color: #0a0b0e;
  background: var(--cast-paper);
  scroll-margin-top: 96px;
}

.cast-contact .cast-kicker { color: #2358c9; }
.cast-contact h2 { max-width: 13ch; font-size: clamp(48px, 6.3vw, 96px); }
.cast-contact > p { max-width: 58ch; color: #4a4f58; font-size: 17px; }

.cast-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 22px;
  padding: 0 19px;
  color: #fff;
  background: var(--cast-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.cast-button:hover,
.cast-button:focus-visible { color: #fff; background: #0a0b0e; outline: 2px solid #0a0b0e; outline-offset: 3px; }

.cast-footer {
  padding: 28px clamp(26px, 5vw, 72px);
  color: #9ca2ad;
  background: #050608;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cast-footer p { margin: 0; }
.cast-footer a { color: #fff; }

@media (max-width: 1100px) {
  .production-grid { grid-template-columns: 1fr 1fr; }
  .cast-card { grid-template-rows: 52vw auto; }
}

@media (max-width: 900px) {
  .cast-intro__grid,
  .cast-section-heading,
  .credits-heading { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr; }
  .cast-card { grid-template-rows: min(115vw, 760px) auto; }
  .cast-card--dalisay { grid-template-rows: min(72vw, 560px) auto; }
}

@media (max-width: 720px) {
  .cast-shell { width: calc(100% - 32px); }
  .cast-intro h2,
  .cast-contact h2 { font-size: clamp(40px, 13.6vw, 66px); }
  .production-grid { grid-template-columns: 1fr; }
  .production-grid article { min-height: 320px; }
  .production-grid article > span { margin-bottom: 45px; }
  .credits-table { overflow-x: auto; }
  .credits-row { min-width: 760px; }
  .cast-contact { padding: 50px 24px; }
  .cast-footer { line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .cast-hotspot__glow,
  .cast-hotspot__label { transition: none; }
}
