/* Animasi hero beranda (18 Nov 2026). Memakai properti translate/scale/rotate
   tersendiri supaya tidak menimpa transform tata letak di hero-jowo.css. */
.hero-jowo{--mx:0;--my:0;--gx:70%;--gy:40%}
/* Cahaya lembut mengikuti kursor (desktop) */
.hero-jowo::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .5s ease;background:radial-gradient(420px circle at var(--gx) var(--gy),rgba(255,247,214,.45),rgba(255,247,214,0) 70%)}
.hero-jowo.hj-kursor::after{opacity:1}

/* 1. Masuk bergiliran saat halaman dibuka */
@keyframes hj-naik{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}
@keyframes hj-baris{from{opacity:0;translate:0 .45em;clip-path:inset(0 0 100% 0)}to{opacity:1;translate:0 0;clip-path:inset(0 0 -20% 0)}}
@keyframes hj-piring{from{opacity:0;scale:.82;rotate:-14deg;translate:0 40px}to{opacity:1;scale:1;rotate:0deg;translate:0 0}}
@keyframes hj-latar{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes hj-stempel{0%{opacity:0;scale:0;rotate:-40deg}60%{opacity:1;scale:1.12;rotate:6deg}80%{scale:.96;rotate:-2deg}100%{opacity:1;scale:1;rotate:0deg}}
@keyframes hj-muncul{from{opacity:0}}
.hero-jowo .hj-eyebrow{animation:hj-naik .6s cubic-bezier(.2,.7,.2,1) .05s backwards}
.hero-jowo h1 span,.hero-jowo h1 em{display:inline-block;animation:hj-baris .8s cubic-bezier(.2,.7,.2,1) backwards}
.hero-jowo h1 span{animation-delay:.15s}
.hero-jowo h1 em{animation-delay:.32s}
.hero-jowo .hj-desc{animation:hj-naik .7s cubic-bezier(.2,.7,.2,1) .5s backwards}
.hero-jowo .hj-actions{animation:hj-naik .7s cubic-bezier(.2,.7,.2,1) .62s backwards}
.hero-jowo .hj-note{animation:hj-naik .7s cubic-bezier(.2,.7,.2,1) .74s backwards}
.hero-jowo .hj-backdrop{animation:hj-latar 1s cubic-bezier(.2,.8,.2,1) .1s backwards,hj-gumpal 14s ease-in-out 1.2s infinite}
.hero-jowo .hj-orbit{animation:hj-muncul 1.2s ease .4s backwards,hj-putar 48s linear infinite}
.hero-jowo .hj-orbit-2{animation-duration:1.2s,80s;animation-direction:normal,reverse}
.hero-jowo .hj-food{animation:hj-piring 1.1s cubic-bezier(.2,.75,.2,1) .25s backwards,hj-melayang 6.5s ease-in-out 1.5s infinite}
.hero-jowo .hj-stamp{animation:hj-stempel .9s cubic-bezier(.3,.7,.3,1) 1.05s backwards,hj-goyang 7s ease-in-out 3s infinite}
.hero-jowo .hj-caption{animation:hj-muncul .8s ease 1.3s backwards}
.hero-jowo .hj-footer{animation:hj-muncul .8s ease .9s backwards}

/* 2. Gerak santai sesudahnya */
@keyframes hj-melayang{0%,100%{translate:0 0}50%{translate:0 -14px}}
@keyframes hj-gumpal{0%,100%{border-radius:48% 52% 44% 56%/55% 45% 55% 45%}33%{border-radius:55% 45% 52% 48%/46% 56% 44% 54%}66%{border-radius:44% 56% 48% 52%/52% 48% 56% 44%}}
@keyframes hj-putar{to{rotate:360deg}}
@keyframes hj-goyang{0%,82%,100%{rotate:0deg}86%{rotate:-7deg}90%{rotate:6deg}94%{rotate:-3deg}97%{rotate:1deg}}
@keyframes hj-bintang{to{rotate:360deg}}
.hero-jowo .hj-star,.hero-jowo .hj-sparkle{display:inline-block;animation:hj-bintang 9s linear infinite}
/* Titik kecil yang ikut berputar di garis orbit */
.hero-jowo .hj-orbit::before{content:"";position:absolute;top:50%;left:-6px;width:11px;height:11px;margin-top:-5.5px;border-radius:50%;background:#1b1b16;box-shadow:0 0 0 4px rgba(255,188,24,.9)}
.hero-jowo .hj-orbit-2::before{left:auto;right:-5px;width:8px;height:8px;margin-top:-4px;background:#e85d05;box-shadow:0 0 0 3px rgba(255,188,24,.85)}

/* 3. Kedalaman mengikuti kursor (dipasang hero-anim.js, hanya perangkat bertetikus) */
.hero-jowo .hj-visual{translate:calc(var(--mx) * 6px) calc(var(--my) * 6px);transition:translate .4s cubic-bezier(.2,.7,.2,1)}
.hero-jowo .hj-backdrop{translate:calc(var(--mx) * -14px) calc(var(--my) * -10px);transition:translate .45s cubic-bezier(.2,.7,.2,1)}
.hero-jowo .hj-stamp{translate:calc(var(--mx) * 18px) calc(var(--my) * 14px);transition:translate .35s cubic-bezier(.2,.7,.2,1)}

/* Tombol: panah menyenggol saat disorot */
.hero-jowo .hj-btn span{transition:translate .25s cubic-bezier(.2,.7,.2,1)}
.hero-jowo .hj-btn:hover span{translate:3px -3px}

/* Hemat: animasi berhenti saat hero tidak terlihat */
.hero-jowo.hj-diam *,.hero-jowo.hj-diam *::before{animation-play-state:paused!important}

@media (max-width:540px){
  .hero-jowo .hj-orbit::before{width:8px;height:8px;margin-top:-4px;left:-4px}
  @keyframes hj-melayang{0%,100%{translate:0 0}50%{translate:0 -8px}}
}
@media (prefers-reduced-motion:reduce){
  .hero-jowo *,.hero-jowo *::before,.hero-jowo::after{animation:none!important;transition:none!important}
  .hero-jowo .hj-visual,.hero-jowo .hj-backdrop,.hero-jowo .hj-stamp{translate:none}
}
