/* MULTIVERSE SOULS: purposeful motion. Loaded with js/motion.js. Everything here depends on html.mo,
   which the script adds only when motion is allowed. Without it the static pages are already complete. */

/* 1. Volunteer path: the line draws, the dots fill. Static fallback: the line is drawn in full. */
.path{position:relative}
.path-line{position:absolute;left:calc(.4rem - 1px);width:2px;z-index:0;pointer-events:none;overflow:visible}
.path-line line{stroke:var(--green-lt);stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}
.on-ivory .path-line line,.on-white .path-line line{stroke:var(--green-deep)}
.path li::before{z-index:1;background:var(--bg,transparent)}
.mo .path li::before{transition:background .5s var(--ease),transform .5s var(--ease)}
.mo .path li.is-lit::before{background:var(--green-lt);transform:scale(1.15)}
.mo.js .on-ivory .path li.is-lit::before,.mo .on-white .path li.is-lit::before,.mo .on-ivory .path li.is-lit::before{background:var(--green-deep)}

/* Dawn: the sun glow rises a little as it scrolls into view (--p comes from the existing engine, data-prog) */
.dawn{position:relative;overflow:hidden}
.dawn::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(34% 30% at 50% 100%,rgba(255,226,150,.55),transparent 70%);
  transform:translateY(calc((1 - var(--p,1)) * 16%));opacity:calc(.35 + var(--p,1) * .65)}

/* 2. Seven cities: staggered rise, once; the Headquarters tag comes last */
.mo .cities li{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease),transform .7s var(--ease);transition-delay:calc(var(--k,0) * 80ms)}
.mo .cities.is-in li{opacity:1;transform:none}
.mo .cities li:first-child small{opacity:0;transition:opacity .6s var(--ease) .9s}
.mo .cities.is-in li:first-child small{opacity:1}

/* 3. Programme facts: rows reveal in sequence, once; "Free" gets one gold underline */
.mo .facts > div{opacity:0;transform:translateY(10px);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--k,0) * 90ms)}
.mo .facts.is-in > div{opacity:1;transform:none}
.facts dd.hl{position:relative;display:inline-block}
.mo .facts > div:first-child dd.hl::after{content:"";position:absolute;left:0;right:0;bottom:-.1em;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .9s var(--ease) .7s}
.mo .facts.is-in > div:first-child dd.hl::after{transform:scaleX(1)}
