/* ========================================
   ANIMATIONS (load this file last)
======================================== */

@keyframes settle {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: none; }
}

/* Homepage hero: image settles, text rises in sequence */
.hero > img {
    animation: settle 2.4s ease-out both;
}

.hero__content > * {
    animation: rise 1.1s ease-out both;
}

.hero__content > :nth-child(1) { animation-delay: .3s; }
.hero__content > :nth-child(2) { animation-delay: .5s; }
.hero__content > :nth-child(3) { animation-delay: .7s; }
.hero__content > :nth-child(4) { animation-delay: .9s; }

/* Inner page hero */
.page-hero__text > * {
    animation: rise 1.1s ease-out both;
}

.page-hero__text > :nth-child(1) { animation-delay: .2s; }
.page-hero__text > :nth-child(2) { animation-delay: .4s; }
.page-hero__text > :nth-child(3) { animation-delay: .6s; }

.page-hero__media {
    animation: rise 1.3s .5s ease-out both;
}

/* Scroll reveal (needs js/reveal.js and a data-reveal attribute) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .9s ease, transform .9s ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Never hide content if scripts are off */
@media (scripting: none) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   ANIMATIONS (load this file last)
======================================== */

@keyframes settle {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: none; }
}

/* Homepage hero: image settles, text rises in sequence */
.hero > img {
    animation: settle 2.4s ease-out both;
}

.hero__content > * {
    animation: rise 1.1s ease-out both;
}

.hero__content > :nth-child(1) { animation-delay: .3s; }
.hero__content > :nth-child(2) { animation-delay: .5s; }
.hero__content > :nth-child(3) { animation-delay: .7s; }
.hero__content > :nth-child(4) { animation-delay: .9s; }

/* Inner page hero */
.page-hero__text > * {
    animation: rise 1.1s ease-out both;
}

.page-hero__text > :nth-child(1) { animation-delay: .2s; }
.page-hero__text > :nth-child(2) { animation-delay: .4s; }
.page-hero__text > :nth-child(3) { animation-delay: .6s; }

.page-hero__media {
    animation: rise 1.3s .5s ease-out both;
}

/* Scroll reveal (needs js/reveal.js and a data-reveal attribute) */
[data-reveal].is-armed {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .9s ease, transform .9s ease;
}

[data-reveal].is-armed.is-visible {
    opacity: 1;
    transform: none;
}

/* Never hide content if scripts are off */
@media (scripting: none) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}