/* ---------- Ключевые кадры ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 111, 196, .6); }
  70% { box-shadow: 0 0 0 12px rgba(243, 111, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 111, 196, 0); }
}
@keyframes dancerFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes ripple {
  0% { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes drawSilk { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes dancerIn {
  from { opacity: 0; translate: 0 60px; scale: .9; rotate: -6deg; }
  to { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
}

/* ---------- Появление по скроллу ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal-up.is-in { opacity: 1; transform: none; }

/* ---------- Декоративные анимации первого экрана ---------- */
.is-ready .silk--1 { animation: drawSilk 3s var(--ease-out) .2s forwards; }
.is-ready .silk--2 { animation: drawSilk 3.4s var(--ease-out) .4s forwards; }
.is-ready .silk--3 { animation: drawSilk 3.8s var(--ease-out) .6s forwards; }
.is-ready .hero__bubble { animation: popIn 1.2s var(--ease-out) .9s forwards; }
.is-ready .hero__badge { animation: popIn 1.2s var(--ease-out) 1.1s forwards; }
.is-ready .hero__dancer { animation: dancerIn 1.6s var(--ease-out) .7s forwards; }

@keyframes popIn {
  from { opacity: 0; scale: .5; }
  to { opacity: 1; scale: 1; }
}

/* ---------- Уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  .rmarquee__row.is-interactive { overflow-x: auto; touch-action: auto; }
  .rmarquee__track { animation: none; }
  .rmarquee__track > [aria-hidden="true"] { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero__title .word, .reveal-up { transform: none !important; opacity: 1 !important; }
  .hero__dancer, .hero__bubble, .hero__badge { opacity: 1 !important; }
  .hero__arch { clip-path: none !important; }
  .frame::before, .frame::after { display: none; }
  .silk { stroke-dashoffset: 0 !important; }
}
