/* Exilien page motion (round 6): scroll reveals, step-by-step process, count-up, photo drift.
   Goes beyond the Taste kit's "scroll moves nothing" rule on purpose, at the client's request.
   Everything is visible without script and under reduced motion: these rules only apply once
   site-motion.js adds html.sm-on. Plain CSS, portable to Elementor (custom CSS + HTML widget). */

html.sm-on [data-sm] {
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), clip-path 1.1s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--sm-d, 0s);
}
html.sm-on [data-sm="up"]:not(.is-in)    { opacity: 0; transform: translateY(28px); }
html.sm-on [data-sm="fade"]:not(.is-in)  { opacity: 0; }
html.sm-on [data-sm="left"]:not(.is-in)  { opacity: 0; transform: translateX(-28px); }
html.sm-on [data-sm="pop"]:not(.is-in)   { opacity: 0; transform: translateY(14px) scale(.94); }
html.sm-on [data-sm="wipe"]              { clip-path: inset(0 0 0 0); }
html.sm-on [data-sm="wipe"]:not(.is-in)  { clip-path: inset(0 0 100% 0); }

/* headings: the line rises out of a mask */
html.sm-on [data-sm="rise"] { overflow: hidden; }
html.sm-on [data-sm="rise"] > .sm-line { display: inline-block; transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .9s; transition-delay: var(--sm-d, 0s); }
html.sm-on [data-sm="rise"]:not(.is-in) > .sm-line { transform: translateY(105%); opacity: 0; }

/* process: the six steps light up one after another */
html.sm-on #process .dg-node, html.sm-on #process .dg-e {
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--sm-d, 0s);
}
html.sm-on #process .dg:not(.sm-play) .dg-node { opacity: 0; transform: translateY(16px) scale(.9); }
html.sm-on #process .dg:not(.sm-play) .dg-e { opacity: 0; }

/* photo drift: moves with the page, a little slower; uses translate/scale so the kit's hover zoom still composes */
html.sm-on [data-sm-drift] { will-change: translate; }

/* scroll progress bar */
.sm-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none;
  background: #64D5CA; transform-origin: 0 50%; transform: scaleX(var(--sm-p, 0)); }

/* the record number counts up; keep its width steady */
.sm-count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .sm-progress { display: none; }
}
