/**
 * Homepage hero background layout vars (ported from aifo_portal_web assets/css/index.css).
 * Used with home-hero-carousel.js + .hero-bg arc image.
 */

#block-1 {
  height: 39.9375rem;
  background-image: none;
  position: relative;
  z-index: 1;
}

#homepage #block-1 {
  height: auto;
  min-height: 0;
}

.main {
  position: relative;
  z-index: 1;
}

#homepage {
  --hero-img-width: 2880;
  --hero-img-height: 1982;
  --hero-img-arc-offset: 920;
  --hero-nav-gap: 76px;
  --hero-coach-dots-gap: 50px;
  --hero-dots-height: 10px;
  --hero-reference-content-bottom-fallback: 486px;
  --hero-reference-viewport-height-fallback: calc(
    var(--hero-reference-content-bottom-fallback) + var(--hero-coach-dots-gap)
  );
  --hero-reference-dots-top-fallback: calc(
    var(--hero-nav-gap) + var(--hero-reference-content-bottom-fallback) + var(--hero-coach-dots-gap)
  );
  --hero-inner-padding-bottom: 40px;
  --hero-inner-max-width: 1280px;
  --hero-content-max-width: 680px;
  --hero-visual-image-scale: 1.06;
  --hero-mobile-visual-dots-gap: 24px;
  --hero-mobile-fixed-dots-bottom: 16px;
  --hero-visual-zone-height: var(
    --hero-reference-viewport-height,
    var(--hero-reference-viewport-height-fallback)
  );
  --hero-arc-gap: 30px;
  --hero-bg-height-adjust: -120px;
  --hero-dots-y: calc(48px + 720px + 56px - 32px + var(--hero-dots-height));
}

#homepage .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(
    (var(--hero-dots-y) + var(--hero-arc-gap)) * var(--hero-img-height)
    / (var(--hero-img-height) - var(--hero-img-arc-offset))
    + var(--hero-bg-height-adjust, 0px)
  );
  object-fit: cover;
  object-position: center bottom;
  z-index: -1;
  background-color: #050302;
  display: block;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #homepage {
    --hero-dots-y: calc(76px + 720px + 64px - 40px + var(--hero-dots-height));
  }
}

@media (min-width: 992px) {
  #homepage {
    --hero-arc-gap: 8px;
    --hero-bg-height-adjust: -15px;
    --hero-dots-y: calc(
      var(--hero-reference-dots-top, var(--hero-reference-dots-top-fallback))
      + var(--hero-dots-height)
      + var(--hero-inner-padding-bottom)
    );
  }

  #homepage .hero-bg {
    height: calc(
      var(--hero-dots-y) + var(--hero-arc-gap)
      + 100vw * var(--hero-img-arc-offset) / var(--hero-img-width)
      + var(--hero-bg-height-adjust)
    );
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 39.9375rem;
  object-fit: cover;
  object-position: center bottom;
  z-index: -1;
  background-color: #050302;
  display: block;
  pointer-events: none;
}
