/* Motion layer. Everything is gated on .motion-on (set by js/motion.js), so the page is fully
   visible without JS and for reduced-motion users. */
:root { --mo-ease: cubic-bezier(.2,.8,.2,1); --mo-spring: cubic-bezier(.34,1.56,.64,1); }

/* ---- Scroll progress ---- */
.mo-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; transform-origin: 0 50%; transform: scaleX(0); background: #0B0C0F; pointer-events: none; }

/* ---- Split headlines: words rise out of a mask ---- */
.split-t .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.16em; margin: -0.04em -0.06em -0.16em; }
.split-t .wi { display: inline-block; will-change: transform; }
.motion-on .split-t .wi { transform: translateY(112%) rotate(5deg); transform-origin: 0 100%; transition: transform 1s var(--mo-ease) calc(var(--i, 0) * 0.07s); }
.motion-on .split-t.in .wi { transform: none; }

/* ---- Hero load-in (lifestyle surface — no Ken Burns zoom; stays a page plane) ---- */
.motion-on .hero-scene-bg {
  opacity: 0;
  animation: mo-scene-bg 1.2s var(--mo-ease) 0.1s forwards;
}
@keyframes mo-scene-bg { to { opacity: 1; } }
.motion-on .hero-scene-copy > *:not(.hero-title) {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: mo-up 0.9s var(--mo-ease) forwards;
}
.motion-on .hero-scene-copy > :nth-child(1) { animation-delay: 0.35s; }
.motion-on .hero-scene-copy > :nth-child(3) { animation-delay: 0.75s; }
.motion-on .hero-scene-copy > :nth-child(4) { animation-delay: 0.9s; }
@keyframes mo-up { to { opacity: 1; transform: none; filter: none; } }
.motion-on .hero-scene-stage {
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.7s var(--mo-ease);
}
.motion-on #main-nav { animation: mo-down 0.9s var(--mo-ease) 0.2s backwards; }
@keyframes mo-down { from { opacity: 0; transform: translateY(-14px); } }

/* ---- Scroll reveal: rise + unblur ---- */
.motion-on .rv { opacity: 0; transform: translateY(36px) scale(0.965); filter: blur(8px); transition: opacity 0.9s var(--mo-ease), transform 0.9s var(--mo-ease), filter 0.9s var(--mo-ease); transition-delay: var(--rv-d, 0s); }
.motion-on .rv.in { opacity: 1; transform: none; filter: none; }

/* ---- Scroll-scrubbed paragraphs: words light up as you read down ---- */
.motion-on .sw { opacity: 0.18; transition: opacity 0.35s ease; }
.motion-on .sw.lit { opacity: 1; }

/* ---- Cursor spotlight on cards (soft silver) ---- */
.mo-spot {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s; z-index: 3;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(148, 163, 184, 0.28), transparent 62%);
}
:hover > .mo-spot { opacity: 1; }
.blinq-share .tile, .faq-item { position: relative; }

/* ---- Bento tiles ---- */
.blinq-share .tile { transition: opacity 0.9s var(--mo-ease) var(--rv-d, 0s), transform 0.55s var(--mo-ease), box-shadow 0.55s var(--mo-ease), filter 0.9s var(--mo-ease) var(--rv-d, 0s); }
.blinq-share .tile:hover { transform: translateY(-8px); box-shadow: 0 34px 56px -26px rgba(15, 23, 42, 0.35); }
.blinq-share .tile:active { transform: translateY(-3px) scale(0.985); }
.blinq-share .tile__media--mascot { background: #000 !important; }
.blinq-share .tile__media--mascot img { transition: transform 0.7s var(--mo-spring); }
.blinq-share .tile:hover .tile__media--mascot img { animation: mo-wiggle 0.9s var(--mo-ease); transform: scale(1.09); }
@keyframes mo-wiggle { 0% { rotate: 0deg; } 25% { rotate: -5deg; } 55% { rotate: 4deg; } 80% { rotate: -2deg; } 100% { rotate: 0deg; } }
.blinq-share .tile .arrow { transition: transform 0.5s var(--mo-spring), background-color 0.3s, color 0.3s; }
.blinq-share .tile:hover .arrow { transform: rotate(-45deg) scale(1.12); background: #0B0C0F; color: #fff; }

/* ---- Everything else ---- */
.stack-visual-box.card-slides:hover .card-slide.is-on { transform: scale(1.05); }
.faq-item { transition: opacity 0.9s var(--mo-ease) var(--rv-d, 0s), transform 0.45s var(--mo-ease), box-shadow 0.45s var(--mo-ease), filter 0.9s var(--mo-ease) var(--rv-d, 0s); }
.faq-item:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(15, 23, 42, 0.32); }
.hww-step { transition: opacity 0.9s var(--mo-ease) var(--rv-d, 0s), transform 0.5s var(--mo-ease), filter 0.9s var(--mo-ease) var(--rv-d, 0s); }
.hww-step:hover { transform: translateY(-5px); }
.hww-num { transition: transform 0.6s var(--mo-spring); }
.hww-step:hover .hww-num { transform: scale(1.18) rotate(-6deg); }
.footer-links-list a { display: inline-block; transition: color 0.25s, transform 0.35s var(--mo-ease); }
.footer-links-list a:hover { transform: translateX(5px); }
.for-home-logos.is-tinted .sector-chip.is-on:active { transform: translateY(-2px) scale(1.02); }

/* ---- Magnetic CTAs ---- */
.cta-main, .cta-ghost { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.cta-main:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); }
.cta-ghost:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); }
.cta-main span, .cta-ghost span { display: inline-block; transition: transform 0.3s var(--mo-ease); transform: translate(calc(var(--tx, 0px) * 0.35), calc(var(--ty, 0px) * 0.35)); }

@media (prefers-reduced-motion: reduce) {
  .motion-on .hero-scene-bg, .motion-on .hero-scene-copy > *, .motion-on .hero-scene-stage, .motion-on #main-nav { animation: none; opacity: 1; transform: none; filter: none; }
  .motion-on .rv, .motion-on .split-t .wi, .motion-on .sw { opacity: 1; transform: none; filter: none; transition: none; }
}
