/*
 * Homepage b-roll layer.
 * The existing poster and hero composition remain the visual fallback; this
 * stylesheet layers in deferred video. Its accessibility control is visible
 * only on keyboard focus, not in the normal hero presentation.
 */
#top > div:first-child #homepage-broll {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

#top > div:first-child #homepage-broll[data-playing="true"] {
  opacity: 1;
}

#top > div:first-child #hero-video-toggle {
  position: absolute;
  z-index: 3;
  top: clamp(5.25rem, 12vh, 7.5rem);
  right: clamp(1rem, 3vw, 2rem);
  display: inline-grid;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(232, 216, 160, .72);
  border-radius: 50%;
  background: rgba(11, 19, 64, .72);
  color: var(--solarix-paper, #F6F4EF);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

#top > div:first-child #hero-video-toggle[hidden] {
  display: none !important;
}

#top > div:first-child #hero-video-toggle:hover {
  background: var(--solarix-navy, #0B1340);
  border-color: var(--solarix-champagne, #E8D8A0);
  color: var(--solarix-champagne, #E8D8A0);
}

#top > div:first-child #hero-video-toggle:focus-visible {
  opacity: 1;
  clip-path: none;
  pointer-events: auto;
  outline: 2px solid var(--solarix-champagne, #E8D8A0);
  outline-offset: 3px;
}

#top > div:first-child #hero-video-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#top > div:first-child #hero-video-toggle [data-icon="play"] {
  display: none;
}

#top > div:first-child #hero-video-toggle[data-paused="true"] [data-icon="play"] {
  display: block;
}

#top > div:first-child #hero-video-toggle[data-paused="true"] [data-icon="pause"] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #top > div:first-child #homepage-broll,
  #top > div:first-child #homepage-broll[data-playing="true"] {
    opacity: 0 !important;
  }

  #top > div:first-child #hero-video-toggle {
    display: none !important;
  }
}
