/* ============================================================
   Motion styles for assets/js/animations.js (GSAP + Lenis).
   Colors and layout are untouched; these only add the overlay
   elements the engine creates (curtain, progress bar, cursor).
   ============================================================ */

/* ── Scroll progress bar ── */
.anim-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d28d9, #a78bfa);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2500;
  pointer-events: none;
}

/* ── Page curtain: intro and exit wipe ── */
.anim-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1b4b;
}
.anim-curtain-count {
  color: #fff;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── Split-word headline mask ── */
.anim-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.anim-word-inner {
  display: inline-block;
  will-change: transform;
}

/* ── Custom cursor (desktop mouse only) ── */
.anim-cursor-dot,
.anim-cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3000;
  will-change: transform;
}
.anim-cursor-dot {
  width: 8px;
  height: 8px;
  background: #6d28d9;
}
.anim-cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(109, 40, 217, .55);
  transition: width .25s ease, height .25s ease, background-color .25s ease, border-color .25s ease;
}
.anim-cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(109, 40, 217, .12);
  border-color: transparent;
}
body.anim-has-cursor,
body.anim-has-cursor a,
body.anim-has-cursor button,
body.anim-has-cursor [role="button"],
body.anim-has-cursor label {
  cursor: none;
}

/* ── Hover states for buttons and cards ── */
.btn-primary,
.btn-secondary,
.btn-outline {
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
  box-shadow: 0 10px 24px rgba(109, 40, 217, .25);
}
.feat-card,
.zone-card,
.blog-card {
  transition: box-shadow .3s ease, border-color .3s ease;
}
.feat-card:hover,
.zone-card:hover,
.blog-card:hover {
  box-shadow: 0 16px 36px rgba(109, 40, 217, .14);
}

/* ── Reduced motion: the engine doesn't run, so hide its overlays ── */
@media (prefers-reduced-motion: reduce) {
  .anim-progress,
  .anim-curtain,
  .anim-cursor-dot,
  .anim-cursor-ring {
    display: none;
  }
}
