/* ==========================================================================
   cyan.blue motion system. Subtle, editorial, once per page load.
   Uses the motion tokens in tokens.css.
   ========================================================================== */

/* Smooth color and opacity changes on every button and link. */
a, button {
  transition:
    color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out);
}

/* Arrows nudge to the right on hover. */
.arrow { display: inline-block; transition: transform var(--motion-fast) var(--ease-out); }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(3px); }

/* Image zoom on desktop hover only (devices with a real mouse). */
@media (hover: hover) and (pointer: fine) {
  a:hover .zoom-img { transform: scale(var(--motion-zoom)); }
}

/* Scroll reveal. site.js adds data-reveal only to sections that start
   below the first screen, so nothing above the fold is ever hidden. */
[data-reveal] { opacity: 0; transform: translateY(var(--motion-distance)); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition:
    opacity var(--motion-reveal) var(--ease-out),
    transform var(--motion-reveal) var(--ease-out);
}

/* Respect "reduce motion" settings: everything shows, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  a:hover .zoom-img, a:hover .arrow { transform: none; }
}
