/* Keep the original hero image beneath the silent desktop video. */
#home.hero {
  background-image: url('assets/village-hero.png');
  background-position: 50% 53%;
  background-size: cover;
}
@media (max-width: 760px) {
  #home.hero { background-position: 60% center; }
}
/* Explicit non-negative layers keep the still image in the hero's paint stack. */
#home .hero-image { z-index: 0; }
#home .hero-shade { z-index: 2; pointer-events: none; }
#home .hero-content { position: relative; z-index: 3; }
#home .hero-host { z-index: 3; }
#home .hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
#home .hero-video.is-playing { opacity: 1; transition: opacity .6s ease; }
/* Returning to the page needs a ready frame, not another cross-fade. */
#home.hero-video-started .hero-video.is-playing { transition: none; }
@media (max-width: 1023px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  #home .hero-video { display: none; }
}
