/* LUNARTECH logo opening, home page only.
   Ported from lunartech.ai/sean/sunrise/main/home.html with the same sizes and timing:
   logo fades in over 2.8s (after 0.12s), bar fills over 3.6s.
   Hand-off to the page (driven by the script in index.html): the wordmark glides into the navbar
   logo while the cover dissolves into the hero video over 1s, then the navbar, tag, heading and
   button come in one after another. With reduced motion the cover simply fades out in 0.42s. */

body:not(.lt-preloader-done) { background-color: #000 !important; }
body:not(.lt-preloader-done) > *:not(.lt-preloader):not(script):not(style) { visibility: hidden !important; }

.lt-preloader { z-index: 100000; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; background-color: #000; }
.lt-preloader.is-released { opacity: 0; pointer-events: none; transition: opacity 1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s; }
.lt-preloader.is-released .lt-preloader-bar { opacity: 0; transition: opacity 0.3s ease; }

.lt-preloader-brand { width: min(180px, 58vw); overflow: hidden; }
.lt-preloader-logo { width: 100%; height: auto; display: block; opacity: 0; animation: lt-logo-reveal 2.8s cubic-bezier(0.37, 0, 0.63, 1) 0.12s forwards; }

.lt-preloader-bar { position: absolute; left: 50%; top: calc(50% + 33px); transform: translateX(-50%); width: min(220px, 62vw); height: 2px; border-radius: 20px; overflow: hidden; background-color: rgba(255, 255, 255, 0.18); }
.lt-preloader-progress { width: 106%; height: 2px; margin-left: -2%; background-color: rgba(255, 255, 255, 0.92); transform: translate3d(-100%, 0, 0); transform-origin: left center; }

/* The wordmark on its way to the navbar. Its image has a black background: screen blending
   drops the black, so only the white letters show over the video. */
.lt-preloader-flight { position: fixed; z-index: 100001; margin: 0; pointer-events: none; transform-origin: 0 0; mix-blend-mode: screen; will-change: transform, opacity; }

/* Pieces of the page that come in after the logo; the script animates them in, then removes this class */
body.lt-intro .lt-nav-pill,
body.lt-intro .lt-nav-pill .lt-logo img,
body.lt-intro .ltx-hero .ltx-tag-label,
body.lt-intro .ltx-hero .ltx-heading-wrapper,
body.lt-intro .ltx-hero .ltx-hero-button-wrapper { opacity: 0; }

@media (max-width: 767px) {
  .lt-preloader-brand { width: min(180px, 66vw); }
  .lt-preloader-bar { width: min(210px, 70vw); top: calc(50% + 29px); }
}

@keyframes lt-logo-reveal { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .lt-preloader-logo { opacity: 1; animation: none; }
  .lt-preloader.is-released { transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
}
