.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.flow-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.fpill {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 16px;
  border: var(--border-w) solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: .92rem;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease);
}
.fpill:hover {
  border-color: var(--accent);
}
.flow-src .fpill:nth-child(odd) {
  margin-left: clamp(0px, 2vw, 26px);
}
.flow-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(150px, 15vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink-bg);
  color: var(--ink-text);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 1;
}
.flow-mark {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.flow-mark b {
  color: var(--trust-accent);
  font-weight: inherit;
}
.flow-sub {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  margin-top: 6px;
  color: color-mix(in srgb, var(--ink-text) 62%, transparent);
}
.fout {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 14px;
}
.fout b {
  font-weight: var(--fw-bold);
  font-size: .98rem;
}
.fout p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: 2px;
}
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.flow-svg .fpath {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 38%, var(--border-strong));
  stroke-width: 1.5;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.flow-svg .fpulse {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .5s var(--ease) .9s;
}
.flow.flow-live .fpulse {
  opacity: 1;
}
@keyframes hubpulse {
  0%, 100% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 14px color-mix(in srgb, var(--accent) 9%, transparent);
  }
}
.flow.flow-live .flow-hub {
  animation: hubpulse 3.2s var(--ease) infinite;
}
.flow .fpill,
.flow .fout {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .6s var(--ease),
    transform .6s var(--ease),
    border-color var(--dur) var(--ease);
}
.flow.flow-live .fpill,
.flow.flow-live .fout {
  opacity: 1;
  transform: none;
}
.flow.flow-live .fpill:nth-child(2) {
  transition-delay: .05s;
}
.flow.flow-live .fpill:nth-child(3) {
  transition-delay: .1s;
}
.flow.flow-live .fpill:nth-child(4) {
  transition-delay: .15s;
}
.flow.flow-live .fpill:nth-child(5) {
  transition-delay: .2s;
}
.flow.flow-live .fpill:nth-child(6) {
  transition-delay: .25s;
}
.flow.flow-live .fpill:nth-child(7) {
  transition-delay: .3s;
}
.flow.flow-live .fout:nth-child(2) {
  transition-delay: .35s;
}
.flow.flow-live .fout:nth-child(3) {
  transition-delay: .45s;
}
.flow.flow-live .fout:nth-child(4) {
  transition-delay: .55s;
}
.flow.flow-live .fout:nth-child(5) {
  transition-delay: .65s;
}
@media (max-width: 700px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-src {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .flow-src .fpill:nth-child(odd) {
    margin-left: 0;
  }
  .flow-hub {
    margin-inline: auto;
    width: 138px;
  }
  .flow-svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow .fpill,
  .flow .fout {
    opacity: 1;
    transform: none;
  }
  .flow-svg .fpulse {
    display: none;
  }
  .flow.flow-live .flow-hub {
    animation: none;
  }
}
