/* ========================================
   PRELOADER & PAGE TRANSITION STYLES
   ======================================== */

/* --- Lock scroll during preloader --- */
body.preloader-active {
    overflow: hidden;
    height: 100vh;
}

/* --- Preloader Overlay --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    padding: 40px 50px;
    pointer-events: none;
}

.preloader__brand {
    color: #fff;
    font-family: 'Switzer';
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.6;
}

.preloader__counter {
    position: absolute;
    right: 50px;
    bottom: 40px;
    overflow: hidden;
    height: clamp(90px, 11vw, 150px);
}

.preloader__counter-track {
    display: flex;
    flex-direction: column;
    position: relative;
}

.preloader__counter-num {
    color: #fff;
    font-family: 'Switzer';
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 700;
    text-align: right;
    line-height: 1;
    height: clamp(90px, 11vw, 150px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* --- Page Transition Overlay --- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #000;
    transform: translateY(-100%);
    pointer-events: none;
}

/* --- Hide preloader when done --- */
.preloader.is-done {
    display: none;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
    .preloader {
        padding: 30px 25px;
    }

    .preloader__brand {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .preloader__counter {
        font-size: clamp(60px, 15vw, 100px);
    }
}
