#preloader[data-wlh-variant="cinematic"] {
    --wlh-cinematic-bg: #f7f9fc;
    --wlh-cinematic-accent: #517da8;
    --wlh-cinematic-ink: #263e58;
    position: fixed;
    inset: 0;
    z-index: 199998;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background: var(--wlh-cinematic-bg);
    color: var(--wlh-cinematic-ink);
    opacity: 1;
    pointer-events: auto;
    transition: opacity .6s ease, clip-path .75s ease;
}

#preloader[data-wlh-variant="cinematic"]::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -1;
    background:
        radial-gradient(circle at 24% 38%, color-mix(in srgb, var(--wlh-cinematic-accent) 27%, transparent), transparent 32%),
        radial-gradient(circle at 78% 68%, color-mix(in srgb, var(--wlh-cinematic-accent) 18%, transparent), transparent 37%);
    animation: wlh-cinematic-ambient 5s ease-in-out infinite alternate;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__content {
    width: min(520px, calc(100vw - 40px));
    text-align: center;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__eyebrow {
    margin-bottom: 25px;
    color: var(--wlh-cinematic-accent);
    font: 700 10px/1.4 Arial, sans-serif;
    letter-spacing: .28em;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__stage {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(125px, 17vw, 170px);
    perspective: 900px;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__stage::before {
    content: "";
    position: absolute;
    width: min(440px, 90vw);
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--wlh-cinematic-accent) 35%, transparent), transparent 70%);
    filter: blur(22px);
    animation: wlh-cinematic-halo 3.4s ease-in-out both;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__brand {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation: wlh-cinematic-entrances 3.05s ease-in-out both;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__brand img {
    display: none;
    width: min(390px, 82vw);
    max-height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px color-mix(in srgb, var(--wlh-cinematic-ink) 12%, transparent));
}

#preloader[data-wlh-variant="cinematic"][data-wlh-logo-ready="1"] .wlh-cinematic__brand img {
    display: block;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__fallback {
    color: var(--wlh-cinematic-ink);
    font: 600 clamp(44px, 8vw, 66px)/1 Georgia, serif;
    letter-spacing: -.05em;
}

#preloader[data-wlh-variant="cinematic"][data-wlh-logo-ready="1"] .wlh-cinematic__fallback {
    display: none;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__message {
    margin: 18px 0 31px;
    color: var(--wlh-cinematic-ink);
    font: 400 clamp(15px, 2vw, 17px)/1.6 Arial, sans-serif;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__track {
    height: 2px;
    overflow: hidden;
    border-radius: 5px;
    background: color-mix(in srgb, var(--wlh-cinematic-accent) 22%, var(--wlh-cinematic-bg));
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__progress {
    display: block;
    width: var(--wlh-cinematic-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--wlh-cinematic-accent) 40%, white), var(--wlh-cinematic-accent), var(--wlh-cinematic-ink));
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__number {
    display: block;
    margin-top: 12px;
    color: var(--wlh-cinematic-accent);
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: .16em;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__skip {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    right: 28px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--wlh-cinematic-ink);
    font: 600 12px Arial, sans-serif;
    cursor: pointer;
}

#preloader[data-wlh-variant="cinematic"] .wlh-cinematic__skip:focus-visible {
    outline: 2px solid var(--wlh-cinematic-accent);
    outline-offset: 4px;
}

#preloader[data-wlh-variant="cinematic"].is-leaving {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
}

@keyframes wlh-cinematic-entrances {
    0% { opacity: 0; transform: translate3d(-55px, 10px, -150px) rotateY(35deg) scale(.92); filter: blur(7px); }
    16%, 27% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); filter: blur(0); }
    33% { opacity: 0; transform: translate3d(35px, -5px, -90px) rotateY(-24deg) scale(.95); filter: blur(5px); }
    37% { opacity: 0; transform: translate3d(55px, -8px, -150px) rotateY(-35deg) scale(.92); filter: blur(7px); }
    53%, 63% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); filter: blur(0); }
    70% { opacity: 0; transform: translate3d(0, 30px, -100px) rotateX(-25deg) scale(.93); filter: blur(5px); }
    75% { opacity: 0; transform: translate3d(0, -18px, -170px) rotateX(25deg) scale(.9); filter: blur(7px); }
    90%, 100% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) scale(1); filter: blur(0); }
}

@keyframes wlh-cinematic-halo {
    0% { opacity: .35; transform: scale(.75); }
    60% { opacity: .7; transform: scale(1.05); }
    100% { opacity: .5; transform: scale(1); }
}

@keyframes wlh-cinematic-ambient {
    from { transform: translate(-3%, -2%); }
    to { transform: translate(3%, 2%); }
}

@media (prefers-reduced-motion: reduce) {
    #preloader[data-wlh-variant="cinematic"]::before,
    #preloader[data-wlh-variant="cinematic"] .wlh-cinematic__stage::before,
    #preloader[data-wlh-variant="cinematic"] .wlh-cinematic__brand {
        animation: none !important;
    }

    #preloader[data-wlh-variant="cinematic"] {
        transition-duration: .15s !important;
    }
}
