/*
 * Site-wide reveal animations (used through AOS, see js/kct-animations.js).
 *
 * One restrained motion language for the whole site: short travel, a soft
 * "ease-out-expo" curve, opacity leading the movement, each element revealed
 * once. No flips, bounces or long slides.
 */
[data-aos^="kct-"] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: .7s, 1s !important;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

[data-aos="kct-up"]         { transform: translate3d(0, 28px, 0); }
[data-aos="kct-from-left"]  { transform: translate3d(-36px, 0, 0); }
[data-aos="kct-from-right"] { transform: translate3d(36px, 0, 0); }
[data-aos="kct-scale"]      { transform: translate3d(0, 18px, 0) scale(.965); }

[data-aos^="kct-"].aos-animate {
    opacity: 1;
    transform: none;
}

/* Shorter travel on phones so reveals stay calm on a small screen. */
@media (max-width: 767px) {
    [data-aos="kct-up"]         { transform: translate3d(0, 18px, 0); }
    [data-aos="kct-from-left"]  { transform: translate3d(-20px, 0, 0); }
    [data-aos="kct-from-right"] { transform: translate3d(20px, 0, 0); }
    [data-aos="kct-scale"]      { transform: translate3d(0, 12px, 0) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
    [data-aos^="kct-"] {
        opacity: 1;
        transform: none;
        transition: none !important;
    }
}
