/* Motion layer for 04d (inspired by aura.build ApexSignal: clip-up hero, blur reveals, parallax, clip-path panels, scroll bar, cursor weight).
   Active only when motion.js adds html.m-on (JS on, no reduced motion). */
@keyframes mClipUp { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } to { clip-path: inset(-20% 0 -20% 0); transform: none; } }
@keyframes mSlideIn { from { opacity: 0; transform: translateX(40px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mDrift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-1.5%); } }

.m-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: var(--btn); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* hero */
.m-on .hero-d { background-image: none !important; overflow: hidden; }
.m-hbg { position: absolute; inset: -6% 0; z-index: -2; background: center/cover no-repeat; will-change: transform; }
.m-hbg > i, .m-hbg > .hero-img, .m-hbg > .hero-pic { position: absolute; inset: 0; background: inherit; animation: mDrift 24s ease-out forwards; }
/* h1 paints at once (LCP); only the sub-line and CTAs clip up, quickly */
.m-on .hero-d .hd-t > :not(.h1) { animation: mClipUp .7s cubic-bezier(.16,1,.3,1) both; }
.m-on .hero-d .hd-t > :nth-child(2) { animation-delay: .05s; }
.m-on .hero-d .hd-t > :nth-child(3) { animation-delay: .15s; }
.m-on .hero-d .wrap { will-change: transform, opacity; }

/* scroll reveals: fade + rise + blur */
.m-on .m-rv { opacity: 0; transform: translateY(48px); filter: blur(12px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1), filter 1.1s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.m-on .m-rv.m-x { transform: translateX(-36px); filter: blur(8px); }
.m-on .m-rv.in { opacity: 1; transform: none; filter: none; }

/* bars grow, valley lines draw */
.m-on .stepper .mini i { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.m-on .stepper li.in .mini i { transform: none; }
.m-on .valley path { stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1); }
.m-on .valley.in path { stroke-dashoffset: 0; }

/* restoration scroll: panel opens from an inset card, active frame settles */
.m-on .scrub-stick { clip-path: inset(var(--ci, 0%) var(--cx, 0%) round var(--cr, 0px)); }
.m-on .sf { transform: scale(1.08); transition: opacity .6s, transform 1.6s cubic-bezier(.16,1,.3,1); }
.m-on .sf.on { transform: none; }

/* headline weight follows the cursor (Nunito variable 200–1000) */
.wchar { display: inline-block; transition: font-weight .15s linear; }

/* sticky CTA waits until the hero is gone */
.m-on .sticky { transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s; }
.m-on .sticky.m-hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* arrows nudge on hover */
.btn .ic { transition: transform .3s; }
.btn:hover .ic { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) { .m-bar { display: none; } .wchar, .btn .ic { transition: none; } }
