/* =================================================================
   Hero illustrations (core/hero-visual.php) — flat SVG scenes in the
   site's orange illustration style, with a few calm, meaningful CSS
   animations each. No JavaScript. Fixed aspect ratio (no layout shift).
   ================================================================= */
.hv{ position:relative; width:100%; max-width:540px; margin:0 auto; }
.hv .ha{ display:block; width:100%; height:auto; overflow:visible; animation:ha-enter .9s cubic-bezier(.2,.8,.25,1) both; }
@keyframes ha-enter{ from{ opacity:0; transform:translateY(18px) scale(.97); } to{ opacity:1; transform:none; } }

.ha-blob{ fill:#fff1e2; }
.pp-hero .ha-blob{ fill:#ffdcb8; }
.hv .ha{ filter:drop-shadow(0 22px 32px rgba(31,42,68,.12)); }
.ha-dots{ opacity:.7; }

/* Animated SVG elements turn around their own box (static shapes keep their own transform attributes) */
.ha [class]{ transform-box:fill-box; }

/* Gentle floating for cards and badges */
.ha-float{ transform-origin:center; animation:ha-float 6s ease-in-out infinite; }
.ha-delay{ animation-delay:-3s; }
@keyframes ha-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }

/* Healthcare: heartbeat, ECG trace, confirmation tick, booked slot */
.ha-beat{ transform-origin:center; animation:ha-beat 1.6s ease-in-out infinite; }
@keyframes ha-beat{ 0%,40%,100%{ transform:scale(1); } 12%{ transform:scale(1.1); } 24%{ transform:scale(1.02); } 32%{ transform:scale(1.08); } }
.ha-ecg{ stroke-dasharray:640; stroke-dashoffset:640; animation:ha-ecg 3.2s linear infinite; }
@keyframes ha-ecg{ 0%{ stroke-dashoffset:640; } 70%{ stroke-dashoffset:0; opacity:1; } 90%,100%{ stroke-dashoffset:0; opacity:0; } }
.ha-pop{ transform-origin:center; animation:ha-pop 4.5s ease-in-out infinite 1s; }
@keyframes ha-pop{ 0%,55%{ transform:scale(0); } 65%{ transform:scale(1.15); } 72%,92%{ transform:scale(1); } 100%{ transform:scale(0); } }
.ha-slot{ animation:ha-slot 4.5s ease-in-out infinite 1s; }
@keyframes ha-slot{ 0%,45%{ fill:#fff1e2; } 55%,100%{ fill:#ff7f00; } }

/* Hospital: lights coming on, drifting clouds, flowing department links */
.ha-win rect{ opacity:0; animation:ha-light 6s ease-in-out infinite; }
.ha-win rect:nth-child(2){ animation-delay:1s; } .ha-win rect:nth-child(3){ animation-delay:2s; }
.ha-win rect:nth-child(4){ animation-delay:3s; } .ha-win rect:nth-child(5){ animation-delay:4s; } .ha-win rect:nth-child(6){ animation-delay:5s; }
@keyframes ha-light{ 0%,100%{ opacity:0; } 20%,60%{ opacity:1; } }
.ha-cloud{ animation:ha-cloud 14s ease-in-out infinite alternate; }
.ha-cloud-2{ animation-duration:18s; animation-delay:-6s; }
@keyframes ha-cloud{ from{ transform:translateX(-14px); } to{ transform:translateX(16px); } }
.ha-flow{ animation:ha-flow 1.6s linear infinite; }
@keyframes ha-flow{ to{ stroke-dashoffset:-26; } }

/* HRMS: clock hands, leave calendar ticks */
.ha-hand-m{ transform-box:view-box; transform-origin:104px 186px; animation:ha-turn 8s linear infinite; }
.ha-hand-h{ transform-box:view-box; transform-origin:104px 186px; animation:ha-turn 96s linear infinite; }
@keyframes ha-turn{ to{ transform:rotate(360deg); } }
.ha-tick{ stroke-dasharray:24; stroke-dashoffset:24; animation:ha-tick 6s ease-in-out infinite; }
.ha-tick.t2{ animation-delay:.6s; } .ha-tick.t3{ animation-delay:1.2s; } .ha-tick.t4{ animation-delay:1.8s; }
@keyframes ha-tick{ 0%,8%{ stroke-dashoffset:24; } 18%,85%{ stroke-dashoffset:0; } 95%,100%{ stroke-dashoffset:24; } }

/* AI CRM: leads dropping into the funnel, won deal, typing chat, blinking robot, rising trend */
.ha-drop{ animation:ha-drop 3.2s cubic-bezier(.5,0,.75,0) infinite; }
.ha-drop.d2{ animation-delay:.8s; } .ha-drop.d3{ animation-delay:1.6s; } .ha-drop.d4{ animation-delay:2.4s; }
@keyframes ha-drop{ 0%{ transform:translateY(-14px); opacity:0; } 15%{ opacity:1; } 70%{ transform:translateY(56px); opacity:1; } 85%,100%{ transform:translateY(70px); opacity:0; } }
.ha-won{ transform-origin:center; animation:ha-won 3.2s ease-in-out infinite 1.4s; }
@keyframes ha-won{ 0%,40%{ transform:translateY(-24px) scale(.4); opacity:0; } 55%{ transform:translateY(4px) scale(1.08); opacity:1; } 65%,90%{ transform:none; opacity:1; } 100%{ opacity:0; } }
.ha-type{ animation:ha-type 1.2s ease-in-out infinite; }
.ha-type.t2{ animation-delay:.18s; } .ha-type.t3{ animation-delay:.36s; }
@keyframes ha-type{ 0%,60%,100%{ transform:translateY(0); } 30%{ transform:translateY(-7px); } }
.ha-blink{ transform-origin:center; animation:ha-blink 4s ease-in-out infinite; }
@keyframes ha-blink{ 0%,92%,100%{ transform:scaleY(1); } 95%{ transform:scaleY(.1); } }
.ha-led{ animation:ha-led 1.4s ease-in-out infinite; }
@keyframes ha-led{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.ha-trend{ stroke-dasharray:110; stroke-dashoffset:110; animation:ha-trend 4s ease-in-out infinite 1s; }
@keyframes ha-trend{ 0%{ stroke-dashoffset:110; } 45%,85%{ stroke-dashoffset:0; } 100%{ stroke-dashoffset:-110; } }
.ha-twinkle{ transform-origin:center; animation:ha-twinkle 3s ease-in-out infinite; }
@keyframes ha-twinkle{ 0%,100%{ transform:scale(.8) rotate(0); opacity:.6; } 50%{ transform:scale(1.1) rotate(20deg); opacity:1; } }

/* AI Lab: rising bubbles, signal through the network, turning gear */
.ha-bubble{ animation:ha-bubble 3s ease-in infinite; }
.ha-bubble.b2{ animation-delay:.8s; } .ha-bubble.b3{ animation-delay:1.5s; } .ha-bubble.b4{ animation-delay:2.2s; }
@keyframes ha-bubble{ 0%{ transform:translateY(0) scale(.6); opacity:0; } 20%{ opacity:.95; } 100%{ transform:translateY(-52px) scale(1); opacity:0; } }
.ha-node{ transform-origin:center; animation:ha-node 2.8s ease-in-out infinite; }
.ha-node.n2{ animation-delay:.2s; } .ha-node.n3{ animation-delay:.6s; } .ha-node.n4{ animation-delay:.8s; } .ha-node.n5{ animation-delay:1s; } .ha-node.n6{ animation-delay:1.4s; }
@keyframes ha-node{ 0%,30%,100%{ transform:scale(1); fill:#1f2a44; } 15%{ transform:scale(1.35); fill:#ff7f00; } }
.ha-node.n6{ animation-name:ha-node-out; }
@keyframes ha-node-out{ 0%,30%,100%{ transform:scale(1); } 15%{ transform:scale(1.35); } }
.ha-gear{ transform-origin:center; animation:ha-turn 14s linear infinite; }

/* Real estate: bouncing pin with shadow, swinging crane hook, swaying tree */
.ha-bounce{ animation:ha-bounce 2.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes ha-bounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }
.ha-shadow{ transform-origin:center; animation:ha-shadow 2.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes ha-shadow{ 0%,100%{ transform:scaleX(1); opacity:.18; } 50%{ transform:scaleX(.6); opacity:.08; } }
.ha-hook{ transform-origin:50% 0; animation:ha-swing 4s ease-in-out infinite; }
@keyframes ha-swing{ 0%,100%{ transform:rotate(-7deg); } 50%{ transform:rotate(7deg); } }
.ha-sway{ transform-origin:50% 100%; animation:ha-sway 5s ease-in-out infinite; }
@keyframes ha-sway{ 0%,100%{ transform:rotate(-2.5deg); } 50%{ transform:rotate(2.5deg); } }

/* Institutions: waving flag, swinging tassel */
.hv-institutions .ha-hand-m{ transform-origin:260px 188px; }
.ha-flag{ transform-origin:0 50%; animation:ha-flag 2.4s ease-in-out infinite; }
@keyframes ha-flag{ 0%,100%{ transform:skewY(0) scaleX(1); } 50%{ transform:skewY(5deg) scaleX(.94); } }
.ha-tassel{ transform-origin:50% 0; animation:ha-swing 3s ease-in-out infinite; }

/* Hotel: twinkling stars, bell "ding" rings, swinging key */
.ha-star{ transform-origin:center; animation:ha-twinkle 3s ease-in-out infinite; }
.ha-star.s2{ animation-delay:.3s; } .ha-star.s3{ animation-delay:.6s; } .ha-star.s4{ animation-delay:.9s; } .ha-star.s5{ animation-delay:1.2s; }
.ha-bell{ transform-origin:50% 100%; animation:ha-bell 3.6s ease-in-out infinite; }
@keyframes ha-bell{ 0%,70%,100%{ transform:rotate(0); } 74%{ transform:rotate(-5deg); } 78%{ transform:rotate(4deg); } 82%{ transform:rotate(-2deg); } 86%{ transform:rotate(0); } }
.ha-ring{ transform-origin:50% 100%; opacity:0; animation:ha-ring 3.6s ease-out infinite; }
.ha-ring.r2{ animation-delay:.15s; }
@keyframes ha-ring{ 0%,70%{ opacity:0; transform:scale(.7); } 76%{ opacity:1; } 100%{ opacity:0; transform:scale(1.15); } }
.ha-key{ transform-origin:50% 0; animation:ha-swing 3.4s ease-in-out infinite; }

/* Layout: two columns in the product-page hero */
.pp-hero-grid{ display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:44px; align-items:center; }
.pp-hero-grid .hv{ max-width:500px; }
@media (max-width:991px){
  .pp-hero-grid{ grid-template-columns:1fr; gap:16px; }
  .hv{ max-width:420px; margin-top:20px; }
}
@media (max-width:480px){ .hv{ max-width:340px; } }

@media (prefers-reduced-motion: reduce){
  .hv .ha, .hv .ha *{ animation:none !important; }
  .ha-win rect{ opacity:1; }
  .ha-ecg, .ha-tick, .ha-trend{ stroke-dashoffset:0; }
  .ha-pop, .ha-won{ transform:none; opacity:1; }
  .ha-ring{ opacity:0; }
}
