/* ==========================================================================
   Reliever website v4/v5 · Solutions page
   Page head + sports collage · sticky chapter index · eight chapters on
   grid paper (01 dashboard and 02 budget full width; 04 chart of accounts
   and 07 contractor lifecycle are v5 partials; 03, 05, 06, 08 the v3 mocks
   made hover-live) · ink strokes between chapters · season timeline.
   Loads after /styles.css and /css/mocks.css, before /css/motion.css.

   Naming: every chapter rule lives under `.sol-*`. motion.css owns a
   `.chapter` (Home's pinned ink chapter), so this page never uses that
   class and never has to fight it on specificity.

   Motion: start states sit behind `.js` inside
   `prefers-reduced-motion: no-preference`, so no-JS and reduced motion
   render the final state. Nothing loops. Hover states never use opacity
   below 1 on a visible element (they toggle `visibility`), which keeps
   tools/motion_check.py's "no opacity below 1" rule honest.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ============================================================ PAGE HEAD == */
.sol-head {
  padding-bottom: clamp(44px, 5vw, 72px);
}

/* --- collage strip: five sports photos, assembled once on reveal -------- */
.collage {
  --tile-h: clamp(150px, 17.4vw, 250px);
  margin-top: clamp(36px, 4.6vw, 64px);
  display: grid;
  grid-template-columns: 0.92fr 1.3fr 0.92fr 1.3fr 0.92fr;
  align-items: center;
  gap: clamp(10px, 1.3vw, 16px);
}
.collage__tile {
  width: 100%;
  height: var(--tile-h);
  object-fit: cover;
  border-radius: var(--radius-m);
  /* the placeholder beige, so a tile that is still loading reads as a print */
  background: #d9d4cc;
}
.collage__tile--wide {
  height: calc(var(--tile-h) * 0.82);
}
/* per-photo crops: keep the ball, the faces, and the huddle in frame */
.collage__tile--hockey {
  --tilt: -3deg;
  object-position: 44% 60%;
}
.collage__tile--football {
  --tilt: 2.4deg;
  object-position: 58% 50%;
}
.collage__tile--softball {
  --tilt: -2deg;
  object-position: 36% 30%;
}
.collage__tile--soccer {
  --tilt: 3deg;
  object-position: 56% 55%;
}
.collage__tile--gym {
  --tilt: -2.6deg;
  object-position: 58% 20%;
}

/* phone: two rows, nothing scrolls sideways. The three portraits share the
   first row and the two huddles the second, so no single tile outweighs the
   H1 (it must stay the LCP; a tile that reveals later would take it). */
@media (max-width: 639px) {
  .collage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .collage__tile--hockey,
  .collage__tile--softball,
  .collage__tile--gym {
    grid-row: 1;
    grid-column: span 2;
    height: 146px;
  }
  .collage__tile--hockey {
    grid-column: 1 / span 2;
  }
  .collage__tile--softball {
    grid-column: 3 / span 2;
  }
  .collage__tile--gym {
    grid-column: 5 / span 2;
  }
  .collage__tile--football,
  .collage__tile--soccer {
    grid-row: 2;
    grid-column: span 3;
    height: 118px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* each print rises with a slight tilt and settles square (motion.js
     writes the stagger delay inline) */
  .js .collage[data-reveal][data-stagger] > * {
    transform: translateY(28px) rotate(var(--tilt, -2deg)) scale(0.97);
  }
  .js .collage[data-reveal][data-stagger].is-in > * {
    transform: none;
    transition:
      opacity 640ms var(--ease),
      transform 980ms var(--ease);
  }
}

/* ============================================================= CHAPTERS == */
.sol-chapters {
  padding-block: clamp(48px, 6vw, 88px) var(--section-pad);
}
.sol-flow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

/* --- sticky chapter index (desktop) ------------------------------------- */
.sol-index {
  display: none;
}
@media (min-width: 1100px) {
  /* 184 + 32 leaves the chapter column 896px inside the 1112px measure,
     so the full dashboard keeps its nav rail and side-by-side panels
     (they need 880px of its own width, COMPONENTS.md) */
  .sol-layout {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }
  .sol-index {
    display: block;
    position: sticky;
    top: 108px;
    padding-left: 20px;
  }
}
/* the track, the ink progress along it, and the purple square marker */
.sol-index::before,
.sol-index__fill {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  bottom: 10px;
  width: 1px;
}
.sol-index::before {
  background: rgba(17, 17, 17, 0.16);
}
.sol-index__fill {
  background: var(--ink);
  transform-origin: 50% 0;
  transform: scaleY(var(--fill, 0));
}
.sol-index__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--purple);
  transform: translateY(var(--y, 13px));
}
.sol-index.is-ready .sol-index__fill,
.sol-index.is-ready .sol-index__marker {
  transition: transform 420ms var(--ease);
}
.sol-index__list,
.sol-cal__cells {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sol-index__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sol-index a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  padding-block: 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease-out;
}
.sol-index__num {
  padding-top: 1px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color 120ms ease-out;
}
.sol-index a:hover,
.sol-index a[aria-current="true"] {
  color: var(--ink);
}
.sol-index a[aria-current="true"] .sol-index__num {
  color: var(--purple);
}

/* --- chapter shell ------------------------------------------------------- */
.sol-ch {
  position: relative;
  scroll-margin-top: 92px;
}
/* 03 to 08: one card, mock beside the words */
.sol-ch.field-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: stretch;
}
.sol-ch--recon.field-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.sol-ch--flip .sol-ch__viz {
  order: 2;
}
.sol-ch__viz {
  min-width: 0;
  display: flex;
}
.sol-ch__viz > .viz {
  flex: 1;
  min-width: 0;
}
.sol-ch__body {
  min-width: 0;
  align-self: center;
  padding-block: 4px;
}

/* 01 and 02: the words in a card, the product full width beneath it */
.sol-ch--wide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sol-ch__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px clamp(28px, 4vw, 56px);
  align-items: start;
}
/* the bullets start level with the heading, under the chapter number */
@media (min-width: 900px) {
  .sol-ch__card .sol-ch__list {
    padding-top: 30px;
  }
}
.sol-ch__card .sol-ch__list {
  margin-top: 0;
}
.sol-ch__stage {
  min-width: 0;
}

/* --- chapter type -------------------------------------------------------- */
.sol-ch__num {
  margin-bottom: 14px;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}
.sol-ch__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sol-ch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.sol-ch__icon svg {
  width: 17px;
  height: 17px;
}
.sol-ch__head h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}
.sol-ch__lede {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}
.sol-ch__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 56ch;
}
.sol-ch__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.sol-ch__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--purple);
}

@media (max-width: 899px) {
  .sol-ch.field-card,
  .sol-ch--recon.field-card,
  .sol-ch__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .sol-ch__viz,
  .sol-ch--flip .sol-ch__viz {
    order: 2;
  }
}

/* ================================================================ MOCKS == */
/* The chapter card is the field surface, so each mock sits on paper and its
   inner chips take the field tone (the v3 inversion). */
.sol-ch .viz {
  --viz-ground: var(--paper);
  --viz-inner: var(--field);
}

/* shared mock furniture: a title row and a status pill */
.sol-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.sol-pill {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--pill);
  background: var(--field);
  border: 1px solid var(--hairline);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.sol-pill--good {
  background: var(--good-soft);
  border-color: transparent;
  color: var(--good);
}

/* --- 03 banking: team card, the role limit, the live balance ------------- */
.sol-bank__stack {
  width: 100%;
  max-width: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sol-bank__cardwrap {
  width: 100%;
}
.sol-bank__card {
  transition:
    transform 280ms var(--ease),
    box-shadow 280ms var(--ease);
}
.sol-bank__cardwrap:hover .sol-bank__card {
  transform: translateY(-4px) rotate(-1.5deg);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.16);
}
.sol-bank__limit {
  width: 100%;
  padding: 10px 12px 11px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
}
.sol-bank__limit p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.sol-bank__limit b {
  color: var(--ink);
  font-weight: 700;
}
.sol-bank__bar {
  display: block;
  margin-top: 8px;
  height: 5px;
  border-radius: var(--pill);
  background: #e4e4e4;
  overflow: hidden;
}
.sol-bank__bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0.424); /* $212 of $500 */
}

/* --- 04 bookkeeping and 07 vendor: the v5 partials (V11, V12) ----------
   partials/coa.html and partials/vendor-lifecycle.html are their own paper
   cards (css/mocks.css), so they sit straight in the column in place of a
   .viz and stretch to the chapter's height; the lifecycle centres its body
   in any extra height. They lay themselves out by their own width. */
.sol-ch__viz > .rcoa,
.sol-ch__viz > .rvlc {
  flex: 1;
  min-width: 0;
}

/* --- 05 reconciliation: what feeds Reliever, then the match ring ---------
   A grid with five fixed 32px source rows (so the converging lines' endpoints
   are known), the lines, and a rail that drops from the Reliever node into
   the ring. It sizes to its own column through a container query. */
.sol-ch--recon .sol-ch__viz {
  container: recon / inline-size;
}
.sol-ch .viz.sol-recon {
  --ring: 124px;
  display: grid;
  grid-template-columns: max-content minmax(18px, 1fr) var(--ring);
  grid-template-rows: 192px auto;
  grid-template-areas:
    "src lines rail"
    "note note rail";
  align-items: start;
  justify-content: stretch;
  gap: 0;
  padding: 26px clamp(18px, 2.4vw, 28px);
}
.sol-feeds {
  grid-area: src;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-feeds li {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px 0 9px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.sol-feeds li svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}
/* the lines reach across the rail's side margin to the node's left edge */
.sol-recon .sol-feeds__lines {
  grid-area: lines;
  width: calc(100% + (var(--ring) - 44px) / 2);
  height: 192px;
  color: rgba(17, 17, 17, 0.5);
}
.sol-recon .sol-feeds__lines path {
  stroke-width: 1.5;
}
.sol-recon__rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* the node's centre sits on the lines' meeting point, 96px down */
  padding-top: 74px;
}
.sol-feeds__node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(112, 48, 176, 0.14);
}
.sol-feeds__node img {
  width: 22px;
  height: auto;
}
.sol-recon .sol-recon__drop {
  width: 12px;
  height: 34px;
  margin-block: 6px 4px;
  color: rgba(17, 17, 17, 0.5);
}
.sol-recon .sol-recon__drop path {
  stroke-width: 1.5;
}
.sol-ring {
  position: relative;
  width: var(--ring);
  height: var(--ring);
  flex: none;
  border-radius: 50%;
  cursor: default;
}
.sol-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.sol-ring__flag {
  transition: stroke-width 180ms ease-out;
}
.sol-ring__num,
.sol-ring__counts {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 160ms ease-out,
    visibility 0s linear;
}
.sol-ring__num {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sol-ring__counts {
  gap: 2px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
}
.sol-ring__counts b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
/* stacked so it fits inside the 104px phone ring: 1,012 / matched / 6 flagged */
.sol-ring__counts > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  margin-bottom: 3px;
}
.sol-ring__counts > span:first-child b {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.sol-ring__flagged,
.sol-ring__flagged b {
  color: var(--warn);
}
/* hover and focus: the centre swaps the total for matched and flagged */
.sol-ring:hover .sol-ring__num,
.sol-ring:focus .sol-ring__num {
  opacity: 0;
  visibility: hidden;
}
.sol-ring:hover .sol-ring__counts,
.sol-ring:focus .sol-ring__counts {
  opacity: 1;
  visibility: visible;
}
.sol-ring:hover .sol-ring__flag,
.sol-ring:focus .sol-ring__flag {
  stroke-width: 17;
}
.sol-recon__note {
  grid-area: note;
  align-self: end;
  padding: 12px 12px calc(var(--ring) / 2 - 20px) 0;
  text-align: left;
}
@container recon (max-width: 380px) {
  .sol-ch .viz.sol-recon {
    --ring: 104px;
    padding-inline: 14px;
  }
  .sol-feeds li {
    gap: 5px;
    padding: 0 8px 0 7px;
    font-size: 11.5px;
  }
  .sol-feeds li svg {
    width: 13px;
    height: 13px;
  }
  .sol-ring__num {
    font-size: 18px;
  }
}

/* --- 06 compliance: the calendar strip ----------------------------------- */
.sol-cal .sol-mock-head {
  max-width: 344px;
}
.sol-cal__cells {
  width: 100%;
  max-width: 344px;
  display: flex;
  gap: 8px;
}
.sol-cal__cells li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  cursor: default;
}
.sol-cal__m {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.sol-cal__d {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
/* the status flag in the corner: done (good) or flagged (purple) */
.sol-cal__cells li.is-done::after,
.sol-cal__cells li.is-hot::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: var(--pill);
  border: 2px solid var(--paper);
  background: var(--good);
}
.sol-cal__cells li.is-hot::after {
  background: var(--purple);
}
.sol-cal__cells li.is-hot {
  background: var(--ink);
  border-color: var(--ink);
}
.sol-cal__cells li.is-hot .sol-cal__m {
  color: rgba(255, 255, 255, 0.72);
}
.sol-cal__cells li.is-hot .sol-cal__d {
  color: #ffffff;
}
/* the inspected cell (hover or focus) gets an ink ring and a pointer down
   to the callout; box-shadow, not transform, so the stagger's inline
   transition-delay never lags it */
.sol-cal__cells li:hover,
.sol-cal__cells li:focus,
.sol-cal__cells li.is-inspected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  outline-offset: 3px;
}
.sol-cal__cells li.is-hot:hover,
.sol-cal__cells li.is-hot:focus,
.sol-cal__cells li.is-hot.is-inspected {
  box-shadow: 0 0 0 3px rgba(112, 48, 176, 0.22);
}
.sol-cal__note {
  margin-top: 16px;
  min-height: 40px;
}

/* --- 08 handoff: the checklist ------------------------------------------- */
.sol-hand .sol-mock-head,
.sol-hand__list {
  max-width: 360px;
}
.sol-hand__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-hand__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--viz-inner);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  font-size: 13.5px;
  color: var(--muted);
  cursor: default;
}
.sol-hand__list li.is-done {
  color: var(--ink);
}
.sol-hand__list i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  color: #ffffff;
  transition:
    background-color 180ms ease-out,
    border-color 180ms ease-out;
}
.sol-hand__list i svg {
  width: 12px;
  height: 12px;
}
.sol-hand__list i path {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 280ms var(--ease) 60ms;
}
.sol-hand__list li.is-done i {
  background: var(--good);
  border-color: var(--good);
}
.sol-hand__list li.is-done i path {
  stroke-dashoffset: 0;
}
/* hover or focus ticks an open item (a preview; it unticks on leave) */
.sol-hand__list li:not(.is-done):hover,
.sol-hand__list li:not(.is-done):focus {
  color: var(--ink);
}
.sol-hand__list li:not(.is-done):hover i,
.sol-hand__list li:not(.is-done):focus i {
  background: var(--good);
  border-color: var(--good);
}
.sol-hand__list li:not(.is-done):hover i path,
.sol-hand__list li:not(.is-done):focus i path {
  stroke-dashoffset: 0;
}

/* --- 06 resource tiles --------------------------------------------------- */
.sol-tiles {
  grid-column: 1 / -1;
  order: 3;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 899px) {
  .sol-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sol-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
}
.sol-tile__ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--pill);
  background: var(--field);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.sol-tile__ico svg {
  width: 12px;
  height: 12px;
}
.sol-tile__text {
  min-width: 0;
}
.sol-tile h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}
.sol-tile__meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .sol-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  .sol-ch .viz {
    min-height: 220px;
  }
}

/* ======================================================= INK STROKES == */
.sol-link {
  margin-block: clamp(2px, 1vw, 14px);
  padding-inline: clamp(8px, 3vw, 56px);
}
.sol-link__svg {
  width: 100%;
  height: auto;
}
/* annotation, not structure: a shade back from full ink */
.sol-chapters .sol-link__svg {
  color: rgba(17, 17, 17, 0.72);
}
/* a link into a chapter whose label sits on the left lands on the left */
.sol-link--mirror .sol-link__svg {
  transform: scaleX(-1);
}
.sol-link--circle,
.sol-link--loop {
  padding-inline: clamp(8px, 2vw, 32px);
}

/* ======================================================= MOCK ASSEMBLY == */
@media (prefers-reduced-motion: no-preference) {
  /* banking: the limit bar fills after the card lands */
  .js .sol-bank__stack[data-reveal] .sol-bank__bar i {
    transform: scaleX(0);
  }
  .js .sol-bank__stack[data-reveal].is-in .sol-bank__bar i {
    transform: scaleX(0.424);
    transition: transform 800ms var(--ease) 380ms;
  }

  /* compliance: the calendar cells pop rather than rise */
  .js .sol-cal__cells[data-reveal][data-stagger] > * {
    transform: scale(0.72);
  }
  .js .sol-cal__cells[data-reveal][data-stagger].is-in > * {
    transform: none;
    transition:
      opacity 420ms var(--ease),
      transform 420ms var(--ease);
  }

  /* handoff: the done items tick in sequence once the rows land */
  .js .sol-hand__list[data-reveal] li.is-done i path {
    stroke-dashoffset: 14;
  }
  .js .sol-hand__list[data-reveal].is-in li.is-done i path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 360ms var(--ease) 420ms;
  }
  .js .sol-hand__list[data-reveal].is-in li.is-done:nth-child(2) i path {
    transition-delay: 600ms;
  }
}

/* ===================================================== SEASON TIMELINE == */
.timeline-card {
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 44px);
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the rail, and the completed part of it */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 6px;
  height: 1px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  background: var(--hairline);
}
.timeline::after {
  right: auto;
  width: calc(100% / 12 * 4);
  background: var(--ink);
}
.tl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.tl__dot {
  width: 13px;
  height: 13px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
.tl.is-done .tl__dot {
  background: var(--ink);
  border-color: var(--ink);
}
.tl.is-current .tl__dot {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(112, 48, 176, 0.14);
}
.tl__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  text-wrap: balance;
}
.tl.is-done .tl__label,
.tl.is-current .tl__label {
  color: var(--ink);
}
.tl__badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--pill);
  background: var(--purple);
  color: #ffffff;
}
/* the drawn rail: `.ink-stroke` in /css/motion.css sets width/height and
   loads after this file, so the rail's own box needs the extra class */
.timeline-wrap {
  position: relative;
}
.timeline-wrap .timeline__rail {
  position: absolute;
  top: 5px;
  left: calc(100% / 12);
  width: calc(100% / 12 * 4);
  height: 4px;
  z-index: 0;
}
@media (min-width: 761px) {
  .timeline::after {
    display: none;
  }
}
@media (max-width: 760px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* 18px = the first dot's centre (12px row padding + half the 13px dot) */
  .timeline::before,
  .timeline::after {
    top: 18px;
    bottom: 18px;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }
  /* two of the five gaps between the six stops are behind us */
  .timeline::after {
    height: calc((100% - 36px) * 0.4);
    bottom: auto;
  }
  .tl {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    padding-block: 12px;
  }
  .timeline-wrap .timeline__rail {
    display: none;
  }
}
