/* Project path on a light panel (includes/visuals/buildpath.php): the phases on a rail, a loop from the last back to the second */
.bp { --bp-gap: 18px; --bp-rail: 3px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--bp-gap); padding-top: 18px; }
.bp-steps { list-style: none; margin: 0; padding: 0; display: contents; }
.bp-step { grid-row: 2; position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 42px; min-width: 0; }
.bp-seg { position: absolute; left: 0; top: 14px; width: calc(100% + var(--bp-gap)); height: var(--bp-rail); background: var(--line); border-radius: 2px; overflow: hidden; }
.bp-step--last .bp-seg { width: 100%; }
.bp-seg::before { content: ""; position: absolute; inset: 0; background: var(--forest); transform-origin: left; }
.bp-dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .06em; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--paper); }
.bp-step--last .bp-dot { background: var(--green); color: var(--forest); }
.bp-name { font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--forest); margin: 0; }
.bp-purpose { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.bp-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.bp-list li { position: relative; padding-left: 14px; }
.bp-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 2px; background: var(--green-2); }
.bp-deliv { margin: auto 0 0; padding-top: 12px; display: grid; gap: 6px; }
.bp-deliv-t { margin: 0; }
.bp-chip { display: inline-block; justify-self: start; padding: 7px 11px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 13px; font-weight: 600; line-height: 1.3; }
.bp-step--last .bp-chip { background: var(--forest); color: var(--green); }
.vz-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the loop above the rail: from phase 6 back to phase 2 */
.bp-loop { grid-row: 1; grid-column: 2 / 8; margin: 0 0 12px; position: relative; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--green-text); font-weight: 600; }
.bp-loop-arc { display: block; height: 26px; margin: 8px 0 0; border: 2px dashed var(--green-2); border-bottom: 0; border-radius: 18px 18px 0 0; position: relative; }
.bp-loop-arc::before { content: ""; position: absolute; left: -7px; bottom: -2px; width: 11px; height: 11px; border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg) translate(2px, -2px); }
.bp-loop-t { display: block; order: -1; }
.bp-loop { display: flex; flex-direction: column; }

/* intro: the rail lights up and the phases rise in sequence; the loop dashes keep flowing */
.js .vz-figure .bp-seg::before { transform: scaleX(0); }
.js .vz-figure .bp-step > :not(.bp-seg) { opacity: 0; transform: translateY(12px); }
.js .vz-figure.is-visible .bp-seg::before { animation: bpSeg .5s ease-out forwards; }
.js .vz-figure.is-visible .bp-step > :not(.bp-seg) { animation: bpUp .55s ease-out forwards; }
.js .vz-figure.is-visible .bp-step--1 > * { animation-delay: .1s; } .js .vz-figure.is-visible .bp-step--2 > * { animation-delay: .5s; }
.js .vz-figure.is-visible .bp-step--3 > * { animation-delay: .9s; } .js .vz-figure.is-visible .bp-step--4 > * { animation-delay: 1.3s; }
.js .vz-figure.is-visible .bp-step--5 > * { animation-delay: 1.7s; } .js .vz-figure.is-visible .bp-step--6 > * { animation-delay: 2.1s; } .js .vz-figure.is-visible .bp-step--7 > * { animation-delay: 2.5s; }
.js .vz-figure .bp-loop { opacity: 0; }
.js .vz-figure.is-visible .bp-loop { animation: bpUp .6s ease-out 3s forwards; }
.js .vz-figure.is-visible .bp-loop-arc { background-image: none; }
@keyframes bpSeg { to { transform: scaleX(1); } }
@keyframes bpUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .vz-figure .bp-seg::before, .js .vz-figure .bp-step > *, .js .vz-figure .bp-loop { animation: none !important; opacity: 1; transform: none; } }

/* four columns below 1100px: two rows (4 + 3), the loop only labels */
@media (max-width: 1099px) and (min-width: 701px) {
  .bp { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .bp-step { grid-row: auto; }
  .bp-step--4 .bp-seg { width: 100%; }
  .bp-loop { grid-column: 1 / 5; }
  .bp-loop-arc { display: none; }
}
@media (min-width: 1100px) and (max-width: 1299px) { .bp-name { font-size: 18px; } .bp-list, .bp-purpose { font-size: 13px; } }
/* phones: one column along a vertical rail */
@media (max-width: 700px) {
  .bp { grid-template-columns: 1fr; padding-top: 0; }
  .bp-step { grid-row: auto; padding: 0 0 28px 48px; }
  .bp-seg { left: 14px; top: 0; width: var(--bp-rail); height: 100%; }
  .bp-seg::before { transform-origin: top; }
  .bp-step--last .bp-seg { width: var(--bp-rail); height: 32px; }
  .js .vz-figure .bp-seg::before { transform: scaleY(0); }
  @keyframes bpSeg { to { transform: scaleY(1); } }
  .bp-loop { grid-column: 1; grid-row: auto; order: 10; text-align: left; padding-left: 48px; }
  .bp-loop-arc { display: none; }
}
