/* =====================================================================
   Directline — «the straight line» v2: one continuous thread (line.js).
   A margin spine drawn down to a moving head, with branches to the three
   stations (hero → goal choice → portfolio). Its own layer: absolute in
   document space, outside the layout, no pointer events, aria-hidden.
   Colours (lime on dark, purple on light) and geometry come from line.js.
   ===================================================================== */
.dl-line {
  position: absolute; left: 0; top: 0; z-index: 35;   /* below the sticky header (40) */
  width: 0; height: 0; pointer-events: none;
}
.dl-line > span { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.dl-line__track, .dl-line__spine { width: 2px; border-radius: 1px; }
.dl-line__track { opacity: .16; }
.dl-line__tap { height: 2px; border-radius: 1px; }
.dl-line__node { width: 6px; height: 6px; border-radius: 50%; transition: opacity 200ms ease; }
.dl-line__end { width: 5px; height: 5px; border-radius: 50%; transition: opacity 180ms ease; }
/* the end of the line: a destination point under the final call to action */
.dl-line__end.is-last { width: 10px; height: 10px; box-shadow: 0 0 0 5px rgb(243 239 48 / .22); }
.dl-line__head {
  width: 10px; height: 10px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 24%, transparent);
}
/* a new goal choice: the branch glides to the new card */
.motion-ok .dl-line__tap, .motion-ok .dl-line__end, .motion-ok .dl-line__node {
  transition: transform 450ms cubic-bezier(.2, .7, .2, 1), width 450ms cubic-bezier(.2, .7, .2, 1), opacity 200ms ease;
}
/* the thread is the active-goal indicator: retire the old bar so there are
   never two competing indicators (only while line.js runs) */
.has-dl-line .gp-tabs button::after { display: none; }
@media print { .dl-line { display: none; } }
