/* Afterframe, concept C — beweging van de scènes (zie scenes.js) */
.sc { display: block; width: 100%; height: 100%; }
.sc * { transform-box: fill-box; transform-origin: 50% 50%; }

@keyframes af-turn { to { transform: rotate(360deg); } }

.sc-grafiek .a-bar { transform-origin: 50% 100%; animation: af-grow 6s cubic-bezier(.2,.8,.2,1) infinite backwards; animation-delay: calc(var(--i) * .11s); }
.sc-grafiek .a-pop { animation: af-pop 6s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes af-grow { 0% { transform: scaleY(0); } 16%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes af-pop { 0%, 24% { transform: scale(0); } 32%, 86% { transform: scale(1); } 92%, 100% { transform: scale(0); } }

.sc-app .a-row { animation: af-row 6s ease-out infinite backwards; animation-delay: calc(var(--i) * .22s); }
.sc-app .a-btn { animation: af-btn 6s step-end infinite; }
.sc-app .a-tick { opacity: 0; animation: af-tick 6s step-end infinite; }
.sc-app .a-tap { animation: af-tap 6s cubic-bezier(.4,0,.2,1) infinite; }
.sc-app .a-float { animation: af-float 5s ease-in-out infinite alternate; }
.sc-app .a-float2 { animation-duration: 6.5s; animation-direction: alternate-reverse; }
@keyframes af-row { 0% { opacity: 0; transform: translateY(12px); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes af-btn { 0% { fill: #0A0F3C; } 58% { fill: #FFD23F; } 94% { fill: #0A0F3C; } }
@keyframes af-tick { 0% { opacity: 0; } 66% { opacity: 1; } 94% { opacity: 0; } }
@keyframes af-tap { 0%, 30% { transform: translate(74px, 46px); opacity: 0; } 38% { opacity: 1; } 54% { transform: translate(0, 0) scale(1); } 58% { transform: translate(0, 0) scale(.72); } 63% { transform: translate(0, 0) scale(1); } 76% { transform: translate(34px, 20px); opacity: 1; } 86%, 100% { transform: translate(34px, 20px); opacity: 0; } }
@keyframes af-float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

.sc-social .a-card { animation: af-bob 3.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.sc .a-pulse { animation: af-pulse 1.9s ease-in-out infinite; }
.sc-social .a-eq { animation: af-eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.3s); }
@keyframes af-bob { 0%, 100% { transform: translateY(5px); } 50% { transform: translateY(-7px); } }
@keyframes af-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes af-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.sc-veiligheid .a-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: af-check 6s ease-out infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes af-check { 0%, 8% { stroke-dashoffset: 1; } 18%, 86% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 1; } }

.sc .a-turn { transform-box: view-box; transform-origin: 0 0; animation: af-turn var(--d, 6s) linear infinite; }

.sc-stem .a-wave { animation: af-eq 1s ease-in-out infinite alternate; animation-duration: calc(.8s + mod(var(--i), 4) * .17s); animation-delay: calc(var(--i) * -.23s); }

.sc-script .a-type { transform-origin: 0 50%; animation: af-type 7s cubic-bezier(.3,0,.2,1) infinite backwards; animation-delay: calc(var(--i) * .4s); }
@keyframes af-type { 0% { transform: scaleX(0); } 9%, 84% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }

.sc-talen .a-sub1, .sc-talen .a-pill1 { animation: af-flip 5s step-end infinite; }
.sc-talen .a-sub2, .sc-talen .a-pill2 { animation: af-flip 5s step-end infinite; animation-delay: -2.5s; }
@keyframes af-flip { 0% { opacity: 1; } 50% { opacity: 0; } }

.sc-formaten .a-morph { animation: af-morph 8s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes af-morph { 0%, 22% { transform: scale(1.6, .9); } 33%, 55% { transform: scale(1, 1); } 66%, 88% { transform: scale(.5625, 1); } 100% { transform: scale(1.6, .9); } }

.sc-montage .a-head { animation: af-head 6s linear infinite; }
@keyframes af-head { from { transform: translateX(0); } to { transform: translateX(240px); } }

.sc-prompt .a-type { transform-origin: 0 50%; animation: af-type 7s cubic-bezier(.3,0,.2,1) infinite backwards; }
.sc-prompt .a-shot { animation: af-shot 7s cubic-bezier(.3,1.4,.5,1) infinite backwards; animation-delay: calc(.9s + var(--i) * .28s); }
@keyframes af-shot { 0% { transform: scale(0); } 7%, 78% { transform: scale(1); } 84%, 100% { transform: scale(0); } }
.sc-vraag .a-dot { animation: af-dot 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes af-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) { .sc * { animation: none !important; } }
