/* gerak: masuk halaman, transisi antar rute, dan versi hemat gerak */
.halaman > * { opacity: 0; }
body.siap .halaman > * { animation: muncul .65s cubic-bezier(.2, .8, .2, 1) both; }
body.siap .halaman > :nth-child(2) { animation-delay: .08s; }
body.siap .halaman > :nth-child(3) { animation-delay: .16s; }
body.siap .halaman > :nth-child(4) { animation-delay: .24s; }
body.siap .halaman > :nth-child(n+5) { animation-delay: .3s; }
.solo .nf > * { opacity: 1; }
@keyframes muncul { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

#view { view-transition-name: halaman; }
::view-transition-old(halaman) { animation: .26s ease both keluar; }
::view-transition-new(halaman) { animation: .45s cubic-bezier(.2, .8, .2, 1) both masuk; }
@keyframes keluar { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(4px); } }
@keyframes masuk { from { opacity: 0; transform: translateY(18px) scale(.99); filter: blur(6px); } }
/* cadangan kalau browser belum punya View Transitions */
#view.ganti { animation: masuk .45s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .halaman > * { opacity: 1; }
  #boot::before, #boot::after { transition: none; }
}
