/* ─── KEYFRAMES ─── */

@keyframes morphCrystal {
  0%, 100% { border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; }
  33%       { border-radius: 50% 50% 40% 60% / 60% 50% 40% 50%; }
  66%       { border-radius: 40% 60% 70% 30% / 40% 60% 50% 50%; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

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

@keyframes scrollPulse {
  0%   { opacity: 1; transform: scaleY(1);  transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0);  transform-origin: bottom; }
}

@keyframes floatCrystal {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes mapPulse {
  0%   { box-shadow: 0 0 0 0   rgba(196,98,45,0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(196,98,45,0);   }
  100% { box-shadow: 0 0 0 0   rgba(196,98,45,0);   }
}

@keyframes pulsateRing {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

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

@keyframes typingDot {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%       { transform: translateY(-6px); opacity: 1;   }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── TRANSITION DELAYS ─── */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── DECORATIVE STRIPE ─── */
.parallax-stripe {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
}

/* ─── FLOATING SALT CRYSTALS ─── */
.crystal {
  position: absolute;
  background: rgba(250, 250, 247, 0.7);
  border-radius: 2px;
  animation: floatCrystal linear infinite;
}

/* ─── ACCESSIBILITY: 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;
  }

  /* Ensure reveal elements are immediately visible when motion is disabled */
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-desc,
  .hero-cta,
  .hero-scroll-indicator,
  .hero-letter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .crystal { display: none; }
  .hero-salt-crystal { animation: none; }
  .map-dot { animation: none; box-shadow: 0 0 0 4px rgba(196,98,45,0.3); }
  .chat-status::before { animation: none; }
  .typing-dot { animation: none; }
  #chat-btn .pulse-ring { animation: none; opacity: 0; }
  .scroll-line { animation: none; }
}
