/* Home hero reel (main site, 2026-10-17): three silent clips cross-fading over the poster image.
   Desktop: the header floats over the hero, so the picture and reel start below it and no head ends up under the header.
   Phone and tablet (<= 900px): the video is a full-width band on top and the headline sits on solid navy beneath it. */
.hero.has-reel { --reel-top: var(--header-h, 87px); }
.hero.has-reel .hero-picture,
.hero-reel { position: absolute; top: var(--reel-top); left: 0; right: 0; bottom: auto; width: 100%; height: calc(100% - var(--reel-top)); }
.hero-reel { z-index: -3; overflow: hidden; pointer-events: none; }
.hero.has-reel .hero-picture { object-position: 60% 30%; }
.hero-reel .reel-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-d, 60% 30%); opacity: 0; transition: opacity .7s ease; background: transparent; }
.hero-reel .reel-clip.is-on { opacity: 1; z-index: 2; }
.hero-reel.is-failed { display: none; }

/* Headline sits on the left: darker veil than the old still so it stays readable over moving faces. */
.hero.has-reel:after { background: linear-gradient(90deg, rgba(6,16,30,.92) 0%, rgba(6,16,30,.8) 40%, rgba(6,16,30,.14) 78%), linear-gradient(0deg, #06101e, transparent 28%); }

@media (max-width: 900px) {
  .hero.has-reel { --reel-top: 0px; --reel-h: min(64vw, 440px); align-items: flex-start; }
  .hero.has-reel .hero-picture, .hero-reel { top: 0; height: var(--reel-h); opacity: 1; }
  .hero.has-reel .hero-picture { object-position: 50% 30%; }
  .hero-reel .reel-clip { object-position: var(--pos-m, 50% 30%); }
  .hero.has-reel .wrap { padding-top: calc(var(--reel-h) + 20px); }
  .hero.has-reel:after { background: linear-gradient(180deg, rgba(6,16,30,0) 0, rgba(6,16,30,0) calc(var(--reel-h) - 80px), #06101e calc(var(--reel-h) + 2px)), linear-gradient(0deg, #06101e, transparent 30%); }
}

/* Visible pause / play control for the moving hero (the site's existing .video-control look). */
.hero.has-reel .video-control { display: inline-flex !important; align-items: center; min-height: 40px; cursor: pointer; }
