html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* The video is portrait (720x1280). On phones it fills the screen edge to
   edge; only a sliver is cropped when the phone's shape differs a little. */
.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wider screens (tablets in landscape, laptops, desktops): show the whole
   video centered with black on the sides, instead of zooming in on a strip. */
@media (min-aspect-ratio: 3/4) {
  .hero { object-fit: contain; }
}

/* People who turn off animations in their OS settings see the still poster frame. */
@media (prefers-reduced-motion: reduce) {
  .hero { display: none; }
  body { background: #000 url("/media/hero-poster.jpg") center / contain no-repeat; }
}
@media (prefers-reduced-motion: reduce) and (max-aspect-ratio: 3/4) {
  body { background-size: cover; }
}
