/* How it works (Senior Dev 8). Variables from css/tokens.css only. */
.hw-wrap{max-width:68rem;margin-inline:auto}
.hw-hero{min-height:75svh;display:grid;align-content:center;padding-block:clamp(6rem,14vw,10rem) clamp(2.5rem,5vw,4rem)}
.hw-eyebrow{font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.85rem;color:var(--accent);margin:0 0 1rem}
.hw-hero h1{font-family:var(--font-display);font-size:var(--fs-h1);letter-spacing:-.035em;line-height:1.03;margin:0 0 1.25rem;max-width:16ch;text-wrap:balance}
.hw-lead{font-size:1.25rem;max-width:58ch;margin:0}
.hw-note{font-size:.9rem;color:var(--text-muted);max-width:65ch}
.band--dark .hw-note{color:var(--on-dark-muted)}
.hw-sec h2{font-family:var(--font-display);font-size:var(--fs-h2);letter-spacing:-.02em;line-height:1.1;margin:0 0 1.5rem;max-width:22ch;text-wrap:balance}
.hw-btn{font:inherit;font-weight:700;padding:.8rem 1.5rem;border-radius:999px;border:2px solid var(--accent);background:var(--accent);color:var(--on-accent);cursor:pointer;text-decoration:none;display:inline-block;transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.hw-btn:hover{transform:translateY(-2px)}
.hw-btn:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.hw-btn--ghost{background:transparent;color:inherit;border-color:currentColor}
.band--dark .hw-btn{background:var(--accent-on-dark);border-color:var(--accent-on-dark);color:var(--dark)}
.band--dark .hw-btn--ghost{background:transparent;color:var(--on-dark);border-color:var(--on-dark)}
.hw-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0 0}

/* diagram */
.hw-diagram{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,1rem);padding:clamp(.75rem,2vw,1.5rem);box-shadow:var(--shadow)}
.hw-svg{display:block;width:100%;height:auto}
.hw-svg text{font-family:var(--font-sans);font-size:15px;font-weight:700;fill:var(--text)}
.hw-svg .part{fill:var(--surface);stroke:var(--text);stroke-width:3;transition:fill .3s,stroke .3s}
.hw-svg .pipe{fill:none;stroke:var(--text-muted);stroke-width:3}
.hw-svg .flow{fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round;stroke-dasharray:4 18;animation:hwflow 1.2s linear infinite}
.hw-svg .flow--air{stroke:var(--text)}
.hw-svg .blade{stroke:var(--text);stroke-width:5;stroke-linecap:round}
.hw-spin{transform-box:fill-box;transform-origin:center;animation:hwspin 3.2s linear infinite}
.hw-spin--slow{animation-duration:3.2s}
.hw-svg .shaft{stroke:var(--text);stroke-width:8;stroke-linecap:round}
.hw-js .hw-svg g[data-part]:not(.is-on) :is(.part,.pipe,.flow,.blade,.shaft){opacity:.35}
.hw-js .hw-svg g[data-part].is-on .part{fill:var(--accent-soft);stroke:var(--accent)}
.hw-paused .hw-svg .flow,.hw-paused .hw-spin{animation-play-state:paused}
@keyframes hwflow{to{stroke-dashoffset:-44}}
@keyframes hwspin{to{transform:rotate(360deg)}}
.hw-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.25rem 0 1rem}
.hw-tabs button{font:inherit;font-weight:700;padding:.6rem 1.1rem;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}
.hw-tabs button:hover{border-color:var(--accent)}
.hw-tabs button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.hw-tabs button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.hw-panel{max-width:62ch;font-size:1.15rem}
.hw-panel h3{font-size:var(--fs-step,1.4rem);margin:0 0 .4rem}
.hw-panel p{margin:0 0 .6rem}
.hw-js .hw-panel[hidden]{display:none}
.hw-ctrl{margin-top:1rem}

/* retrofit */
.hw-retro .steps__word{color:var(--accent-on-dark)}
.hw-retro [data-step]{gap:1rem}
.hw-retro [data-step] small{display:block;font-size:1rem;opacity:.85;margin-top:.4rem;max-width:42ch}
@media (prefers-reduced-motion:reduce){.hw-svg .flow,.hw-spin{animation:none}.hw-btn,.hw-svg .part{transition:none}}
.hw-retro [data-sticky-steps]{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.hw-retro .steps__word{font-size:clamp(2.2rem,4vw,3.8rem);overflow-wrap:anywhere}
.hw-retro [data-step]>span{display:block}
@media (max-width:64rem){.hw-retro [data-sticky-steps]{grid-template-columns:minmax(0,1fr)}.hw-retro .steps__word{font-size:clamp(2.2rem,11vw,3.6rem)}}
@media (max-width:40rem){.hw-svg text{font-size:30px}}
