/* Angler — 24 · engagement. Five stops on one rail; each <li> spans the track's three rows
   via subgrid (rail label / nudge card / what the firm keeps), so cards of different length
   still line up and the bottom band runs continuous across all five. Tokens only. */

.eg .tm__wrap { max-width: 1260px; }
.eg__case {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px;
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .02em; color: var(--muted);
}
.eg__case span {
  padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--paper);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
}

.eg__track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 1fr auto;
  margin-top: 28px; padding: 0; list-style: none;
}
.eg__stop { grid-row: span 3; display: grid; grid-template-rows: subgrid; padding-inline: 8px; }

/* rail: a dot per stop, a line from it to the next stop's dot */
.eg__when {
  position: relative; padding-top: 26px; margin-bottom: 14px;
  font-size: 13px; color: var(--muted);
}
.eg__when b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.eg__when::before {
  content: ""; position: absolute; top: 6px; left: 7px; right: -16px;
  border-top: 2px solid var(--line); transform-origin: left center;
}
.eg__stop:last-child .eg__when::before { right: 0; border-top-style: dotted; }
.eg__when::after {
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lake); box-shadow: 0 0 0 4px var(--paper);
}

/* the nudge: the pilot-card register, smaller */
.eg__card {
  display: flex; flex-direction: column; padding: 16px 16px 18px; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: 0 2px 0 var(--ink);
}
.eg__kind { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--lake); }
.eg__viz { width: 80px; height: 40px; margin: 14px 0 12px; overflow: visible; }
.eg__say { font-family: var(--serif); font-size: 1.04rem; line-height: 1.38; color: var(--ink); }
.eg__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.eg__src li {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px 3px 6px;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--ink-soft);
}
.eg__src li::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--c, var(--faint)); }
.ft-pdf  { --c: var(--ft-pdf); }
.ft-pptx { --c: var(--ft-pptx); }
.ft-xlsx { --c: var(--ft-xlsx); }
.ft-md   { --c: var(--ft-md); }

/* the mini visuals */
.eg__viz .f-line  { fill: var(--line); }
.eg__viz .f-paper { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.eg__viz .f-rust  { fill: var(--rust); }
.eg__viz .f-brown { fill: var(--dawn-deep); }
.eg__viz .f-lake  { fill: var(--lake); }
.eg__viz .f-dawn  { fill: var(--dawn); }
.eg__viz [class^="s-"] { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eg__viz .s-lake  { stroke: var(--lake); }
.eg__viz .s-ink   { stroke: var(--ink); }
.eg__viz .s-rust  { stroke: var(--rust); }
.eg__viz .s-line  { stroke: var(--line); }
.eg__viz .s-paper { stroke: var(--paper); stroke-width: 1.5; }
.eg__viz .dash    { stroke-dasharray: 3 3; stroke-width: 1.5; }

/* what the firm keeps: one band under all five, a dotted tie up to each card */
.eg__keep {
  position: relative; display: flex; margin: 16px -8px 0; padding: 12px 16px 13px;
  background: var(--vellum-2); font-size: 13.5px; line-height: 1.35; color: var(--ink-soft);
}
.eg__keep::before {
  content: ""; position: absolute; left: 22px; bottom: 100%; height: 16px;
  border-left: 1.5px dotted var(--faint);
}
.eg__keep::after { content: "+"; order: -1; margin-right: 6px; color: var(--lake); font-weight: 600; } /* ::before is the tie */
.eg__stop:first-child .eg__keep { border-radius: var(--r-card) 0 0 var(--r-card); }
.eg__stop:last-child  .eg__keep { border-radius: 0 var(--r-card) var(--r-card) 0; }

.eg__foot { margin-top: 14px; font-size: 14px; color: var(--muted); }
.eg__foot span { margin-right: 6px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* reveal: the track itself stays put; its stops fill in left to right. Base.css's
   reduced-motion block zeroes every delay and duration, so that path just shows it. */
.js-ready .eg__track.reveal { opacity: 1; transform: none; }
.js-ready .eg__track .eg__when::after  { opacity: 0; transform: scale(.4); }
.js-ready .eg__track .eg__when::before { transform: scaleX(0); }
.js-ready .eg__track .eg__card,
.js-ready .eg__track .eg__keep { opacity: 0; transform: translateY(14px); }
.eg__track.is-in .eg__when::after {
  opacity: 1; transform: none;
  transition: opacity .3s var(--ease-house) calc(var(--i) * .38s), transform .38s var(--ease-open) calc(var(--i) * .38s);
}
.eg__track.is-in .eg__card {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-house), transform .5s var(--ease-house); transition-delay: calc(var(--i) * .38s + .1s);
}
.eg__track.is-in .eg__when::before { transform: none; transition: transform .5s var(--ease-house) calc(var(--i) * .38s + .2s); }
.eg__track.is-in .eg__keep {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-house), transform .5s var(--ease-house); transition-delay: calc(var(--i) * .38s + .32s);
}

/* below 960 the rail turns vertical: dot and line on the left, card and keep stacked */
@media (max-width: 960px) {
  .eg__track { grid-template-columns: 1fr; grid-template-rows: none; }
  .eg__stop { grid-row: auto; display: block; position: relative; padding: 0 0 28px 30px; }
  .eg__stop::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 0; border-left: 2px solid var(--line); }
  .eg__stop:last-child::before { border-left-style: dotted; bottom: 28px; }
  .eg__when { padding-top: 0; margin-bottom: 10px; }
  .eg__when b { display: inline; margin-right: 6px; }
  .eg__when::before { display: none; }
  .eg__when::after { top: 4px; left: -30px; }
  .eg__viz { margin: 10px 0 8px; }
  .eg__keep, .eg__stop:first-child .eg__keep, .eg__stop:last-child .eg__keep {
    width: fit-content; margin: 10px 0 0; border-radius: var(--r-card);
  }
  .eg__keep::before { display: none; }
  .eg__track.is-in .eg__when::after, .eg__track.is-in .eg__card, .eg__track.is-in .eg__keep { transition-delay: calc(var(--i) * .12s); }
}
