/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FEFBF6;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #CEC0C0;
    border-top-color: #635B5B;
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.anim-fade-in.is-inview {
    opacity: 1;
}

.anim-scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-scale-in.is-inview {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.anim-stagger > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.anim-stagger > *:nth-child(6) { transition-delay: 0.5s; }
.anim-stagger > *:nth-child(7) { transition-delay: 0.6s; }
.anim-stagger > *:nth-child(8) { transition-delay: 0.7s; }
.anim-stagger > *:nth-child(9) { transition-delay: 0.8s; }
.anim-stagger > *:nth-child(10) { transition-delay: 0.9s; }
.anim-stagger > *:nth-child(11) { transition-delay: 1.0s; }
.anim-stagger > *:nth-child(12) { transition-delay: 1.1s; }
.anim-stagger > *:nth-child(13) { transition-delay: 1.2s; }
.anim-stagger > *:nth-child(14) { transition-delay: 1.3s; }
.anim-stagger > *:nth-child(15) { transition-delay: 1.4s; }

/* ===== PARALLAX (CSS scroll-driven) ===== */
.anim-parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===== SPLIT LINES (dim → bright) ===== */
.anim-split-lines .split-line {
    display: block;
}

.anim-split-lines .split-line-inner {
    display: block;
    opacity: 0.15;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-split-lines .split-line-inner.is-line-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-split-lines .split-line:nth-child(2) .split-line-inner { transition-delay: 0.12s; }
.anim-split-lines .split-line:nth-child(3) .split-line-inner { transition-delay: 0.24s; }
.anim-split-lines .split-line:nth-child(4) .split-line-inner { transition-delay: 0.36s; }
.anim-split-lines .split-line:nth-child(5) .split-line-inner { transition-delay: 0.48s; }
.anim-split-lines .split-line:nth-child(6) .split-line-inner { transition-delay: 0.60s; }

/* ===== HERO PARALLAX ===== */
.hero-parallax {
    will-change: transform, opacity;
}
