/* The sea is visible while the inline movie loads or autoplay is unavailable. */
html {
  background: #102b40 url('/assets/mekari-opening-water-poster.jpg') center / cover fixed no-repeat;
}
body.home-page {
  background: transparent;
}
.film-identity {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The introduction scrolls in front of the same water as the opening. */
.home-page .home-belief {
  position: relative;
  z-index: 1;
  color: white;
  background: linear-gradient(to bottom, transparent, rgb(4 17 29 / 60%) 2.5rem);
}
.home-page .home-belief-copy > p {
  color: inherit;
  text-shadow: 0 1px 3px rgb(0 12 24 / 65%);
}
@media (scripting: none) {
  .home-page .home-film-stage { position: absolute; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .home-belief-copy > p.is-revealed:not(.reveal-instant) {
    animation: home-appear 1.6s ease-out var(--reveal-delay, 0ms) backwards;
  }
  @keyframes home-appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .film-identity {
    animation: home-appear 2.7s ease-in-out .85s backwards;
  }
  /* Fade the header itself so the menu stays operable throughout. */
  .home-page .calm-header {
    animation: home-appear 2.55s ease-in-out 1.35s backwards;
  }
  .home-film .film-scroll-cue span {
    animation-fill-mode: backwards;
    animation-delay: 1.35s;
  }
  .home-page .calm-header:focus-within,
  .home-page.menu-open .calm-header,
  .home-page .calm-header:not(.over-film) {
    opacity: 1 !important;
  }
}
