/* ============================================
   Animation System — Maison Lumière
   ============================================ */

/* ----- Scroll Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ----- Load Animations ----- */
.load-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.load-fade-in-1 { animation-delay: 0.2s; }
.load-fade-in-2 { animation-delay: 0.4s; }
.load-fade-in-3 { animation-delay: 0.6s; }
.load-fade-in-4 { animation-delay: 0.8s; }

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

/* ----- Scroll Indicator ----- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ----- Marquee Scroll ----- */
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-strip .marquee-track {
  animation-direction: reverse;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Custom Cursor (Desktop Only) ----- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: left, top;
    background: rgba(201, 169, 110, 0.08);
    transform: translate(-50%, -50%);
  }

  .custom-cursor--dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    will-change: left, top;
    box-shadow: 0 0 4px rgba(201, 169, 110, 0.4);
    transform: translate(-50%, -50%);
  }

  .custom-cursor.is-hovering {
    width: 56px;
    height: 56px;
    background: rgba(201, 169, 110, 0.15);
    border-color: var(--color-accent);
  }
}

/* ----- Prefers Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
