/* ══════════════════════════════════════════════════════════
   SECTION — hero (configurable flow chart)

   Centred copy over an animated pipeline of node cards that are added,
   removed and reordered to show the same platform configured for different
   programs.

   Connectors are a real SVG layer, not per-node stubs: hero-flow.js redraws
   the paths from live node rects on every frame of a transition, so the
   lines stay attached while the nodes travel.

   Visual language borrows the radar (sections/radar.css): hairline strokes,
   a glowing dot per node, mono labels, a dashed pulse travelling the wires.

   GSAP owns transform on .fc-node — never add a CSS transform to it,
   including :hover.
   ══════════════════════════════════════════════════════════ */
.hero-flow{
  position:relative; overflow:hidden;
  min-height:100svh;
  padding:clamp(130px,16vh,190px) 0 clamp(60px,9vh,110px);
  display:flex; flex-direction:column; justify-content:center;
}
/* Backdrop is the shared .hero-sky / .sky-grad / .sky-mesh in components.css
   — the copy-only heroes use the same one. */

/* ── copy ────────────────────────────────────────────────── */
.fc-message{
  position:relative; z-index:3;
  width:min(92%,1180px); margin-inline:auto; text-align:center;
}
.fc-h1{ font-size:clamp(38px,5.6vw,82px); margin-block:22px 20px; }
.fc-sub{ max-width:62ch; margin-inline:auto; }
.fc-message .eyebrow{ justify-content:center; }

/* ── the chart ───────────────────────────────────────────── */
/* Two rows, always: hero-flow.js splits the active stages in half. The cards
   are sized so six fit a row without wrapping down to the 900px breakpoint;
   below that they wrap and the wire router handles it from the endpoints' y. */
.flowchart{
  position:relative; z-index:2;
  width:min(94%,1180px); margin:clamp(40px,6vh,72px) auto 0;
  display:flex; flex-direction:column; gap:clamp(30px,4.2vh,56px);
}
.fc-row{
  display:flex; align-items:stretch; justify-content:center;
  flex-wrap:wrap;
  gap:clamp(18px,2.2vh,26px) clamp(16px,1.7vw,24px);
  min-height:1px;
}

/* connector layer, under the cards */
.fc-wires{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; overflow:visible; pointer-events:none;
}
.fc-wire{ fill:none; stroke:var(--line-2); stroke-width:1; }
/* ports: a small filled dot where a wire meets a card */
.fc-port{ fill:var(--ink-2); stroke:var(--line-2); stroke-width:1; }
.fc-wire-flow{
  fill:none; stroke-width:1.5; stroke-linecap:round;
  stroke-dasharray:3 9; opacity:.85;
  animation:fcDash 1.4s linear infinite;
}
@keyframes fcDash{ to{ stroke-dashoffset:-24 } }
.fc-wire-flow.t-blue{   stroke:var(--flow-blue) }
.fc-wire-flow.t-green{  stroke:var(--flow-green) }
.fc-wire-flow.t-orange{ stroke:var(--flow-orange) }

/* Node card: a colour-coded icon tile, a title, and one line of detail —
   a component card you could drag into a pipeline, not a label chip. */
.fc-node{
  --tone:var(--flow-blue); --tone-dim:var(--flow-blue-dim); --tone-glass:var(--flow-blue-glass);
  position:relative; z-index:1;
  width:clamp(140px,13.2vw,176px);
  display:flex; align-items:flex-start; gap:10px;
  padding:11px 12px;
  /* Neutral edge at rest; the tone only appears on the card the cursor has
     hold of. --flow-edge is the white hairline in dark, its mirror in light. */
  border:1px solid var(--flow-edge); border-radius:var(--r-md);
  background:var(--ink-2);
  box-shadow:var(--sh-float);
  transition:border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.fc-node[data-tone="green"]{  --tone:var(--flow-green);  --tone-dim:var(--flow-green-dim);  --tone-glass:var(--flow-green-glass); }
.fc-node[data-tone="orange"]{ --tone:var(--flow-orange); --tone-dim:var(--flow-orange-dim); --tone-glass:var(--flow-orange-glass); }

/* the card the cursor is acting on */
.fc-node.is-sel{
  border-color:var(--tone);
  box-shadow:0 0 0 3px var(--tone-dim), var(--sh-float);
}
.fc-node.is-sel .fc-ico{ background:var(--tone-dim); border-color:var(--tone); }

/* glass tile: an 8% wash of the tone, with the glyph in the full-strength
   tone so each stage is colour-coded at a glance. */
.fc-ico{
  width:30px; height:30px; flex-shrink:0;
  border-radius:9px;
  background:var(--tone-glass);
  border:1px solid var(--tone-dim);
  color:var(--tone);
  display:grid; place-items:center;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  transition:background .35s var(--ease), border-color .35s var(--ease);
}
.fc-ico svg{ width:15px; height:15px; display:block; }

.fc-text{ min-width:0; }
.fc-title{
  display:block;
  font-family:var(--font-display); font-weight:700;
  font-size:11.5px; letter-spacing:-.015em; line-height:1.2;
  color:var(--paper);
}
.fc-desc{
  display:block; margin-top:3px;
  font-size:10px; line-height:1.36; color:var(--fog-dim);
}

/* ── the cursor that does the configuring ────────────────────
   A pointer that travels to a card, grabs it, and then the edit happens —
   so the chart reads as something being assembled rather than shuffling
   itself. Decorative; it is inside the aria-hidden chart. */
.fc-cursor{
  position:absolute; left:0; top:0; z-index:5;
  width:22px; height:22px; pointer-events:none;
  opacity:0;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.45));
}
.fc-cursor svg{ width:100%; height:100%; display:block; }
/* click ring */
.fc-cursor::after{
  content:''; position:absolute; left:-7px; top:-7px;
  width:26px; height:26px; border-radius:50%;
  border:1.5px solid var(--paper);
  opacity:0; transform:scale(.4);
}
.fc-cursor.is-click::after{ animation:fcClick .5s var(--ease); }
@keyframes fcClick{
  0%  { opacity:.85; transform:scale(.4) }
  100%{ opacity:0;   transform:scale(1.5) }
}
.hero-flow.motion-off .fc-cursor{ opacity:0 !important; }

/* WCAG 2.2.2 — the chart reconfigures indefinitely, so it gets a control. */
.hero-flow .motion-btn{
  z-index:4; bottom:clamp(18px,3vh,34px);
  background:var(--glass); border-color:var(--line-2); color:var(--paper);
}
.hero-flow .motion-btn:hover{ background:var(--glass); border-color:var(--flame); }
.hero-flow.motion-off .fc-wire-flow{ animation-play-state:paused; }
