/* A proportional glass ribbon: one recorded payment branches into planned purposes. */
.fund-flow {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fund-flow__scene { position: relative; height: 28rem; isolation: isolate; }
.fund-flow__source {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: 23%;
  padding: 1.4rem 0.75rem;
  transform: translateY(-50%);
  border: 1px solid rgba(36,108,96,0.12);
  border-top-color: #fff;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(248,246,240,0.5));
  box-shadow: inset 0 1px 1px #fff, 0 8px 20px rgba(36,108,96,0.04);
  text-align: center;
}
.fund-flow__source span { display: block; color: var(--promo-muted); font-size: 0.8125rem; line-height: 1.4; }
.fund-flow__source strong { display: block; margin-top: 0.35rem; color: var(--promo-ink); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -0.04em; }
.fund-flow__ribbons { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fund-flow__band { stroke: rgba(255,255,255,0.72); stroke-width: 0.8; stroke-linejoin: round; }
.fund-flow__shadow { fill: rgba(36,108,96,0.025); transform: translateY(2px); }
.fund-flow__glint { fill: none; stroke: rgba(255,255,255,0.65); stroke-width: 0.7; }
.fund-flow__pulse { fill: none; stroke: var(--promo-green); stroke-linecap: round; stroke-dasharray: 0.045 0.955; opacity: 0; }
.fund-flow__pulse--cost { stroke: var(--promo-ink); }
.fund-flow__pulse--goals { stroke: var(--promo-amber); }
.fund-flow__empty-route { fill: none; stroke: var(--promo-green); stroke-width: 1; stroke-opacity: 0.2; stroke-dasharray: 3 6; }
.fund-flow__destinations { position: absolute; inset: 0 0 0 70%; display: grid; grid-template-rows: repeat(7, 1fr); }
.fund-flow__destination {
  --destination-color: var(--promo-green);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem 0.5rem 1.25rem;
  margin: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid rgba(36,108,96,0.1);
  border-radius: 0;
  background: transparent;
}
.fund-flow__destination::before { content: ""; position: absolute; left: -0.15rem; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--destination-color); }
.fund-flow__destination span { color: var(--promo-ink); font-size: 0.875rem; line-height: 1.4; }
.fund-flow__destination strong { color: var(--destination-color); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fund-flow__destination--cost { --destination-color: var(--promo-ink); }
.fund-flow__destination--goals { --destination-color: var(--promo-amber); }
.fund-flow__destination--goals strong { color: var(--promo-green); }
.fund-flow__destination--empty { --destination-color: var(--promo-muted); background: transparent; border-style: dashed; box-shadow: none; }
.fund-flow__destination--empty::before { background: var(--promo-warm); border: 1px solid var(--promo-muted); }
.fund-flow__destination--empty strong { color: var(--promo-muted); }
.fund-flow__replay {
  position: absolute;
  top: 1rem;
  left: 1.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--promo-line);
  border-radius: var(--button-radius);
  color: var(--promo-green);
  background: rgba(255,255,255,0.65);
  font: 600 0.8125rem/1.4 var(--font);
  cursor: pointer;
}
.fund-flow__replay:disabled { opacity: 0.5; cursor: default; }
.fund-flow__replay:focus-visible { outline: 3px solid var(--promo-green); outline-offset: 3px; }
.fund-flow__replay[hidden] { display: none; }
@keyframes fund-flow-stream {
  0% { stroke-dashoffset: 1; opacity: 0; }
  12%,80% { opacity: 0.35; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes fund-flow-receive {
  0%,100% { background-color: transparent; }
  50% { background-color: rgba(232,242,237,0.4); }
}
@media (prefers-reduced-motion: no-preference) {
  .fund-flow.is-playing .fund-flow__pulse { animation: fund-flow-stream var(--flow-duration) cubic-bezier(.35,0,.3,1) var(--flow-delay) both; }
  .fund-flow.is-playing .fund-flow__destination:not(.fund-flow__destination--empty) { animation: fund-flow-receive 650ms ease-out var(--receive-delay) both; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .fund-flow { padding: 1rem; }
  .fund-flow__destinations { left: 64%; }
  .fund-flow__destination { padding-inline: 0.7rem; gap: 0.4rem; }
  .fund-flow__destination strong { font-size: 0.9375rem; }
}
@media (max-width: 600px) {
  .fund-flow { padding: 0.85rem; }
  .fund-flow__scene { height: 38rem; }
  .fund-flow__source { top: 0; width: 100%; padding: 1rem 5rem 1rem 1rem; text-align: left; transform: none; }
  .fund-flow__source strong { font-size: 1.65rem; margin-top: 0.15rem; }
  .fund-flow__destinations { inset: 8rem 0 0 42%; }
  .fund-flow__destination { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem; padding: 0.5rem 0.75rem 0.5rem 1rem; }
  .fund-flow__destination span { font-size: 0.8125rem; }
  .fund-flow__destination strong { font-size: 1rem; }
  .fund-flow__replay { top: 2rem; left: auto; right: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fund-flow *, .fund-flow *::before, .fund-flow *::after { animation: none !important; transition: none !important; }
  .fund-flow__replay { display: none; }
}
