
/* =========================================
   ATHEIST HOSTING — ANIMATIONS
   ========================================= */

/* LOADER */

#ah-loader {
    animation: ah-loader-appear .4s ease both;
}

.ah-loader-hidden {
    pointer-events: none;
}

@keyframes ah-loader-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* HERO ENTRANCE */

.ah-hero-top,
.ah-hero-heading,
.ah-hero-description,
.ah-hero-visual,
.ah-hero-scroll {
    animation: ah-hero-enter .9s cubic-bezier(.2,.7,.2,1) both;
}

.ah-hero-top {
    animation-delay: .15s;
}

.ah-hero-heading {
    animation-delay: .25s;
}

.ah-hero-description {
    animation-delay: .4s;
}

.ah-hero-visual {
    animation-delay: .5s;
}

.ah-hero-scroll {
    animation-delay: .65s;
}

@keyframes ah-hero-enter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLL REVEAL */

.ah-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .8s cubic-bezier(.2,.7,.2,1),
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.ah-reveal.ah-visible {
    opacity: 1;
    transform: translateY(0);
}

/* INFRASTRUCTURE RINGS */

.ah-visual-ring {
    transition: border-color .5s ease;
}

.ah-hero-visual:hover .ah-ring-one {
    border-color: rgba(197,201,173,.35);
}

.ah-hero-visual:hover .ah-ring-two {
    border-color: rgba(197,201,173,.28);
}

.ah-hero-visual:hover .ah-ring-three {
    border-color: rgba(197,201,173,.22);
}

/* SERVICE HOVER */

.ah-service {
    transition:
        background .35s ease,
        transform .35s ease;
}

.ah-service-icon {
    transition:
        transform .35s ease,
        border-color .35s ease;
}

.ah-service:hover .ah-service-icon {
    border-color: var(--accent);
}

/* BUTTONS */

.ah-button,
.ah-nav-cta {
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.ah-button:hover {
    transform: translateY(-2px);
}

/* FOUNDERS */

.ah-founder {
    transition:
        background .35s ease,
        border-color .35s ease;
}

.ah-founder:hover {
    border-color: #484a40;
    background: #20211c;
}

/* STATUS */

.ah-status-dot {
    animation: ah-status 3s ease-in-out infinite;
}

@keyframes ah-status {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .45;
    }
}

/* SCROLL LINE */

.ah-scroll-line {
    transform-origin: left;
    animation: ah-scroll-line 2.5s ease-in-out infinite;
}

@keyframes ah-scroll-line {
    0%, 100% {
        transform: scaleX(.4);
    }
    50% {
        transform: scaleX(1);
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .ah-reveal {
        opacity: 1;
        transform: none;
    }

}
