/* Homepage scene transitions
 * Keep every scene's existing art direction and layout, but layer the scenes
 * so direct jumps (for example scene 1 -> scene 4) cross-fade smoothly instead
 * of travelling across several viewport widths.
 */
#tokennau-homepage-prototype .tn-home-slides {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform: none !important;
  transition: none;
}

#tokennau-homepage-prototype .tn-home-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1.006);
  transition:
    opacity .82s cubic-bezier(.22, .61, .36, 1),
    transform 1.05s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear .82s;
  will-change: opacity, transform;
}

#tokennau-homepage-prototype .tn-home-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}

/* Text settles after the new background has started appearing. */
#tokennau-homepage-prototype .tn-home-slide-copy {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity .62s .14s cubic-bezier(.22, .61, .36, 1),
    transform .78s .14s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

#tokennau-homepage-prototype .tn-home-slide.is-active .tn-home-slide-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Navigation and progress glass follow the scene at the same calm pace. */
html body #tokennau-homepage-prototype .tn-nav {
  transition:
    background-color .72s cubic-bezier(.22, .61, .36, 1),
    border-color .72s cubic-bezier(.22, .61, .36, 1),
    box-shadow .3s ease;
}

#tokennau-homepage-prototype .tn-home-slide-status {
  transition:
    background-color .72s cubic-bezier(.22, .61, .36, 1),
    border-color .72s cubic-bezier(.22, .61, .36, 1),
    box-shadow .3s ease;
}

#tokennau-homepage-prototype .tn-home-slide-status button,
#tokennau-homepage-prototype .tn-home-slide-status i {
  transition:
    width .32s cubic-bezier(.22, .61, .36, 1),
    background-color .42s ease,
    box-shadow .42s ease,
    color .42s ease;
}

@media (prefers-reduced-motion: reduce) {
  #tokennau-homepage-prototype .tn-home-slide,
  #tokennau-homepage-prototype .tn-home-slide-copy,
  html body #tokennau-homepage-prototype .tn-nav,
  #tokennau-homepage-prototype .tn-home-slide-status,
  #tokennau-homepage-prototype .tn-home-slide-status button,
  #tokennau-homepage-prototype .tn-home-slide-status i {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}


/* Keep the four scene indicators visually light: no enclosing capsule. */
#tokennau-homepage-prototype .tn-home-slide-status {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Keep the navigation demo CTA on one brand gradient in every scene and route. */
html body #tokennau-homepage-prototype .tn-nav-actions [data-open-demo],
html body #tokennau-homepage-prototype[data-home-scene] .tn-nav-actions [data-open-demo],
html body #tokennau-homepage-prototype.is-past-hero .tn-nav-actions [data-open-demo],
html body #tokennau-homepage-prototype.is-route-page .tn-nav-actions [data-open-demo] {
  border-color: #6832d5 !important;
  background: linear-gradient(105deg, #49225f 0%, #7037df 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(104, 50, 213, .17) !important;
}
html body #tokennau-homepage-prototype .tn-nav-actions [data-open-demo]:hover,
html body #tokennau-homepage-prototype .tn-nav-actions [data-open-demo]:focus-visible {
  border-color: #6832d5 !important;
  background: linear-gradient(105deg, #49225f 0%, #7037df 100%) !important;
  color: #fff !important;
}

/* Final priority lock: preserve the original first-scene CTA gradient after scroll/route state rules. */
html body #tokennau-homepage-prototype .tn-nav .tn-wrap .tn-nav-actions .tn-btn.tn-btn-primary[data-open-demo],
html body #tokennau-homepage-prototype .tn-nav .tn-wrap .tn-nav-actions .tn-btn.tn-btn-primary[data-open-demo]:hover,
html body #tokennau-homepage-prototype .tn-nav .tn-wrap .tn-nav-actions .tn-btn.tn-btn-primary[data-open-demo]:focus-visible {
  border-color: #6832d5 !important;
  background-color: transparent !important;
  background-image: linear-gradient(105deg, #49225f 0%, #7037df 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(104, 50, 213, .17) !important;
}
