/* CODR landing — scroll-triggered reveals for the story section (cards, rows, windows, copy).
   Rules (design-decisions §1.8): opacity + transform only, ease-out, <=600ms per element, nothing loops, once per element.
   Everything below is gated by html.motion (OS does not ask for reduced motion, or the page was opened with ?motion=on) and
   by the classes js/reveal.js adds at runtime: no JavaScript, reduced motion, no IntersectionObserver, a script error or
   printing all leave the page fully visible. The hidden state never changes layout (no size, margin or position change). */

html.motion .rv {
  opacity: 0;
  transform: translateY(var(--rv-y, 24px));
  transition:
    opacity var(--rv-dur, 600ms) var(--ease-out) var(--rv-d, 0ms),
    transform var(--rv-dur, 600ms) var(--ease-out) var(--rv-d, 0ms);
}
html.motion .rv--sm   { --rv-y: 14px; --rv-dur: 480ms; }   /* items nested inside an already-revealed block */
html.motion .rv--fade { --rv-y: 0px; }                       /* frames fade only, so their children are the ones that travel */
html.motion .rv.is-in { opacity: 1; transform: none; }

/* Last micro-interaction of a scene: the chosen state "ticks" in (check marks pop from 40% to full size) */
html.motion svg.rv-check {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transition:
    opacity 320ms var(--ease-out) var(--rv-d, 0ms),
    transform 320ms var(--ease-out) var(--rv-d, 0ms);
}
html.motion svg.rv-check.is-in { opacity: 1; transform: none; }

/* Owner preview (?motion=on): css/base.css zeroes transition durations under prefers-reduced-motion with !important;
   these rules win over it (same !important, higher specificity) and only apply when forced. */
html.motion-forced .rv { transition-duration: var(--rv-dur, 600ms) !important; }
html.motion-forced svg.rv-check { transition-duration: 320ms !important; }

@media print {
  .rv, svg.rv-check { opacity: 1 !important; transform: none !important; transition: none !important; }
}
