/* ------------------------------------------------------------------
   Stage slides (data-kind="stage"): a live 3D scene fills the whole slide, the words lie on it - no cards, no frames.
   The words follow the clock of the scene: the animations below are paused and set to the scene's time by js/stage-sync.js,
   so text and picture are always in step (also after a loop or when a slide is shown again). One loop = the length of the scene
   (data-stage = seconds on the section), the percentages below are seconds / length.
------------------------------------------------------------------- */
section[data-kind="stage"] { padding: 0; background: #F2F5FA; color: #0C1F4C; }
section[data-kind="stage"] .st-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
section[data-kind="stage"] .chrome { z-index: 6; }
section[data-kind="stage"] .st-em { font-style: normal; background: linear-gradient(transparent 68%, #ECC215 68% 94%, transparent 94%); }

.st-an { animation-duration: var(--dur, 16s); animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: both; animation-play-state: paused; }
.st-fill, .st-seg { animation-timing-function: linear; }

section[data-kind="stage"] .st-h2 { margin: 0; white-space: nowrap; font-size: 70px; line-height: 1.06; font-weight: 700; letter-spacing: -.012em; color: #0C1F4C; z-index: 2; }
section[data-kind="stage"] .st-label { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c, #394B75); }

/* ---- timeline column (slide 10): all three steps stay on, the live one is bright ---- */
.st-col { position: absolute; left: 112px; top: 76px; width: 560px; z-index: 2; display: flex; flex-direction: column; gap: 38px; }
.st-steps { display: flex; flex-direction: column; }
.st-step { display: flex; gap: 30px; padding-bottom: 26px; }
.st-step:last-child { padding-bottom: 0; }
.st-rail { display: flex; flex-direction: column; align-items: center; width: 20px; flex: none; padding-top: 5px; }
.st-node { display: block; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--c); flex: none; }
.st-track { display: block; width: 3px; flex: 1; margin-top: 8px; background: #D3DBEA; overflow: hidden; }
.st-fill { display: block; width: 3px; height: 100%; background: var(--c); transform-origin: top; }
.st-copy { display: flex; flex-direction: column; gap: 8px; width: 490px; }
.st-p { margin: 0; font-size: 28px; line-height: 1.3; color: #0C1F4C; }
.st-why { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid #CBD5E8; }
.st-why-h { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #394B75; }
.st-why ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.st-why li { display: flex; align-items: center; gap: 14px; font-size: 25px; line-height: 1.32; color: #0C1F4C; }
.st-why li i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #0056BF; flex: none; }

/* ---- one sentence at a time (slide 11): a paper-coloured fade on the left, big type, chapter marks ---- */
.st-fadeL { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(242,245,250,.98) 0, rgba(242,245,250,.96) 26%, rgba(242,245,250,.88) 36%, rgba(242,245,250,.5) 44%, rgba(242,245,250,0) 56%); }
.st-fadeB { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(242,245,250,.94) 0, rgba(242,245,250,.6) 55%, rgba(242,245,250,0) 100%); }
.st-abs { position: absolute; left: 112px; top: 76px; }
.st-segs { position: absolute; left: 112px; top: 300px; z-index: 2; display: flex; gap: 10px; }
.st-segs > i { display: block; width: 96px; height: 6px; border-radius: 3px; background: #CBD5E8; overflow: hidden; }
.st-seg { display: block; width: 96px; height: 6px; background: var(--c); transform-origin: left; }
.st-big { position: absolute; left: 112px; top: 344px; width: 700px; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.st-big .st-label { font-size: 26px; }
.st-big p { margin: 0; font-size: 44px; line-height: 1.2; font-weight: 500; letter-spacing: -.005em; color: #0C1F4C; }
.st-whyB { position: absolute; left: 112px; bottom: 128px; width: 640px; z-index: 2; }
.st-inset { position: absolute; right: 112px; top: 64px; width: 390px; margin: 0; z-index: 2; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 22px 44px -18px rgba(0, 48, 135, .45), 0 2px 8px rgba(0, 48, 135, .12); }
.st-inset img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) { .st-an { animation-play-state: paused; } }

/* ================= slide 10, one 16 s loop, the same clock as the 3D scene (1 s = 6.25 %) ================= */
@keyframes s10-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s10-prob { 0% { opacity: 1; } 21% { opacity: 1; } 23.5% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s10-sol { 0% { opacity: var(--dim, 0.42); } 21% { opacity: var(--dim, 0.42); } 23.5% { opacity: 1; } 69.5% { opacity: 1; } 72% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s10-out { 0% { opacity: var(--dim, 0.42); } 70% { opacity: var(--dim, 0.42); } 72.5% { opacity: 1; } 95% { opacity: 1; } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s10-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s10-node1 { 0%, 2% { background-color: transparent; } 3%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s10-node2 { 0%, 21% { background-color: transparent; } 22.5%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s10-node3 { 0%, 70.5% { background-color: transparent; } 72%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s10-line1 { 0%, 3% { transform: scaleY(0); } 21.3%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes s10-line2 { 0%, 22.5% { transform: scaleY(0); } 70.6%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
.s10-title { animation-name: s10-title; }
.s10-prob { animation-name: s10-prob; } .s10-sol { animation-name: s10-sol; } .s10-out { animation-name: s10-out; } .s10-why { animation-name: s10-why; }
.s10-prob-node { animation-name: s10-node1; } .s10-sol-node { animation-name: s10-node2; } .s10-out-node { animation-name: s10-node3; }
.s10-prob-fill { animation-name: s10-line1; } .s10-sol-fill { animation-name: s10-line2; }
section[data-stage="16"] { --dur: 16s; }

/* ---- dark variant (C): navy night, light type, glowing marks; the scrims keep the words on a calm ground ---- */
section[data-kind="stage"][data-tone="dark"] { background: #001033; color: #fff; }
.st-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(58% 70% at 66% 52%, rgba(52,118,240,.30), rgba(52,118,240,0) 72%); mix-blend-mode: screen; }
.st-vig { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130% 110% at 62% 50%, rgba(8,22,60,0) 52%, rgba(8,22,60,.34) 100%); }
.st-scrimL { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,10,40,.97) 0%, rgba(0,10,40,.93) 22%, rgba(0,10,40,.66) 34%, rgba(0,10,40,0) 50%); }
.st-scrimB { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0,10,40,.9), rgba(0,10,40,0)); }
.st-dk.st-col { width: 620px; gap: 56px; }
section[data-kind="stage"] .st-dk .st-h2 { color: #fff; }
.st-dk .st-step { padding-bottom: 34px; }
.st-dk .st-step:last-child { padding-bottom: 0; }
.st-dk .st-rail { padding-top: 6px; }
.st-dk .st-copy { width: 500px; }
.st-dk .st-p { color: #fff; font-size: 29px; }
.st-dk .st-track { background: #2B4A86; }
.st-dk .st-fill { box-shadow: 0 0 10px var(--c); }
.st-dk.st-why { border-top-color: rgba(160,190,240,.45); }
.st-dk .st-why-h, .st-dk.st-why .st-why-h { color: #A9C4F2; }
.st-dk.st-why li { color: #fff; }
.st-dk.st-why li i { background: #8FD0FF; box-shadow: 0 0 8px rgba(143,208,255,.9); }
.st-whyL { position: absolute; left: 112px; bottom: 128px; width: 600px; z-index: 2; }
.st-insetD { box-shadow: 0 0 0 1px rgba(143,208,255,.35), 0 0 40px rgba(52,118,240,.45), 0 24px 48px -16px rgba(0,8,32,.8); }

/* ================= slide 11, one 14.5 s loop (1 s = 6.9 %): Problem while the trucks just drive, Solution when the tracking starts (4.7 s), Outcome at 9.7 s ================= */
@keyframes s11-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 93% { opacity: 1; } 96.5%, 100% { opacity: 0; } }
@keyframes s11-prob { 0% { opacity: 1; } 32% { opacity: 1; } 35% { opacity: var(--dim, 0.4); } 93% { opacity: var(--dim, 0.4); } 96.5% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s11-sol { 0% { opacity: var(--dim, 0.4); } 32% { opacity: var(--dim, 0.4); } 35% { opacity: 1; } 65.5% { opacity: 1; } 69% { opacity: var(--dim, 0.4); } 93% { opacity: var(--dim, 0.4); } 96.5% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s11-out { 0% { opacity: var(--dim, 0.4); } 65.5% { opacity: var(--dim, 0.4); } 69% { opacity: 1; } 93% { opacity: 1; } 96.5% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s11-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 93% { opacity: 1; } 96.5%, 100% { opacity: 0; } }
@keyframes s11-node1 { 0%, 2% { background-color: transparent; box-shadow: none; } 3.5%, 93% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 96.5%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s11-node2 { 0%, 32% { background-color: transparent; box-shadow: none; } 34%, 93% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 96.5%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s11-node3 { 0%, 66% { background-color: transparent; box-shadow: none; } 68%, 93% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 96.5%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s11-line1 { 0%, 3.5% { transform: scaleY(0); } 33%, 93% { transform: scaleY(1); } 96.5%, 100% { transform: scaleY(0); } }
@keyframes s11-line2 { 0%, 34% { transform: scaleY(0); } 67%, 93% { transform: scaleY(1); } 96.5%, 100% { transform: scaleY(0); } }
@keyframes s11-inset { 0%, 36% { opacity: 0; transform: translateY(14px) scale(.97); } 42%, 93% { opacity: 1; transform: none; } 96.5%, 100% { opacity: 0; } }
.s11-title { animation-name: s11-title; }
.s11-prob { animation-name: s11-prob; } .s11-sol { animation-name: s11-sol; } .s11-out { animation-name: s11-out; } .s11-why { animation-name: s11-why; }
.s11-prob-node { animation-name: s11-node1; } .s11-sol-node { animation-name: s11-node2; } .s11-out-node { animation-name: s11-node3; }
.s11-prob-fill { animation-name: s11-line1; } .s11-sol-fill { animation-name: s11-line2; }
.s11-inset { animation-name: s11-inset; }
section[data-stage="14.5"] { --dur: 14.5s; }

/* ================= slide 14 (variant B), one 17 s loop (1 s = 5.9 %): Problem while the hall builds, Solution while the train is tracked (4.6 - 12.2 s), Outcome when it lies in Zone A ================= */
.st-insetK { width: 430px; top: 64px; }
.st-whyB .st-cust { position: absolute; right: 0; bottom: 2px; height: 84px; width: auto; display: block; }
@keyframes s14-head { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 94.1% { opacity: 1; } 97.1%, 100% { opacity: 0; } }
@keyframes s14-why { 0%, 10.6% { opacity: 0; transform: translateY(16px); } 14.1% { opacity: 1; transform: none; } 94.1% { opacity: 1; } 97.1%, 100% { opacity: 0; } }
@keyframes s14-prob { 0% { opacity: 0; transform: translateY(22px); } 4% { opacity: 1; transform: none; } 25.9% { opacity: 1; transform: none; } 29.4% { opacity: 0; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s14-sol { 0%, 27.1% { opacity: 0; transform: translateY(22px); } 30.6%, 71.8% { opacity: 1; transform: none; } 75.3%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s14-out { 0% { opacity: 0; transform: translateY(22px); } 73.5% { opacity: 0; transform: translateY(22px); } 77.1% { opacity: 1; transform: none; } 94.1% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s14-seg1 { 0%, 5.3% { transform: scaleX(0); } 29.4%, 94.1% { transform: scaleX(1); } 97.1%, 100% { transform: scaleX(0); } }
@keyframes s14-seg2 { 0%, 29.4% { transform: scaleX(0); } 75.3%, 94.1% { transform: scaleX(1); } 97.1%, 100% { transform: scaleX(0); } }
@keyframes s14-seg3 { 0%, 75.3% { transform: scaleX(0); } 94.1% { transform: scaleX(1); } 97.1%, 100% { transform: scaleX(0); } }
@keyframes s14-inset { 0%, 28% { opacity: 0; transform: translateY(14px) scale(.97); } 33%, 94.1% { opacity: 1; transform: none; } 97.1%, 100% { opacity: 0; } }
.s14-head { animation-name: s14-head; } .s14-why { animation-name: s14-why; }
.s14-prob { animation-name: s14-prob; } .s14-sol { animation-name: s14-sol; } .s14-out { animation-name: s14-out; }
.s14-seg1 { animation-name: s14-seg1; } .s14-seg2 { animation-name: s14-seg2; } .s14-seg3 { animation-name: s14-seg3; }
.s14-inset { animation-name: s14-inset; }
section[data-stage="17"] { --dur: 17s; }

/* ================= slide 15 (variant A), one 16 s loop (1 s = 6.25 %): Problem until the first product is selected (3.2 s), Solution while the first group is lit, Outcome with the second product (8 s) ================= */
.st-gallery { position: absolute; right: 112px; top: 64px; z-index: 2; display: flex; gap: 16px; align-items: flex-start; }
.st-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 48, 135, .45), 0 2px 8px rgba(0, 48, 135, .12); }
.st-gallery img { display: block; }
.st-gallery figure:nth-child(1) img { width: 300px; height: auto; }
.st-gallery figure:nth-child(2) img { width: 150px; height: auto; }
.st-custE { position: absolute; right: 0; bottom: 4px; height: 36px; width: auto; display: block; }
@keyframes s15-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s15-prob { 0% { opacity: 1; } 18.5% { opacity: 1; } 21% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s15-sol { 0% { opacity: var(--dim, 0.42); } 18.5% { opacity: var(--dim, 0.42); } 21% { opacity: 1; } 47.5% { opacity: 1; } 50% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s15-out { 0% { opacity: var(--dim, 0.42); } 47.5% { opacity: var(--dim, 0.42); } 50% { opacity: 1; } 95% { opacity: 1; } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s15-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s15-node1 { 0%, 2% { background-color: transparent; } 3%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s15-node2 { 0%, 19% { background-color: transparent; } 20.5%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s15-node3 { 0%, 48% { background-color: transparent; } 49.5%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s15-line1 { 0%, 3% { transform: scaleY(0); } 19.5%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes s15-line2 { 0%, 20.5% { transform: scaleY(0); } 49%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes s15-gal { 0%, 17% { opacity: 0; transform: translateY(14px) scale(.97); } 23%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.s15-title { animation-name: s15-title; }
.s15-prob { animation-name: s15-prob; } .s15-sol { animation-name: s15-sol; } .s15-out { animation-name: s15-out; } .s15-why { animation-name: s15-why; }
.s15-prob-node { animation-name: s15-node1; } .s15-sol-node { animation-name: s15-node2; } .s15-out-node { animation-name: s15-node3; }
.s15-prob-fill { animation-name: s15-line1; } .s15-sol-fill { animation-name: s15-line2; }
.s15-gallery { animation-name: s15-gal; }

/* ================= slide 16 (variant C, dark), one 16 s loop (1 s = 6.25 %): Problem until the task is started (4.6 s), Solution while the search area shrinks, Outcome when the module is found (9 s) ================= */
.st-galleryD figure:nth-child(2) img { width: 215px; height: auto; }
.st-galleryD figure { box-shadow: 0 0 0 1px rgba(143, 208, 255, .35), 0 0 36px rgba(52, 118, 240, .4), 0 22px 44px -16px rgba(0, 8, 32, .8); }
.st-custK { position: absolute; right: 0; bottom: 0; height: 52px; width: auto; display: block; background: #fff; padding: 8px 14px; border-radius: 12px; box-sizing: border-box; }
@keyframes s16-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 93.5% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s16-prob { 0% { opacity: 1; } 26.5% { opacity: 1; } 29.5% { opacity: var(--dim, 0.4); } 93.5% { opacity: var(--dim, 0.4); } 97% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s16-sol { 0% { opacity: var(--dim, 0.4); } 26.5% { opacity: var(--dim, 0.4); } 29.5% { opacity: 1; } 54.5% { opacity: 1; } 58% { opacity: var(--dim, 0.4); } 93.5% { opacity: var(--dim, 0.4); } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s16-out { 0% { opacity: var(--dim, 0.4); } 54.5% { opacity: var(--dim, 0.4); } 58% { opacity: 1; } 93.5% { opacity: 1; } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s16-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 93.5% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s16-node1 { 0%, 2% { background-color: transparent; box-shadow: none; } 3.5%, 93.5% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s16-node2 { 0%, 27% { background-color: transparent; box-shadow: none; } 29%, 93.5% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s16-node3 { 0%, 55.5% { background-color: transparent; box-shadow: none; } 57.5%, 93.5% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s16-line1 { 0%, 3.5% { transform: scaleY(0); } 28%, 93.5% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s16-line2 { 0%, 29% { transform: scaleY(0); } 56.5%, 93.5% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s16-gal { 0%, 27% { opacity: 0; transform: translateY(14px) scale(.97); } 33%, 93.5% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.s16-title { animation-name: s16-title; }
.s16-prob { animation-name: s16-prob; } .s16-sol { animation-name: s16-sol; } .s16-out { animation-name: s16-out; } .s16-why { animation-name: s16-why; }
.s16-prob-node { animation-name: s16-node1; } .s16-sol-node { animation-name: s16-node2; } .s16-out-node { animation-name: s16-node3; }
.s16-prob-fill { animation-name: s16-line1; } .s16-sol-fill { animation-name: s16-line2; }
.s16-gallery { animation-name: s16-gal; }

/* ================= slide 18 (variant B), one 18 s loop (1 s = 5.6 %): Problem while the hall builds, Solution from the pick (4 s) to the carried load, Outcome with the proximity alert (10.3 s) ================= */
.st-galleryB figure:nth-child(1) img { width: 290px; height: auto; }
.st-galleryB figure:nth-child(2) img { width: 104px; height: auto; }
.st-galleryB figure:nth-child(3) img { width: 108px; height: auto; }
@keyframes s18-head { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 93.3% { opacity: 1; } 96.1%, 100% { opacity: 0; } }
@keyframes s18-why { 0%, 10.6% { opacity: 0; transform: translateY(16px); } 14.1% { opacity: 1; transform: none; } 93.3% { opacity: 1; } 96.1%, 100% { opacity: 0; } }
@keyframes s18-prob { 0% { opacity: 0; transform: translateY(22px); } 4% { opacity: 1; transform: none; } 21.1% { opacity: 1; transform: none; } 24.4% { opacity: 0; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s18-sol { 0%, 22.2% { opacity: 0; transform: translateY(22px); } 25.6%, 55.6% { opacity: 1; transform: none; } 58.9%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s18-out { 0% { opacity: 0; transform: translateY(22px); } 57.2% { opacity: 0; transform: translateY(22px); } 60.6% { opacity: 1; transform: none; } 93.3% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s18-seg1 { 0%, 5% { transform: scaleX(0); } 24.4%, 93.3% { transform: scaleX(1); } 96.1%, 100% { transform: scaleX(0); } }
@keyframes s18-seg2 { 0%, 24.4% { transform: scaleX(0); } 58.9%, 93.3% { transform: scaleX(1); } 96.1%, 100% { transform: scaleX(0); } }
@keyframes s18-seg3 { 0%, 58.9% { transform: scaleX(0); } 93.3% { transform: scaleX(1); } 96.1%, 100% { transform: scaleX(0); } }
@keyframes s18-gal { 0%, 22% { opacity: 0; transform: translateY(14px) scale(.97); } 28%, 93.3% { opacity: 1; transform: none; } 96.1%, 100% { opacity: 0; } }
.s18-head { animation-name: s18-head; } .s18-why { animation-name: s18-why; }
.s18-prob { animation-name: s18-prob; } .s18-sol { animation-name: s18-sol; } .s18-out { animation-name: s18-out; }
.s18-seg1 { animation-name: s18-seg1; } .s18-seg2 { animation-name: s18-seg2; } .s18-seg3 { animation-name: s18-seg3; }
.s18-gallery { animation-name: s18-gal; }
section[data-stage="18"] { --dur: 18s; }

/* ================= slide 19 (variant A, mirrored: words on the right), one 16 s loop, same beats as slide 15 ================= */
.st-colR { left: auto; right: 112px; width: 640px; }
.st-colR .st-copy { width: 560px; }
section[data-kind="stage"] .st-colR .st-h2 { text-align: left; font-size: 60px; }
.st-galleryL { right: auto; left: 112px; top: 64px; }
.st-galleryL figure:nth-child(1) img { width: 236px; height: auto; }
.st-galleryL figure:nth-child(2) img { width: 330px; height: auto; }
@keyframes s19-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s19-prob { 0% { opacity: 1; } 18.5% { opacity: 1; } 21% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s19-sol { 0% { opacity: var(--dim, 0.42); } 18.5% { opacity: var(--dim, 0.42); } 21% { opacity: 1; } 47.5% { opacity: 1; } 50% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s19-out { 0% { opacity: var(--dim, 0.42); } 47.5% { opacity: var(--dim, 0.42); } 50% { opacity: 1; } 95% { opacity: 1; } 98% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s19-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes s19-node1 { 0%, 2% { background-color: transparent; } 3%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s19-node2 { 0%, 19% { background-color: transparent; } 20.5%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s19-node3 { 0%, 48% { background-color: transparent; } 49.5%, 95% { background-color: var(--c); } 98%, 100% { background-color: transparent; } }
@keyframes s19-line1 { 0%, 3% { transform: scaleY(0); } 19.5%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes s19-line2 { 0%, 20.5% { transform: scaleY(0); } 49%, 95% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes s19-gal { 0%, 17% { opacity: 0; transform: translateY(14px) scale(.97); } 23%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.s19-title { animation-name: s19-title; }
.s19-prob { animation-name: s19-prob; } .s19-sol { animation-name: s19-sol; } .s19-out { animation-name: s19-out; } .s19-why { animation-name: s19-why; }
.s19-prob-node { animation-name: s19-node1; } .s19-sol-node { animation-name: s19-node2; } .s19-out-node { animation-name: s19-node3; }
.s19-prob-fill { animation-name: s19-line1; } .s19-sol-fill { animation-name: s19-line2; }
.s19-gallery { animation-name: s19-gal; }

/* ================= slide 21 (variant C, dark), one 15 s loop (1 s = 6.67 %): Problem while the alarm runs (to 3.9 s), Solution with the badges and the dashboard, Outcome at 11.8 s ================= */
.st-galleryE { right: 112px; left: auto; top: 64px; gap: 14px; align-items: flex-start; }
.st-galleryE figure { box-shadow: 0 0 0 1px rgba(143, 208, 255, .35), 0 0 36px rgba(52, 118, 240, .4), 0 22px 44px -16px rgba(0, 8, 32, .8); }
.st-galleryE figure:nth-child(1) img { width: 190px; height: auto; }
.st-galleryE figure:nth-child(2) img { width: 120px; height: auto; }
.st-galleryE figure:nth-child(3) img { width: 224px; height: auto; }
section[data-kind="stage"] .s21 .st-h2 { font-size: 64px; }
.st-dk.st-col.s21 { width: 700px; }
@keyframes s21-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s21-prob { 0% { opacity: 1; } 24.5% { opacity: 1; } 27.5% { opacity: var(--dim, 0.4); } 94% { opacity: var(--dim, 0.4); } 97% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s21-sol { 0% { opacity: var(--dim, 0.4); } 24.5% { opacity: var(--dim, 0.4); } 27.5% { opacity: 1; } 77% { opacity: 1; } 80% { opacity: var(--dim, 0.4); } 94% { opacity: var(--dim, 0.4); } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s21-out { 0% { opacity: var(--dim, 0.4); } 77% { opacity: var(--dim, 0.4); } 80% { opacity: 1; } 94% { opacity: 1; } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s21-why { 0%, 8% { opacity: 0; transform: translateY(18px); } 12% { opacity: 1; transform: none; } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s21-node1 { 0%, 3% { background-color: transparent; box-shadow: none; } 4.5%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s21-node2 { 0%, 25.5% { background-color: transparent; box-shadow: none; } 27.5%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s21-node3 { 0%, 78% { background-color: transparent; box-shadow: none; } 79.5%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s21-line1 { 0%, 4.5% { transform: scaleY(0); } 26.5%, 94% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s21-line2 { 0%, 27.5% { transform: scaleY(0); } 78.5%, 94% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s21-gal { 0%, 22% { opacity: 0; transform: translateY(14px) scale(.97); } 28%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.s21-title { animation-name: s21-title; }
.s21-prob { animation-name: s21-prob; } .s21-sol { animation-name: s21-sol; } .s21-out { animation-name: s21-out; } .s21-why { animation-name: s21-why; }
.s21-prob-node { animation-name: s21-node1; } .s21-sol-node { animation-name: s21-node2; } .s21-out-node { animation-name: s21-node3; }
.s21-prob-fill { animation-name: s21-line1; } .s21-sol-fill { animation-name: s21-line2; }
.s21-gallery { animation-name: s21-gal; }
section[data-stage="15"] { --dur: 15s; }

/* ================= slide 22 (variant B), one 24 s loop (1 s = 4.17 %): Problem while the AGV drives in (to 8.9 s), Solution while the worker is called and unloads (to 18.2 s), Outcome with the confirmation (18.2 s) ================= */
.st-galleryF { right: auto; left: 112px; top: 604px; gap: 18px; align-items: flex-start; }
.st-galleryF figure:nth-child(1) img { width: 262px; height: 144px; object-fit: cover; object-position: 50% 0; }
.st-galleryF figure:nth-child(2) img { width: 210px; height: auto; }
@keyframes s22-head { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s22-why { 0%, 8.3% { opacity: 0; transform: translateY(16px); } 11.7% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s22-prob { 0% { opacity: 0; transform: translateY(22px); } 4% { opacity: 1; transform: none; } 35.8% { opacity: 1; transform: none; } 39% { opacity: 0; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s22-sol { 0%, 37.1% { opacity: 0; transform: translateY(22px); } 40.4%, 75% { opacity: 1; transform: none; } 78.3%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s22-out { 0% { opacity: 0; transform: translateY(22px); } 75.8% { opacity: 0; transform: translateY(22px); } 79.2% { opacity: 1; transform: none; } 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s22-seg1 { 0%, 5% { transform: scaleX(0); } 39%, 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s22-seg2 { 0%, 39% { transform: scaleX(0); } 78.3%, 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s22-seg3 { 0%, 78.3% { transform: scaleX(0); } 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s22-g1 { 0%, 7% { opacity: 0; transform: translateY(14px) scale(.97); } 12%, 95% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
@keyframes s22-g2 { 0%, 37% { opacity: 0; transform: translateY(14px) scale(.97); } 42%, 95% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
.s22-head { animation-name: s22-head; } .s22-why { animation-name: s22-why; }
.s22-prob { animation-name: s22-prob; } .s22-sol { animation-name: s22-sol; } .s22-out { animation-name: s22-out; }
.s22-seg1 { animation-name: s22-seg1; } .s22-seg2 { animation-name: s22-seg2; } .s22-seg3 { animation-name: s22-seg3; }
.s22-g1 { animation-name: s22-g1; } .s22-g2 { animation-name: s22-g2; }
section[data-stage="24"] { --dur: 24s; }
.s22-why .st-custE { top: -4px; bottom: auto; height: 46px; }

/* ================= slide 23 (variant A), one 24 s loop (1 s = 4.17 %): Problem while the AGV arrives (to 8.9 s), Solution while the worker is called and unloads (to 18.2 s), Outcome with the confirmation (18.2 s) ================= */
.st-galleryG { right: 112px; left: auto; top: 64px; gap: 14px; }
.st-galleryG figure:nth-child(1) img { width: 204px; height: auto; }
.st-galleryG figure:nth-child(2) img { width: 170px; height: auto; }
.st-col.s23 .st-copy { width: 520px; }
@keyframes s23-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s23-prob { 0% { opacity: 1; } 36.5% { opacity: 1; } 39.5% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 97.5% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s23-sol { 0% { opacity: var(--dim, 0.42); } 36.5% { opacity: var(--dim, 0.42); } 39.5% { opacity: 1; } 74% { opacity: 1; } 77% { opacity: var(--dim, 0.42); } 95% { opacity: var(--dim, 0.42); } 97.5% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s23-out { 0% { opacity: var(--dim, 0.42); } 74% { opacity: var(--dim, 0.42); } 77% { opacity: 1; } 95% { opacity: 1; } 97.5% { opacity: var(--dim, 0.42); } 100% { opacity: var(--dim, 0.42); } }
@keyframes s23-why { 0%, 7% { opacity: 0; transform: translateY(18px); } 11% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s23-node1 { 0%, 2% { background-color: transparent; } 3%, 95% { background-color: var(--c); } 97.5%, 100% { background-color: transparent; } }
@keyframes s23-node2 { 0%, 37.5% { background-color: transparent; } 39%, 95% { background-color: var(--c); } 97.5%, 100% { background-color: transparent; } }
@keyframes s23-node3 { 0%, 75.5% { background-color: transparent; } 77%, 95% { background-color: var(--c); } 97.5%, 100% { background-color: transparent; } }
@keyframes s23-line1 { 0%, 3% { transform: scaleY(0); } 38%, 95% { transform: scaleY(1); } 97.5%, 100% { transform: scaleY(0); } }
@keyframes s23-line2 { 0%, 39% { transform: scaleY(0); } 76%, 95% { transform: scaleY(1); } 97.5%, 100% { transform: scaleY(0); } }
@keyframes s23-g1 { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.97); } 13%, 95% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
@keyframes s23-g2 { 0%, 37% { opacity: 0; transform: translateY(14px) scale(.97); } 42%, 95% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
.s23-title { animation-name: s23-title; }
.s23-prob { animation-name: s23-prob; } .s23-sol { animation-name: s23-sol; } .s23-out { animation-name: s23-out; } .s23-why { animation-name: s23-why; }
.s23-prob-node { animation-name: s23-node1; } .s23-sol-node { animation-name: s23-node2; } .s23-out-node { animation-name: s23-node3; }
.s23-prob-fill { animation-name: s23-line1; } .s23-sol-fill { animation-name: s23-line2; }
.s23-g1 { animation-name: s23-g1; } .s23-g2 { animation-name: s23-g2; }
.s23-why { position: relative; }
.s23-why .st-custE { top: -4px; bottom: auto; height: 36px; }

/* ================= slide 24 (variant C, dark), one 16 s loop (1 s = 6.25 %): Problem while the worker walks to the machine (to 4.2 s), Solution while the zones are drawn and the alarm runs, Outcome when the machine runs again (10 s) ================= */
.st-galleryH { right: 112px; left: auto; top: 64px; gap: 14px; align-items: flex-start; }
.st-galleryH figure { box-shadow: 0 0 0 1px rgba(143, 208, 255, .35), 0 0 36px rgba(52, 118, 240, .4), 0 22px 44px -16px rgba(0, 8, 32, .8); }
.st-galleryH figure:nth-child(1) img { width: 280px; height: auto; }
.st-galleryH figure:nth-child(2) img { width: 220px; height: auto; }
section[data-kind="stage"] .s24 .st-h2 { font-size: 64px; }
.st-dk.st-col.s24 { width: 700px; }
.s24-why .st-custK { top: 2px; bottom: auto; height: 52px; }
@keyframes s24-title { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s24-prob { 0% { opacity: 1; } 24.5% { opacity: 1; } 27.5% { opacity: var(--dim, 0.4); } 94% { opacity: var(--dim, 0.4); } 97% { opacity: 1; } 100% { opacity: 1; } }
@keyframes s24-sol { 0% { opacity: var(--dim, 0.4); } 24.5% { opacity: var(--dim, 0.4); } 27.5% { opacity: 1; } 60% { opacity: 1; } 63% { opacity: var(--dim, 0.4); } 94% { opacity: var(--dim, 0.4); } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s24-out { 0% { opacity: var(--dim, 0.4); } 60% { opacity: var(--dim, 0.4); } 63% { opacity: 1; } 94% { opacity: 1; } 97% { opacity: var(--dim, 0.4); } 100% { opacity: var(--dim, 0.4); } }
@keyframes s24-why { 0%, 8% { opacity: 0; transform: translateY(18px); } 12% { opacity: 1; transform: none; } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes s24-node1 { 0%, 3% { background-color: transparent; box-shadow: none; } 4.5%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s24-node2 { 0%, 25.5% { background-color: transparent; box-shadow: none; } 27.5%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s24-node3 { 0%, 61.5% { background-color: transparent; box-shadow: none; } 63%, 94% { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); } 97%, 100% { background-color: transparent; box-shadow: none; } }
@keyframes s24-line1 { 0%, 4.5% { transform: scaleY(0); } 26.5%, 94% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s24-line2 { 0%, 27.5% { transform: scaleY(0); } 62%, 94% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes s24-gal { 0%, 20% { opacity: 0; transform: translateY(14px) scale(.97); } 27%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.s24-title { animation-name: s24-title; }
.s24-prob { animation-name: s24-prob; } .s24-sol { animation-name: s24-sol; } .s24-out { animation-name: s24-out; } .s24-why { animation-name: s24-why; }
.s24-prob-node { animation-name: s24-node1; } .s24-sol-node { animation-name: s24-node2; } .s24-out-node { animation-name: s24-node3; }
.s24-prob-fill { animation-name: s24-line1; } .s24-sol-fill { animation-name: s24-line2; }
.s24-gallery { animation-name: s24-gal; }

/* ================= slide 25 (variant B), one 20 s loop (1 s = 5 %): Problem while the worker walks in (to 8.8 s), Solution while he is in the zone (8.8 - 13.6 s), Outcome while he works at the drill press and leaves (13.6 s) ================= */
.st-galleryJ { right: auto; left: 112px; top: 640px; gap: 18px; align-items: flex-start; }
.st-galleryJ figure:nth-child(1) img { width: 214px; height: 120px; object-fit: cover; }
.st-galleryJ figure:nth-child(2) img { width: 214px; height: 120px; object-fit: cover; }
.s25-out p { font-size: 40px; }
.s25-why .st-custE { top: -14px; bottom: auto; height: 62px; }
@keyframes s25-head { 0% { opacity: 0; transform: translateY(16px); } 3.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s25-why { 0%, 10% { opacity: 0; transform: translateY(16px); } 13.5% { opacity: 1; transform: none; } 95% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes s25-prob { 0% { opacity: 0; transform: translateY(22px); } 4% { opacity: 1; transform: none; } 41% { opacity: 1; transform: none; } 44.5% { opacity: 0; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s25-sol { 0%, 43% { opacity: 0; transform: translateY(22px); } 46.5%, 65% { opacity: 1; transform: none; } 68.5%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes s25-out { 0% { opacity: 0; transform: translateY(22px); } 67% { opacity: 0; transform: translateY(22px); } 70.5% { opacity: 1; transform: none; } 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s25-seg1 { 0%, 3% { transform: scaleX(0); } 44.5%, 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s25-seg2 { 0%, 44.5% { transform: scaleX(0); } 68.5%, 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s25-seg3 { 0%, 68.5% { transform: scaleX(0); } 95% { transform: scaleX(1); } 97.5%, 100% { transform: scaleX(0); } }
@keyframes s25-gal { 0%, 42% { opacity: 0; transform: translateY(14px) scale(.97); } 48%, 95% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; } }
.s25-head { animation-name: s25-head; } .s25-why { animation-name: s25-why; }
.s25-prob { animation-name: s25-prob; } .s25-sol { animation-name: s25-sol; } .s25-out { animation-name: s25-out; }
.s25-seg1 { animation-name: s25-seg1; } .s25-seg2 { animation-name: s25-seg2; } .s25-seg3 { animation-name: s25-seg3; }
.s25-gallery { animation-name: s25-gal; }
section[data-stage="20"] { --dur: 20s; }

/* ===== section switcher + once-only words (all stage slides) =====
   The title, the WHY block, the pictures and the whole timeline come in ONCE when the slide arrives and then stay: only the story (the scene, the
   bright step / the sentence, the bars) follows the scene's loop. They are not synced to the scene clock (js/stage-sync.js skips "st-enter").
   Problem / Solution / Outcome are buttons: the bars above the sentence (light slides) and the steps of the timeline (the others) jump the scene to that part. */
@keyframes st-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
section[data-kind="stage"] .st-static { animation: none; }
section[data-kind="stage"].present .st-static { animation: st-enter .8s cubic-bezier(.2, .7, .2, 1) backwards; }
section[data-kind="stage"].present .st-steps.st-static, section[data-kind="stage"].present .st-segs.st-static { animation-delay: .2s; }
section[data-kind="stage"].present .st-why.st-static { animation-delay: .55s; }
section[data-kind="stage"].present .st-gallery.st-static, section[data-kind="stage"].present .st-inset.st-static, section[data-kind="stage"].present figure.st-static { animation-delay: .9s; }

.st-segs { align-items: center; }
.st-segs .st-seek { appearance: none; -webkit-appearance: none; display: flex; align-items: center; width: 96px; height: 32px; margin: -13px 0; padding: 0; border: 0; background: none; cursor: pointer; outline: none; font: inherit; color: inherit; }
.st-segs .st-seek > i { display: block; width: 100%; height: 6px; border-radius: 3px; background: #CBD5E8; overflow: hidden; transition: height .22s cubic-bezier(.2, .7, .2, 1), border-radius .22s, background-color .22s; }
.st-segs .st-seek .st-seg { width: 100%; height: 100%; }
.st-segs .st-seek:hover > i, .st-segs .st-seek:focus-visible > i { height: 14px; border-radius: 7px; background: #B3C2DE; }
.st-segs .st-seek:active > i { height: 12px; }
.st-segs .st-seek:focus-visible > i { box-shadow: 0 0 0 3px rgba(0, 86, 191, .35); }

.st-step[data-seek] { cursor: pointer; outline: none; }
.st-step[data-seek]:hover, .st-step[data-seek]:focus-visible { --dim: .85; }
.st-step[data-seek] .st-copy { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.st-step[data-seek]:hover .st-copy, .st-step[data-seek]:focus-visible .st-copy { transform: translateX(8px); }
.st-step[data-seek] .st-node { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.st-step[data-seek]:hover .st-node, .st-step[data-seek]:focus-visible .st-node { transform: scale(1.35); }
.st-step[data-seek] .st-label::after { content: "\21BB"; display: inline-block; margin-left: 12px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.st-step[data-seek]:hover .st-label::after, .st-step[data-seek]:focus-visible .st-label::after { opacity: .85; transform: none; }

/* ===== play / pause button over the picture =====
   Pointing at the picture shows a button at any time: pause while it plays, play while it is paused, play again when it has stopped after its two plays (scenes/src/main.js).
   Touch screens have no pointer to point with: the button stays visible while the picture is paused or stopped. */
section[data-kind="stage"] .st-scene { --play-x: 68%; --play-y: 52%; }
section[data-kind="stage"] .st-scene[data-scene="trolley-stock"] { --play-x: 32%; }
.st-scene .st-play { position: absolute; left: var(--play-x); top: var(--play-y); z-index: 3; width: 104px; height: 104px; margin: -52px 0 0 -52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(0, 48, 135, .86); box-shadow: 0 18px 44px rgba(0, 24, 80, .38), inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transform: scale(.82); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.st-scene .st-play svg { width: 46px; height: 46px; fill: currentColor; }
.st-scene .st-play .i-play { display: none; }
.st-scene.is-paused .st-play .i-play, .st-scene.is-frozen .st-play .i-play { display: block; }
.st-scene.is-paused .st-play .i-pause, .st-scene.is-frozen .st-play .i-pause { display: none; }
.st-scene:not(.is-live) .st-play { display: none; }
.st-scene:hover .st-play, .st-scene .st-play:focus-visible { opacity: .94; pointer-events: auto; transform: scale(.74); }          /* playing: a smaller pause button, it should not hide the story */
.st-scene.is-paused:hover .st-play, .st-scene.is-frozen:hover .st-play, .st-scene.is-paused .st-play:focus-visible, .st-scene.is-frozen .st-play:focus-visible { opacity: 1; transform: none; }
.st-scene .st-play:hover { background: #0056BF; transform: scale(.82); }
.st-scene.is-paused .st-play:hover, .st-scene.is-frozen .st-play:hover { transform: scale(1.07); }
.st-scene .st-play:focus-visible { outline: 3px solid #ECC215; outline-offset: 4px; }
section[data-tone="dark"] .st-scene .st-play { background: rgba(255, 255, 255, .16); box-shadow: 0 18px 44px rgba(0, 8, 32, .55), inset 0 0 0 2px rgba(255, 255, 255, .6); }
section[data-tone="dark"] .st-scene .st-play:hover { background: rgba(255, 255, 255, .3); }
@media (hover: none) { .st-scene.is-frozen .st-play, .st-scene.is-paused .st-play { opacity: .92; pointer-events: auto; transform: none; } }


/* Customer logos sit in the top row next to the pictures of the slide: a small white card of the same family (radius, shadow) as the pictures; --lh = height of the logo */
.st-gallery figure.st-logo, .st-inset.st-insetLogo { display: flex; align-items: center; justify-content: center; padding: 14px 20px; background: #fff; box-sizing: border-box; }
.st-gallery figure.st-logo img, .st-inset.st-insetLogo img { width: auto !important; height: var(--lh, 44px); display: block; }
.st-inset.st-insetLogo { right: 558px; top: 64px; width: auto; }


/* ================= slides 36 / 37, Market Standard vs. Zevon: a title over a 3D scene with its own cards (scenes/src/scenes/cable-compare.js). One loop = 17 s ================= */
@keyframes cmp-in { 0% { opacity: 0; transform: translateY(14px); } 4% { opacity: 1; transform: none; } 93% { opacity: 1; } 96.5%, 100% { opacity: 0; } }
.st-col.cmp { top: 52px; width: 1400px; gap: 8px; }
.st-col.cmp .cmp-eyebrow { color: #A9C4F2; font-size: 26px; }
.st-col.cmp .st-h2 { font-size: 60px; }
.cmp-eyebrow, .cmp-title { animation-name: cmp-in; }
.cmp .t-ms { color: #FF9340; }
.cmp .t-zv { color: #FFFFFF; text-shadow: 0 2px 26px rgba(0, 10, 40, .55); }            /* white, easy to read (the user, 2026-11-27) */
.cmp .t-vs { color: #C9D8F4; font-weight: 500; margin: 0 .08em; }

/* the light behind the two rooms (slide 10 has the same kind of glow): a blue pool of light under each room and a haze at the top, over the navy of the scene */
.cmp-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(30% 44% at 25% 54%, rgba(56,122,245,.40), rgba(56,122,245,0) 72%), radial-gradient(30% 44% at 75% 54%, rgba(56,122,245,.40), rgba(56,122,245,0) 72%), radial-gradient(70% 34% at 50% 0%, rgba(90,150,255,.22), rgba(90,150,255,0) 72%), radial-gradient(40% 30% at 50% 60%, rgba(40,100,230,.16), rgba(40,100,230,0) 75%); }

/* slide 9 in the dark look: three-line sentences need a tighter column than slide 10's two-line ones */
.st-dk.st-col.s10 { gap: 36px; top: 68px; } .st-dk.st-col.s10 .st-p { font-size: 27px; } .st-dk.st-col.s10 .st-step { padding-bottom: 26px; }
/* galleries (pictures with a white card) on the dark slides: the same glow as the insets */
.st-gallery.st-gG figure:not(.st-logo) { box-shadow: 0 0 0 1px rgba(143, 208, 255, .35), 0 0 36px rgba(52, 118, 240, .4), 0 22px 44px -16px rgba(0, 8, 32, .8); }
.st-gallery.st-gG figure.st-logo { box-shadow: 0 0 0 1px rgba(143, 208, 255, .25), 0 22px 44px -16px rgba(0, 8, 32, .8); }
/* slide 14 in the dark look: three-line sentences, as slide 9 */
.st-dk.st-col.s15 { gap: 36px; top: 68px; } .st-dk.st-col.s15 .st-p { font-size: 27px; } .st-dk.st-col.s15 .st-step { padding-bottom: 24px; }
/* mirrored composition (the words on the right, the diorama on the left): scrim, glow and vignette move to the other side */
section.st-mir .st-scrimL { background: linear-gradient(270deg, rgba(0,10,40,.97) 0%, rgba(0,10,40,.93) 22%, rgba(0,10,40,.66) 34%, rgba(0,10,40,0) 50%); }
section.st-mir .st-glow { background: radial-gradient(58% 70% at 34% 52%, rgba(52,118,240,.30), rgba(52,118,240,0) 72%); }
section.st-mir .st-vig { background: radial-gradient(130% 110% at 38% 50%, rgba(8,22,60,0) 52%, rgba(8,22,60,.34) 100%); }
.st-dk.st-colR { gap: 36px; } .st-dk.st-colR .st-p { font-size: 27px; } .st-dk.st-colR .st-step { padding-bottom: 24px; }
/* the one-sentence layout (variant B: slides 13, 17, 21, 24) in the dark look */
section[data-kind="stage"][data-tone="dark"] .st-h2 { color: #fff; }
section[data-kind="stage"][data-tone="dark"] .st-big p { color: #fff; }
section[data-kind="stage"][data-tone="dark"] .st-segs > i, section[data-kind="stage"][data-tone="dark"] .st-segs .st-seek > i { background: #2B4A86; }
section[data-kind="stage"][data-tone="dark"] .st-segs .st-seek:hover > i, section[data-kind="stage"][data-tone="dark"] .st-segs .st-seek:focus-visible > i { background: #3E63A8; }
section[data-kind="stage"][data-tone="dark"] .st-seg { box-shadow: 0 0 10px var(--c); }
/* slide 22 in the dark look */
.st-why.st-whyL.s23-why { position: absolute; }
.st-dk.st-col.s23 { gap: 36px; top: 68px; } .st-dk.st-col.s23 .st-p { font-size: 27px; } .st-dk.st-col.s23 .st-step { padding-bottom: 24px; }

/* ---- 2026-11-27: customer logos are WHITE logos straight on the scene, no white pill (the user: "I do not want logos on a white background") ---- */
.st-gallery figure.st-logo, .st-inset.st-insetLogo, .st-gallery.st-gG figure.st-logo { background: none; box-shadow: none !important; border: 0; padding: 0 4px; overflow: visible; backdrop-filter: none; }
.st-gallery figure.st-logo img, .st-inset.st-insetLogo img { filter: drop-shadow(0 2px 14px rgba(0, 8, 32, .8)); }

/* 2026-11-27: slide 18 (mirrored composition): the WHY block stands at the bottom of the right column, on the same line as the WHY block of the other slides (not right under the Outcome) */
.st-why.st-whyR { position: absolute; right: 112px; left: auto; bottom: 128px; width: 620px; z-index: 2; }

/* ======================================================================================================================================
   2026-11-30: ONE look for Problem / Solution / Outcome on every slide with a scene (the user + a colleague's review): the timeline at the left, all three
   steps visible, the live one bright and a vertical line fills while it plays (js/steps.js sets is-on / is-done from the clock of the scene).
   ONE Why block: heading + bullets as normal text, bottom left. Text is always at the left. Nothing is clickable, the scenes loop for ever.
   ====================================================================================================================================== */
section[data-kind="stage"] .st-step { opacity: var(--dim, .42); transition: opacity .6s ease; cursor: default; }
section[data-kind="stage"] .st-step.is-on { opacity: 1; }
section[data-kind="stage"] .st-node { background-color: transparent; transition: background-color .45s ease, box-shadow .45s ease; }
section[data-kind="stage"] .st-step.is-on .st-node { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); }
section[data-kind="stage"] .st-step.is-done .st-node { background-color: var(--c); box-shadow: none; }
section[data-kind="stage"] .st-fill { transform: scaleY(0); transform-origin: top; transition: none; }
section[data-kind="stage"] .st-step.is-on .st-fill { transform: scaleY(1); transition: transform var(--sd, 4s) linear; }
section[data-kind="stage"] .st-step.is-done .st-fill { transform: scaleY(1); transition: none; }
section[data-kind="stage"] .st-track { background: rgba(143, 168, 224, .28); }
.st-dk.st-col { width: 620px; gap: 48px; top: 76px; }
.st-dk.st-col .st-copy { width: 520px; }
.st-dk.st-col .st-p { font-size: 27px; }
.st-why.st-whyL { position: absolute; left: 112px; right: auto; bottom: 128px; width: 620px; z-index: 2; }
.st-why .st-why-h { font-size: 24px; }
.st-why li { font-size: 25px; }
.st-galleryR { left: auto; right: 112px; top: 64px; }
.st-galleryR figure:nth-child(1) img { width: 236px; height: auto; }
.st-galleryR figure:nth-child(2) img { width: 330px; height: auto; }
.st-em, section[data-kind="stage"] .st-em { background: none !important; padding: 0 !important; margin: 0 !important; }
/* the picture of slide 13 had a caption baked in ("Every hour Kanban returns to Kanban board"): the top 127 px of the 1600 x 771 picture are cropped away */
.st-insetK img { width: 100%; height: auto; aspect-ratio: 1600 / 644; object-fit: cover; object-position: 50% 100%; }
.st-gallery.st-galleryT { left: auto; right: 112px; top: 64px; }

/* ---- case slides (data-kind="case", slides 6, 7, 11, 25): the same timeline and the same Why block as the slides with a scene, text at the left, the pictures at the right ---- */
.case-grid.cs-unified { grid-template-columns: 620px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "left media"; gap: 0 56px; }
.cs-left { grid-area: left; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding-top: 8px; }
.cs-left .st-label { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.cs-left .st-p { font-size: 27px; color: #fff; }
.cs-left .st-copy { width: 520px; }
.cs-left .st-step { opacity: var(--dim, .42); transition: opacity .6s ease; }
.cs-left .st-step.is-on { opacity: 1; }
.cs-left .st-node { background-color: transparent; transition: background-color .45s ease, box-shadow .45s ease; }
.cs-left .st-step.is-on .st-node { background-color: var(--c); box-shadow: 0 0 16px 2px var(--c); }
.cs-left .st-step.is-done .st-node { background-color: var(--c); box-shadow: none; }
.cs-left .st-fill { transform: scaleY(0); transform-origin: top; transition: none; }
.cs-left .st-step.is-on .st-fill { transform: scaleY(1); transition: transform var(--sd, 5s) linear; }
.cs-left .st-step.is-done .st-fill { transform: scaleY(1); transition: none; }
.cs-left .st-track { background: rgba(143, 168, 224, .28); }
.cs-left .st-why { position: static; width: auto; }
@media (prefers-reduced-motion: no-preference) { .reveal .slides section.amb-case.present .cs-left { animation: st-enter .8s cubic-bezier(.2, .7, .2, 1) .2s backwards; } }
.cs-left .st-why .st-why-h { color: #A9C4F2; }
.cs-left .st-why { border-top-color: rgba(160, 190, 240, .45); }
.cs-left .st-why li { color: #fff; }
.cs-left .st-why li i { background: #8FD0FF; box-shadow: 0 0 8px rgba(143, 208, 255, .9); }
.st-dk.st-col { gap: 40px; top: 68px; }
.st-dk.st-col .st-step { padding-bottom: 20px; }

/* "Full case study here" on the slides with a scene: a small glass pill at the bottom right (the slides with a case-study page; the links come from the colleague's list) */
.st-steps > a.badge.st-case { position: relative; align-self: flex-start; margin: 4px 0 0 50px; z-index: 5; color: #fff; border-color: rgba(200, 225, 255, .8); background: rgba(8, 26, 80, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }       /* "Full case study here": under the Outcome of the timeline (2026-11-30) */
section[data-kind="stage"] a.badge.st-case:hover, section[data-kind="stage"] a.badge.st-case:focus-visible { background: #fff; color: var(--accent); }

/* the customer logo always comes FIRST (leftmost) in the row of pictures at the top, then the pictures (the user, 2026-11-30) */
.st-gallery figure.st-logo { order: -1; }

/* ---- 2026-11-30: a product / object picture is a CUT-OUT (transparent PNG) straight on the scene: no card, no frame, no white (the user: "remove the white background") ---- */
.st-gallery figure.st-cut { background: none; box-shadow: none !important; border: 0; padding: 0; overflow: visible; backdrop-filter: none; }
.st-gallery figure.st-cut img { filter: drop-shadow(0 14px 20px rgba(0, 8, 32, .6)); }

/* ---- slide 15: the tag and the photo of the sign are ONE picture (glass panel with the tag on the left, the photo on the right) and an arrow leads from the tag to the sign ---- */
.st-gallery figure.st-pair { position: relative; display: flex; align-items: stretch; height: 160px; background: linear-gradient(135deg, rgba(60, 120, 230, .34), rgba(10, 28, 84, .6)); }
.st-pair .pair-tag { width: 118px; flex: none; display: flex; align-items: center; justify-content: center; }
.st-gallery figure.st-pair .pair-tag img { height: 128px; width: auto; filter: drop-shadow(0 8px 12px rgba(0, 8, 32, .6)); }
.st-gallery figure.st-pair img.pair-photo { height: 160px; width: auto; flex: none; box-shadow: -1px 0 0 rgba(143, 208, 255, .35); }
.st-pair .pair-arrow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
