/* Original slider photography is preserved. Narrow screens have a dedicated
   photograph stage above the text, so the person is never hidden by copy. */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: clip; }
  #home.hero {
    --ato-photo-height: clamp(300px, 48vw, 440px);
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #fff !important;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(22, 34, 79, .08);
  }
  #home .hero-slides,
  #home .hero-slide { inset: 0; }
  #home .hero-slide,
  #home .hero-slide.ato-slide-vision {
    background-image: none !important;
    background-color: #fff !important;
    background-size: 0 0 !important;
    background-position: center !important;
  }
  #home .hero-slide::before,
  #home .hero-slide.ato-slide-vision::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0 0 auto;
    height: var(--ato-photo-height);
    background-image: var(--hero-img) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    pointer-events: none;
    z-index: 0;
  }
  #home .hero-slide::after,
  #home .hero-slide.ato-slide-vision::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: auto 0 auto;
    top: calc(var(--ato-photo-height) - 56px);
    height: 57px;
    background: linear-gradient(0deg, #fff, rgba(255,255,255,0)) !important;
    background-image: linear-gradient(0deg, #fff, rgba(255,255,255,0)) !important;
    clip-path: none !important;
    pointer-events: none;
    z-index: 1;
  }
  /* The banner image already contains the original, unmodified portrait.
     Desktop's transparent restoration layer must not be stretched on phones. */
  #home .hero-slide .ato-original-person { display: none !important; }
  #home .hero-mesh { display: none !important; }
  #home .hero-content,
  #home.ato-vision-active .hero-content {
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: calc(var(--ato-photo-height) + 14px) 32px 32px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  #home .hero-left,
  #home .ato-hero-left,
  #home.ato-vision-active .ato-hero-left {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    color: #0b205e !important;
  }
  #home .ato-hero-title,
  #home.ato-vision-active .ato-hero-title {
    max-width: 100% !important;
    font-size: clamp(30px, 4.6vw, 42px) !important;
    line-height: 1.17 !important;
    letter-spacing: -.035em !important;
    color: #0c1b62 !important;
    margin: 0 0 16px !important;
    text-wrap: pretty;
  }
  #home .ato-bullet { margin: 0 0 14px !important; }
  #home .ato-bullet h2 { font-size: 17px !important; line-height: 1.4 !important; }
  #home .ato-hero-paragraph,
  #home.ato-vision-active .ato-hero-paragraph {
    color: #1c2855 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    text-shadow: none !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }
  #home .ato-hero-actions,
  #home.ato-vision-active .ato-hero-actions {
    margin: 19px 0 12px !important;
    gap: 13px !important;
    flex-wrap: wrap !important;
  }
  #home .ato-discover,
  #home.ato-vision-active .ato-discover {
    min-height: 48px !important;
    height: auto !important;
    padding: 11px 18px !important;
    font-size: 15px !important;
    color: #db0f2e !important;
    border: 1.5px solid #e40b28 !important;
    background: white !important;
    box-shadow: none !important;
  }
  #home .ato-video-trigger { width: 51px !important; height: 51px !important; }
  #home .ato-play-ring { width: 37px !important; height: 37px !important; }
  #home .ato-play-icon { font-size: 17px !important; }
  #home .ato-video-label { color: #1a285b !important; font-size: 14px !important; }
  #home .hero-pager { margin: 16px 0 0 !important; }
  #home.ato-vision-active { background: white !important; }
  #home.ato-vision-active .ato-vision-eyebrow { color: #515c9a !important; font-size: 12px !important; }
  #home.ato-vision-active .ato-vision-white { color: #101d5c !important; }
  #home.ato-vision-active .ato-vision-lavender { color: #6b6dd3 !important; }
  #home.ato-vision-active .ato-video-trigger {
    width: auto !important;
    height: 51px !important;
    min-height: 51px !important;
    padding: 0 13px !important;
    background: #15235d !important;
    border-color: #15235d !important;
    color: white !important;
  }
  #home.ato-vision-active .ato-video-trigger::after { font-size: 14px !important; }
  #home.ato-vision-active .hero-pager button { color: #172558 !important; border-color: #bec3d7 !important; background: white !important; }
}

@media (max-width: 600px) {
  #home.hero { --ato-photo-height: clamp(278px, 88vw, 370px); }
  #home .hero-slide:not(.ato-slide-vision)::before {
    background-position: right center !important;
    background-size: auto 100% !important;
  }
  #home .hero-slide.ato-slide-vision::before {
    background-position: center 35% !important;
    background-size: cover !important;
  }
  #home .hero-content,
  #home.ato-vision-active .hero-content {
    padding: calc(var(--ato-photo-height) + 11px) 21px 27px !important;
  }
  #home .ato-hero-title,
  #home.ato-vision-active .ato-hero-title {
    font-size: clamp(29px, 7.4vw, 35px) !important;
    margin-bottom: 13px !important;
  }
  #home .ato-bullet h2 { font-size: 16px !important; }
  #home .ato-hero-paragraph,
  #home.ato-vision-active .ato-hero-paragraph { font-size: 16px !important; line-height: 1.5 !important; }
  #home .ato-hero-actions,
  #home.ato-vision-active .ato-hero-actions { margin: 17px 0 7px !important; }
  #home .hero-pager { margin: 13px 0 0 !important; }
  #home.ato-vision-active .ato-vision-eyebrow { margin-bottom: 13px !important; }
}

@media (max-width: 360px) {
  #home.hero { --ato-photo-height: 278px; }
  #home .hero-content,
  #home.ato-vision-active .hero-content { padding-left: 17px !important; padding-right: 17px !important; }
  #home .ato-hero-title,
  #home.ato-vision-active .ato-hero-title { font-size: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #home .hero-slide { transition-duration: .01ms !important; }
}
