/* Page curtain and preloader
   .env-curtain between pages (js/motion/15-page-curtain.js); #loader tweaks.
   Part of the ENVY visual layer: files are loaded in numeric order and later files win — keep the order. See ../../README.md */
/*  PAGE CURTAIN (async page transition) + layered mobile menu
   two flat panels (mint, then dark) rise with a curved leading edge; transform only
   ====================================================================== */
.env-curtain { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; visibility: hidden; }
.env-curtain.is-on { visibility: visible; pointer-events: auto; }
.env-curtain i { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform: translate3d(0, 105%, 0); will-change: transform; }
.env-curtain i::before, .env-curtain i::after { content: ""; position: absolute; left: -10%; right: -10%; height: 9vh; background: inherit; }
.env-curtain i::before { top: calc(-9vh + 1px); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.env-curtain i::after { bottom: calc(-9vh + 1px); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.env-curtain .c1 { background: #2fe9c4; }
.env-curtain .c2 { background: #070d10; }
.env-curtain.is-cover i { transition: transform .85s cubic-bezier(.76, 0, .24, 1); transform: translate3d(0, 0, 0); }
.env-curtain.is-cover .c2 { transition-delay: .1s; }
.env-curtain.is-hold i { transition: none; transform: translate3d(0, 0, 0); }
.env-curtain.is-reveal i { transition: transform .95s cubic-bezier(.76, 0, .24, 1); transform: translate3d(0, -112%, 0); }
.env-curtain.is-reveal .c1 { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  .env-curtain { display: none; }
}
/* preloader: clean aqua instead of cold blue / muddy green; the zoom-in centre is the centre of the symbol (mark 88px + 16px gap + wordmark → mark centre 44px from the top of the brand block);
   the logo and the three layers behind it (cloud, mist, backdrop) dissolve under a heavy, slow blur (the page removes #loader at 1.35 s, so everything is timed to 1.3 s) */
#loader .loader-cloudburst { background: radial-gradient(ellipse 78% 62% at 50% 40%, rgba(226,255,252,.95) 0%, rgba(120,250,232,.58) 26%, rgba(46,226,212,.30) 50%, rgba(16,140,140,.12) 70%, transparent 86%) !important; }
#loader .loader-mist { background: radial-gradient(circle at 50% 36%, rgba(196,255,249,.46) 0%, rgba(80,235,222,.2) 38%, transparent 64%) !important; }
#loader .loader-brand { transform-origin: 50% 44px; }
#loader.loader--closing .loader-brand { animation-name: envLoaderSink !important; animation-duration: 1.3s !important; animation-timing-function: cubic-bezier(.45, 0, .2, 1) !important; transform-origin: 50% 44px; }
#loader.loader--closing .loader-cloudburst { animation-duration: 1.3s !important; }
#loader.loader--closing .loader-mist { animation-duration: 1.3s !important; }
@keyframes envLoaderSink {
  0% { transform: scale(1); opacity: 1; filter: blur(0) brightness(1); }
  22% { transform: scale(1.35); opacity: .96; filter: blur(7px) brightness(1.25); }
  58% { transform: scale(3.2); opacity: .72; filter: blur(24px) brightness(1.5); }
  100% { transform: scale(7.5); opacity: 0; filter: blur(48px) brightness(1.8); }
}
@keyframes loaderBackdropDissolve { 0% { background-color: #000; } 45% { background-color: #051517; } 100% { background-color: transparent; } }
