/* ==========================================================================
   Animation helpers — GSAP hooks, WebGL scene mount
   ========================================================================== */

/* ---- Generic scroll-reveal targets (GSAP sets final state via JS;
   these are the pre-JS / no-JS fallback + initial paint to avoid flash) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.js-ready [data-reveal] {
  transition: none; /* GSAP owns the animation once JS is ready */
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Timeline (Ablauf): with no JS, process-steps.js never runs, so
   --timeline-progress would stay at its 0 fallback and every card would
   stay invisible forever. Force it fully charged instead — setting the
   custom property once here reaches both the horizontal (scaleX) and
   vertical (scaleY) fill via the same variable. */
.no-js .timeline__line-track {
  --timeline-progress: 1;
}

.no-js .timeline__node {
  border-color: var(--accent);
  color: var(--accent);
}

.no-js .timeline__card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- Hero parallax layers ---- */
.parallax-layer {
  will-change: transform;
}

/* ---- Cursor-follow glow (desktop only signature touch) ---- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (hover: none), (max-width: 860px) {
  .cursor-glow {
    display: none;
  }
}
