/* =========================================================
   THE FRONTIER SHOW
   SHARED LIGHTWEIGHT ANIMATIONS
   ========================================================= */

/* Page entrance */
body {
    animation: frontierPageIn 0.55s ease-out;
}

@keyframes frontierPageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   Fade + slide up
   --------------------------------------------------------- */

.frontier-animate-up {
    animation: frontierFadeUp 0.7s ease-out both;
}

@keyframes frontierFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   Fade in
   --------------------------------------------------------- */

.frontier-animate-fade {
    animation: frontierFade 0.7s ease-out both;
}

@keyframes frontierFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

button,
.btn,
.nav-cta {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

button:hover,
.btn:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.card,
.format-card,
.event-card,
.info-card,
.mission-card,
.vision-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover,
.format-card:hover,
.event-card:hover,
.info-card:hover,
.mission-card:hover,
.vision-card:hover {
    transform: translateY(-4px);
}


/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.nav-links a {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Images
   --------------------------------------------------------- */

img {
    transition: transform 0.35s ease;
}

img:hover {
    transform: scale(1.02);
}


/* ---------------------------------------------------------
   Animation delays
   --------------------------------------------------------- */

.frontier-delay-1 {
    animation-delay: 0.1s;
}

.frontier-delay-2 {
    animation-delay: 0.2s;
}

.frontier-delay-3 {
    animation-delay: 0.3s;
}

.frontier-delay-4 {
    animation-delay: 0.4s;
}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}