/* Use cases ("Was wir bauen"): six small motion drawings, one per card.
   Generated SVGs: inc/mo-uc-1.svg … mo-uc-6.svg (tools/motion_usecases.py).
   The plain styles are the finished picture. Motion runs once, from .mo-in on the card.
   Each animated part carries its start (--t) and duration (--u) inline; the card may add --mo-d. */

.mo-uc { max-width: 320px; margin: 0 0 14px; overflow: visible; }
.mo-uc .pl, .mo-uc .b { stroke-width: 1; }
.mo-uc .path { stroke-width: 2.2; }
.mo-uc .old { stroke: var(--ink-3); }
.mo-uc .mo-uc-key { fill: var(--ink); }
.mo-uc .mo-uc-gate { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: butt; }
.mo-uc .mo-uc-tick { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mo-uc .path-top { stroke-width: 1.8; stroke-dasharray: 0.5 4; }
.mo-uc .mo-uc-q { font: 600 15px var(--mono); fill: var(--ink); text-anchor: middle; }
.mo-uc .mo-uc-o { opacity: 0; } /* an earlier state: not part of the finished picture */

/* before the card scrolls in (script on): an empty sheet */
.js [data-mo]:not(.mo-in) .mo-uc :is(.mo-uc-a, .mo-uc-f, .mo-uc-l) { opacity: 0; }

/* the motion */
.mo-in .mo-uc .mo-uc-a { animation: mo-uc-a var(--u, .45s) cubic-bezier(.2, .7, .2, 1) calc(var(--mo-d, 0s) + var(--t, 0s)) both; }
.mo-in .mo-uc .mo-uc-f { animation: mo-uc-f var(--u, .3s) ease-out calc(var(--mo-d, 0s) + var(--t, 0s)) both; }
.mo-in .mo-uc .mo-uc-l { stroke-dasharray: 1; animation: mo-uc-l var(--u, .4s) cubic-bezier(.3, .2, .3, 1) calc(var(--mo-d, 0s) + var(--t, 0s)) both; }
.mo-in .mo-uc .mo-uc-s { animation: mo-uc-s var(--u, .45s) cubic-bezier(.2, .7, .2, 1) calc(var(--mo-d, 0s) + var(--t, 0s)) both; }
.mo-in .mo-uc .mo-uc-o { animation: mo-uc-o var(--u, .35s) ease-out calc(var(--mo-d, 0s) + var(--t, 0s)) both; }

@keyframes mo-uc-a { from { opacity: 0; transform: translateY(6px); } }
@keyframes mo-uc-f { from { opacity: 0; } }
@keyframes mo-uc-l { from { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } }
@keyframes mo-uc-s { from { transform: translate(var(--x, 0), var(--y, 0)); } }
@keyframes mo-uc-o { from { opacity: 1; } }

/* phones: the cards stack, each one scrolls in alone, so the stagger of the three columns is dropped */
@media (max-width: 819px) {
  .uc > li[data-mo] { --mo-d: 0s !important; }
}
