/* Keep the complete landscape scene at the top of a phone hero while carrying
   its colour and texture behind the copy below. */
@media (max-width: 760px) {
  .clarity-home .clarity-hero.shell {
    min-height: 100svh;
    padding: 182px 18px 36px;
    justify-content: flex-start;
  }
  .clarity-home .clarity-hero.shell:before {
    background: linear-gradient(180deg, rgba(5,7,8,.10) 8%, rgba(5,7,8,.61) 32%, rgba(5,7,8,.87) 68%, rgba(5,7,8,.92) 100%);
  }
  .clarity-home .clarity-hero h1 {
    margin: 18px 0 15px;
    font-size: clamp(35px, 9.2vw, 43px);
    line-height: 1.04;
  }
  .clarity-home .clarity-hero .lead {
    font-size: 15px;
    line-height: 1.46;
  }
  .clarity-home .clarity-hero .home-hero-wayfinder {
    margin-top: 22px;
    padding: 14px 16px 10px;
  }
  .clarity-home .home-hero-wayfinder-link {
    margin-top: 10px;
    font-size: 19px;
  }
  .clarity-home .home-hero-wayfinder-controls {
    margin-top: 5px;
  }
  /* Pinch zoom enlarges copy while the scene keeps its on-screen scale. */
  .clarity-home .clarity-hero.is-visual-zoomed>.home-hero-scene {
    transform-origin: top left;
    transform: translateX(var(--home-visual-offset-x, 0px)) scale(var(--home-visual-inverse-scale, 1));
  }
  /* The actual video or poster is the only image layer. A full-height
     background-size:cover duplicated and magnified landscape frames. */
  .clarity-home .home-hero-company:before,
  .clarity-home .home-hero-aif:before {
    content: none;
  }
  .clarity-home .home-hero-scene video {
    z-index: 1;
  }
  .clarity-home .home-bridge-frame {
    inset: 68px 0 auto;
    aspect-ratio: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .clarity-home .home-bridge-frame:before {
    content: none;
  }

  .company-page .company-hero.shell,
  .aif-page .capital-hero.shell,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero.shell {
    min-height: 100svh;
    padding: 188px 18px 42px;
    justify-content: flex-start;
  }
  .company-page .company-hero.shell:before,
  .aif-page .capital-hero.shell:before,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero.shell:before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -20px;
    background-position: center;
    background-size: cover;
    animation: none;
    opacity: .53;
  }
  .company-page .company-hero.shell:before {
    background-image: url("koda-real-company-build-pexels-8064301-poster.jpg");
  }
  .aif-page .capital-hero.shell:before {
    background-image: url("koda-real-confluence-devprayag-poster.webp");
  }
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero.shell:before {
    background-image: url("bridge-japan-rainbow-v1.jpg");
  }
  .company-page .company-hero.shell:after,
  .aif-page .capital-hero.shell:after,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero.shell:after {
    content: "";
    background: linear-gradient(180deg, rgba(5,7,8,.05) 8%, rgba(5,7,8,.57) 28%, rgba(5,7,8,.86) 63%, rgba(5,7,8,.94) 100%);
  }
  .company-page .company-hero.shell>.company-keystone-image,
  .aif-page .capital-hero.shell>.aif-confluence-video {
    z-index: 1;
  }
  .company-page .company-hero h1,
  .aif-page .capital-hero h1,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(35px, 9.2vw, 43px);
    line-height: 1.05;
  }
  .company-page .company-hero .lead,
  .aif-page .capital-hero>p,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero>p {
    font-size: 15px;
    line-height: 1.46;
  }
  .company-page .company-hero .network-actions,
  .aif-page .capital-hero-choice,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero-choice {
    margin-top: 23px;
  }
  .company-page .company-hero .network-actions .btn {
    padding: 13px 18px;
  }
  .aif-page .capital-hero-choice a,
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero-choice a {
    padding: 11px 14px;
  }
  .capital-page:not(.capital-providers-page):not(.aif-page) .capital-hero.shell>.solutions-triad-images {
    z-index: 1;
  }
  .solutions-bridge-frame {
    animation-name: solutions-bridge-crossfade;
  }
}

@media (max-width: 480px) {
  .capital-providers-page .capital-hero.shell h1 {
    font-size: clamp(36px, 9.5vw, 44px);
  }
  .capital-providers-page .capital-hero.shell>p {
    font-size: 15px;
    line-height: 1.48;
  }
}
