/* Museum.co.id — Bahasa Nusantara v0.2.5: subtle, CSS-only hero motion.
 * Only active when the shortcode uses hero_motion="yes" (default).
 * Animates transform / opacity; no layout changes, JS timers or external assets.
 */

/* Short, staggered entrance. Content remains visible when animations are disabled. */
.mbn-app .mbn-hero--animated .mbn-kicker {
  animation: mbn-hero-arrive .64s cubic-bezier(.22,.75,.31,1) .02s both;
}
.mbn-app .mbn-hero--animated .mbn-hero-text h2 {
  animation: mbn-hero-arrive .76s cubic-bezier(.22,.75,.31,1) .10s both;
}
.mbn-app .mbn-hero--animated .mbn-subtitle {
  animation: mbn-hero-arrive .76s cubic-bezier(.22,.75,.31,1) .20s both;
}
.mbn-app .mbn-hero--animated .mbn-hero-actions {
  animation: mbn-hero-arrive .76s cubic-bezier(.22,.75,.31,1) .30s both;
}

/* Slow, independent ambient motion. The illustration never obscures hero copy. */
.mbn-app .mbn-hero--animated .mbn-naskah-illustration {
  transform-origin: 50% 48%;
  animation: mbn-hero-naskah 9.2s ease-in-out -2.3s infinite;
}
.mbn-app .mbn-hero--animated .mbn-floating-phrase--one {
  animation: mbn-hero-word-one 7.8s ease-in-out -1.4s infinite;
}
.mbn-app .mbn-hero--animated .mbn-floating-phrase--two {
  animation: mbn-hero-word-two 9.6s ease-in-out -3.1s infinite;
}
.mbn-app .mbn-hero--animated .mbn-hero-flower {
  transform-origin: 50% 50%;
  animation: mbn-hero-flower 17s ease-in-out -5s infinite;
}
.mbn-app .mbn-hero--animated .mbn-hero-ornament-cluster {
  animation: mbn-hero-cluster 15s ease-in-out -4s infinite;
}
.mbn-app .mbn-hero--animated .mbn-hero-petal {
  animation: mbn-hero-petal 13s ease-in-out -6s infinite;
}
.mbn-app .mbn-hero--animated .mbn-floating-wave {
  animation: mbn-hero-wave 8.3s ease-in-out -3s infinite;
}

@keyframes mbn-hero-arrive {
  from { opacity:0; transform:translate3d(0,14px,0); }
  to   { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes mbn-hero-naskah {
  0%,100% { transform:translate3d(0,0,0) rotate(4deg); }
  50% { transform:translate3d(0,-10px,0) rotate(5.2deg); }
}
@keyframes mbn-hero-word-one {
  0%,100% { transform:translate3d(0,0,0) rotate(-10deg); }
  50% { transform:translate3d(5px,-7px,0) rotate(-8.5deg); }
}
@keyframes mbn-hero-word-two {
  0%,100% { transform:translate3d(0,0,0) rotate(5deg); }
  50% { transform:translate3d(-4px,6px,0) rotate(3.5deg); }
}
@keyframes mbn-hero-flower {
  0%,100% { transform:rotate(5deg) translate3d(0,0,0); }
  50% { transform:rotate(11deg) translate3d(2px,-4px,0); }
}
@keyframes mbn-hero-cluster {
  0%,100% { transform:translate3d(0,0,0) rotate(0); }
  50% { transform:translate3d(-6px,3px,0) rotate(-1.5deg); }
}
@keyframes mbn-hero-petal {
  0%,100% { transform:translate3d(0,0,0) rotate(0); }
  50% { transform:translate3d(4px,-4px,0) rotate(3deg); }
}
@keyframes mbn-hero-wave {
  0%,100% { transform:translate3d(0,0,0) rotate(-8deg); opacity:.80; }
  50% { transform:translate3d(3px,-5px,0) rotate(-5deg); opacity:1; }
}

/* Smaller screens: keep only a very light entrance and ornament sway. */
@media (max-width:760px) {
  .mbn-app .mbn-hero--animated .mbn-hero-ornament-cluster,
  .mbn-app .mbn-hero--animated .mbn-hero-petal,
  .mbn-app .mbn-hero--animated .mbn-hero-flower {
    animation-duration:20s;
  }
}
@media (max-width:580px) {
  .mbn-app .mbn-hero--animated .mbn-hero-ornament-cluster,
  .mbn-app .mbn-hero--animated .mbn-hero-petal {
    animation:none;
  }
}
/* Accessibility: no entrance delay or continuous movement if reduced motion is requested. */
@media (prefers-reduced-motion:reduce) {
  .mbn-app .mbn-hero--animated .mbn-kicker,
  .mbn-app .mbn-hero--animated .mbn-hero-text h2,
  .mbn-app .mbn-hero--animated .mbn-subtitle,
  .mbn-app .mbn-hero--animated .mbn-hero-actions,
  .mbn-app .mbn-hero--animated .mbn-naskah-illustration,
  .mbn-app .mbn-hero--animated .mbn-floating-phrase,
  .mbn-app .mbn-hero--animated .mbn-floating-wave,
  .mbn-app .mbn-hero--animated .mbn-hero-flower,
  .mbn-app .mbn-hero--animated .mbn-hero-ornament-cluster,
  .mbn-app .mbn-hero--animated .mbn-hero-petal {
    animation:none !important;
  }
}
@media print {
  .mbn-app .mbn-hero--animated * { animation:none !important; }
}
