/* "Zo werkt het" (research/homepage/ontwerp.md, section 2): a bank line becomes invoice 2026-003 and lands in the btw-aangifte. All text
   is in the HTML. Without JavaScript and with prefers-reduced-motion the three states stand under each other as three still cards with an
   dotted line between them. aangifte-demo.js sets is-0 (waiting until half of the figure is in view), then is-1, is-2 and is-3 on the
   figure; the resting style of each card is its end state, so the cards never move the layout (CLS 0). Only transform and opacity move.
   v4 (H-CM, research/homepage/visueel-v4.md K2): three white cards on the --mist podium, 16 px apart, linked on the left by a dotted line
   (it was an arrow in v2 and v3). */
.hm-anim{margin:0;min-width:0}
.hm-anim ol{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.hm-anim li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:2px;align-items:baseline;padding:18px 20px;background:#FFFFFF;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh-card);font-size:16px;line-height:24px;color:var(--ink)}
.hm-anim li+li::before{content:"";position:absolute;left:28px;top:-17px;height:16px;border-left:2px dotted var(--ink-3)}
.hm-anim [data-part]{display:block;min-width:0}
.hm-anim [data-part="label"]{grid-column:1/-1;font-size:13px;line-height:20px;font-weight:600;color:var(--ink-3)}
.hm-anim [data-part="naam"],.hm-anim [data-part="voorstel"],.hm-anim [data-part="vak"]{grid-column:1;font-weight:700}
.hm-anim [data-part="omschrijving"],.hm-anim [data-part="regel"]{grid-column:1;color:var(--ink-2)}
.hm-anim [data-part="bedrag"]{grid-column:2;grid-row:2;font-family:var(--mono);font-weight:600;text-align:right;white-space:nowrap}
.hm-anim [data-step="2"] [data-part="label"]{color:var(--stamp)}
.hm-anim [data-part="reden"]{grid-column:1/-1;font-size:14px;line-height:20px;color:var(--ink-2)}
.hm-anim [data-part="knop"]{grid-column:1;justify-self:start;margin-top:10px;min-width:64px;padding:6px 18px;border:1px solid var(--ink);border-radius:var(--r-md);background:var(--ink);color:#FFFFFF;font-size:15px;line-height:20px;font-weight:600;text-align:center}
.hm-anim [data-part="status"]{grid-column:2;align-self:center;margin-top:10px;padding:2px 7px 1px;border:1.5px solid var(--ok);border-radius:3px;color:var(--ok);font-family:var(--mono);font-size:11px;line-height:18px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;transform:rotate(-3deg)}
.hm-anim [data-step="3"] [data-part="vak"]{grid-row:2}
.hm-anim [data-step="3"] [data-part="regel"]{grid-row:3}
.hm-anim [data-step="3"] [data-part="bedrag"]{grid-row:3}
.hm-anim [data-part="totaal"]{grid-column:1/-1;margin-top:10px;padding-top:10px;border-top:1px solid var(--ink);font-weight:700}
.hm-anim [data-anim-replay]{display:none;margin-top:14px;min-height:44px;padding:0;background:none;border:0;font:inherit;font-size:15px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hm-anim [data-anim-replay]:hover{color:var(--red)}
.hm-anim figcaption{margin-top:12px;font-size:14px;line-height:20px;color:var(--ink-3)}
.hm-anim [data-anim-replay]+figcaption{margin-top:2px}

/* the moving version: only when the script runs (it sets is-0 first) */
.hm-anim[class*="is-"] [data-anim-replay]{display:inline-flex;align-items:center}
.hm-anim[class*="is-"] li,.hm-anim[class*="is-"] [data-part="knop"],.hm-anim[class*="is-"] [data-part="status"]{transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1)}
.hm-anim.is-0 li,.hm-anim.is-1 li:not([data-step="1"]),.hm-anim.is-2 [data-step="3"]{opacity:0;transform:translateY(16px)}
.hm-anim.is-0 [data-part="knop"],.hm-anim.is-1 [data-part="knop"]{background:#FFFFFF;color:var(--ink)}
.hm-anim.is-0 [data-part="status"],.hm-anim.is-1 [data-part="status"]{opacity:0;transform:rotate(-3deg) scale(1.6)}
.hm-anim.is-2 [data-part="knop"]{transition:background-color .3s 1.4s,color .3s 1.4s}
.hm-anim.is-2 [data-part="status"]{transition-delay:1.5s}
.hm-anim [data-step="3"] [data-part="bedrag"]{position:relative;isolation:isolate}
.hm-anim [data-step="3"] [data-part="bedrag"]::after{content:"";position:absolute;inset:-2px -4px;z-index:-1;border-radius:var(--r-sm);background:rgba(47,75,154,.16);opacity:0}
.hm-anim.is-3 [data-step="3"] [data-part="bedrag"]::after{animation:hm-glow 1.6s .7s both}
@keyframes hm-glow{0%,100%{opacity:0}35%{opacity:1}}
/* the step that plays is dark in the list on the left, the other two grey */
/* (grey is the colour --ink-3, not a lower opacity, so the grey text keeps its AA contrast) */
.hm-zwh:has(.hm-anim[class*="is-"]) .hm-steps li :is(h3,p){color:var(--ink-3)!important;transition:color .4s}
.hm-zwh:has(.hm-anim[class*="is-"]) .hm-steps li::before{background:var(--ink-3);transition:background-color .4s}
.hm-zwh:has(.hm-anim.is-1) .hm-steps li:nth-child(1) :is(h3,p),.hm-zwh:has(.hm-anim.is-2) .hm-steps li:nth-child(2) :is(h3,p),.hm-zwh:has(.hm-anim.is-3) .hm-steps li:nth-child(3) :is(h3,p){color:var(--ink)!important}
.hm-zwh:has(.hm-anim.is-1) .hm-steps li:nth-child(1)::before,.hm-zwh:has(.hm-anim.is-2) .hm-steps li:nth-child(2)::before,.hm-zwh:has(.hm-anim.is-3) .hm-steps li:nth-child(3)::before{background:var(--ink)}
@media (prefers-reduced-motion:reduce){.hm-anim [data-anim-replay]{display:none!important}}
@media (max-width:760px){
.hm-anim li{padding:16px;font-size:15px;line-height:22px}
}
