/*
 * THINKTIE motion foundation.
 * Small, reusable transitions for later landing-page work.
 * Motion is 200–600 ms ease-out; fade plus at most 16px translate.
 * All motion is disabled or effectively instant when the user prefers reduced motion.
 * No parallax, carousels, video backgrounds, autoplay, or animated logo.
 */

:root {
  --tt-motion-duration: 400ms;
  --tt-motion-ease: ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .wp-element-button,
  .wp-block-button__link {
    transition:
      background-color 200ms var(--tt-motion-ease),
      color 200ms var(--tt-motion-ease);
  }

  .tt-fade-in {
    animation: tt-fade-in var(--tt-motion-duration) var(--tt-motion-ease) both;
  }
}

@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;
  }

  .tt-fade-in {
    animation: none;
  }
}

@keyframes tt-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
