/* ============================================
   KAYJAH DESIGN STUDIO — Animations
   ============================================ */

/* ---- SCROLL REVEAL (disabled — content visible immediately) ---- */

.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-fade,
.reveal-fade.visible {
  opacity: 1;
}

/* ---- IMAGE TRANSITIONS ---- */

.img-reveal {
  filter: blur(12px);
  opacity: 0;
  transform: scale(1.04);
  transition: filter 0.7s var(--ease-soft),
              opacity 0.7s var(--ease-soft),
              transform 0.7s var(--ease-soft);
}

.img-reveal.loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

/* ---- HOVER EFFECTS ---- */

.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.7s var(--ease-out);
}

.img-hover-zoom:hover img {
  transform: scale(1.04);
}

/* Link underline from center */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease), left 0.4s var(--ease);
}

.link-underline:hover::after {
  width: 100%;
  left: 0;
}

/* ---- GRAIN TEXTURE ---- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- HERO TEXT STAGGER ---- */

.hero-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero-stagger.animate > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.hero-stagger.animate > *:nth-child(2) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.hero-stagger.animate > *:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.hero-stagger.animate > *:nth-child(4) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.hero-stagger.animate > *:nth-child(5) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* ---- SCROLL INDICATOR ---- */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator-text {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-2);
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--light-2), transparent);
  animation: scroll-drop 2s var(--ease) infinite;
}

@keyframes scroll-drop {
  0%   { opacity: 1; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}


/* ---- REDUCED MOTION ---- */

@media (prefers-reduced-motion: reduce) {
  .img-reveal {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .img-hover-zoom:hover img {
    transform: none;
  }

  .link-underline::after {
    transition: none;
  }

  .hero-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator-line {
    animation: none;
  }
}
