/* ============================================================
   MOUK — Animations
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes revealRight {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20%       { transform: translate(-2px, 2px); }
  40%       { transform: translate(2px, -2px); }
  60%       { transform: translate(-1px, 1px); }
  80%       { transform: translate(1px, -1px); }
}

/* Page load cascade */
.hero__wordmark   { animation: fadeUp  var(--dur-enter) var(--ease-out) 0.2s both; }
.hero__tagline    { animation: fadeUp  var(--dur-enter) var(--ease-out) 0.4s both; }
.hero__sub        { animation: fadeUp  var(--dur-enter) var(--ease-out) 0.5s both; }
.hero__actions    { animation: fadeUp  var(--dur-enter) var(--ease-out) 0.6s both; }
.hero__scroll     { animation: fadeIn  1s var(--ease-out) 1.2s both; }

.hero__nav        { animation: fadeIn  0.6s var(--ease-out) 0.1s both; }

.sidebar          { animation: fadeIn  0.5s var(--ease-out) both; }

/* Piece cards stagger */
.piece-card {
  opacity: 0;
  animation: scaleUp 0.5s var(--ease-out) both;
}
.piece-card:nth-child(1)  { animation-delay: 0.05s; }
.piece-card:nth-child(2)  { animation-delay: 0.10s; }
.piece-card:nth-child(3)  { animation-delay: 0.15s; }
.piece-card:nth-child(4)  { animation-delay: 0.20s; }
.piece-card:nth-child(5)  { animation-delay: 0.25s; }
.piece-card:nth-child(6)  { animation-delay: 0.30s; }

/* Glitch on logo hover */
.nav-logo:hover {
  animation: glitch 0.3s var(--ease-brutal);
}

/* Manifesto reveal on scroll (class added by JS) */
.manifesto__quote.revealed {
  animation: fadeUp 0.8s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
