/* WORKFLOW v3 — five steps on one path that draws as you scroll (13 Oct owner review).
   The CSS below IS the final layout (works with JS off). map.js only adds the path and its dots, and fades each card in.
   Tokens come from page.css :root. Laptops: cards zig-zag either side of the path; phones: one column, path in the left gutter. */
.mp{position:relative;overflow-x:clip}
.mp .head-center{position:relative;z-index:3}
.mp-stage{position:relative;margin:0 auto}
.mp-canvas{position:relative;max-width:1000px;margin:0 auto}
.mp-lines{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.mp-list{display:flex;flex-direction:column;gap:28px;margin:0;padding:0 0 0 28px;list-style:none}

/* ── the card ── */
.mp-card{
  --mp-fill:#0f1014;
  position:relative;display:flex;flex-direction:column;gap:12px;padding:20px 20px 20px 22px;
  border-radius:24px;border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0) 56px),var(--mp-fill);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 28px 50px -28px rgba(0,0,0,.9);
  transition:border-color .25s;
}
.mp-card:hover{border-color:var(--line-2)}
.mp-title{display:flex;align-items:center;gap:12px;font:600 20px/1.2 var(--display);letter-spacing:-.025em;text-wrap:balance}
.mp-n{color:var(--blue);font-variant-numeric:tabular-nums;margin-right:2px}
.mp-card p{color:var(--mute);font-size:15px;line-height:1.5;text-wrap:pretty}

/* ── one quiet visual per card ── */
.mp-viz{margin-top:auto;display:flex;align-items:center;gap:12px;height:52px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);font:500 12px/1 var(--body);color:var(--fg-2)}
.mp-spark{flex:1;min-width:0;height:32px}
.mp-grid{flex:1;display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.mp-grid i{height:12px;border-radius:3px;background:rgba(255,255,255,.12)}
.mp-grid i.on{background:var(--blue)}
.mp-chip{flex:none;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:var(--r-pill);background:var(--blue-soft);box-shadow:inset 0 0 0 1px var(--blue-line);color:var(--blue-ink);font:500 12px/1 var(--body)}
.mp-chip-b{background:#22242b;box-shadow:none;color:#fff}
.mp-arr{flex:none;width:18px;height:10px;fill:none;stroke:var(--fg-2);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mp-sched{flex:none;display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px 0 8px;border-radius:var(--r-pill);background:#22242b;color:#fff;font:500 12px/1 var(--body)}
.mp-sched svg{width:14px;height:14px;fill:none;stroke:var(--blue);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.mp-prog{flex:1;min-width:24px;height:4px;border-radius:2px;background:rgba(255,255,255,.1);overflow:hidden}
.mp-prog i{display:block;width:62%;height:100%;border-radius:2px;background:var(--blue)}

/* the last card: where it all lands */
.mp-win{--mp-fill:#0a5cff;border-color:transparent;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,0) 70px),#0a5cff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 34px 80px -22px rgba(0,153,255,.6)}
.mp-win:hover{border-color:transparent}
.mp-win .mp-title{font-size:24px}
.mp-win .mp-n{color:#fff}
.mp-win p{color:#fff;font-size:17px}
.mp-win .mp-viz{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22)}
.mp-bk{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:32px;padding:0 5px;border-radius:var(--r-pill);background:rgba(255,255,255,.18)}
.mp-av2{flex:none;width:24px;height:24px;border-radius:50%;background:#fff;color:#0a5cff;display:grid;place-items:center;font:600 12px/1 var(--body)}
.mp-who{flex:1;min-width:0;font:500 12px/1.2 var(--body);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-ok{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:var(--r-pill);background:#fff;color:#0a5cff;font:600 12px/1 var(--body)}
.mp-ok svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ── the path (map.js builds it): grey track, blue fill that follows the scroll, one dot per card ── */
.mp-lines .mp-ln{fill:none;stroke:rgba(255,255,255,.16);stroke-width:1.5;stroke-linecap:round}
.mp-lines .mp-ln-on{fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round}
.mp-lines .mp-pt-halo{fill:rgba(0,153,255,.22);opacity:0;transition:opacity .3s}
.mp-lines .mp-pt-dot{fill:#000;stroke:rgba(255,255,255,.3);stroke-width:1.5;transition:fill .3s,stroke .3s}
.mp-lines .mp-pt.on .mp-pt-halo{opacity:1}
.mp-lines .mp-pt.on .mp-pt-dot{fill:var(--blue);stroke:var(--blue)}

/* quick fade-and-rise when a card comes into view (only once JS is running, so no-JS keeps everything visible) */
.mp-js .mp-card{opacity:0;transform:translateY(18px);transition:opacity .4s var(--ease-io),transform .45s var(--ease),border-color .25s}
.mp-js .mp-card.in{opacity:1;transform:none}

/* ═══ laptops and tablets landscape (900px and up): cards zig-zag either side of the path, the last one lands in the middle ═══ */
@media (min-width:900px){
  .mp-list{padding:0;gap:28px}
  .mp-card{width:calc(50% - 56px);padding:24px}
  .mp-card:nth-child(odd){align-self:flex-start}
  .mp-card:nth-child(even){align-self:flex-end;margin-top:-64px}
  .mp-win{align-self:center!important;width:min(100%,520px);margin-top:0!important}
}

/* ═══ phones and small tablets: one column, the path runs in the left gutter ═══ */
@media (max-width:767px){
  .mp-list{gap:20px;padding-left:28px}
  .mp-card{padding:20px;border-radius:24px;max-width:none}
  .mp-card p,.mp-win p{font-size:16px}
  .mp-win .mp-title{font-size:24px}
  .mp-viz,.mp-sched,.mp-chip,.mp-who,.mp-ok,.mp-av2{font-size:13px}
}

/* reduced motion / the page's Light movement switch: everything in its final place */
.motion-off .mp-card{opacity:1!important;transform:none!important;transition:none}
.motion-off .mp-lines .mp-pt-halo,.motion-off .mp-lines .mp-pt-dot{transition:none}
@media (prefers-reduced-motion:reduce){
  .mp-card{opacity:1!important;transform:none!important;transition:none}
  .mp-lines .mp-pt-halo,.mp-lines .mp-pt-dot{transition:none}
}
