/* TashiOS site-kit — GSAP + Three.js motion helpers (Tier A/B/C/D) */

.site-motion__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.site-motion__word-inner {
  display: inline-block;
}

[data-three-hero] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero--motion,
.hero[data-three-wrap] {
  position: relative;
  overflow: hidden;
}

.hero--motion > .container,
.hero--motion > .hero__content,
.hero[data-three-wrap] > .container,
.hero[data-three-wrap] > .hero__content {
  position: relative;
  z-index: 1;
}

/* Scale-in images: wrap <img data-gsap-scale-in> in a clipped frame */
.site-motion__frame {
  overflow: hidden;
  display: block;
}

[data-gsap-scale-in] {
  will-change: transform;
  display: block;
  width: 100%;
}

[data-gsap-parallax] {
  will-change: transform;
}

/* Prevent FOUC before GSAP runs */
html.site-motion-pending [data-gsap-reveal],
html.site-motion-pending [data-reveal] {
  opacity: 0;
}

html.site-motion-pending [data-gsap-stagger] > *:not(.site-motion--visible),
html.site-motion-pending [data-reveal-stagger] > *:not(.site-motion--visible) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-three-hero] {
    display: none !important;
  }

  html.site-motion-pending [data-gsap-reveal],
  html.site-motion-pending [data-gsap-stagger] > *,
  html.site-motion-pending [data-reveal],
  html.site-motion-pending [data-reveal-stagger] > *,
  [data-gsap-reveal],
  [data-gsap-stagger] > *,
  [data-gsap-headline] .site-motion__word-inner,
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-gsap-parallax],
  [data-gsap-scale-in] {
    transform: none !important;
  }
}
