/* Educonf2026 — motion layer for the dark B2 design. Only transform / opacity are animated.
   Hidden-before-reveal states are gated on `html.js` (set inline in <head>), and a CSS failsafe reveals
   everything if motion.js never arrives. Everything here is off under prefers-reduced-motion. */

:root { --m-ease: cubic-bezier(.16, 1, .3, 1); }

/* ── Failsafe: motion.js adds .motion-on; without it, show everything after 2 s ── */
@keyframes m-show { to { opacity: 1; transform: none; } }
.js:not(.motion-on) [data-reveal] { animation: m-show 0s 2s forwards; }

/* ── Reveal (staggered per batch) ── */
.js [data-reveal] { transition: opacity .7s var(--m-ease), transform .8s var(--m-ease); transition-delay: var(--d, 0ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 18px, 0); }

/* ── Odometer: digit columns that roll (stats, countdown) ── */
.odo { display: inline-flex; direction: ltr; line-height: 1.1; }
.odo-d { display: inline-block; height: 1.1em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform .6s var(--m-ease); }
.odo-s > span { display: block; height: 1.1em; text-align: center; }
.stat .odo-s { transition-duration: 1.5s; }
.cd .has-odo .odo { display: flex; justify-content: center; font-size: 34px; line-height: 1.1; margin-block: 1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd .has-odo .odo span { font-size: inherit; color: inherit; }
.cd .has-odo:not(.odo-live) .odo { display: none; }
.odo-live .cd-num, .m-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; transition: none; animation: none; }
  .odo-s { transition: none; }
}
