.hero-slide > .hero-poster,
.hero-slide > [data-hero-video] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide > [data-hero-video], .hero-slide > .hero-bg-yt { opacity: 0; pointer-events: none; }
/* Retain the fallback poster until a real video frame can be presented. */
.hero-slide > [data-hero-video], .hero-slide > .hero-bg-yt { transition:opacity .55s ease; }
.hero-slide.hero-video-ready > [data-hero-video], .hero-slide.hero-video-playing > .hero-bg-yt { opacity: 1; }
.hero-slide.hero-video-ready > .hero-poster, .hero-slide.hero-video-playing:has(> .hero-bg-yt) > .hero-poster { opacity: 0; }
.hero-slide > .hero-poster { transition:opacity .55s ease; }
.hero-motion-toggle {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  padding: 0.5rem 0.75rem;
  color: white;
  background: rgb(0 0 0 / 45%);
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
}
.hero-motion-accessible:not(:focus-visible) {
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip-path:inset(50%); border:0; white-space:nowrap;
}
.hero-motion-accessible:focus-visible { outline: 3px solid white; outline-offset: 3px; }
@media (max-width: 767px) {
  .hero-motion-toggle { bottom: auto; top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide > [data-hero-video], .hero-slide > .hero-bg-yt { display: none; }
  .hero-slide.hero-video-playing > .hero-poster { opacity: 1; }
}
