#intro-preloader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 50% 10%, rgba(212, 165, 116, 0.15), transparent 60%),
        #090909;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease-out, visibility 0.55s ease-out;
}

#intro-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#intro-preloader.hidden {
    display: none !important;
}

.intro-loader-shell {
    width: min(86vw, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    padding: 36px 18px 20px;
}

.intro-orbit-ring {
    position: absolute;
    top: 6px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: orbitPulse 1.8s ease-in-out infinite;
}

.intro-logo-container {
    position: relative;
    width: min(68vw, 360px);
}

.intro-logo-white {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.14;
}

.intro-logo-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
    filter: drop-shadow(0 0 14px rgba(212, 165, 116, 0.28));
    animation: fillUpLogo 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.intro-loader-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: center;
}

.intro-progress-track {
    width: min(65vw, 300px);
    height: 3px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    overflow: hidden;
}

.intro-progress-line {
    display: block;
    width: 48%;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.1), #d4a574 35%, rgba(255, 255, 255, 0.85));
    border-radius: 999px;
    animation: lineSweep 1.15s ease-in-out infinite;
}

@media (max-width: 768px) {
    .intro-loader-shell {
        gap: 12px;
        padding-top: 28px;
    }

    .intro-orbit-ring {
        width: 118px;
        height: 118px;
        top: 0;
    }

    .intro-logo-container {
        width: min(74vw, 290px);
    }

    .intro-loader-text {
        font-size: 11px;
        letter-spacing: 0.09em;
    }
}

@keyframes fillUpLogo {
    0% {
        clip-path: inset(100% 0 0 0);
        -webkit-clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        -webkit-clip-path: inset(0 0 0 0);
    }
}

@keyframes lineSweep {
    0% {
        transform: translateX(-120%);
    }
    60% {
        transform: translateX(140%);
    }
    100% {
        transform: translateX(140%);
    }
}

@keyframes orbitPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.92;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-orbit-ring,
    .intro-progress-line,
    .intro-logo-color {
        animation: none !important;
    }
}
