/* ==========================================================================
   PRELOADER — Desktop (1280px – 1920px)
   Design reference: 1920x1185. Shown only on case_N.html pages, right
   before the media stack. Covers the full real viewport (not tied to
   the 1920 width scale like the rest of the page), background image
   scales via object-fit so any spare height/aspect is simply cropped.
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.preloader__text {
    position: absolute;
    bottom: 14rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Atyp Display', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    line-height: 3rem;
    letter-spacing: -0.05em;
    color: #ffffff;
    white-space: nowrap;
    z-index: 1;
}

.preloader__bar-track {
    position: absolute;
    top: 70.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 65rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    z-index: 1;
}

.preloader__bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #000000;
    border-radius: 1rem;
    transition: width 0.2s ease;
}

body.preloader-lock {
    overflow: hidden;
}
