/* JASA JOKI MAS FALDY - animasi (semuanya menghormati prefers-reduced-motion) */
@keyframes float-y{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes drift{0%,100%{transform:translateX(0)}50%{transform:translateX(24px)}}
@keyframes rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes book{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.86)}}
@keyframes write{0%,100%{transform:rotate(28deg) translateY(0)}50%{transform:rotate(10deg) translateY(4px)}}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}100%{box-shadow:0 0 0 22px rgba(37,211,102,0)}}
@keyframes modal-in{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}

/* satu urutan masuk saat halaman dibuka (hero) */
.hero__copy>*,.hero__art,.pagehead .wrap>*{opacity:0;animation:rise .8s cubic-bezier(.2,.7,.2,1) forwards}
.hero__copy>:nth-child(1){animation-delay:.1s}.hero__copy>:nth-child(2){animation-delay:.2s}
.hero__copy>:nth-child(3){animation-delay:.32s}.hero__copy>:nth-child(4){animation-delay:.42s}
.hero__copy>:nth-child(5){animation-delay:.52s}
.hero__art{animation-name:pop;animation-delay:.3s;animation-duration:.9s}
.pagehead .wrap>:nth-child(2){animation-delay:.15s}
.loader:not(.is-done) ~ * .hero__copy>*{animation-play-state:paused}

.float{animation:float-y 5s ease-in-out infinite}
.float--b{animation-delay:-1.6s}.float--c{animation-delay:-3.1s}
.cloud--a{animation:drift 18s ease-in-out infinite}
.cloud--c{animation:drift 24s ease-in-out infinite reverse}
.loader__book{animation:book 1s ease-in-out infinite}
.loader__pencil{animation:write 1s ease-in-out infinite}
.wa-float{animation:ring 2.4s ease-out 3}

/* muncul saat scroll: halus, tanpa efek berlebihan */
[data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
[data-reveal].is-in{opacity:1;transform:none}
.why__item:nth-child(even)[data-reveal]{transform:translateY(50px)}
.why__item:nth-child(even)[data-reveal].is-in{transform:translateY(32px)}
.packs:not([hidden]){animation:pop .4s ease both}
.modal[open]{animation:modal-in .28s ease both}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  [data-reveal],.hero__copy>*,.hero__art,.pagehead .wrap>*{opacity:1!important;transform:none!important}
  .why__item:nth-child(even){transform:translateY(32px)!important}
  .pack--pop{transform:translateY(-14px)!important}
}
