/* Preloader: the Novatis logo fills with colour left → right as the page loads, then the splash fades out. */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071528; /* splash background colour */
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

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

.preloader-logo-stage {
    --progress: 0%; /* set by preloader.js */

    position: relative;
    width: 240px; /* logo size */
    max-width: 70vw;
    aspect-ratio: 403 / 121; /* matches assets/logo.webp */
}

.preloader-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* the logo "track": dim, colourless */
.preloader-logo--base {
    filter: grayscale(1) brightness(1.6);
    opacity: 0.16;
}

/* the progress: full-colour logo revealed up to --progress */
.preloader-logo--fill {
    clip-path: inset(0 calc(100% - var(--progress)) 0 0); /* animated by preloader.js */
}
