.local-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  isolation: isolate;
  background: #eef3f6;
}

.page-hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #eef3f6;
}

.local-hero__scene {
  position: absolute;
  inset: 0;
}

.local-hero__poster-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.local-hero__poster,
.local-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.local-hero__poster {
  z-index: 0;
}

.local-hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity .25s ease;
}

.local-hero.is-video-playing .local-hero__video {
  opacity: 1;
}

.local-hero.is-video-fallback .local-hero__video {
  opacity: 0;
}

.page-hero__visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 40;
  border: 1px solid rgba(10, 20, 32, .2);
  pointer-events: none;
}

.local-hero.is-offscreen .local-hero__video,
.local-hero.is-scrolling .local-hero__video {
  will-change: auto;
}

@media (max-width: 700px) {
  .page-hero {
    position: relative;
    aspect-ratio: auto;
    min-height: clamp(680px, calc(100svh - 126px), 740px);
    background: var(--dark);
  }

  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(10,20,32,.04) 0%, rgba(10,20,32,.24) 30%, rgba(10,20,32,.9) 61%, var(--dark) 100%),
      url("/assets/hero-process-poster-768.avif") 50% center / cover no-repeat;
    opacity: .96;
    pointer-events: none;
  }

  .page-hero__visual {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 67%, rgba(0,0,0,.7) 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 67%, rgba(0,0,0,.7) 84%, transparent 100%);
  }

  .local-hero__poster,
  .local-hero__video {
    object-position: 50% 50%;
  }

  .page-hero [data-hero-text] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 22;
    align-items: stretch !important;
    background: transparent !important;
  }

  .page-hero [data-hero-text] > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: none !important;
    padding: clamp(184px, 50vw, 208px) 20px 28px !important;
  }

  .page-hero [data-hero-scrim] {
    display: block !important;
    background: linear-gradient(180deg, transparent 0%, rgba(10,20,32,.08) 24%, rgba(10,20,32,.76) 48%, rgba(10,20,32,.98) 80%, var(--dark) 100%) !important;
  }

  .page-hero__visual::after {
    inset: 8px;
  }

  .page-hero [data-hero-text] h1 {
    font-size: clamp(32px, 9.2vw, 38px) !important;
    line-height: 1.18 !important;
    max-width: 10em !important;
  }

  .page-hero [data-hero-text] h1 + p {
    margin-top: 16px !important;
    max-width: 32em !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: #D8E0E7 !important;
  }

  .page-hero [data-hero-text] h1 + p + div {
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .page-hero [data-hero-text] h1 + p + div > a {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding: 14px 18px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-hero__video {
    display: none;
  }
}
