/* Optional, five-second explanations. No autoplay, tracking or content changes. */
.im-host{position:relative;min-width:0}
/* Native square artwork is the HTML poster as well as the animated canvas. */
.v-diagram.im-poster,.v-diagram.im-story{position:relative;padding:0!important;background:#071329!important;border:0;overflow:hidden;display:block!important;height:auto!important;aspect-ratio:1/1}
.im-poster>svg,.im-canvas,.im-canvas>.im-original{display:block;width:100%;height:100%;aspect-ratio:1/1;max-height:none!important}
.im-poster>svg,.im-canvas>.im-original{object-fit:contain}
.im-poster .v-diagram-labels,.im-story .v-diagram-labels{display:none!important}
.im-poster>figcaption,.im-story>figcaption{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;margin:0;color:#bdd5f5!important;font:500 10px/1.4 Montserrat,Arial,sans-serif;pointer-events:none}
.im-canvas{position:relative;min-width:0;background:#071329}
.im-original{transition:none!important}
.im-scenes{position:absolute;inset:0;pointer-events:none;visibility:hidden;background:#071329}
.im-scene{position:absolute;inset:0;display:block;visibility:hidden;overflow:hidden;background:#071329}
.im-scene>svg{display:block;width:100%;height:100%;max-height:none!important}
.im-story.im-started .im-original{opacity:0}
.im-story.im-started .im-scenes,.im-scene.im-selected{visibility:visible}
.im-open{position:absolute;inset:0;display:block;z-index:2}
.im-open:focus-visible{outline:3px solid #5ee8e5;outline-offset:-4px}
.im-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* One stable icon, no visible text or numbered control strip. */
.im-controls{display:flex;justify-content:flex-end;align-items:center;grid-column:1/-1;position:relative;margin:8px 0 0;padding:0;min-width:0;z-index:3}
.im-story>.im-controls{position:absolute;top:10px;right:10px;margin:0}
.im-host .im-toggle,.im-host .r-animation-toggle.im-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #91a7d0;border-radius:50%;background:#fff;color:#17366f!important;cursor:pointer;flex:0 0 44px;box-shadow:none}
.im-host .im-toggle>svg{width:21px;height:21px;max-height:none;display:block;pointer-events:none;fill:none}
.im-story .im-toggle{background:#13294a;border-color:#5d789b;color:#def4ff!important}
.im-host .im-toggle:hover{border-color:#3659e7;background:#e8f0ff}
.im-story .im-toggle:hover{border-color:#74d9f4;background:#1b395e}
.im-host .im-toggle:focus-visible{outline:3px solid #3659e7;outline-offset:3px}
.im-story .im-toggle:focus-visible,.section--dark .im-toggle:focus-visible,.pv-map .im-toggle:focus-visible,.v-process-section .im-toggle:focus-visible,.v-contact-aside .im-toggle:focus-visible{outline-color:#5ee8e5}
.im-host [hidden]{display:none!important}
.im-sequence-wrap{min-width:0}.im-host .r-motion-note{display:none!important}
.im-sequence-target{transition:none!important}.im-sequence-target.im-selected{outline:2px solid #3659e7;outline-offset:4px;border-radius:8px}.pv-map-node.im-selected{outline:none}.pv-map-node.im-selected>rect{stroke:#5ee8e5;stroke-width:4px}.v-process-section .im-sequence-target.im-selected,.v-contact-aside .im-sequence-target.im-selected{outline-color:#5ee8e5}.r-call-compare--ai li.im-selected{outline-color:#d8ff70}.r-call-hub.im-selected,.r-call-branches.im-selected,.r-call-lead.im-selected{outline:none}.r-call-hub.im-selected circle{stroke:#3659e7;stroke-width:6px}.r-call-branches.im-selected .r-call-branch{stroke:#3659e7;stroke-width:4px}.r-call-lead.im-selected>circle:first-child{stroke:#3659e7;stroke-width:4px}.pv-evidence-card .im-sequence-target.im-selected{outline-offset:5px}.pv-stat-scope.im-selected,.pv-stat-copy.im-selected,.pv-evidence-takeaway.im-selected{background:#e3efff}.pv-stat-scope.im-selected,.pv-stat-copy.im-selected{box-shadow:0 0 0 7px #e3efff}.pv-stat-copy{transition:none}
/* Each active scene is a bounded, scrubbed visual sequence, never an endless loop. */
.im-scene.im-selected .im-draw{animation:im-line .35s both;animation-delay:calc(var(--im-delay,0s) * .16);animation-play-state:paused}.im-scene.im-selected .im-enter{animation:im-appear .28s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--im-delay,0s) * .16);animation-play-state:paused}.im-scene.im-selected .im-packet{animation:im-transfer .65s both;animation-delay:calc(var(--im-delay,0s) * .16);animation-play-state:paused;transform-box:view-box;transform-origin:0 0}
@keyframes im-line{from{stroke-dasharray:1;stroke-dashoffset:1}to{stroke-dasharray:1;stroke-dashoffset:0}}@keyframes im-appear{0%{opacity:0;transform:translateY(2px)}100%{opacity:1;transform:translateY(0)}}@keyframes im-transfer{0%{transform:translateX(0);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateX(190px);opacity:0}}

@media(prefers-reduced-motion:reduce){.im-scene *{animation:none!important;transition:none!important}.im-scenes{display:none!important}.im-story .im-original{opacity:1!important}.im-sequence-target{outline:none!important}.im-host .im-toggle{display:none!important}}
.im-static-scenes .im-draw,.im-static-scenes .im-enter,.im-static-scenes .im-packet,.im-static-scenes .im-depth{animation:none!important}.im-static-scenes .im-draw{stroke-dasharray:none;stroke-dashoffset:0}.im-static-scenes .im-enter{opacity:1}
/* A single foreground layer settles toward the viewer; the scene remains steady. */
.im-scene.im-selected .im-depth{animation:im-camera .45s cubic-bezier(.22,1,.36,1) both;animation-play-state:paused;transform-box:fill-box;transform-origin:center}.im-static-scenes .im-depth{transform:none;opacity:1}
@keyframes im-camera{from{transform:translateY(4px) scale(.97);opacity:.92}to{transform:translateY(0) scale(1);opacity:1}}

/* Shared camera progress is scrubbed by the same clock as Pause/Replay. */
.im-story .im-scene.im-selected>svg{transform:translateX(calc(var(--im-camera,0) * -2px)) scale(calc(1 + var(--im-camera,0) * .03));transform-origin:50% 50%}.im-static-scenes .im-scene>svg{transform:none!important}
