/* ==========================================================================
   Snare — How you can use Snare (scroll-drawn zig-zag workflows)
   Three flows, each a row of icon nodes. A mint path threads through the
   node centres (built in JS to match exact positions) and draws itself as
   the flow scrolls through the viewport, lighting each node in turn.
   ========================================================================== */

.flows { position: relative; }
.flows-head { text-align: center; max-width: 760px; margin: 0 auto clamp(56px, 8vw, 104px); }
.flows-head .lede { margin: 18px auto 0; text-align: center; }

.flow { position: relative; max-width: 1060px; margin: 0 auto clamp(64px, 9vw, 124px); }
.flow:last-child { margin-bottom: 0; }
.flow-title {
  text-align: center; margin: 0 0 clamp(30px, 4vw, 52px);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--mint);
}

.flow-track { position: relative; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-line-bg { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 2; }
.flow-line-fg {
  fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(159,232,188,0.55));
}

.flow-nodes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  align-items: start; min-height: 232px;
  position: relative; z-index: 1;
}
.flow-node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px;
  padding: 0 8px;
}
.flow-node:nth-child(even) { margin-top: 104px; }   /* the zig-zag */

.flow-ico {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0a2c25; border: 1px solid rgba(255,255,255,0.12);
  color: var(--white-50);
  transition: color .45s ease, background .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.flow-ico svg { width: 27px; height: 27px; }
.flow-step {
  font-size: 14px; line-height: 1.4; color: var(--white-50); max-width: 17ch;
  transition: color .45s ease;
}

.flow-node.is-on .flow-ico {
  color: #06241f; background: var(--mint); border-color: var(--mint);
  box-shadow: 0 0 0 6px rgba(159,232,188,0.12), 0 10px 26px -8px rgba(159,232,188,0.55);
  transform: translateY(-2px);
}
.flow-node.is-on .flow-step { color: #fff; }

/* ---- Mobile: vertical stack with a simple rail --------------------- */
@media (max-width: 760px) {
  .flow-svg { display: none; }
  .flow-track::before {
    content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px;
    background: rgba(255,255,255,0.10);
  }
  .flow-nodes { grid-auto-flow: row; grid-auto-columns: auto; min-height: 0; gap: 26px; }
  .flow-node { flex-direction: row; text-align: left; gap: 18px; padding: 0; }
  .flow-node:nth-child(even) { margin-top: 0; }
  .flow-ico { flex: 0 0 auto; }
  .flow-step { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line-fg { filter: none; }
}

/* ---- Closing line --------------------------------------------------- */
.flows-foot { text-align: center; max-width: 52ch; margin: clamp(64px, 9vw, 116px) auto 0; }
.flows-foot .q { margin: 0 0 12px; font-size: clamp(15px, 1.3vw, 18px); color: var(--white-50); }
.flows-foot .a {
  margin: 0; font-size: clamp(22px, 2.5vw, 34px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.25; color: #fff; text-wrap: balance;
}
.flows-foot .a em { font-style: normal; color: var(--mint); }

/* Knowledge Hub in-frame panel: image is ~1.62:1, a hair wider than the
   16:10 window — match the window to the image so nothing crops on the right. */
#f-knowledge .fwindow { aspect-ratio: 1470 / 905; }
#f-knowledge .fwindow-body img { object-fit: fill; }
.flows-link {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint); text-decoration: none;
}
.flows-link span { transition: transform .25s ease; }
.flows-link:hover span { transform: translateX(5px); }

/* ---- Builder: light-grey close to the dark run ---------------------- */
.builder--light {
  background: #F3F4F6 !important;
  --ink:   #07241F;
  --ink-2: #46544D;
  --ink-3: #76817B;
  --accent:#06544A;
  --line:  rgba(6,64,56,0.16);
}
.builder--light .eyebrow,
.builder--light .builder-creds { color: var(--accent); }
.builder--light .eyebrow-block::before { background: var(--accent); }
.builder--light h2 { color: var(--ink); }
.builder--light p { color: var(--ink-2); }
.builder--light blockquote { color: var(--ink); }
.builder--light .builder-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 24px 60px -32px rgba(7,36,31,0.30);
}
.builder--light .builder-portrait {
  background: repeating-linear-gradient(135deg, rgba(7,36,31,0.06) 0 6px, rgba(7,36,31,0.03) 6px 12px);
  border-color: var(--line);
  color: var(--ink-3);
}
.builder--light .builder-name { color: var(--ink); }

/* "Read the origin story →" eyebrow-style link in the light founder section */
.origin-link {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #06544A; text-decoration: none;
}
.origin-link span { transition: transform .25s ease; }
.origin-link:hover span { transform: translateX(5px); }
