/* Scroll sensations for the landing page */

/* Aurora progress line at the very top */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #19c48a, #3ee6a8); box-shadow: 0 0 12px rgba(62,230,168,.7); pointer-events: none; }

/* Richer reveal: rise, grow and come into focus, one after another */
.reveal { opacity: 0; transform: translate3d(0, 60px, 0) scale(.95); filter: blur(10px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.15s cubic-bezier(.16,1,.3,1), filter .9s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (max-width: 820px), (pointer: coarse) {
  .reveal { filter: none; transform: translate3d(0, 26px, 0); transition: opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--d, 0ms) * .5); }
}

/* Headlines reveal word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin-bottom: -.12em; }
.split .wi { display: inline-block; transform: translate3d(0, 115%, 0) rotate(5deg); transform-origin: 0 100%; transition: transform 1.05s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.split.in .wi { transform: none; }

/* Speed of the scroll gently skews content, then it settles back */
.vskew { transform-origin: 50% 50%; transition: transform .25s cubic-bezier(.16,1,.3,1); }

/* Hero parallax: text drifts up and fades, the demo card tips back */
.hero { perspective: 1300px; }
.hero .hero-grid > div:first-child { transform: translate3d(0, calc(var(--hp, 0) * 110px), 0); opacity: calc(1 - var(--hp, 0) * 1.15); will-change: transform, opacity; }
.hero .stage { transform: translate3d(0, calc(var(--hp, 0) * -70px), 0) rotateX(calc(var(--hp, 0) * 22deg)) scale(calc(1 - var(--hp, 0) * .08)); transform-origin: 50% 100%; will-change: transform; }

/* Agent tiles tilt toward the cursor */
.tile.in { transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
.tile.tilting { transition: transform .12s linear, box-shadow .3s, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .split .wi { transform: none !important; filter: none !important; opacity: 1 !important; transition: none !important; }
  .vskew, .hero .hero-grid > div:first-child, .hero .stage { transform: none !important; opacity: 1 !important; }
}
