/* ---------- Process: orbital system ----------
   Self-contained component; colours come from the site tokens. */
.proc {
  --proc-accent: var(--accent);
  --proc-accent-rgb: var(--accent-rgb);
  --proc-bg: var(--surface); /* the panel is a contained charcoal room on the ink canvas */
  --proc-line: var(--rule);
  --proc-ink: var(--bone);
  --proc-mute: var(--fog);

  padding: var(--section-y) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  --bg: var(--bg-proc-glow); /* full-bleed light behind the panel (.bg) */
}

.proc__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 31%) 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 48px) clamp(28px, 3.6vw, 56px);
  border: 1px solid var(--proc-line);
  border-radius: 18px;
  background: /* one light where the route lands, a cool sheen over the intro, a hint of surface */
    radial-gradient(34% 48% at 78% 66%, var(--light-soft), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, var(--sheen), transparent 70%),
    var(--bg-proc);
  overflow: hidden;
}

/* intro column */
.proc__label {
  margin: 0 0 18px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--proc-accent);
}
.proc__title {
  margin: 0 0 20px;
  font: 400 clamp(32px, 3.4vw, 50px)/1.08 var(--f-display);
  font-stretch: 100%;
  letter-spacing: -.025em;
  color: var(--proc-ink);
}
.proc__title span { display: block; }
.proc__lede { margin: 0 0 32px; max-width: 34ch; text-wrap: pretty; color: var(--proc-mute); font-size: 15px; line-height: 1.6; }
.proc__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 20px; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent);
  font: 600 14px/1 var(--f-body);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.proc__cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.proc__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -8px rgba(var(--proc-accent-rgb), .55); background: var(--accent-hi); }
.proc__cta:hover svg { transform: translate(2px, -2px); }
.proc__cta:focus-visible { outline: 2px solid var(--proc-accent); outline-offset: 4px; }
/* the signal lands on the button: one ring leaves it */
.proc__cta { position: relative; }
.proc__cta.is-reached::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--proc-accent); animation: procCtaPing 1.3s ease-out both; pointer-events: none;
}
@keyframes procCtaPing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.18, 1.6); opacity: 0; } }

/* map: the SVG and the stages share one coordinate box (1000 × 400) */
.proc__map { position: relative; aspect-ratio: 1000 / 400; }
.proc__orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }

.proc__orbits .orbit { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .5s, opacity .5s; }
.proc__orbits .orbit--dim { stroke: var(--ring); }
.proc__orbits .orbit--lit { stroke: rgba(var(--proc-accent-rgb), .13); } /* the orbits are background now; the route leads */
.proc__orbits .orbit--glow { stroke: rgba(var(--proc-accent-rgb), .35); stroke-width: 3; filter: url(#procGlow); opacity: .07; }
.proc__orbits .node { fill: var(--proc-accent); }
.proc__orbits .node-halo { fill: rgba(var(--proc-accent-rgb), .35); filter: url(#procGlow); }
/* hover a stage → its orbit brightens, the others step back */
/* the route: one path Discover → Design → Build → Launch, lit leg by leg */
.proc__orbits .leg { fill: none; stroke: rgba(var(--proc-accent-rgb), .34); stroke-width: 1.4; vector-effect: non-scaling-stroke; } /* the dominant line: it reads as the route even at rest */
.proc__orbits .leg-lit { fill: none; stroke: rgba(var(--proc-accent-rgb), .95); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .2, 1); }
.proc__orbits .leg-glow { fill: none; stroke: rgba(var(--proc-accent-rgb), .7); stroke-width: 4; filter: url(#procGlow); transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .2, 1); }
.proc__orbits .runner { opacity: 0; transition: opacity .3s; }
.proc__orbits .runner.is-on { opacity: 1; }
/* the signal along the route: a head and a fading trail (process.js moves it) */
.proc__orbits .signal { opacity: 0; transition: opacity .6s; }
.proc__orbits .signal.is-on { opacity: 1; }
.proc__orbits .signal.is-held { opacity: .25; }
.proc__orbits .signal__trail { fill: none; stroke: var(--proc-accent); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.proc__orbits .signal__trail--a { stroke-width: 1.6; opacity: .14; }
.proc__orbits .signal__trail--b { stroke-width: 1.8; opacity: .3; }
.proc__orbits .signal__trail--c { stroke-width: 2; opacity: .6; }
/* the next route, Launch → the visitor's button: dashed because it hasn't been travelled yet */
.proc__orbits .leg-next { fill: none; stroke: rgba(var(--proc-accent-rgb), .22); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .5s; }
.proc__orbits.is-next .leg-next { stroke: rgba(var(--proc-accent-rgb), .75); animation: procMarch 1.2s linear infinite; }
@keyframes procMarch { to { stroke-dashoffset: -18; } }
.proc__orbits.is-story .orbit,.proc__orbits.is-story .node, .proc__orbits.is-story .node-halo { opacity: .5; transition: opacity .6s; }

.proc__stages { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 1; }
.proc__stage {
  --icon: 46px;
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  display: flex; align-items: flex-start; gap: 14px;
  translate: calc(var(--icon) / -2) calc(var(--icon) / -2);
  width: max-content;
}
.proc__icon {
  flex: none; width: var(--icon); height: var(--icon); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--proc-ink);
  background: radial-gradient(circle at 50% 35%, var(--icon-hi), var(--icon-lo) 70%);
  border: 1px solid rgba(var(--proc-accent-rgb), .45);
  box-shadow: 0 0 0 4px var(--proc-bg), 0 0 18px -4px rgba(var(--proc-accent-rgb), .35);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s, color .35s;
}
.proc__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.proc__text { margin-top: -14px; max-width: 170px; text-shadow: 0 0 6px var(--proc-bg), 0 0 12px var(--proc-bg), 0 0 18px var(--proc-bg); }
.proc__n { font: 500 11px/1 var(--f-mono); color: var(--proc-accent); letter-spacing: .06em; }
.proc__text h3 { margin: 6px 0 6px; font: 500 17px/1.2 var(--f-display); font-stretch: 100%; color: var(--proc-ink); letter-spacing: -.01em; }
.proc__text p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--proc-mute); }

.proc__stage.is-active .proc__icon::after { /* a soft ring that pulses once per beat */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--proc-accent); animation: procPulse 1.4s ease-out infinite;
}
.proc__icon { position: relative; }
@keyframes procPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.proc__stage { cursor: default; outline: none; }
.proc__stage:focus-visible .proc__icon { outline: 2px solid var(--proc-accent); outline-offset: 4px; }
.proc__stage.is-active .proc__icon,
.proc__stage:hover .proc__icon {
  transform: translateY(-3px);
  color: var(--proc-accent);
  border-color: var(--proc-accent);
  box-shadow: 0 0 0 4px var(--proc-bg), 0 0 26px -2px rgba(var(--proc-accent-rgb), .6);
}
.proc__stage:hover h3, .proc__stage.is-active h3 { color: var(--bone-hi); }
/* active stage: the number has decoded into what the stage hands over (process.js); the heading
   tightens and a short route segment draws under it */
.proc__n { white-space: nowrap; }
.proc__text h3 { position: relative; width: max-content; transition: letter-spacing .4s var(--ease), color .35s; }
.proc__text h3::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: linear-gradient(90deg, var(--proc-accent), rgba(var(--proc-accent-rgb), 0));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.proc__stage:hover h3, .proc__stage.is-active h3 { letter-spacing: -.025em; }
.proc__stage:hover h3::after, .proc__stage.is-active h3::after { transform: scaleX(1); }
.proc__stage.is-done .proc__icon { border-color: rgba(var(--proc-accent-rgb), .8); }
/* the signal arrives: the ring lights, one lime ping leaves it, the number steps forward */
.proc__n { display: inline-block; transition: color .4s, scale .4s var(--ease), text-shadow .4s; transform-origin: left center; }
.proc__stage.is-reached .proc__icon { border-color: var(--proc-accent); box-shadow: 0 0 0 4px var(--proc-bg), 0 0 22px -3px rgba(var(--proc-accent-rgb), .55); }
.proc__stage.is-reached .proc__icon::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--proc-accent); animation: procPing 1.2s ease-out both;
}
.proc__stage.is-reached .proc__n { color: var(--bone-hi); scale: 1.15; text-shadow: 0 0 10px rgba(var(--proc-accent-rgb), .6); }
@keyframes procPing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }

/* the route's technical signature, in the label typography */
.proc__route-id {
  position: absolute; z-index: 1; top: 0; right: 0; margin: 0;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--proc-mute);
}
.proc__route-id span { opacity: .5; margin: 0 .3em; }
.proc__route-id b { font-weight: 500; color: var(--proc-accent); }
.proc__route-id i { font-style: normal; }

/* entrance */
.proc.js-reveal .proc__intro > *,
.proc.js-reveal .proc__stage,
.proc.js-reveal .proc__orbits { opacity: 0; }
.proc.js-reveal .proc__intro > * { transform: translateY(18px); }
.proc.js-reveal .proc__stage { transform: translateY(14px); }
.proc.is-in .proc__intro > *,
.proc.is-in .proc__stage { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.proc.is-in .proc__orbits { opacity: 1; transition: opacity 1.6s var(--ease) .2s; }
.proc.is-in .proc__intro > :nth-child(2) { transition-delay: .08s; }
.proc.is-in .proc__intro > :nth-child(3) { transition-delay: .16s; }
.proc.is-in .proc__intro > :nth-child(4) { transition-delay: .24s; }
.proc.is-in .proc__stage:nth-child(1) { transition-delay: .3s; }
.proc.is-in .proc__stage:nth-child(2) { transition-delay: .42s; }
.proc.is-in .proc__stage:nth-child(3) { transition-delay: .54s; }
.proc.is-in .proc__stage:nth-child(4) { transition-delay: .66s; }

/* tablet: intro on top, the full-width map below keeps the orbit composition */
@media (max-width: 1100px) {
  .proc__panel { grid-template-columns: 1fr; }
  .proc__intro { max-width: 560px; }
  .proc__map { margin-right: 16%; }
  .proc__text { max-width: 150px; }
}

/* mobile: a vertical route — one lit line, one travelling node */
@media (max-width: 760px) {
  .proc__panel { padding: 40px 22px; gap: 40px; }
  .proc__map { aspect-ratio: auto; margin-right: 0; }
  .proc__orbits { display: none; }
  .proc__route-id { position: static; margin: 0 0 22px; }
  .proc__stages { position: relative; display: grid; gap: 30px; }
  .proc__stages::before, .proc__stages::after {
    content: ""; position: absolute; left: 22px; top: 23px; bottom: 23px; width: 1px;
  }
  .proc__stages::before { background: linear-gradient(rgba(var(--proc-accent-rgb), .5), rgba(var(--proc-accent-rgb), .12)); }
  .proc__stages::after {
    width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; bottom: auto;
    background: var(--proc-accent); box-shadow: 0 0 10px 2px rgba(var(--proc-accent-rgb), .6);
    animation: procDrop 6s linear infinite;
  }
  .proc__stage { position: relative; left: auto; top: auto; translate: none; width: auto; --icon: 44px; }
  .proc__text { margin-top: 2px; max-width: none; }
  .proc__text h3 { font-size: 18px; }
  .proc__text p { font-size: 14px; }
  .proc__cta { padding: 14px 22px; font-size: 15px; }
}
@keyframes procDrop { from { top: 23px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { top: calc(100% - 23px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .proc__stages::after { animation: none; display: none; }
  .proc__stage.is-active .proc__icon::after { animation: none; display: none; }
  .proc__stage.is-reached .proc__icon::before { animation: none; display: none; }
  .proc__n { transition: none; }
  .proc__orbits.is-next .leg-next { animation: none; }
  .proc__cta.is-reached::after { display: none; }
  .proc__text h3, .proc__text h3::after { transition: none; }
}
