/* Per-slide mechanism loops. Every rule is scoped to .live, so a slide that is not on screen runs nothing.
   The un-animated (base) state of each piece is a sensible still picture, used for reduced motion. */
.art .pivot { transform-box: view-box; transform-origin: 0 0; }

/* 1 · titel: the photo drifts in very slowly (decoration: off in light mode) */
.t-zoom { transform-origin: center; }
.live .t-zoom { animation: t-zoom 14s ease-in-out 1s infinite alternate; }
@keyframes t-zoom { from { transform: none; } to { transform: scale(1.08); } }

/* 2 · wat is hydraulica: double-acting cylinder on two hoses (6 s: out 8–42 %, back 58–92 %) */
.w2-a { transform-origin: left center; transform: scaleX(.203); }
.w2-b { transform-origin: right center; }
.cy-on2 { opacity: 0; }
.live .w2-pis { animation: w2-pis 6s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .w2-a   { animation: w2-a 6s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .w2-b   { animation: w2-b 6s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .cy-on1 { animation: cy-on1 6s linear 1s infinite; }
.live .cy-on2 { animation: cy-on2 6s linear 1s infinite; }
@keyframes w2-pis { 0%, 8% { transform: none; } 42%, 58% { transform: translateX(220px); } 92%, 100% { transform: none; } }
@keyframes w2-a   { 0%, 8% { transform: scaleX(.203); } 42%, 58% { transform: none; } 92%, 100% { transform: scaleX(.203); } }
@keyframes w2-b   { 0%, 8% { transform: none; } 42%, 58% { transform: scaleX(.421); } 92%, 100% { transform: none; } }
@keyframes cy-on1 { 0%, 46% { opacity: 1; } 54%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cy-on2 { 0%, 46% { opacity: 0; } 54%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* 5 · Pascal: plunger pushes, jets spray equally in every direction */
.p-oil { transform-origin: center bottom; }
.p-jet { transform-origin: left center; }
.live .p-pis { animation: p-pis 3.6s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .p-oil { animation: p-oil 3.6s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .p-jet { animation: p-jet 3.6s ease-out 1s infinite; }
@keyframes p-pis { 0%, 10% { transform: none; } 35%, 65% { transform: translateY(50px); } 90%, 100% { transform: none; } }
@keyframes p-oil { 0%, 10% { transform: none; } 35%, 65% { transform: scaleY(.737); } 90%, 100% { transform: none; } }
@keyframes p-jet { 0%, 16% { transform: scaleX(0); opacity: 0; } 36% { transform: scaleX(1); opacity: 1; } 62% { transform: scaleX(1); opacity: 1; } 80%, 100% { transform: scaleX(1.05); opacity: 0; } }

/* 6 · onsamendrukbaar: same push, air gives way, oil does not */
.s-air { transform-origin: center bottom; }
.live .s-pis-air { animation: s-pis-air 4.4s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
.live .s-air     { animation: s-air 4.4s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
@keyframes s-pis-air { 0%, 10% { transform: none; } 45%, 62% { transform: translateY(231px); animation-timing-function: cubic-bezier(.3,1.4,.5,1); } 86%, 100% { transform: none; } }
@keyframes s-air     { 0%, 10% { transform: none; } 45%, 62% { transform: scaleY(.5); animation-timing-function: cubic-bezier(.3,1.4,.5,1); } 86%, 100% { transform: none; } }


/* 7/8 · pers: small piston down 160, big piston up 40 (area ×4) */
.pr-oil-s { transform-origin: center bottom; }
.pr-oil-b { transform-origin: center bottom; transform: scaleY(.818); }
.live .pr-s     { animation: pr-s 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
.live .pr-b     { animation: pr-b 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
.live .pr-oil-s { animation: pr-oil-s 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
.live .pr-oil-b { animation: pr-oil-b 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
@keyframes pr-s     { 0%, 10% { transform: none; } 45%, 62% { transform: translateY(160px); } 92%, 100% { transform: none; } }
@keyframes pr-b     { 0%, 10% { transform: none; } 45%, 62% { transform: translateY(-40px); } 92%, 100% { transform: none; } }
@keyframes pr-oil-s { 0%, 10% { transform: none; } 45%, 62% { transform: scaleY(.6); } 92%, 100% { transform: none; } }
@keyframes pr-oil-b { 0%, 10% { transform: scaleY(.818); } 45%, 62% { transform: scaleY(1); } 92%, 100% { transform: scaleY(.818); } }

/* 14 · valtoren (10 s): lift 5–42 %, claw opens 47–50, free fall 50–57, magnets 57–66, buffer 66–73, catch car back down 72–94 */
.vt-rope-a { transform-origin: center bottom; }
.vt-rope-c { transform-origin: center top; }
.vt-l-los, .vt-l-val, .vt-l-rem, .vt-mag { opacity: 0; }
.live .vt-gond   { animation: vt-gond 10s 1s infinite; }
.live .vt-catch  { animation: vt-catch 10s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .vt-sheave { animation: vt-sheave 10s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .vt-rope-c { animation: vt-rope-c 10s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .vt-rope-a { animation: vt-rope-a 10s cubic-bezier(.65,0,.35,1) 1s infinite; }
.live .vt-claw-l { animation: vt-claw-l 10s ease 1s infinite; transform-origin: left top; }
.live .vt-claw-r { animation: vt-claw-r 10s ease 1s infinite; transform-origin: right top; }
.live .vt-buf    { animation: vt-buf 10s 1s infinite; }
.live .vt-mag    { animation: vt-mag 10s 1s infinite; }
.live .vt-feed   { animation: vt-feed 10s 1s infinite; }
.live .vt-l-up   { animation: vt-l-up 10s 1s infinite; }
.live .vt-l-los  { animation: vt-l-los 10s 1s infinite; }
.live .vt-l-val  { animation: vt-l-val 10s 1s infinite; }
.live .vt-l-rem  { animation: vt-l-rem 10s 1s infinite; }
@keyframes vt-gond {
  0%, 5% { transform: none; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  42%, 50% { transform: translateY(-700px); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  57% { transform: translateY(-340px); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  66% { transform: none; animation-timing-function: ease-out; }
  69% { transform: translateY(8px); animation-timing-function: ease-in-out; }
  73%, 100% { transform: none; }
}
@keyframes vt-catch  { 0%, 5% { transform: none; } 42%, 72% { transform: translateY(-700px); } 94%, 100% { transform: none; } }
@keyframes vt-sheave { 0%, 5% { transform: none; } 42%, 72% { transform: translateY(-350px); } 94%, 100% { transform: none; } }
@keyframes vt-rope-c { 0%, 5% { transform: none; } 42%, 72% { transform: scaleY(.1026); } 94%, 100% { transform: none; } }
@keyframes vt-rope-a { 0%, 5% { transform: none; } 42%, 72% { transform: scaleY(1.625); } 94%, 100% { transform: none; } }
@keyframes vt-claw-l { 0%, 47% { transform: none; } 50%, 93% { transform: rotate(-40deg); } 98%, 100% { transform: none; } }
@keyframes vt-claw-r { 0%, 47% { transform: none; } 50%, 93% { transform: rotate(40deg); } 98%, 100% { transform: none; } }
@keyframes vt-buf    { 0%, 66% { transform: none; animation-timing-function: ease-out; } 69% { transform: translateY(8px); } 73%, 100% { transform: none; } }
@keyframes vt-mag    { 0%, 56% { opacity: 0; } 59%, 64% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes vt-feed   { 0%, 4% { opacity: 0; } 7%, 40% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes vt-l-up   { 0%, 3% { opacity: 0; } 6%, 41% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes vt-l-los  { 0%, 44% { opacity: 0; } 46%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes vt-l-val  { 0%, 49.5% { opacity: 0; } 50%, 56% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes vt-l-rem  { 0%, 56.5% { opacity: 0; } 57%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }

/* 15 · voordelen: small cylinder lifts 20 t */
.vd-oil { transform-origin: center bottom; transform: scaleY(.739); }
.live .vd-lift { animation: vd-lift 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
.live .vd-oil  { animation: vd-oil 5s cubic-bezier(.65,0,.35,1) 1.2s infinite; }
@keyframes vd-lift { 0%, 10% { transform: none; } 55%, 75% { transform: translateY(-60px); } 95%, 100% { transform: none; } }
@keyframes vd-oil  { 0%, 10% { transform: scaleY(.739); } 55%, 75% { transform: none; } 95%, 100% { transform: scaleY(.739); } }

/* 16 · nadelen: drips + heat */
.live .nd-drop { animation: nd-drop 2.1s cubic-bezier(.55,0,1,.45) infinite; }
.live .nd-heat { animation: nd-heat 2.2s ease-in-out infinite; }
@keyframes nd-drop { 0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 30% { transform: none; opacity: 1; } 92% { transform: translateY(372px); opacity: 1; } 100% { transform: translateY(380px) scaleY(.4); opacity: 0; } }
@keyframes nd-heat { 0% { transform: none; opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }

/* 18 · vragen: ripples */
.live .vr-ring { animation: vr-ring 6s ease-out infinite; }
@keyframes vr-ring { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* light mode: decoration loops off (the mechanisms keep running: they are what the slide explains) */
html.lite .live .t-zoom, html.lite .live .nd-heat, html.lite .live .vr-ring { animation: none !important; }
