/* KUMIO App: shared motion kit (characters, intro, home, chat, plans) */
.zm { display: block; overflow: visible; flex: none; }
.zm * { transform-box: fill-box; transform-origin: 50% 50%; }
.zm .z-bob { animation: zbob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.zm.d2 .z-bob { animation-duration: 4.2s; animation-delay: -1.2s; }
.zm.d3 .z-bob { animation-duration: 3.2s; animation-delay: -2.1s; }
.zm .z-body { transform-origin: 50% 100%; }
.zm .z-tilt { animation: ztilt 6s ease-in-out infinite; transform-origin: 50% 90%; }
.zm.d2 .z-tilt { animation-delay: -2s; }
.zm.d3 .z-tilt { animation-delay: -3.4s; }
.zm .z-eyes { animation: zblink 4.6s infinite; }
.zm.d2 .z-eyes { animation-duration: 5.4s; animation-delay: -1.6s; }
.zm.d3 .z-eyes { animation-duration: 4s; animation-delay: -0.7s; }
.zm .z-pupil { animation: zlook 7s ease-in-out infinite; }
.zm.d2 .z-pupil { animation-duration: 8.5s; animation-delay: -3s; }
.zm.d3 .z-pupil { animation-duration: 6.2s; animation-delay: -1s; }
.zm .z-brow { animation: zbrow 5s ease-in-out infinite; transform-origin: 50% 100%; }
.zm .z-shadow { animation: zshadow 3.6s ease-in-out infinite; }
.zm .z-led { animation: zled 2.4s ease-in-out infinite; }
.zm .z-ant { animation: zwag 3s ease-in-out infinite; transform-origin: 50% 100%; }
.zm .z-wink { animation: zwink 6s infinite; }

/* expressions */
.zm .m-wow, .zm .m-think { display: none; }
.zm.is-wow .m-happy, .zm.is-think .m-happy { display: none; }
.zm.is-wow .m-wow { display: inline; }
.zm.is-think .m-think { display: inline; }
.zm.is-wow .z-eye { transform: scale(1.18); }
.zm.is-think .z-pupil { animation: none; transform: translate(2px, -5px); }
.zm.is-wow .z-pupil { animation: none; transform: scale(0.8); }
.zm.is-talk .m-happy { animation: ztalk 0.3s ease-in-out infinite alternate; transform-origin: 50% 0%; }
.zm.is-sleep .z-eyes { animation: none; transform: scaleY(0.07); }
.zm.is-think .z-body { animation: zponder 2.4s ease-in-out infinite; }

/* gestures */
.zm.g-nod .z-tilt { animation: znod 2.6s ease-in-out infinite; }
.zm.g-brow .z-brow { animation: zbrowup 3s ease-in-out infinite; }
.zm .z-wave { transform-origin: 50% 10%; }
.zm.g-wave .z-wave { animation: zwave 1.1s ease-in-out infinite; }

/* entrances */
.z-rise { animation: zrise 1.1s cubic-bezier(0.25, 1.4, 0.45, 1) both; }
.zm .z-wake { animation: zwake 0.9s ease-out both; }
.z-hopA { animation: zhopA 0.7s ease-out; }
.z-hopB { animation: zhopB 0.7s ease-out; }
.z-fade { animation: zfadeup 0.8s ease-out both; }
.z-slide { animation: zslide 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.z-pop { animation: zpop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.z-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: #6B6F8E; margin: 0 2px; animation: zdot 1s infinite ease-in-out; }
.z-dots span:nth-child(2) { animation-delay: 0.15s; }
.z-dots span:nth-child(3) { animation-delay: 0.3s; }
.z-thinking { animation: zthinking 2.6s both; }

/* ambient */
.z-spot { animation: zspot 5s ease-in-out infinite; }
.z-ring { animation: zring 3.2s ease-out infinite; }
.z-chip { animation: zchip 9s linear infinite; }
.z-spark { animation: zspark 2.6s ease-in-out infinite; }
.z-sweep { animation: zsweep 4.5s ease-in-out infinite; }
.z-gauge { transform-origin: 0 50%; animation: zgauge 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.z-breath { animation: zbreath 3.4s ease-in-out infinite; }

@keyframes zbob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(1.2deg); } }
@keyframes ztilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes znod { 0%, 100% { transform: translateY(0) rotate(0deg); } 20% { transform: translateY(5px) rotate(0deg); } 40% { transform: translateY(0); } 60% { transform: translateY(5px); } 80% { transform: translateY(0) rotate(-3deg); } }
@keyframes zblink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.08); } 96% { transform: scaleY(1); } }
@keyframes zlook { 0%, 100% { transform: translate(0, 0); } 18% { transform: translate(3px, 0); } 36% { transform: translate(-3px, 1px); } 56% { transform: translate(0, -3px); } 78% { transform: translate(2px, 2px); } }
@keyframes zbrow { 0%, 100% { transform: translateY(0) rotate(0deg); } 40% { transform: translateY(-3px) rotate(-5deg); } 70% { transform: translateY(0) rotate(3deg); } }
@keyframes zbrowup { 0%, 55%, 100% { transform: translateY(0); } 65%, 85% { transform: translateY(-5px) rotate(-6deg); } }
@keyframes zshadow { 0%, 100% { transform: scale(1); opacity: 0.2; } 50% { transform: scale(0.82); opacity: 0.1; } }
@keyframes zled { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes zwag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes zwink { 0%, 80%, 100% { transform: scaleY(1); } 84%, 90% { transform: scaleY(0.08); } }
@keyframes zponder { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg) translateY(-2px); } }
@keyframes ztalk { from { transform: scaleY(1); } to { transform: scaleY(1.6); } }
@keyframes zwave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-28deg); } 75% { transform: rotate(22deg); } }
@keyframes zrise { 0% { transform: translateY(520px) scale(0.9, 1.1); opacity: 0; } 55% { transform: translateY(-18px) scale(1, 1); opacity: 1; } 75% { transform: translateY(6px) scale(1.05, 0.95); } 100% { transform: translateY(0) scale(1, 1); opacity: 1; } }
@keyframes zwake { 0% { transform: scaleY(0.05); } 55% { transform: scaleY(0.05); } 100% { transform: scaleY(1); } }
@keyframes zhopA { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-26px) scale(0.92, 1.1); } 60% { transform: translateY(0) scale(1.12, 0.88); } 80% { transform: scale(0.97, 1.04); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes zhopB { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-26px) scale(0.92, 1.1); } 60% { transform: translateY(0) scale(1.12, 0.88); } 80% { transform: scale(0.97, 1.04); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes zfadeup { 0% { transform: translateY(18px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes zslide { 0% { transform: translateY(40px) scale(0.96); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes zpop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes zdot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes zthinking { 0% { opacity: 0; transform: scale(0.6); } 10%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.8); } }
@keyframes zspot { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.12); } }
@keyframes zring { 0% { transform: scale(0.2); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes zchip { 0% { transform: translateY(40px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes zspark { 0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.3; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes zsweep { 0%, 55% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes zgauge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes zbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ===== more expressions ===== */
.zm.is-happy .z-eye { transform: none; }
.zm.is-happy .m-happy { transform: scale(1.35); transform-origin: 50% 0; }
.zm.is-sad .m-happy { transform: scaleY(-1); transform-origin: 50% 50%; }
.zm.is-sad .z-pupil { animation: none; transform: translate(0, 3px); }
.zm.is-sad .z-brow { animation: none; transform: translateY(2px); }
.zm.is-sad .z-bob { animation-duration: 6s; }
.zm.is-wink .z-eye + .z-eye { transform: scaleY(0.08); }
.zm.is-dizzy .z-pupil { animation: zdizzy 0.9s linear infinite; }
.zm.is-alert .z-eye { transform: scale(1.25); }
.zm.is-alert .z-pupil { animation: none; transform: scale(0.7); }
.zm.is-alert .z-body { animation: zjit 0.25s linear infinite; }
.zm.is-love .z-pupil { animation: zlove 1s ease-in-out infinite; }
.zm.is-love .z-pupil circle:first-child { fill: #FF5C8A; }
.zm.is-cool .z-eye { transform: scaleY(0.55) translateY(2px); }
.zm.is-cool .m-happy { transform: translateX(3px) rotate(-8deg); }

/* ===== more gestures ===== */
.zm.g-no .z-tilt { animation: zno 0.9s ease-in-out infinite; }
.zm.g-jump .z-body { animation: zjump 1.1s ease-out infinite; }
.zm.g-spin .z-body { animation: zspinx 2.6s ease-in-out infinite; }
.zm.g-lean .z-tilt { animation: zlean 3.2s ease-in-out infinite; }
.zm.g-clap .z-wave { animation: zclap 0.35s ease-in-out infinite; }
.zm.g-dance .z-tilt { animation: zdance 0.8s ease-in-out infinite; }
.zm.g-scan .z-pupil { animation: zscan 2.6s ease-in-out infinite; }
.zm.g-salute .z-wave { animation: zsalute 2.8s ease-in-out infinite; }
.zm.g-shrug .z-body { animation: zshrug 2.2s ease-in-out infinite; }
.zm.g-flash .z-ant { animation: zantspin 1.4s linear infinite; }
.zm.g-flash .z-led { animation: zled 0.4s ease-in-out infinite; }
@keyframes zno { 0%, 100% { transform: rotate(0deg) translateX(0); } 20% { transform: rotate(-7deg) translateX(-4px); } 40% { transform: rotate(7deg) translateX(4px); } 60% { transform: rotate(-5deg) translateX(-3px); } 80% { transform: rotate(4deg) translateX(2px); } }
@keyframes zjump { 0%, 100% { transform: translateY(0) scale(1, 1); } 10% { transform: translateY(0) scale(1.1, 0.88); } 40% { transform: translateY(-30px) scale(0.92, 1.1); } 70% { transform: translateY(0) scale(1.1, 0.9); } 85% { transform: scale(0.98, 1.03); } }
@keyframes zspinx { 0%, 55%, 100% { transform: scaleX(1); } 70% { transform: scaleX(0.05); } 85% { transform: scaleX(-1); } 92% { transform: scaleX(-0.2); } }
@keyframes zlean { 0%, 100% { transform: rotate(0deg); } 30%, 70% { transform: rotate(11deg) translateX(3px); } }
@keyframes zclap { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-24deg); } }
@keyframes zdance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-6px); } }
@keyframes zscan { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-5px, 0); } 75% { transform: translate(5px, 0); } }
@keyframes zsalute { 0%, 20%, 100% { transform: rotate(0deg); } 35%, 70% { transform: rotate(-140deg); } }
@keyframes zshrug { 0%, 100% { transform: translateY(0) scaleY(1); } 30%, 60% { transform: translateY(2px) scaleY(0.93); } }
@keyframes zantspin { 0% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } 100% { transform: rotate(-30deg); } }
@keyframes zdizzy { 0% { transform: translate(4px, 0); } 25% { transform: translate(0, 4px); } 50% { transform: translate(-4px, 0); } 75% { transform: translate(0, -4px); } 100% { transform: translate(4px, 0); } }
@keyframes zjit { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes zlove { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }


@keyframes kpop{0%{transform:scale(0)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes knod{0%,100%{transform:translateY(0)}35%{transform:translateY(4px)}70%{transform:translateY(-1px)}}
@keyframes kwob{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
@keyframes klook{0%{transform:translateX(-3px)}100%{transform:translateX(3px)}}
@keyframes kbell{0%,100%{transform:rotate(0)}20%{transform:rotate(18deg)}40%{transform:rotate(-16deg)}60%{transform:rotate(10deg)}80%{transform:rotate(-6deg)}}
@keyframes kmag{0%,100%{transform:translate(-2px,-2px)}50%{transform:translate(2px,2px)}}
@keyframes kspin{to{transform:rotate(360deg)}}
@keyframes kbars{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1.2)}}
@keyframes kring{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@keyframes kdraw{to{stroke-dashoffset:0}}
.zm .z-badge,.zm .z-badge *{transform-box:fill-box;transform-origin:center}
.zm .z-badge{animation:kpop .5s cubic-bezier(.3,1.6,.5,1) both}
.zm.is-save .z-eye,.zm.is-link .z-eye{transform:scaleY(.5)}
.zm.is-save .m-happy,.zm.is-link .m-happy{transform:scale(1.35);transform-origin:50% 0}
.zm.is-save .z-body{animation:knod 1.2s ease-in-out infinite}
.zm.is-save .bi-check{animation:kdraw .5s ease-out .35s forwards}
.zm.is-recall .m-happy,.zm.is-busy .m-happy,.zm.is-listen .m-happy,.zm.is-remind .m-happy{display:none}
.zm.is-recall .m-think,.zm.is-busy .m-think,.zm.is-listen .m-think{display:inline}
.zm.is-remind .m-wow{display:inline;transform:scale(.6);transform-origin:50% 50%}
.zm.is-recall .z-pupil{animation:none;transform:translate(-3px,-5px)}
.zm.is-recall .z-brow{animation:none;transform:translateY(-3px)}
.zm.is-recall .bi-mag{animation:kmag 1.4s ease-in-out infinite}
.zm.is-remind .z-eye{transform:scale(1.15)}
.zm.is-remind .z-pupil{animation:none;transform:scale(.85)}
.zm.is-remind .z-body{animation:kwob .7s ease-in-out infinite;transform-origin:50% 100%}
.zm.is-remind .bi-bell{animation:kbell 1.1s ease-in-out infinite;transform-origin:50% 0}
.zm.is-link .z-pupil{animation:klook 1.1s ease-in-out infinite alternate}
.zm.is-link .bi-rings{animation:kring 1.2s ease-in-out infinite}
.zm.is-busy .z-eye{transform:scaleY(.6)}
.zm.is-busy .z-pupil{animation:none;transform:translate(0,2px)}
.zm.is-busy .bi-gear{animation:kspin 3s linear infinite}
.zm.is-listen .z-eye{transform:scale(1.2)}
.zm.is-listen .z-pupil{animation:none;transform:scale(.9)}
.zm.is-listen .z-body{transform:rotate(-4deg);transform-origin:50% 100%}
.zm.is-listen .bi-bars path{animation:kbars .8s ease-in-out infinite}
.zm.is-listen .bi-bars .bb2{animation-delay:.15s}
.zm.is-listen .bi-bars .bb3{animation-delay:.3s}
@media (prefers-reduced-motion:reduce){.zm .z-badge,.zm .z-badge *{animation:none!important}.zm.is-save .bi-check{stroke-dashoffset:0}}


.hstage .chr>svg.zm{width:100%;height:100%}
@media (prefers-reduced-motion:reduce){.zm,.zm *{animation:none!important;transition:none!important}}
