/* Neoo Platform motion layer — pairs with scripts/generate-neoo-platform.mjs and neoo-platform-motion.js.
   Night-native (the page always carries the fusion palette): selectors start with #main so they outrank the
   generated fusion families. The markup is the final state; every animation lives under html.npl-motion,
   which neoo-platform-motion.js sets only without prefers-reduced-motion. Without JS, everything is complete. */

#main {
  --npl-ease: cubic-bezier(.22, 1, .36, 1);
  --npl-cycle: 10s;
  --npl-amber: #f0b35c;
  --npl-violet: #a89cff;
  --npl-green: #34c48f;
  --npl-cyan: #83dcff;
}

/* ---------- Hero: copy left, live scene right ---------- */

#main .npl-hero .npx-static__layout {
  min-height: min(86svh, 880px);
  padding: 56px 0 112px;
  align-items: center;
}

#main .npl-hero .npx-static__media {
  opacity: .3;
}

#main .npl-hero .npx-static__title {
  text-wrap: balance;
}

#main .npl-hero .npx-static__lead {
  max-width: 600px;
  font-size: clamp(17px, 1.45vw, 21px);
}

#main .npl-hero .npl-film-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

@media (min-width: 1024px) {
  /* The product system sizes every hero H1 with var(--cb-title-hero) !important; the split hero scales that token. */
  #main .npl-hero {
    --cb-title-hero: clamp(2.6rem, 4vw, 3.6rem);
  }

  #main .npl-hero .npx-static__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: clamp(40px, 5vw, 80px);
  }

  #main .npl-hero .npx-static__copy {
    max-width: none;
  }
}

@media (max-width: 1023px) {
  #main .npl-hero .npl-live {
    width: min(100%, 620px);
    margin-top: 44px;
  }
}

/* Where the scroll intro is unavailable (the five static gates of neoo-platform.css), no room is kept for its button. */
@media (max-width: 720px),
       (orientation: portrait) and (max-width: 1024px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
       (prefers-reduced-motion: reduce) {
  #main .npl-hero .npx-static__layout {
    padding-bottom: 56px;
  }
}

/* The optional scroll intro stays reachable from the bottom edge of the hero, quieter than the two actions. */
#main .np-heroes > [data-npx-film-controls] {
  position: relative;
  z-index: 3;
  margin-top: -80px;
  padding-bottom: 28px;
}

#main .np-heroes [data-npx-film-toggle] {
  min-height: 44px;
  padding: 0 18px 0 16px;
  gap: 10px;
  border: 1px solid var(--nf-line-strong, rgba(255, 255, 255, .18));
  border-radius: 999px;
  color: var(--nf-text-2, #b7bfd6);
  background: rgba(16, 17, 27, .55);
  box-shadow: none;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

#main .np-heroes [data-npx-film-toggle]::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: "";
}

#main .np-heroes [data-npx-film-toggle][aria-expanded="true"]::before {
  width: 9px;
  height: 10px;
  border: 0;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

#main .np-heroes [data-npx-film-toggle]:hover {
  color: var(--nf-text, #f2f4fb);
  border-color: var(--nf-link, #a89cff);
}

/* The closing section is centred: its "not ready yet" line follows. */
#main .np-final .neoo-try-alt {
  text-align: center;
}

/* Section titles avoid one-word last lines. */
#main .np-section-heading h2,
#main .np-final h2 {
  text-wrap: balance;
}

@media (min-width: 901px) {
  #main .np-ecosystem__branches a {
    min-height: 232px;
  }
}

/* ---------- The live scene (600 × 480 geometry shared with the generator) ---------- */

#main .npl-live {
  position: relative;
  min-width: 0;
  margin: 0;
  container: npl / inline-size;
}

#main .npl-live__scene {
  position: relative;
  aspect-ratio: 600 / 480;
  color: var(--nf-text, #f2f4fb);
  font-size: clamp(11px, 2.3cqi, 14px);
  line-height: 1.25;
}

#main .npl-live__scene::before {
  position: absolute;
  inset: 8% 20% 8% 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 88, 255, .34), rgba(77, 125, 255, .12) 45%, transparent 70%);
  content: "";
  filter: blur(18px);
  pointer-events: none;
}

#main .npl-live__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#main .npl-live__wires path {
  fill: none;
  stroke: rgba(150, 165, 255, .42);
  stroke-dasharray: .018 .014;
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

#main .npl-live__wires path.npl-comet,
#main .np-business-map__canvas > svg path.npl-comet,
#main .npl-tree path.npl-comet {
  stroke: #b8f0ff;
  stroke-dasharray: .14 1;
  stroke-dashoffset: .14;
  stroke-width: 2.6;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(131, 220, 255, .9));
  /* Dash lengths follow pathLength only in user space: no non-scaling stroke on travelling comets. */
  vector-effect: none;
}

#main .npl-live__sources,
#main .npl-live__map ul,
#main .npl-live__cascade {
  margin: 0;
  padding: 0;
  list-style: none;
}

#main .npl-live__sources {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
}

#main .npl-live__source {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  min-width: 0;
  padding: .72em .8em;
  align-items: center;
  gap: .55em;
  border: 1px solid rgba(150, 165, 255, .26);
  border-radius: .9em;
  background: rgba(22, 26, 43, .86);
  box-shadow: 0 10px 26px rgba(2, 4, 16, .35);
  font-weight: 600;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

#main .npl-live__source--1 { top: 17.5%; }
#main .npl-live__source--2 { top: 39.17%; }
#main .npl-live__source--3 { top: 60.83%; }
#main .npl-live__source--4 { top: 82.5%; }

#main .npl-live__source span,
#main .npl-live__node span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#main .npl-live svg:not(.npl-live__wires) {
  flex: 0 0 auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#main .npl-live__source svg {
  width: 1.3em;
  height: 1.3em;
  stroke: var(--npl-cyan);
  stroke-width: 1.7;
}

#main .npl-live__map {
  position: absolute;
  top: 50%;
  left: 33.33%;
  width: 33.34%;
  padding: 1em .9em .95em;
  border: 1px solid rgba(139, 167, 255, .5);
  border-radius: 1.2em;
  background:
    radial-gradient(circle at 50% 0%, rgba(106, 88, 255, .32), transparent 62%),
    linear-gradient(160deg, #1d2257, #0d1031);
  box-shadow: 0 0 0 1px rgba(106, 88, 255, .12), 0 24px 60px rgba(25, 31, 120, .45);
  transform: translateY(-50%);
}

#main .npl-live__map p {
  margin: 0 0 .85em;
  color: #a9b5e6;
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

#main .npl-live__map ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5em;
}

#main .npl-live__node {
  position: relative;
  display: grid;
  min-width: 0;
  padding: .75em .3em .7em;
  justify-items: center;
  gap: .4em;
  border: 1px solid rgba(150, 165, 255, .22);
  border-radius: .8em;
  background: rgba(255, 255, 255, .05);
  font-size: .84em;
  font-weight: 600;
  text-align: center;
}

#main .npl-live__node svg {
  width: 1.55em;
  height: 1.55em;
  stroke: var(--npl-violet);
  stroke-width: 1.6;
}

#main .npl-live__node--signal {
  border-color: rgba(240, 179, 92, .8);
  box-shadow: 0 0 0 3px rgba(240, 179, 92, .14), 0 0 22px rgba(240, 179, 92, .2);
}

#main .npl-live__node--signal svg {
  stroke: var(--npl-amber);
}

#main .npl-live__alert {
  position: absolute;
  top: .5em;
  right: .5em;
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--npl-amber);
  box-shadow: 0 0 0 .3em rgba(240, 179, 92, .22);
}

#main .npl-live__cascade {
  position: absolute;
  top: 0;
  right: 0;
  left: 72%;
  height: 100%;
}

#main .npl-live__step {
  position: absolute;
  right: 0;
  left: 0;
  padding: .7em .85em .75em;
  border: 1px solid;
  border-radius: .9em;
  background: rgba(20, 23, 39, .94);
  box-shadow: 0 12px 30px rgba(2, 4, 16, .4);
  transform: translateY(-50%);
}

#main .npl-live__step small {
  display: block;
  font-size: .66em;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

#main .npl-live__step strong {
  display: block;
  margin-top: .3em;
  color: var(--nf-text, #f2f4fb);
  font-size: .95em;
  font-weight: 600;
  line-height: 1.25;
}

#main .npl-live__step--signal { top: 27.08%; border-color: rgba(240, 179, 92, .62); }
#main .npl-live__step--signal small { color: var(--npl-amber); }
#main .npl-live__step--decision { top: 50%; border-color: rgba(168, 156, 255, .62); }
#main .npl-live__step--decision small { color: var(--npl-violet); }
#main .npl-live__step--action { top: 72.92%; padding-right: 2.4em; border-color: rgba(52, 196, 143, .62); }
#main .npl-live__step--action small { color: var(--npl-green); }

#main .npl-live__check {
  position: absolute;
  top: 50%;
  right: .7em;
  width: 1.3em;
  height: 1.3em;
  stroke: var(--npl-green);
  stroke-width: 2.4;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  transform: translateY(-50%);
}

#main .npl-live__caption {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--nf-text-3, #8b94b0);
  font-size: 12.5px;
  letter-spacing: .02em;
}

#main .npl-live__toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--nf-line-strong, rgba(255, 255, 255, .18));
  border-radius: 50%;
  color: var(--nf-text, #f2f4fb);
  background: rgba(22, 26, 43, .8);
  cursor: pointer;
}

#main .npl-live__toggle[hidden] {
  display: none;
}

#main .npl-live__toggle:hover {
  border-color: var(--nf-link, #a89cff);
}

#main .npl-live__toggle:focus-visible {
  outline: 2px solid var(--nf-focus, #b9c8ff);
  outline-offset: 3px;
}

#main .npl-live__toggle svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
}

#main .npl-live__toggle svg.npl-live__icon-pause {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

#main .npl-live__toggle svg.npl-live__icon-play {
  fill: currentColor;
  stroke: none;
  visibility: hidden;
}

#main .npl-live.is-paused .npl-live__toggle svg.npl-live__icon-pause { visibility: hidden; }
#main .npl-live.is-paused .npl-live__toggle svg.npl-live__icon-play { visibility: visible; }

/* Phones and narrow columns: the same story stacked, without wires. */
@container npl (max-width: 419px) {
  #main .npl-live__scene {
    display: grid;
    aspect-ratio: auto;
    gap: 12px;
    font-size: 13px;
  }

  #main .npl-live__scene::before,
  #main .npl-live__wires {
    display: none;
  }

  #main .npl-live__sources,
  #main .npl-live__map,
  #main .npl-live__cascade {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
  }

  #main .npl-live__sources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #main .npl-live__source,
  #main .npl-live__step {
    position: relative;
    top: auto;
    transform: none;
  }

  #main .npl-live__map ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #main .npl-live__node {
    padding: .7em .2em .65em;
    font-size: .78em;
  }

  #main .npl-live__cascade {
    display: grid;
    gap: 8px;
  }

  #main .npl-live__map::after,
  #main .npl-live__sources::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 1px;
    height: 12px;
    background: rgba(150, 165, 255, .5);
    content: "";
  }
}

/* ---------- Problem: the four fragments get connected (four-column layout only) ---------- */

#main .npl-weave {
  position: relative;
  display: none;
  height: 64px;
}

#main .npl-weave svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#main .npl-weave path {
  fill: none;
  stroke: rgba(168, 156, 255, .62);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-width: 1.5;
}

#main .npl-weave__knot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--nf-accent, #6a58ff);
  box-shadow: 0 0 0 6px rgba(106, 88, 255, .2), 0 0 26px rgba(106, 88, 255, .75);
}

@media (min-width: 1181px) {
  #main .npl-weave {
    display: block;
  }

  #main .npl-weave + .np-problem__bridge {
    margin-top: 0;
  }

  /* The scenario thread now starts and ends on the first and last numbered dots. */
  #main .np-scenario__timeline::before {
    right: calc(25% - 35.5px);
    left: 22px;
  }
}

/* ---------- Process: one rail lights the four steps ---------- */

#main .npl-process {
  position: relative;
}

#main .npl-rail {
  position: absolute;
  z-index: 1;
  top: -1px;
  right: 0;
  left: 0;
  display: none;
  height: 2px;
  background: linear-gradient(90deg, var(--nf-blue, #4d7dff), var(--npl-cyan), var(--nf-accent, #6a58ff));
  box-shadow: 0 0 14px rgba(131, 220, 255, .45);
  pointer-events: none;
  transform-origin: left center;
}

@media (min-width: 1181px) {
  #main .npl-rail {
    display: block;
  }
}

/* ---------- Map: a breathing ring on the customer ---------- */

/* Opaque bases so links and comets pass under the customer and the six objects instead of through them. */
#main .np-business-map__center {
  background-color: #141a5c;
}

#main .np-business-map__node {
  background-color: rgba(21, 26, 86, .96);
}


#main .np-business-map__center::after {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(131, 220, 255, .65);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
}

/* ---------- Ecosystem: a drawn tree replaces the U-shaped frame ---------- */

#main .npl-tree {
  height: 64px;
}

#main .npl-tree svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#main .npl-tree path {
  fill: none;
  stroke: rgba(150, 165, 255, .42);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-width: 1.5;
}

#main .npl-tree + .np-ecosystem__branches {
  margin-top: 0;
}

#main .npl-tree + .np-ecosystem__branches::before {
  display: none;
}

#main .np-ecosystem__branches a h3 {
  color: var(--nf-text, #f2f4fb);
}

#main .np-ecosystem__branches a p {
  color: var(--nf-text-2, #b7bfd6);
}

#main .np-ecosystem__branches a:hover h3 {
  color: var(--nf-link, #a89cff);
}

@media (max-width: 900px) {
  #main .npl-tree {
    display: none;
  }

  #main .npl-tree + .np-ecosystem__branches {
    margin-top: 20px;
  }
}

/* =====================================================================================
   Motion (html.npl-motion only). Loops run while .is-live (on screen, tab visible);
   one-shot entrances wait for .is-in. Hero cycle: 0–6 % reset, 6–28 % sources feed the map,
   28–40 % signal, 40–56 % decision, 56–70 % approved action, 70–100 % hold.
   ===================================================================================== */

html.npl-motion #main .npl-live__source,
html.npl-motion #main .npl-live__map,
html.npl-motion #main .npl-live__node--signal,
html.npl-motion #main .npl-live__alert,
html.npl-motion #main .npl-live__step,
html.npl-motion #main .npl-live__check,
html.npl-motion #main .npl-live__wires path.npl-comet {
  animation-duration: var(--npl-cycle);
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  animation-timing-function: ease-in-out;
}

html.npl-motion #main .npl-live.is-live:not(.is-paused) :is(.npl-live__source, .npl-live__map, .npl-live__node--signal, .npl-live__alert, .npl-live__step, .npl-live__check, .npl-comet) {
  animation-play-state: running;
}

html.npl-motion #main .npl-live__source { animation-name: npl-source; }
html.npl-motion #main .npl-live__source--2 { animation-delay: .15s; }
html.npl-motion #main .npl-live__source--3 { animation-delay: .3s; }
html.npl-motion #main .npl-live__source--4 { animation-delay: .45s; }

html.npl-motion #main .npl-live__wires path.npl-comet { animation-name: npl-comet-feed; animation-timing-function: linear; }
html.npl-motion #main .npl-live__wires path.npl-comet--2 { animation-delay: .15s; }
html.npl-motion #main .npl-live__wires path.npl-comet--3 { animation-delay: .3s; }
html.npl-motion #main .npl-live__wires path.npl-comet--4 { animation-delay: .45s; }
html.npl-motion #main .npl-live__wires path.npl-comet--5 { animation-name: npl-comet-signal; }
html.npl-motion #main .npl-live__wires path.npl-comet--6 { animation-name: npl-comet-decision; }
html.npl-motion #main .npl-live__wires path.npl-comet--7 { animation-name: npl-comet-action; }

html.npl-motion #main .npl-live__map { animation-name: npl-map; }
html.npl-motion #main .npl-live__node--signal { animation-name: npl-node-signal; }
html.npl-motion #main .npl-live__alert { animation-name: npl-alert; }
html.npl-motion #main .npl-live__step--signal { animation-name: npl-step-signal; }
html.npl-motion #main .npl-live__step--decision { animation-name: npl-step-decision; }
html.npl-motion #main .npl-live__step--action { animation-name: npl-step-action; }
html.npl-motion #main .npl-live__check { animation-name: npl-check; }

@keyframes npl-source {
  0%, 8%, 22%, 100% { border-color: rgba(150, 165, 255, .26); box-shadow: 0 10px 26px rgba(2, 4, 16, .35); }
  12% { border-color: rgba(131, 220, 255, .85); box-shadow: 0 0 0 3px rgba(131, 220, 255, .14), 0 0 26px rgba(131, 220, 255, .35); }
}

@keyframes npl-comet-feed {
  0%, 9% { stroke-dashoffset: .14; opacity: 0; }
  9.5%, 23% { opacity: 1; }
  24% { stroke-dashoffset: -1; opacity: 0; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-comet-signal {
  0%, 29% { stroke-dashoffset: .14; opacity: 0; }
  29.5%, 37% { opacity: 1; }
  38%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-comet-decision {
  0%, 45% { stroke-dashoffset: .14; opacity: 0; }
  45.5%, 51% { opacity: 1; }
  52%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-comet-action {
  0%, 59% { stroke-dashoffset: .14; opacity: 0; }
  59.5%, 65% { opacity: 1; }
  66%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-map {
  0%, 20%, 36%, 100% { box-shadow: 0 0 0 1px rgba(106, 88, 255, .12), 0 24px 60px rgba(25, 31, 120, .45); }
  26% { box-shadow: 0 0 0 4px rgba(131, 220, 255, .18), 0 0 70px rgba(106, 88, 255, .55); }
}

@keyframes npl-node-signal {
  0%, 30%, 100% { border-color: rgba(240, 179, 92, .8); box-shadow: 0 0 0 3px rgba(240, 179, 92, .14), 0 0 22px rgba(240, 179, 92, .2); }
  6%, 26% { border-color: rgba(150, 165, 255, .22); box-shadow: none; }
}

@keyframes npl-alert {
  0%, 30%, 100% { opacity: 1; scale: 1; }
  6%, 26% { opacity: 0; scale: .3; }
  28% { opacity: 1; scale: 1.6; }
}

@keyframes npl-step-signal {
  0%, 40%, 100% { opacity: 1; translate: 0 0; filter: none; }
  6%, 34% { opacity: .32; translate: 0 .35em; filter: saturate(.2); }
}

@keyframes npl-step-decision {
  0%, 56%, 100% { opacity: 1; translate: 0 0; filter: none; }
  6%, 50% { opacity: .32; translate: 0 .35em; filter: saturate(.2); }
}

@keyframes npl-step-action {
  0%, 70%, 100% { opacity: 1; translate: 0 0; filter: none; }
  6%, 64% { opacity: .32; translate: 0 .35em; filter: saturate(.2); }
}

@keyframes npl-check {
  0%, 74%, 100% { stroke-dashoffset: 0; }
  6%, 66% { stroke-dashoffset: 1; }
}

/* Problem: stubs drop from each card, the two halves join, the knot lights. */
html.npl-motion #main .npl-weave path,
html.npl-motion #main .npl-weave__knot {
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-timing-function: var(--npl-ease);
}

html.npl-motion #main .npl-weave.is-in :is(path, .npl-weave__knot) {
  animation-play-state: running;
}

html.npl-motion #main .npl-weave__stub { animation-name: npl-draw; animation-duration: 520ms; }
html.npl-motion #main .npl-weave__stub--2 { animation-delay: 90ms; }
html.npl-motion #main .npl-weave__stub--3 { animation-delay: 180ms; }
html.npl-motion #main .npl-weave__stub--4 { animation-delay: 270ms; }
html.npl-motion #main .npl-weave__join { animation-name: npl-draw; animation-duration: 900ms; animation-delay: 560ms; }
html.npl-motion #main .npl-weave__knot { animation-name: npl-pop; animation-duration: 700ms; animation-delay: 1350ms; }

/* Map: comets climb each link toward the customer three times, the ring answers. */
html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet,
html.npl-motion #main .np-business-map .np-business-map__center::after {
  animation-fill-mode: both;
  animation-iteration-count: 3;
  animation-play-state: paused;
}

html.npl-motion #main .np-business-map.is-in .np-business-map__canvas > svg path.npl-comet,
html.npl-motion #main .np-business-map.is-in .np-business-map__center::after {
  animation-play-state: running;
}

html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet {
  animation-name: npl-comet-map;
  animation-duration: 2.8s;
  animation-timing-function: cubic-bezier(.45, 0, .25, 1);
  animation-delay: .9s;
}

html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet--2 { animation-delay: 1.15s; }
html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet--3 { animation-delay: 1.4s; }
html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet--4 { animation-delay: 1.65s; }
html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet--5 { animation-delay: 1.9s; }
html.npl-motion #main .np-business-map .np-business-map__canvas > svg path.npl-comet--6 { animation-delay: 2.15s; }

html.npl-motion #main .np-business-map .np-business-map__center::after {
  animation-name: npl-ring;
  animation-duration: 2.8s;
  animation-timing-function: ease-out;
  animation-delay: 3.1s;
}

/* The legacy dash crawl stops after two passes instead of running forever. */
html.npl-motion #main .np-business-map.is-visible .np-business-map__canvas > svg path:not(.npl-comet) {
  animation-iteration-count: 2;
}

@keyframes npl-comet-map {
  0% { stroke-dashoffset: .14; opacity: 0; }
  8%, 82% { opacity: 1; }
  92%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-ring {
  0% { opacity: .85; scale: 1; }
  100% { opacity: 0; scale: 1.7; }
}

/* Process: the rail fills once, each dot lights as it passes. */
html.npl-motion #main .npl-process .npl-rail,
html.npl-motion #main .npl-process .np-process__grid li::before {
  animation-fill-mode: both;
  animation-iteration-count: 1;
  animation-play-state: paused;
  animation-timing-function: var(--npl-ease);
}

html.npl-motion #main .npl-process.is-in .npl-rail,
html.npl-motion #main .npl-process.is-in .np-process__grid li::before {
  animation-play-state: running;
}

/* Sine in-out: the rail reaches 25/50/75 % at about 1.05/1.45/1.85 s, when each dot peaks. */
html.npl-motion #main .npl-process .npl-rail { animation-name: npl-rail; animation-duration: 2.4s; animation-delay: .25s; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
html.npl-motion #main .npl-process .np-process__grid li::before { animation-name: npl-dot; animation-duration: .7s; animation-delay: .25s; }
html.npl-motion #main .npl-process .np-process__grid li:nth-child(2)::before { animation-delay: .7s; }
html.npl-motion #main .npl-process .np-process__grid li:nth-child(3)::before { animation-delay: 1.05s; }
html.npl-motion #main .npl-process .np-process__grid li:nth-child(4)::before { animation-delay: 1.45s; }

@keyframes npl-rail {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes npl-dot {
  0% { opacity: .3; scale: .5; }
  55% { opacity: 1; scale: 1.7; }
  100% { opacity: 1; scale: 1; }
}

/* Scenario: the numbered dots light in order behind the thread. */
html.npl-motion #main .np-scenario__timeline .np-scenario__index {
  animation-name: npl-index;
  animation-duration: .7s;
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-timing-function: var(--npl-ease);
  animation-delay: .2s;
}

html.npl-motion #main .np-scenario__timeline.is-visible .np-scenario__index {
  animation-play-state: running;
}

html.npl-motion #main .np-scenario__timeline li:nth-child(2) .np-scenario__index { animation-delay: .6s; }
html.npl-motion #main .np-scenario__timeline li:nth-child(3) .np-scenario__index { animation-delay: 1s; }
html.npl-motion #main .np-scenario__timeline li:nth-child(4) .np-scenario__index { animation-delay: 1.4s; }

@keyframes npl-index {
  0% { opacity: .3; scale: .6; }
  60% { opacity: 1; scale: 1.15; }
  100% { opacity: 1; scale: 1; }
}

/* Ecosystem: the tree draws once, then three pulses reach the products. */
html.npl-motion #main .npl-tree path {
  animation-fill-mode: both;
  animation-play-state: paused;
}

html.npl-motion #main .npl-tree.is-in path {
  animation-play-state: running;
}

html.npl-motion #main .npl-tree .npl-tree__line {
  animation-name: npl-draw;
  animation-duration: 1.1s;
  animation-timing-function: var(--npl-ease);
}

html.npl-motion #main .npl-tree path.npl-comet {
  animation-name: npl-comet-tree;
  animation-duration: 2.2s;
  animation-iteration-count: 3;
  animation-timing-function: cubic-bezier(.45, 0, .25, 1);
  animation-delay: 1.1s;
}

html.npl-motion #main .npl-tree path.npl-comet--2 { animation-delay: 1.3s; }
html.npl-motion #main .npl-tree path.npl-comet--3 { animation-delay: 1.5s; }

@keyframes npl-comet-tree {
  0% { stroke-dashoffset: .16; opacity: 0; }
  10%, 80% { opacity: 1; }
  92%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes npl-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes npl-pop {
  0% { opacity: 0; scale: 0; }
  60% { opacity: 1; scale: 1.5; }
  100% { opacity: 1; scale: 1; }
}

@media (forced-colors: active) {
  #main .npl-live__wires path,
  #main .npl-weave path,
  #main .npl-tree path {
    stroke: CanvasText;
  }

  #main .npl-comet {
    display: none;
  }
}
