/* Front-page film: one loop behind the opening, from the launch to the magnet at work. */

/* Opening: the poster paints first; the loop fades in over it once it plays. */
.horizon-intro { isolation: isolate; background: #03070e; }
.hero-film { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-film img,
.hero-film video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-film video { opacity: 0; transition: opacity 1.2s ease; }
.hero-film video.is-on { opacity: 1; }
.hero-film::after {
 content: ""; position: absolute; inset: 0; pointer-events: none;
 background:
  linear-gradient(90deg, #03070eb8 0%, #03070e6b 32%, #03070e00 62%),
  linear-gradient(0deg, #03070e 0%, #03070ec2 20%, #03070e5c 40%, #03070e00 62%),
  linear-gradient(180deg, #03070e66 0%, #03070e00 22%);
}

/* A small note in the film's bottom corner. */
.film-note { position: absolute; right: var(--scene-gutter); bottom: 28px; margin: 0; font-size: 10px; line-height: 1.7; letter-spacing: .03em; color: #a8b9ca; text-align: right; }

@media (max-width: 760px), (orientation: portrait) {
 .hero-film::after { background: linear-gradient(0deg, #03070e 0%, #03070ed6 24%, #03070e80 40%, #03070e1f 56%, #03070e00 68%), linear-gradient(180deg, #03070e59 0%, #03070e00 20%); }
}
@media (orientation: landscape) and (max-height: 650px) {
 .hero-film::after { background: linear-gradient(90deg, #03070ecc 0%, #03070e8f 36%, #03070e00 66%), linear-gradient(0deg, #03070e 0%, #03070ec7 26%, #03070e6b 50%, #03070e00 70%), linear-gradient(180deg, #03070e66 0%, #03070e00 22%); }
}
@media (max-width: 760px) {
 .film-note { right: 24px; bottom: 18px; font-size: 9px; }
}
@media (max-height: 650px) {
 .film-note { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .hero-film video { display: none; }
}
