/* ===================================================================
   Site splash — intro video, wordmark beat, lift exit
   =================================================================== */

body.is-splash-active {
  overflow: hidden;
}

body.is-splash-active .site-header,
body.is-splash-active .page-shell,
body.is-splash-active .footer {
  opacity: 0;
  pointer-events: none;
}

body.is-splash-exiting .site-header,
body.is-splash-exiting .page-shell,
body.is-splash-exiting .footer {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-splash-done .site-header,
body.is-splash-done .page-shell,
body.is-splash-done .footer {
  opacity: 1;
  pointer-events: auto;
}

.site-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  background: transparent;
}

.site-splash.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.site-splash-shell {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 40px);
  background: #ffffff;
  border-radius: 0 0 clamp(40px, 6.5vw, 80px) clamp(40px, 6.5vw, 80px);
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 20px 64px rgba(42, 52, 56, 0.08);
  pointer-events: auto;
}

.site-splash-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  will-change: opacity, transform;
}

.site-splash-logo-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-splash-video {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: min(34vw, 190px);
  max-height: min(29vh, 260px);
  object-fit: contain;
  transform: translateZ(0);
}

.site-splash-wordmark {
  position: relative;
  z-index: 2;
  margin: -22px 0 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(17px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  color: #5e8178;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-splash.is-wordmark-in .site-splash-wordmark {
  opacity: 1;
}

.site-splash.is-content-out .site-splash-stage {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition:
    opacity 0.88s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.88s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-splash.is-exiting .site-splash-shell {
  transform: translate3d(0, -100%, 0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .site-splash {
    display: none !important;
  }

  body.is-splash-active {
    overflow: auto;
  }

  body.is-splash-active .site-header,
  body.is-splash-active .page-shell,
  body.is-splash-active .footer {
    opacity: 1;
    pointer-events: auto;
  }
}
