/* FROM: homepage mobile layout correction */
@media (max-width: 900px) {
  .hero {
    display: block !important;
    min-height: 0 !important;
    padding-top: 74px !important;
    overflow: hidden !important;
  }

  .hero-media {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 54svh !important;
    min-height: 360px !important;
    max-height: 620px !important;
  }

  .hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero-inner {
    min-height: 0 !important;
    display: block !important;
    padding-top: 42px !important;
    padding-bottom: 72px !important;
  }

  .hero-copy {
    width: 100% !important;
    max-width: none !important;
  }

  .hero-kicker {
    margin-bottom: 24px !important;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 64px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.055em !important;
  }

  .hero-line-one {
    white-space: normal !important;
    display: inline !important;
  }

  .hero h1 .sub {
    margin-top: 12px !important;
    font-size: .58em !important;
  }

  .hero-text {
    width: 100% !important;
    max-width: 520px !important;
    margin-top: 26px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .hero-actions {
    margin-top: 30px !important;
    gap: 18px 24px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 68px !important;
  }

  .hero-media {
    height: 50svh !important;
    min-height: 320px !important;
  }

  .hero-inner {
    padding-top: 34px !important;
    padding-bottom: 64px !important;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 50px) !important;
  }

  .hero-text br {
    display: none;
  }
}

/* Keep floating contact buttons clear of the iPhone safe area. */
@media (max-width: 640px) {
  .quick-contact {
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }
}
