/* Isolated integration preview of the selected Hero treatments. */
.hero .script-v1 {
  max-width: 100%;
}

.script-v1 img {
  width: 100%;
  height: auto;
}

/* Candidate A. Interpolate on narrower landscape views, then hold the reference scale. */
@media (min-width: 761px) and (orientation: landscape) {
  .hero .script-v1 {
    width: min(516px, 40vw + 4px);
    min-height: calc(min(576px, 55vw - 127px) * 515 / 965);
    align-content: center;
  }

  .script-v1 img {
    translate: clamp(-36px, (850px - 100vw) * .084, 0px) 0;
  }
}

/* Cinematic Stacked B. Keep the portrait composition beyond the 1024px sample. */
@media (min-width: 761px) and (orientation: portrait) {
  .hero {
    justify-content: center;
  }

  .hero-photo {
    bottom: auto;
    height: 65.234375svh;
  }

  .hero-photo img {
    object-position: right center;
  }

  .hero-photo::after {
    background: linear-gradient(to bottom, #211c1a85, transparent 24%, transparent 69%, var(--dark) 98%);
  }

  .hero-content {
    align-self: flex-end;
    width: 420px;
    max-width: 420px;
    margin: 0 0 72px;
    text-align: center;
  }

  .hero .script-v1 {
    width: 100%;
    margin-block: 20px 23px;
  }

  .hero-content .outline-btn {
    margin-top: 26px;
  }
}

/* Refined Gradient B with the preserved headline and CTA placement. */
@media (max-width: 760px) {
  .hero .script-v1 {
    width: min(420px, 100vw - 48px);
  }

  .hero-photo::after {
    background: linear-gradient(
      to top,
      #211c1a 3%,
      #211c1aeb 22%,
      #211c1ab3 41%,
      #211c1a5c 52%,
      #211c1a30 65%,
      #211c1a80 100%
    );
  }
}

/* Keep the headline and CTA within short landscape viewports. */
@media (max-height: 540px) and (orientation: landscape) {
  .hero-content {
    align-self: flex-end;
    margin-block: 86px 24px;
  }

  .hero .script-v1 {
    width: min(516px, 40vw + 4px, 67svh);
    min-height: 0;
    margin-block: 14px;
  }

  .hero-content .outline-btn {
    margin-top: 20px;
  }
}
