/* =========================================================
   DOTS MEDIA
   PRELOADER
   ========================================================= */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #050403;

    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    color: #ffffff;

    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;

    opacity: 0;
    transform: translateY(10px);

    animation: preloaderFadeIn 0.7s ease 0.15s forwards;
}

.preloader-logo span {
    position: relative;
    display: block;

    color: #ff7a1a;

    padding-bottom: 6px;
}

/*
 * The underline itself is a two-layer bar: a faint full-width
 * track, and a bright fill that grows left -> right on top of it,
 * like a loading bar finishing just before the preloader hides.
 */
.preloader-logo span::before,
.preloader-logo span::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: 0;

    height: 2px;
}

.preloader-logo span::before {
    width: 100%;

    background: rgba(255, 122, 26, 0.2);
}

.preloader-logo span::after {
    width: 0%;

    background: #ff7a1a;

    animation: preloaderBarFill 1.1s ease 0.5s forwards;
}

@keyframes preloaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderBarFill {
    to {
        width: 100%;
    }
}


/* =========================================================
   HERO REVEAL
   Runs once the preloader has finished fading out, so the
   page content "arrives" instead of just sitting there.
   ========================================================= */

.hero-content {
    opacity: 0;
    transform: translateY(18px);

    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.page-ready .hero-content {
    opacity: 1;
    transform: translateY(0);
}