/* NEXUDIO V1.5 | Scroll-linked reveal.
   Content reveals in proportion to scrolling through the viewport, not
   through a timer fired at the first intersection. No layout shift.
   Without JS or when reduced motion is requested, content is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .nx-scroll-ready .nx-reveal:not(.nx-in-view) {
    opacity: var(--nx-reveal-progress, 0);
    transform: translate3d(0, calc(36px * (1 - var(--nx-reveal-progress, 0))), 0);
    /* Short smoothing for trackpads / discrete wheel ticks only. */
    transition: opacity 90ms linear, transform 90ms linear;
  }
  .nx-scroll-ready .nx-reveal.nx-in-view {
    opacity: 1;
    transform: none;
  }
  .nx-scroll-ready .nx-reveal.nx-in-view.nx-btn:hover {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-scroll-ready .nx-reveal { opacity: 1; transform: none; transition: none; }
}

/* V1.5 | Slower, intentionally sequenced entrance on first load.
   Hero content timing is independent from the scroll-driven reveals below. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes nx-first-screen-rise {
    from { opacity: 0; transform: translate3d(0, 36px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes nx-first-screen-brand {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes nx-first-screen-arc {
    0%   { opacity: 0; filter: blur(14px) brightness(.45); }
    64%  { opacity: .77; filter: blur(5px) brightness(.90); }
    100% { opacity: 1; filter: blur(0) brightness(1); }
  }
  .nx-brand {
    animation: nx-first-screen-brand 1100ms ease-out 120ms both;
  }
  .nx-hero__arc {
    animation: nx-first-screen-arc 3200ms cubic-bezier(.22, 1, .36, 1) 200ms both;
  }
  .nx-hero__content > .nx-pill,
  .nx-hero__content > h1,
  .nx-hero__description,
  .nx-hero__content > .nx-actions,
  .nx-hero__signature {
    animation: nx-first-screen-rise 1450ms cubic-bezier(.22, 1, .36, 1) both;
  }
  .nx-hero__content > .nx-pill { animation-delay: 280ms; }
  .nx-hero__content > h1 { animation-delay: 720ms; }
  .nx-hero__description { animation-delay: 1170ms; }
  .nx-hero__content > .nx-actions { animation-delay: 1680ms; }
  .nx-hero__signature { animation-delay: 2150ms; }
}
