/* How we work, shared by Home and About: four steps on a line that fills as you scroll.
   Needs the page tokens (--cobalt, --rule, --paper, --muted, --narrow) from the page's own CSS. */
.flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flow::before, .flow::after { content: ""; position: absolute; z-index: 0; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--rule); }
.flow::after { background: var(--cobalt); transform-origin: left; scale: 0 1; animation: flowfill linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
@keyframes flowfill { to { scale: 1 1; } }
@supports not (animation-timeline: view()) { .flow::after { scale: 1 1; } }
.flow li { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; padding: 0 24px 28px 0; }
.flow .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--cobalt); color: var(--cobalt); font: 600 13px/1 var(--narrow); letter-spacing: .06em; }
.flow li:hover .dot { background: var(--cobalt); color: var(--white); }
.flow-tile { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 6px; background: var(--white); border: 1px solid var(--rule); transition: border-color .3s, background .3s; }
.flow-ico { width: 40px; height: 40px; color: var(--cobalt); overflow: visible; }
.flow-ico * { stroke-width: 1.6; }
.flow li:hover .flow-tile { border-color: var(--cobalt); background: rgba(0,67,235,.04); }
.flow h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.025em; }
.flow p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.flow dl { display: grid; gap: 0; margin: 6px 0 0; border-top: 1px solid var(--rule); }
.flow dl div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.flow dt { font: 600 11px/1.5 var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.flow dd { margin: 0; font-size: 14px; }
.flow-go { display: flex; flex-wrap: wrap; gap: 12px 10px; align-items: center; margin-top: 36px; padding: 24px 28px; background: var(--white); border: 1px solid var(--rule); }
.flow-go p { margin-right: auto; color: var(--muted); } .flow-go p b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before, .flow::after { left: 23px; right: auto; top: 24px; bottom: 0; width: 2px; height: auto; }
  .flow::after { transform-origin: top; scale: 1 0; } @keyframes flowfill { to { scale: 1 1; } }
  .flow li { padding: 0 0 36px 68px; } .flow .dot { position: absolute; left: 0; top: 0; }
  .flow-tile { width: 60px; height: 60px; }
}

/* A crate rides the line from 01 to 04 on the same scroll timeline as the fill */
.flow .flow-crate { position: absolute; z-index: 2; left: 24px; top: 10px; width: 24px; padding: 0; translate: -50% 0; animation: crate-run linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; pointer-events: none; }
.flow .flow-crate svg { display: block; width: 24px; height: 26px; filter: drop-shadow(0 3px 4px rgba(0,20,90,.25)); }
@keyframes crate-run { from { left: 24px; } to { left: calc(100% - 24px); } }
@supports not (animation-timeline: view()) { .flow .flow-crate { display: none; } }
@media (max-width: 900px) {
  .flow .flow-crate { left: 24px; top: 24px; translate: -50% -50%; animation-name: crate-down; }
  @keyframes crate-down { from { top: 24px; } to { top: calc(100% - 24px); } }
}
@media (prefers-reduced-motion: reduce) { .flow .flow-crate { display: none; } }
