/* TMC Motion v1 (Nov 25, 2026) — CSS-only entrance motion.
   Replaces Elementor's JS-gated entrance animations, which shipped
   content in a hidden state (elementor-invisible) and relied on a
   script to reveal it; when the script hiccuped, whole pages rendered
   empty (Our Story, Nov 25, 2026). These animations follow the safe
   pattern: an element's natural state is FULLY VISIBLE, and motion
   exists only inside @keyframes. If this file fails to load, or the
   browser cannot animate, every element is simply present. Nothing on
   the site may gate visibility on animation again.
   Scroll-driven reveals are progressive enhancement only, inside
   @supports; unsupported browsers get the load-time fade instead.
   Visitors who prefer reduced motion get a still page. */

@keyframes tmc-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tmc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Headings and story cards in page content: gentle load-time rise */
main .elementor-widget-heading,
.site-main .elementor-widget-heading {
    animation: tmc-fade-up 0.6s ease-out;
}

main .tmc-card,
.site-main .tmc-card {
    animation: tmc-fade-up 0.7s ease-out;
}

main .elementor-widget-image,
.site-main .elementor-widget-image {
    animation: tmc-fade-in 0.8s ease-out;
}

/* NOTE (Nov 25, 2026, same-night correction): a scroll-driven variant
   (animation-timeline: view() with fill both) was tried and REMOVED
   within the hour — it held below-fold cards at the hidden from-state
   until their entry range played, which re-created the very gating
   this sheet exists to abolish when the scroll mechanics differed.
   Load-time fades only. Nothing may hold content at a hidden state. */

@media (prefers-reduced-motion: reduce) {
    main .elementor-widget-heading,
    .site-main .elementor-widget-heading,
    main .tmc-card,
    .site-main .tmc-card,
    main .elementor-widget-image,
    .site-main .elementor-widget-image {
        animation: none;
    }
}
