.hw { margin: 0 0 20px; }
.hw .stage { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

}
.hw svg { display: block; width: 100%; height: auto; }
.hw .caption { min-height: 64px; padding: 14px 22px 4px; font-size: 18px; font-weight: 600; color: var(--accent); text-align: center; transition: opacity .4s; }
.hw .dots { display: flex; justify-content: center; gap: 8px; padding: 6px 0 16px; }
.hw .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s; }
.hw .dots span.on { background: var(--accent); }

.hw .scene { opacity: 0; }
.hw .scene.on { opacity: 1; transition: opacity .5s; }
.hw text { font-family: "Manrope", system-ui, sans-serif; }

/* Alex */
.hw .on .alex-body { animation: hw-idle 1.6s ease-in-out infinite; }
@keyframes hw-idle { 50% { transform: translateY(-2px); } }
.hw .on .typing { animation: hw-typing .35s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes hw-typing { to { transform: translateY(3px); } }
.hw .on .wave { animation: hw-wave .6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes hw-wave { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.hw .on .scratch { animation: hw-scratch .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes hw-scratch { to { transform: rotate(-10deg); } }
.hw .hw-locked { filter: blur(3px); opacity: 0; }
.hw .on .hw-locked { animation: hw-locked .5s ease-out forwards; }
@keyframes hw-locked { to { opacity: .7; } }
.hw .badge { opacity: 0; }
.hw .on .badge { animation: hw-pop .5s 2.6s ease-out forwards; transform-box: fill-box; transform-origin: center; }
.hw .on .scroll { animation: hw-scroll 3.2s 1.4s ease-in-out forwards; }
@keyframes hw-scroll { to { transform: translateY(-180px); } }

/* 1: idea */
.hw .bulb { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hw .on .bulb { animation: hw-pop .6s .6s ease-out forwards; }
.hw .on .screen-block { animation: hw-grow .5s ease-out both; transform-box: fill-box; transform-origin: left; }
@keyframes hw-pop { 0% { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hw-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 2: crowd */
.hw .inv { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hw .on .inv { animation: hw-appear .4s ease-out forwards; }
@keyframes hw-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hw .q { opacity: 0; }
.hw .on .q { animation: hw-pop .5s 1.6s ease-out forwards, hw-wobble 1.2s 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes hw-wobble { 50% { transform: rotate(-8deg); } }

/* 3: form */
.hw .typed { clip-path: inset(0 100% 0 0); }
.hw .on .typed { animation: hw-type 1.4s .4s steps(15) forwards; }
@keyframes hw-type { to { clip-path: inset(0 0 0 0); } }
.hw .on .btn { animation: hw-press .35s 2.1s ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes hw-press { 50% { transform: scale(.94); } }
.hw .cursor { opacity: 0; }
.hw .on .cursor { animation: hw-cursor 2.2s .2s ease-in-out forwards; }
@keyframes hw-cursor { 0% { opacity: 0; transform: translate(120px, 80px); } 20% { opacity: 1; } 80% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 1; transform: translate(0, 0); } }

/* 4: robots */
.hw .bot { opacity: 0; }
.hw .on .bot { animation: hw-fetch 2.4s ease-in-out infinite; }
@keyframes hw-fetch {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)); }
  15% { opacity: 1; }
  60% { opacity: 1; transform: translate(0, 0); }
  75%, 100% { opacity: 0; transform: translate(0, 0); }
}
.hw .fact { opacity: 0; }
.hw .on .fact { animation: hw-appear .4s ease-out forwards; }

/* 5: compare */
.hw .hw-co { opacity: 0; }
.hw .on .hw-co.near { animation: hw-fadein .4s ease-out forwards, hw-near .6s 2.4s ease-out forwards; }
.hw .on .hw-co.far { animation: hw-fadein .4s ease-out forwards, hw-far .6s 2.4s ease-out forwards; }
.hw .wline { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hw .on .wline { animation: hw-draw .5s ease-out forwards, hw-dim .6s 2.4s forwards; }
@keyframes hw-dim { to { opacity: .12; } }
.hw .glink { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hw .on .glink { animation: hw-draw .7s 2.9s ease-out forwards; }
.hw .fund2 { opacity: 0; }
.hw .on .fund2 { animation: hw-fadein .4s ease-out forwards, hw-dim .6s 2.4s forwards; }
.hw .on .fund2.chosen { animation: hw-fadein .4s ease-out forwards, none 0s; }
.hw .on .fund2.chosen .box { animation: hw-green .5s 2.7s forwards; }
@keyframes hw-green { to { fill: #1f7a4d; } }
@keyframes hw-fadein { to { opacity: 1; } }
@keyframes hw-near { to { fill: var(--ok); r: 7; } }
@keyframes hw-far { to { opacity: .25; } }
.hw .hw-link { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hw .on .hw-link { animation: hw-draw .7s 2.2s ease-out forwards; }
@keyframes hw-draw { to { stroke-dashoffset: 0; } }
.hw .fund { opacity: 0; }
.hw .on .fund { animation: hw-pop .5s 2.6s ease-out forwards; transform-box: fill-box; transform-origin: center; }

/* 6: report */
.hw .hw-row { opacity: 0; }
.hw .on .hw-row { animation: hw-rise .5s ease-out forwards; }
@keyframes hw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hw .hw-ring { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hw .on .hw-ring { animation: hw-fill 1s ease-out forwards; }
@keyframes hw-fill { to { stroke-dashoffset: var(--to); } }

/* 7: go */
.hw .walker { }
.hw .on .walker { animation: hw-walk 2.4s .3s ease-in-out forwards; }
@keyframes hw-walk { to { transform: translateX(170px); } }
.hw .qi { opacity: 0; }
.hw .on .qi { animation: hw-appear .5s ease-out forwards; }
.hw .qlabel { opacity: 0; }
.hw .on .qlabel { animation: hw-appear .5s 2.4s ease-out forwards; }
.hw .on .step { animation: hw-bob .4s .3s ease-in-out 6; }
@keyframes hw-bob { 50% { transform: translateY(-4px); } }
.hw .smile { opacity: 0; }
.hw .on .smile { animation: hw-fadein .3s 2.6s forwards; }
.hw .end { opacity: 0; }
.hw .on .end { animation: hw-rise .6s 2.9s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  .hw .scene, .hw .scene * { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .hw svg { aspect-ratio: 5 / 4; }
  .hw .phone-hide { display: none; }
  .hw .caption { font-size: 16px; min-height: 92px; padding: 12px 16px 4px; }
}
