/* Background-only rotation: preserve the existing hero layout and typography. */
.hero .hero-media { background-image: url('./assets/hero-home1-poster-20260914.jpg'); background-position: center; }
@media (min-width: 861px) {
  /* Navigation overlays the video; video plus the white gap fills the first screen. */
  .home-page .site-header { position: absolute; inset: 0 0 auto; background: transparent; border-bottom: 0; backdrop-filter: none; }
  .home-page .nav > a,
  .home-page .nav-group > a { color: #f4f7f5; }
  .home-page .nav > a:hover:not(.nav-contact),
  .home-page .nav > a.active,
  .home-page .nav-group > a:hover,
  .home-page .nav-group:has(.submenu-toggle[aria-expanded="true"]) > a { color: #9ee2bd; }
  .home-page .nav a::after { background: #9ee2bd; }
  .home-page .submenu-toggle { color: #9ee2bd; }
  .home-page .nav > a:focus-visible,
  .home-page .nav-group > a:focus-visible,
  .home-page .submenu-toggle:focus-visible { outline: 2px solid #9ee2bd; outline-offset: 3px; }
  .hero { display: grid; align-items: center; min-height: max(500px, calc(100vh - 80px)); min-height: max(500px, calc(100svh - 80px)); }
  .hero .hero-content { padding: 64px 0; text-align: center; transform: none; }
  .hero h1 { margin-inline: auto; line-height: 1.26; }
  .hero .hero-content > p { margin-inline: auto; }
  .hero + .value-pair { margin-top: 80px; padding-top: 0; }
  /* Keep the video colors intact while shading the copy and navigation just enough. */
  .hero .hero-media::before { background: linear-gradient(180deg, rgba(3,18,24,.4), rgba(3,18,24,.28) 18%, rgba(3,18,24,.42) 50%, rgba(3,18,24,.2)); }
}
.hero-media::before { z-index: 2; pointer-events: none; }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.hero-video.is-active { opacity: 1; z-index: 1; }
.hero-video { filter: brightness(1.08); }
.hero-video:first-child { filter: brightness(1.12); }
.hero-video.is-outgoing { opacity: 1; z-index: 0; }
.hero-switcher {
  position: absolute;
  right: max(22px, calc((100% - var(--max)) / 2));
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-switcher[hidden] { display: none; }
.hero-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(3,18,24,.72);
  color: #fff;
  cursor: pointer;
}
.hero-switcher button:hover { background: #0d7258; }
.hero-switcher button:focus-visible { outline: 2px solid #9ee2bd; outline-offset: 3px; }
.hero-switcher button:disabled { opacity: .35; cursor: default; }
.hero-slide-button span { width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; }
.hero-slide-button[aria-pressed="true"] span { width: 18px; border-radius: 4px; background: #9ee2bd; border-color: #9ee2bd; }
.hero-pause-button svg { width: 18px; height: 18px; }
.hero-pause-button .hero-play-icon { display: none; }
.hero-pause-button[aria-pressed="true"] .hero-play-icon { display: block; }
.hero-pause-button[aria-pressed="true"] .hero-pause-icon { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition-duration: 150ms; }
}
