/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-row .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-row--visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-row--visible .reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-row--visible .reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-row--visible .reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-row--visible .reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-row--visible .reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-row--visible .reveal-item:nth-child(6) { transition-delay: 400ms; }

/* Stagger delay for multi-row grids */
.reveal-row--visible .reveal-item:nth-child(n+4):nth-child(-n+5) { transition-delay: 200ms; }
.reveal-row--visible .reveal-item:nth-child(n+6) { transition-delay: 400ms; }

/* Shift animation on scroll */
.shift-animate {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.shift-animate--visible {
  opacity: 1;
  transform: translateX(0);
}

.shift-animate--visible .shift-item:nth-child(1) { transition-delay: 0ms; }
.shift-animate--visible .shift-item:nth-child(2) { transition-delay: 100ms; }
.shift-animate--visible .shift-item:nth-child(3) { transition-delay: 200ms; }
.shift-animate--visible .shift-item:nth-child(4) { transition-delay: 300ms; }
.shift-animate--visible .shift-item:nth-child(5) { transition-delay: 400ms; }

.shift-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.shift-animate--visible .shift-item {
  opacity: 1;
  transform: translateX(0);
}
