/* ==========================================================
   Homepage Loader — blush overlay, script wordmark, line sweep
   ========================================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-blush);
}

.loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader__wordmark {
    font-size: clamp(2.8rem, 8vw, 4.4rem);
    color: var(--brand);
    opacity: 0;               /* revealed by loader.js */
}

.loader__sub {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-left: 0.5em;      /* optically centers the tracked text */
    opacity: 0;
}

.loader__line {
    display: block;
    width: 160px;
    height: 1px;
    margin-top: 16px;
    background: var(--border-brand);
    overflow: hidden;
}

.loader__line-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand);
    transform: translateX(-100%);
}

/* Reduced motion / no JS: the loader is removed instantly by loader.js;
   if JS is unavailable the overlay must never block the page. */
@media (prefers-reduced-motion: reduce) {
    .loader {
        display: none !important;
    }
}
