/* =====================================================================
   Home, Problem section: four vector pictures with a hover animation
   (25 Nov 2026). Pictures: assets/images/problem/*.svg, printed inline by
   template-parts/section-art-struggles.php. Script: assets/js/problem-cards.js
   adds .pa-play to the card. Every animation STARTS AND ENDS on the default
   picture; leaving early runs it back. Keep that if you change one.
   ===================================================================== */
.struggle-card--split > .pa { overflow: visible; }
/* desktop: 132px, growing into the card's padding so the cards stay as tall as before */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1025px) {
	.struggle-card--split > .pa { width: 132px; max-width: none; margin: -8px -8px -12px 0; align-self: end; }
	.struggle-card--split .struggle-card__note { font-size: 14px; }
}
.pa :is(.pa-f-a,.pa-f-p,.pa-c-i,.pa-c-bub,.pa-c-amb,.pa-s-x,.pa-s-hl,.pa-m-g,.pa-m-b){transform-box:fill-box;transform-origin:center}
.pa .pa-f-a{transform-origin:50% 100%}.pa .pa-c-i{transform-origin:30% 90%}
.pa :is(.pa-c-i,.pa-c-hi,.pa-s-x,.pa-s-h,.pa-m-f){opacity:0}
.pa .pa-s-ch path,.pa .pa-m-f{stroke-dasharray:1 1}
.pa-play :is(.pa-f-a,.pa-f-p,.pa-c-i,.pa-c-bub,.pa-c-amb,.pa-c-cell,.pa-c-hi,.pa-s-x,.pa-s-hl,.pa-s-h,.pa-s-ch path,.pa-m-g,.pa-m-f,.pa-m-b){animation-duration:1.9s;animation-timing-function:linear;animation-fill-mode:both}
/* 1 folder: purple, then pink, come up and go back */
.pa-play .pa-f-p{animation-name:pa-fp}.pa-play .pa-f-a{animation-name:pa-fa}
@keyframes pa-fp{0%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}36%,60%{transform:translateY(-150px);animation-timing-function:cubic-bezier(.45,0,.25,1)}96%,100%{transform:none}}
@keyframes pa-fa{0%,8%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}44%,64%{transform:translate(10px,-112px) rotate(4deg);animation-timing-function:cubic-bezier(.45,0,.25,1)}100%{transform:none}}
/* 2 chats: two look-alike invoices slide out, the highlight moves to one and back, they tuck in */
.pa-play .pa-c-i1{animation-name:pa-i1}.pa-play .pa-c-i2{animation-name:pa-i2}.pa-play .pa-c-cell{animation-name:pa-cm}.pa-play .pa-c-hi{animation-name:pa-ch}.pa-play .pa-c-bub{animation-name:pa-cb}.pa-play .pa-c-amb{animation-name:pa-ca}
@keyframes pa-i1{0%{opacity:0;transform:none}3%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}32%,66%{opacity:1;transform:translate(106px,-4px) rotate(8deg);animation-timing-function:cubic-bezier(.45,0,.25,1)}96%{opacity:1;transform:none}100%{opacity:0;transform:none}}
@keyframes pa-i2{0%,6%{opacity:0;transform:none}9%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}38%,66%{opacity:1;transform:translate(16px,-74px) rotate(2deg);animation-timing-function:cubic-bezier(.45,0,.25,1)}96%{opacity:1;transform:none}100%{opacity:0;transform:none}}
@keyframes pa-cm{0%,36%{opacity:1}42%,56%{opacity:.12}62%,100%{opacity:1}}
@keyframes pa-ch{0%,36%{opacity:0}42%,56%{opacity:1}62%,100%{opacity:0}}
@keyframes pa-cb{0%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}40%,62%{transform:translate(-16px,-16px);animation-timing-function:cubic-bezier(.45,0,.25,1)}96%,100%{transform:none}}
@keyframes pa-ca{0%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}40%,62%{transform:translate(16px,-18px);animation-timing-function:cubic-bezier(.45,0,.25,1)}96%,100%{transform:none}}
/* 3 sheet: three cells fall with gravity, the graph draws again, the cells come back */
.pa-play .pa-s-hl{animation-name:pa-sf;--y:300px;--r:-13deg;--o:1}.pa-play .pa-s-x1{animation-name:pa-sf;--y:236px;--r:9deg;--o:0}.pa-play .pa-s-x0{animation-name:pa-sg;--y:316px;--r:-12deg;--o:0}
.pa-play .pa-s-h{animation-name:pa-sh}.pa-play .pa-s-ch path{animation-name:pa-sd}.pa-play .pa-s-x{fill:#4d6862;stroke:#86a597}
@keyframes pa-sf{0%{transform:none;opacity:var(--o)}4%{transform:none;opacity:1;animation-timing-function:cubic-bezier(.5,0,.85,.35)}27%{transform:translateY(var(--y)) rotate(calc(var(--r)*1.4));animation-timing-function:cubic-bezier(.3,.7,.2,1)}34%{transform:translateY(calc(var(--y) - 26px)) rotate(calc(var(--r)*.8));animation-timing-function:cubic-bezier(.5,0,.85,.35)}41%,76%{transform:translateY(var(--y)) rotate(var(--r));opacity:1}84%{transform:translateY(var(--y)) rotate(var(--r));opacity:0}84.1%{transform:none;opacity:0}96%,100%{transform:none;opacity:var(--o)}}
@keyframes pa-sg{0%,7%{transform:none;opacity:var(--o)}10%{transform:none;opacity:1;animation-timing-function:cubic-bezier(.5,0,.85,.35)}34%{transform:translateY(var(--y)) rotate(calc(var(--r)*1.4));animation-timing-function:cubic-bezier(.3,.7,.2,1)}40%{transform:translateY(calc(var(--y) - 24px)) rotate(calc(var(--r)*.8));animation-timing-function:cubic-bezier(.5,0,.85,.35)}47%,76%{transform:translateY(var(--y)) rotate(var(--r));opacity:1}84%{transform:translateY(var(--y)) rotate(var(--r));opacity:0}84.1%,100%{transform:none;opacity:0}}
@keyframes pa-sh{0%,4%{opacity:0}9%,82%{opacity:1}96%,100%{opacity:0}}
@keyframes pa-sd{0%{opacity:1;stroke-dashoffset:0}8%{opacity:0;stroke-dashoffset:0}8.1%,44%{opacity:0;stroke-dashoffset:1}44.5%{opacity:1;stroke-dashoffset:1;animation-timing-function:ease-out}80%,100%{opacity:1;stroke-dashoffset:0}}
/* 4 forms: the fields fill as the cross lands, the warnings follow, the fill fades */
.pa-play .pa-m-f{animation-name:pa-mf}.pa-play .pa-m-b1{animation-name:pa-b1}.pa-play .pa-m-w1{animation-name:pa-b2}.pa-play .pa-m-w2{animation-name:pa-b3}.pa-play .pa-m-g1{animation-name:pa-g1}.pa-play .pa-m-g3{animation-name:pa-g3}
@keyframes pa-mf{0%,12%{opacity:0;stroke-dashoffset:1}13%{opacity:1;stroke-dashoffset:1;animation-timing-function:ease-out}42%,74%{opacity:1;stroke-dashoffset:0}96%,100%{opacity:0;stroke-dashoffset:0}}
@keyframes pa-b1{0%{opacity:1;transform:none}9%,20%{opacity:0;transform:scale(.5)}31%{opacity:1;transform:scale(1.15)}40%,100%{opacity:1;transform:none}}
@keyframes pa-b2{0%{opacity:1;transform:none}9%,44%{opacity:0;transform:scale(.5)}54%{opacity:1;transform:scale(1.15)}62%,100%{opacity:1;transform:none}}
@keyframes pa-b3{0%{opacity:1;transform:none}9%,54%{opacity:0;transform:scale(.5)}64%{opacity:1;transform:scale(1.15)}72%,100%{opacity:1;transform:none}}
@keyframes pa-g1{0%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}36%,66%{transform:translate(-10px,5px);animation-timing-function:cubic-bezier(.45,0,.25,1)}100%{transform:none}}
@keyframes pa-g3{0%{transform:none;animation-timing-function:cubic-bezier(.3,.7,.2,1)}36%,66%{transform:translate(10px,-5px);animation-timing-function:cubic-bezier(.45,0,.25,1)}100%{transform:none}}
@media (prefers-reduced-motion: reduce) { .pa * { animation: none !important; } }
