/* ============================================================
   ANIMATION UTILITIES
   Initial states for GSAP (elements start hidden/offset)
   ============================================================ */

/* Fade-up reveal — GSAP sets opacity:1, y:0 on scroll */
/* Marquee reverse direction */
.marquee-track--reverse {
  animation-direction: reverse;
}

/* GSAP sets initial states in JS — no CSS opacity:0 here.
   These classes are helpers for non-JS fallback only. */
.reveal        { opacity: 0; transform: translateY(32px); }
.reveal-fade   { opacity: 0; }
.reveal-scale  { opacity: 0; transform: scale(0.92); }

/* Char wrap — needed for the slide-up letter animation */
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

/* Line underline animation */
.underline-anim {
  position: relative;
  display: inline-block;
}

.underline-anim::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.underline-anim.is-active::after,
.underline-anim:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   GRADIENT MESH ANIMATION
   ============================================================ */
@keyframes meshMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(3%, 2%) scale(1.04); }
  66%       { transform: translate(-2%, 3%) scale(0.97); }
}

@keyframes meshMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-3%, -2%) scale(1.06); }
  70%       { transform: translate(2%, -3%) scale(0.96); }
}

/* ============================================================
   COUNTER (number ticker)
   ============================================================ */
.counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ============================================================
   NAV ACTIVE SECTION INDICATOR
   ============================================================ */
.nav__link.is-active {
  color: var(--color-text);
}

.nav__link.is-active::after {
  width: 100%;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-glow));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   TILT CARD (JS-driven, these are base styles)
   ============================================================ */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt__inner {
  transform: translateZ(20px);
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-accent);
  transform: translateY(100%);
  pointer-events: none;
}

/* ============================================================
   TYPED TEXT CURSOR
   ============================================================ */
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent-glow);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   WORK SECTION DRAG INDICATOR
   ============================================================ */
.work-drag-hint {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  animation: dragHintAnim 2s ease-in-out infinite;
}

@keyframes dragHintAnim {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}
