/* =========================================================
   ABOUT PAGE TITLE ANIMATION
   Works with the existing title-animation.js unchanged.
   Does not alter font, size, colour, spacing or alignment.
========================================================= */

[data-animate-title] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.86s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-animate-title].is-title-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Slightly shorter movement on mobile. */
@media (max-width: 720px) {
    [data-animate-title] {
        transform: translate3d(0, 16px, 0);
        transition-duration: 0.62s, 0.72s;
    }

    [data-animate-title].is-title-visible {
        transform: translate3d(0, 0, 0);
    }
}

/* Accessibility fallback. */
@media (prefers-reduced-motion: reduce) {
    [data-animate-title] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
