@charset "UTF-8";

/*
 * Motion emphasis contract
 * ------------------------
 * Loaded after automation-scene.css, journey-catalogue.css and motion-services.css.
 * The shared scene controller only needs to toggle .is-visible (and may toggle
 * .is-paused). Illustrations loop while visible; without JavaScript, the complete
 * illustration remains visible in its resting state.
 */

/* AUTOMATION: visible workflow routes, staged nodes and repeating packets. */
.service-scene.scene-automation .au-flow {
  z-index: 0;
  pointer-events: none;
}
.service-scene.scene-automation .au-route {
  stroke: #1e6fe8;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.service-scene.scene-automation .au-node,
.service-scene.scene-automation .au-output {
  z-index: 1;
}
.service-scene.scene-automation .au-node.sv-motion {
  animation: none;
  border-color: #c7d9f1;
  background: rgba(255, 255, 255, .96);
  color: inherit;
}
.service-scene.scene-automation .au-pulse.sv-motion {
  animation: none;
  opacity: .9;
  transform: none;
  filter: drop-shadow(0 0 4px rgba(30, 111, 232, .32));
}
.service-scene.scene-automation .au-ai-halo.sv-motion {
  animation: none;
  opacity: .42;
  transform: translate(-50%, -50%) scale(1);
}

/* The controller starts this draw only after the scene enters the viewport. */
.service-scene.scene-automation.is-visible .au-route.sv-motion {
  animation: au-route-draw 3s cubic-bezier(.22, .7, .25, 1) 0s 1 both;
}
.service-scene.scene-automation.is-visible .au-node--input.sv-motion {
  animation: au-node-highlight 1.5s ease-in-out 0s 1 both;
}
.service-scene.scene-automation.is-visible .au-node--ai.sv-motion {
  animation: au-node-highlight 1.5s ease-in-out .45s 1 both;
}
.service-scene.scene-automation.is-visible .au-node--validation.sv-motion {
  animation: au-node-highlight 1.5s ease-in-out .9s 1 both;
}
.service-scene.scene-automation.is-visible .au-ai-halo.sv-motion {
  animation: au-halo-breathe 2.6s ease-in-out 0s 1 both;
}
.service-scene.scene-automation.is-visible .au-pulse--input.sv-motion {
  animation: au-packet-input 1s ease-out 0s 1 both;
}
.service-scene.scene-automation.is-visible .au-pulse--main.sv-motion {
  animation: au-packet-main 1s ease-out .8s 1 both;
}
.service-scene.scene-automation.is-visible .au-pulse--upper.sv-motion {
  animation: au-packet-upper 1s ease-out 1.6s 1 both;
}
.service-scene.scene-automation.is-visible .au-pulse--lower.sv-motion {
  animation: au-packet-lower 1s ease-out 1.6s 1 both;
}

@keyframes au-route-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes au-node-highlight {
  0%, 100% {
    border-color: #c7d9f1;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 24px rgba(31, 81, 143, .1);
  }
  15%, 62% {
    border-color: #185bbb;
    background: #e8f2ff;
    box-shadow: 0 0 0 3px rgba(30, 111, 232, .13), 0 14px 28px rgba(24, 91, 187, .16);
  }
}
@keyframes au-halo-breathe {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(1); }
  42%, 68% { opacity: .66; transform: translate(-50%, -50%) scale(1.035); }
}
@keyframes au-packet-input {
  0% { opacity: .9; transform: translate(0, 0) scale(.75); }
  18%, 82% { opacity: 1; transform: translate(85px, 0) scale(1); }
  100% { opacity: .9; transform: translate(170px, 0) scale(.82); }
}
@keyframes au-packet-main {
  0% { opacity: .9; transform: translate(0, 0) scale(.75); }
  82% { opacity: 1; transform: translate(60px, 0) scale(1); }
  100% { opacity: .9; transform: translate(74px, 0) scale(.82); }
}
@keyframes au-packet-upper {
  0% { opacity: .9; transform: translate(0, 0) scale(.75); }
  82% { opacity: 1; transform: translate(75px, -48px) scale(1); }
  100% { opacity: .9; transform: translate(116px, -69px) scale(.82); }
}
@keyframes au-packet-lower {
  0% { opacity: .9; transform: translate(0, 0) scale(.75); }
  82% { opacity: 1; transform: translate(75px, 48px) scale(1); }
  100% { opacity: .9; transform: translate(116px, 69px) scale(.82); }
}

/* JOURNEY: desktop connector, traveller and four stepped icons. */
.service-scene.scene-journey .jc-journey-flow {
  position: relative;
  z-index: 1;
}
.service-scene.scene-journey .jc-journey-step {
  position: relative;
  z-index: 1;
}
.service-scene.scene-journey .jc-journey-icon.sv-motion {
  position: relative;
  z-index: 1;
  color: #1e6fe8;
  background: #fff;
  border-color: #bdd3f1;
  transform: none;
  animation: none;
}
.service-scene.scene-journey .jc-journey-node.sv-motion {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
  animation: none;
}
.service-scene.scene-journey .jc-journey-line.sv-motion {
  z-index: 0;
  height: 3px;
  overflow: visible;
  opacity: 1;
  background: #a9c8ef;
  transform: scaleX(1);
  transform-origin: left center;
  animation: none;
}
.service-scene.scene-journey .jc-journey-line.sv-motion::after {
  display: none;
  animation: none;
}
.service-scene.scene-journey .jc-journey-traveller.sv-motion {
  position: absolute;
  top: 65px;
  left: 10%;
  z-index: 2;
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #185bbb;
  box-shadow: 0 0 0 2px rgba(30, 111, 232, .16);
  opacity: 1;
  transform: none;
  animation: none;
}

.service-scene.scene-journey.is-visible .jc-journey-icon.sv-motion {
  animation: jc-icon-step 1.8s ease-in-out var(--jc-icon-delay, 0s) 1 both;
}
.service-scene.scene-journey.is-visible .jc-journey-line.sv-motion {
  animation: jc-line-progress 3s ease-out 0s 1 both;
}
.service-scene.scene-journey.is-visible .jc-journey-traveller.sv-motion {
  animation: jc-traveller 2.8s linear .2s 1 both;
}
.scene-journey .jc-journey-step:nth-child(1) .jc-journey-icon { --jc-icon-delay: 0s; }
.scene-journey .jc-journey-step:nth-child(2) .jc-journey-icon { --jc-icon-delay: .65s; }
.scene-journey .jc-journey-step:nth-child(3) .jc-journey-icon { --jc-icon-delay: 1.3s; }
.scene-journey .jc-journey-step:nth-child(4) .jc-journey-icon { --jc-icon-delay: 1.95s; }

@keyframes jc-icon-step {
  0%, 100% {
    border-color: #bdd3f1;
    background: #fff;
    color: #1e6fe8;
    transform: translateY(0) scale(1);
  }
  18%, 64% {
    border-color: #185bbb;
    background: #185bbb;
    color: #fff;
    transform: translateY(-6px) scale(1.06);
  }
}
@keyframes jc-line-progress {
  from { opacity: 1; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes jc-traveller {
  from { left: 10%; opacity: 1; }
  to { left: calc(90% - 8px); opacity: 1; }
}

/* Shared controller contract: pause/run applies to every marked element and pseudo. */
.service-scene.scene-automation .sv-motion,
.service-scene.scene-automation .sv-motion::before,
.service-scene.scene-automation .sv-motion::after,
.service-scene.scene-journey .sv-motion,
.service-scene.scene-journey .sv-motion::before,
.service-scene.scene-journey .sv-motion::after { animation-play-state: paused; }
.service-scene.scene-automation.is-visible .sv-motion,
.service-scene.scene-automation.is-visible .sv-motion::before,
.service-scene.scene-automation.is-visible .sv-motion::after,
.service-scene.scene-journey.is-visible .sv-motion,
.service-scene.scene-journey.is-visible .sv-motion::before,
.service-scene.scene-journey.is-visible .sv-motion::after { animation-play-state: running; }
.service-scene.scene-automation.is-paused .sv-motion,
.service-scene.scene-automation.is-paused .sv-motion::before,
.service-scene.scene-automation.is-paused .sv-motion::after,
.service-scene.scene-journey.is-paused .sv-motion,
.service-scene.scene-journey.is-paused .sv-motion::before,
.service-scene.scene-journey.is-paused .sv-motion::after { animation-play-state: paused; }

/* Compact journey remains a 2x2 route rather than a very tall single column. */
@media (max-width: 760px) {
  .service-scene.scene-journey .jc-journey-line.sv-motion,
  .service-scene.scene-journey .jc-journey-traveller.sv-motion { display: none; }
}
@media (max-width: 460px) {
  .service-scene.scene-journey .jc-journey-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 8%; }
  .service-scene.scene-journey .jc-journey-stage { padding-top: 28px; padding-bottom: 34px; }
  .service-scene.scene-journey .jc-journey-step h4 { font-size: 16px; }
  .service-scene.scene-journey .jc-journey-icon { width: 42px; height: 42px; margin-bottom: 8px; }
  .service-scene.scene-journey .jc-journey-icon svg { width: 22px; height: 22px; }
}

/* Reduced motion keeps the complete composition visible, without a flash or pulse. */
@media (prefers-reduced-motion: reduce) {
  .service-scene.scene-automation .sv-motion,
  .service-scene.scene-automation .sv-motion::before,
  .service-scene.scene-automation .sv-motion::after,
  .service-scene.scene-journey .sv-motion,
  .service-scene.scene-journey .sv-motion::before,
  .service-scene.scene-journey .sv-motion::after { animation: none !important; transition: none !important; }
  .service-scene.scene-automation .au-route { stroke-dashoffset: 0; opacity: 1; }
  .service-scene.scene-automation .au-pulse.sv-motion { opacity: .9; transform: none; }
  .service-scene.scene-automation .au-ai-halo.sv-motion { opacity: .42; transform: translate(-50%, -50%) scale(1); }
  .service-scene.scene-journey .jc-journey-icon.sv-motion { transform: none; opacity: 1; }
  .service-scene.scene-journey .jc-journey-line.sv-motion { opacity: 1; transform: scaleX(1); }
  .service-scene.scene-journey .jc-journey-traveller.sv-motion { left: 10%; opacity: 1; }
}
