/* css/motion.css (D, Addendum 6): scroll reveals like Smooche (fade + 12 px rise, 0.5 s, once).
   Rules: opacity/transform only; the hidden start state exists ONLY when js/motion.js has added html.js-motion
   (so content is visible without JS and under prefers-reduced-motion); nothing above the fold waits; no layout shift. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--motion-dist, 12px), 0);
  will-change: opacity, transform;
}
.js-motion [data-reveal="fade"]  { transform: none; }
.js-motion [data-reveal="right"] { transform: translate3d(calc(var(--motion-dist, 12px) * -1), 0, 0); }
.js-motion [data-reveal="scale"] { transform: scale(.97); }
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-dur, 500ms) var(--motion-ease, ease) var(--motion-delay, 0ms),
              transform var(--motion-dur, 500ms) var(--motion-ease, ease) var(--motion-delay, 0ms);
}
/* already on screen at load, or JS finished: no transition, no flash */
.js-motion [data-reveal].is-static { transition: none; will-change: auto; }
.js-motion [data-reveal].is-done { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
}
