/* iPhone/Safari recovery: home hero in normal document flow. */
@media (max-width: 820px) {
  .hero {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 690px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .hero .hero-media {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
  }

  .hero .hero-poster-fallback,
  .hero .hero-media video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero .hero-poster-fallback { z-index: 0 !important; }
  .hero .hero-media video { z-index: 1 !important; }
  .hero .hero-media::after { z-index: 2 !important; }

  .hero > .hero-content {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 690px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 116px 22px 62px !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .hero .hero-copy-expanded {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: flex !important;
    width: 100% !important;
    max-width: 390px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero .hero-heading-group,
  .hero .hero-bottom-group,
  .hero .hero-heading-group .eyebrow,
  .hero .hero-copy-expanded h1,
  .hero .hero-copy-expanded .hero-line,
  .hero .hero-bottom-group p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero .hero-copy-expanded h1 {
    display: block !important;
    font-size: clamp(2.45rem, 10.8vw, 3.35rem) !important;
    line-height: .98 !important;
    letter-spacing: -.025em !important;
  }

  .hero .hero-copy-expanded .hero-line {
    display: block !important;
    white-space: normal !important;
  }

  .hero .hero-copy-expanded .hero-line-accent {
    display: inline !important;
    width: auto !important;
  }

  .hero .hero-bottom-group { margin-top: 32px !important; }
  .hero .hero-bottom-group p { font-size: .98rem !important; line-height: 1.58 !important; }

  .hero .hero-actions {
    width: min(100%, 350px) !important;
    margin: 25px auto 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hero .hero-actions .btn {
    width: 100% !important;
    min-height: 55px !important;
    justify-content: center !important;
  }

  /* Never let reveal JS hide the hero on mobile. */
  .hero [data-reveal],
  .hero [data-reveal-group] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .scroll-cue { display: none !important; }
}

@media (max-width: 390px) {
  .hero { min-height: 660px !important; }
  .hero > .hero-content { min-height: 660px !important; padding-left: 18px !important; padding-right: 18px !important; }
  .hero .hero-copy-expanded { max-width: 355px !important; }
  .hero .hero-copy-expanded h1 { font-size: clamp(2.3rem, 10.7vw, 3rem) !important; }
}
