/* Home-page motion only. All content remains readable without GSAP or JavaScript. */
html.js body[data-home-motion] .reveal,
html.js body[data-home-motion] .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js body[data-home-motion] .hero__title {
    animation: home-title-enter 600ms var(--ease) both;
  }

  html.js body[data-home-motion] .hero__lead {
    animation: home-support-enter 520ms var(--ease) 80ms both;
  }

  html.js body[data-home-motion] .hero__cta {
    animation: home-support-enter 480ms var(--ease) 140ms both;
  }

  html.js body[data-home-motion] .hero__badges {
    animation: home-fade-enter 400ms var(--ease) both;
  }

  body[data-home-motion] main .btn:active {
    transform: scale(0.97);
    transition-duration: 120ms;
  }

  body[data-home-motion] .home-motion-entering {
    /* Avoid interpolating every GSAP frame again through the old CSS reveal. */
    transition: none !important;
  }
}

@keyframes home-title-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-support-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-fade-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body[data-home-motion] .hero__cta .btn:hover,
  body[data-home-motion] .home-launcher__cta .btn:hover {
    transform: translateY(-2px);
  }

  body[data-home-motion] .hero__cta .btn:active,
  body[data-home-motion] .home-launcher__cta .btn:active {
    transform: translateY(0) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-home-motion] .hero__title,
  body[data-home-motion] .hero__lead,
  body[data-home-motion] .hero__cta,
  body[data-home-motion] .hero__badges {
    animation: none;
  }

  body[data-home-motion] main .btn,
  body[data-home-motion] .wiki__card,
  body[data-home-motion] .feature:hover .feature__media img,
  body[data-home-motion] .feature:hover .feature__media video,
  body[data-home-motion] .feature__media img,
  body[data-home-motion] .feature__media video {
    transform: none;
    transition-property: color, background-color, border-color;
  }
}
.home-loader:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  background: var(--bg, #0b0b0e);
  color: var(--text, #f4f4f5);
  font-size: .9rem;
  pointer-events: none;
}

.home-loader__logo {
  width: min(76vw, 360px);
  height: clamp(130px, 35vw, 210px);
  object-fit: contain;
}

.home-loader__ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(168, 85, 247, .2);
  border-top-color: var(--accent, #a855f7);
  border-radius: 50%;
  animation: home-loader-spin .8s linear infinite;
}

@keyframes home-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-loader__ring { animation: none; }
}
