/* ============================================
   INSPIRE AGENCY — Animation Helpers
   animations.css
   ============================================ */

/* =====================
   BASE ANIMATION STATE
   (Elements start hidden, GSAP reveals them)
   ===================== */

.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-in {
  opacity: 0;
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(40px);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.94);
}

/* Line reveal */
.anim-line {
  transform: scaleX(0);
  transform-origin: left center;
}

/* Word/text reveal */
.word-wrap {
  overflow: hidden;
  display: inline-block;
}

.word-inner {
  display: inline-block;
}

/* =====================
   SCROLL INDICATOR
   ===================== */

.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text-secondary);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* =====================
   COUNTER NUMBER
   ===================== */

.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* =====================
   MANIFESTO / PINNED SECTION
   ===================== */

.manifesto-word {
  display: inline-block;
  opacity: 0.15;
  transition: none; /* GSAP controls this */
}

/* =====================
   CUSTOM CURSOR
   ===================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--duration-fast) ease,
              height var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
  mix-blend-mode: difference;
}

.cursor--large {
  width: 40px;
  height: 40px;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-text-tertiary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
}

@media (pointer: coarse) {
  .cursor, .cursor-ring {
    display: none;
  }
}

/* =====================
   DOT PATTERN BACKGROUND
   ===================== */

.dot-pattern {
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

/* =====================
   LINE PATTERN BACKGROUND
   ===================== */

.line-pattern {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    var(--color-border) 39px,
    var(--color-border) 40px
  );
}

/* =====================
   REDUCED MOTION
   ===================== */

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-in,
  .anim-slide-left,
  .anim-slide-right,
  .anim-scale-in {
    opacity: 1;
    transform: none;
  }

  .anim-line {
    transform: scaleX(1);
  }

  .manifesto-word {
    opacity: 1;
  }

  .scroll-indicator {
    animation: none;
  }

  .scroll-indicator__line::after {
    animation: none;
  }
}
