/* Site opening animation. Kept separate from the section design CSS. */
html.loading-active { overflow: hidden; }
/* Keep the MV at its opening frame until the loading layer has disappeared. */
html.loading-active .hero-photo-one,
html.loading-active .hero-photo-two,
html.loading-active .hero-photo-three,
html.loading-active .hero-photo-four,
html.loading-active .hero-airplane,
html.loading-active .hero-bath,
html.loading-active .hero-woman { animation-play-state: paused; }
html.loading-active .hero-background { background-image: url(../images/mv-background-static.svg); }
@media (min-width: 1001px) {
  .hero-background.hero-background-static { background-image: url(../images/mv-background-static.svg); }
  .hero-background.hero-background-animated { width: 100%; height: 100%; max-width: none; object-fit: fill; background-image: none; visibility: hidden; pointer-events: none; }
  html.mv-background-ready .hero-background-static { visibility: hidden; }
  html.mv-background-ready .hero-background-animated { visibility: visible; }
}
@media (min-width: 1991px) {
  .hero-background.hero-background-animated { width: 100vw; }
}
@media (max-width: 1000px) {
  html.loading-active .hero-background { background-image: url(../images/sp-mv-background-static.svg); }
  .hero-background.hero-background-static { background-image: url(../images/sp-mv-background-static.svg); }
  .hero-background.hero-background-animated { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; background-image: none; visibility: hidden; pointer-events: none; }
  html.loading-active .hero-background.hero-background-animated { background-image: none; }
  html.mv-background-ready .hero-background-static { visibility: hidden; }
  html.mv-background-ready .hero-background-animated { visibility: visible; }
}
.site-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  background: #fffbea;
  opacity: 1;
  transition: opacity .55s ease;
}
html.loading-active .site-loading { display: grid; }
.site-loading.is-leaving { opacity: 0; pointer-events: none; }
.site-loading__logo {
  display: block;
  width: min(218px, 44vw);
  height: auto;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  animation: site-loading-logo .85s cubic-bezier(.2,.75,.25,1) .12s forwards;
}
@keyframes site-loading-logo {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.site-loading__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .site-loading__logo { width: min(56vw, 218px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loading, .site-loading__logo { animation: none; transition: none; transform: none; opacity: 1; }
}
