/* Cast section — Figma node 23:2261 */
#sec-cast {
  position: relative;
  width: 1728px;
  height: 1260px;
  background: #e8ecd4;
  overflow: hidden;
  font-family: "OCR A Std", "Share Tech Mono", monospace;
}
#sec-cast img { position: absolute; display: block; }

/* "The Cast!" pixel heading (LoRes 9 display font, rendered as image) */
#cast-heading { left: 200px; top: 100px; width: 514px; height: auto; }

/* Portrait collage compositions */
#cast-card1 { left: 200px; top: 260px; width: 604px; height: 608px; }
#cast-card2 { left: 924px; top: 260px; width: 604px; height: 610px; }

/* Name + role blocks */
#sec-cast .cast-namerole {
  position: absolute;
  width: 604px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#cast-nr1 { left: 200px; top: 916px; }
#cast-nr2 { left: 924px; top: 917px; }
#sec-cast .cast-name { margin: 0; color: #0051c6; font-size: 26px; line-height: 1.4; }
#sec-cast .cast-role { margin: 0; color: #03358c; font-size: 18px; line-height: 1.4; }

/* Bios */
#sec-cast .cast-bio {
  position: absolute;
  width: 604px;
  margin: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.4;
}
#cast-bio1 { left: 200px; top: 1060px; }
#cast-bio2 { left: 924px; top: 1061px; }

/* ---- Mobile (<=768px): stack the two cast members vertically ---- */
@media (max-width: 768px) {
  #sec-cast {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  /* un-absolute every child and make it fluid */
  #sec-cast img,
  #sec-cast .cast-namerole,
  #sec-cast .cast-bio {
    position: static;
    left: auto; top: auto; right: auto;
    width: 100%;
    height: auto;
  }
  #cast-heading {
    max-width: 300px;
    align-self: flex-start;
    margin-bottom: 4px;
  }
  #cast-card1, #cast-card2 {
    max-width: 420px;
    align-self: center;
  }
  /* group each member together: heading, card1, nr1, bio1, card2, nr2, bio2 */
  #cast-heading { order: 0; }
  #cast-card1   { order: 1; }
  #cast-nr1     { order: 2; }
  #cast-bio1    { order: 3; }
  #cast-card2   { order: 4; }
  #cast-nr2     { order: 5; }
  #cast-bio2    { order: 6; }
  /* fluid, slightly smaller text */
  #sec-cast .cast-namerole { gap: 6px; }
  #sec-cast .cast-name { font-size: 20px; }
  #sec-cast .cast-role { font-size: 15px; }
  #sec-cast .cast-bio  { font-size: 15px; margin-bottom: 8px; }
}
