/* The video compositions reserve the left side on desktop and the upper half on mobile. */
.header-home .hero-wave {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #174c3e;
}
.hero-wave-poster,
.hero-wave-poster img,
.hero-wave-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-wave-video { opacity: 0; }
.hero-wave.is-ready .hero-wave-video { opacity: 1; }
.hero-wave::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #041c1c70, transparent 66%);
}
.header-home .hero-wave .hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 1.8vw, 28px);
  width: 45%;
  max-width: 750px;
  margin: 0 0 0 7%;
  padding-top: 14.625%;
}
.hero-wave h1 {
  font-size: clamp(29px, 4.25vw, 82px);
  line-height: 1.28;
  letter-spacing: -.045em;
}
.hero-wave .hero-side p {
  max-width: 405px;
  margin: 0 0 16px;
  color: #e0ede7;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.75;
  text-shadow: 0 1px 16px #041c1c;
}
.hero-wave .text-link { min-height: 44px; }
.hero-wave .text-link:focus-visible,
.hero-wave-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.hero-wave-toggle {
  position: absolute;
  z-index: 3;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #082c2666;
  color: #ecf5ee;
  cursor: pointer;
}
.hero-wave-toggle[hidden] { display: none; }
.hero-wave-toggle:hover { background: #082c26bb; }
.hero-wave-toggle svg { width: 22px; height: 22px; }
.hero-wave-play-icon { fill: currentColor; }
.hero-wave-pause-icon { fill: none; stroke: currentColor; stroke-width: 2; }
.hero-wave-toggle[data-playing="false"] .hero-wave-pause-icon,
.hero-wave-toggle[data-playing="true"] .hero-wave-play-icon { display: none; }

@media (min-width: 768px) and (max-width: 1199px) {
  .header-home .hero-wave { aspect-ratio: 16 / 10; }
  .header-home .hero-wave .hero-grid { padding-top: 15.625%; }
}
@media (max-width: 767px) {
  .header-home .hero-wave {
    aspect-ratio: auto;
    height: clamp(620px, 177.7778vw, 920px);
  }
  .hero-wave::after { background: linear-gradient(180deg, #041c1c40, transparent 65%); }
  .header-home .hero-wave .hero-grid {
    position: absolute;
    top: 17%;
    gap: 20px;
    width: 86%;
    max-width: 520px;
    padding-top: 0;
  }
  .hero-wave h1 { font-size: clamp(29px, 8vw, 50px); }
  .hero-wave .hero-side p { max-width: 360px; font-size: clamp(14px, 3.6vw, 16px); }
  .hero-wave-toggle { right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }
}
