/* ============================================================
   NEXORA · Sections / Ecosystem Flow
   One continuous journey, goal → opportunities.
   ============================================================ */

.flow {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
}

.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
  animation: node-travel 5.5s var(--ease-out) infinite;
}

.flow-node .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent-2);
}

.flow-node.goal {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 34px -10px var(--glow-accent);
  animation: none;
}

.flow-node.goal .icon {
  color: #fff;
}

.flow-node.highlight {
  border-color: var(--border-accent);
}

/* Sequential pulse schedule */
.flow-node.p-skills { animation-delay: 0.45s; }
.flow-node.p-learn { animation-delay: 0.9s; }
.flow-node.p-build { animation-delay: 1.35s; }
.flow-node.p-practice { animation-delay: 1.8s; }
.flow-node.p-projects { animation-delay: 2.25s; }
.flow-node.p-prove { animation-delay: 2.7s; }
.flow-node.p-identity { animation-delay: 3.15s; }
.flow-node.p-connect { animation-delay: 3.6s; }
.flow-node.p-opps { animation-delay: 4.05s; }

/* Vertical connectors */
.flow-arrow {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--text-3);
  position: relative;
}

.flow-arrow::before {
  content: "";
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--border-strong), var(--border-accent));
}

.flow-arrow .icon {
  position: absolute;
  width: 0.9em;
  height: 0.9em;
  color: var(--accent-2);
  background: var(--bg-page);
  border-radius: 50%;
}

/* Branch rows (fork / converge) */
.flow-branch {
  position: relative;
  display: flex;
  gap: clamp(2.5rem, 12vw, 9rem);
  justify-content: center;
}

.flow-branch::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: var(--border-accent);
}

.flow-branch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  width: calc(100% - 7rem);
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--border-accent), var(--border-accent));
  z-index: 0;
}

.flow-branch.converge::before {
  top: auto;
  bottom: -22px;
}

.flow-branch.converge::after {
  display: none;
}

.flow-branch .flow-node {
  flex: none;
}

.flow-legend {
  margin-top: var(--space-10);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-3);
}

.flow-legend b {
  color: var(--text-1);
  font-weight: 600;
}
