/* motion.css — with assets/js/motion.js (nothing moves with reduce motion: motion.js does not run then) */

/* 1. scroll reveal */
.motion-ready [data-rv] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s cubic-bezier(.25, .8, .3, 1), transform 0.9s cubic-bezier(.25, .8, .3, 1);
  transition-delay: calc(var(--rv-i, 0) * 60ms);
}
.motion-ready [data-rv].rv-in { opacity: 1; transform: none; }

/* 2. spotlight: a faint light under the pointer */
.has-spot { position: relative; }
.has-spot > .spot {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 201, 76, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.has-spot:hover > .spot { opacity: 1; }

/* 3. word reveal */
.hero-head h1 .wr { display: inline-block; animation: wrIn 0.8s cubic-bezier(.25, .8, .3, 1) both; animation-delay: calc(var(--wr-i) * 70ms); }
@keyframes wrIn { from { opacity: 0; transform: translateY(0.1em); } to { opacity: 1; transform: none; } }
