/* How we work page (templates/core/how/): the draw-once diagrams. Loaded on /how-we-work/ only.

   Every diagram follows one contract (DESIGN.md "Diagrams": 1px lines, flat 6px nodes, emphasis only
   by the sparkle, every word in the DOM):

   <div class="how-diagram how-NAME" data-how-draw data-how-duration="2s">   duration optional, 1.6s
     <svg class="how-svg how-svg--wide" aria-hidden="true" focusable="false" viewBox="0 0 W H" preserveAspectRatio="none">
       <path class="how-line" pathLength="1" style="--at: 0; --len: 1" d="…" />    or <line … pathLength="1">
       <path class="how-fade" style="--at: .5" d="…" />                              dashed strokes, bands, outlines
     </svg>
     <svg class="how-svg how-svg--narrow" …>…</svg>                 no <text>, no nodes
     <div class="how-nodes how-nodes--wide" aria-hidden="true">
       <span class="how-node" style="--x: 0%; --y: 50%; --at: 0"></span>    is-spark (system.css), is-hollow
     </div>
     <div class="how-nodes how-nodes--narrow" aria-hidden="true">…</div>
     … the copy as HTML; a block that lands with a node: class="how-copy" style="--at: …"
   </div>

   - The SVG stretches to its grid area (preserveAspectRatio="none") and strokes keep 1px
     (non-scaling stroke), so the copy sets the height. Nodes are HTML so they stay round at 6px and
     can carry the sparkle: each node layer shares its SVG's grid area, and --x/--y are percentages
     of it (viewBox x / W, y / H).
   - Four things move, each with --at (a share of --draw, when it starts or lands; usually 0 to 1,
     but it may exceed 1, since it only scales against --draw: a diagram built of several
     stretches that enter view together, like the Method, counts it in stretches to play as one line):
     .how-line   a solid 1px stroke that draws along itself (<path> or <line>, pathLength="1").
                 --len (default 1) is the share of --draw it takes; --ease overrides its easing.
                 It owns stroke-dasharray, so a dashed stroke is never a .how-line.
     .how-fade   anything else that appears in place: dashed strokes, bands, outlines. Opacity
                 only; give it its own stroke or fill in the diagram's block.
     .how-node   a node (HTML, in the node layer). .how-node.is-spark is the site's sparkle: it
                 sits in system.css's sparkle lists, so it twinkles like the rest and holds its
                 still frame under reduced motion and the pause control.
     .how-copy   a copy block: fades and rises .5rem.
   - No JS, reduced motion and print: the finished frame, solid lines included. how.js adds
     .is-armed (the hidden start), .is-drawn once (the transitions run) and .is-done when the last
     line has finished. The dash that draws a line exists only from .is-armed to .is-done, sized per
     line by how.js (--dash), so lines are solid before and after the draw in every engine.
   - Colours: the --how-* tokens below, which switch on .band-light. A diagram sets its wide width
     with --how-max-wide, never max-width, so the narrow cap holds.
   - Per-diagram rules: one commented block each, below the engine, in page order, with its narrow
     layout under @media print, (max-width: 991px). */

/* ---------- Engine ---------- */
.how-diagram {
  /* on black: silver-white lines, white nodes. Every stroke that carries meaning is at least 3:1 on
     its band (WCAG 1.4.11): --how-line 4.5:1, --how-line-dim (a stroke dimmed while another is
     hovered) 3.2:1. --how-line-faint (1.3:1) is only for fills and hairlines, never a stroke. */
  --how-line: rgb(226 230 236 / .5);
  --how-line-strong: var(--color--white);
  --how-line-dim: rgb(226 230 236 / .4);
  --how-line-faint: rgb(226 230 236 / .14);
  --how-ink: var(--color--white);
  --how-ground: var(--page-bg);
  --how-ease: cubic-bezier(.65, 0, .35, 1);
  --how-ease-in: cubic-bezier(.5, 0, .9, .6);
  --how-ease-out: cubic-bezier(.1, .4, .3, 1);
  --draw: 1.6s;
  position: relative;
  max-width: var(--how-max-wide, none); /* a diagram sets --how-max-wide, never max-width, so the narrow cap holds */
  margin-inline: auto;
}
.band-light .how-diagram {
  /* on white (.band-light, and .band-white with it): ink. --how-line 4.5:1, --how-line-dim 3.2:1 */
  --how-line: rgb(5 9 15 / .55);
  --how-line-strong: var(--band-light-text);
  --how-line-dim: rgb(5 9 15 / .45);
  --how-line-faint: rgb(5 9 15 / .12);
  --how-ink: var(--band-light-text);
  --how-ground: var(--band-light-bg);
}

.how-svg { display: block; width: 100%; height: 100%; overflow: visible; contain: size; pointer-events: none; }
.how-svg--narrow, .how-nodes--narrow { display: none; }

.how-line {
  fill: none;
  stroke: var(--how-line);
  stroke-width: var(--line);
  vector-effect: non-scaling-stroke;
  transition: stroke .3s ease;
}

.how-nodes { position: relative; pointer-events: none; }
.how-node {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  box-sizing: border-box;
  width: var(--node);
  height: var(--node);
  margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  border-radius: 50%;
  background: var(--how-ink);
}
.how-node.is-hollow { border: 1px solid var(--how-ink); background: var(--how-ground); }

/* armed by how.js, on screen only, so print and no-JS keep the finished frame. The dash that draws
   a line exists only from .is-armed until .is-done: the frame before and after it is solid by
   construction. A non-scaling stroke's dash is measured in user units but drawn on screen (Chrome),
   so how.js sets --dash on each line to its on-screen length over its user length; the dash then
   covers the whole line and the draw reaches the end. Dash, gap twice as long: no stray end shows
   while it draws. .is-done lands once the last line has finished, and drops the dash. */
@media screen {
  .how-diagram.is-armed .how-line { stroke-dasharray: var(--dash, 1) calc(var(--dash, 1) * 2); stroke-dashoffset: 0; }
  .how-diagram.is-armed.is-done .how-line { stroke-dasharray: none; }
  .how-diagram.is-armed:not(.is-drawn) :is(.how-line, .how-fade, .how-node, .how-copy) { transition: none; }
  .how-diagram.is-armed:not(.is-drawn) .how-line { stroke-dashoffset: var(--dash, 1); }
  .how-diagram.is-armed:not(.is-drawn) :is(.how-fade, .how-node, .how-copy) { opacity: 0; }
  .how-diagram.is-armed:not(.is-drawn) .how-copy { translate: 0 .5rem; }

  .how-diagram.is-drawn .how-line {
    transition:
      stroke-dashoffset calc(var(--len, 1) * var(--draw)) var(--ease, var(--how-ease)) calc(var(--at, 0) * var(--draw)),
      stroke .3s ease;
  }
  .how-diagram.is-drawn .how-fade { transition: opacity .5s ease-out calc(var(--at, 0) * var(--draw)); }
  .how-diagram.is-drawn .how-node { transition: opacity .3s ease-out calc(var(--at, 0) * var(--draw)); }
  .how-diagram.is-drawn .how-copy {
    transition:
      opacity .7s var(--ease-out) calc(var(--at, 0) * var(--draw)),
      translate .7s var(--ease-out) calc(var(--at, 0) * var(--draw));
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-diagram * { transition: none !important; }
}
.motion-paused .how-diagram * { transition: none !important; }

/* under 992px, and in print: the narrow variant in a centred column */
@media print, (max-width: 991px) {
  .how-svg--wide, .how-nodes--wide { display: none; }
  .how-svg--narrow, .how-nodes--narrow { display: block; }
  .how-diagram { max-width: 38rem; }
}
@media print {
  .how-diagram * { transition: none !important; }
}

/* Windows High Contrast: the nodes are painted spans, whose backgrounds forced colours would wipe, so
   they opt out and take the system ink; every stroke takes it too. The tokens follow, so a lit stroke
   stays CanvasText and a stroke dimmed while another is hovered turns GrayText. */
@media (forced-colors: active) {
  .how-diagram {
    --how-line: CanvasText;
    --how-line-strong: CanvasText;
    --how-line-dim: GrayText;
    --how-line-faint: GrayText;
    --how-ink: CanvasText;
    --how-ground: Canvas;
  }
  .how-node { forced-color-adjust: none; background: CanvasText; }
  .how-node.is-hollow { background: Canvas; border-color: CanvasText; }
  .how-diagram :is(.how-line, .how-outline, .how-ai-lane, .how-method-dots) { stroke: CanvasText; }
  .how-overlap { fill: none; stroke: CanvasText; stroke-width: var(--line-hair); vector-effect: non-scaling-stroke; } /* the faint window becomes its outline */
}

/* ---------- Habits: the Braid (_habits.html) ----------
   Wide: the three habits in equal rows on the left, so each strand leaves the middle of its row
   (y 1/6, 1/2, 5/6), braids into one line and ends on the sparkling node beside "Your product".
   Narrow: the strands start side by side at the top of a 60px rail and twist down into one line,
   with the habits stacked on the right. A mouse on a habit lights its strand. */
.how-braid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) clamp(1.5rem, 3vw, 2.5rem) minmax(0, 1fr) .875rem max-content;
  grid-template-areas: "copy . art . end";
  --how-max-wide: 1080px;
}
.how-braid > :is(.how-svg, .how-nodes) { grid-area: art; }
.how-braid .is-merged { stroke: var(--how-line-strong); }
.how-braid .how-braid-end { color: var(--how-ink); } /* outranks .band-light p: the end reads as ink, like the titles */

.how-braid-list { grid-area: copy; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.how-braid-item { display: flex; flex-direction: column; justify-content: center; margin: 0; padding-block: 1.25rem; }
.how-braid-title { margin: 0; font-size: var(--h3-card); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.how-braid-body { margin: .5rem 0 0; font-size: 1rem; line-height: 1.55; }
.how-braid-end {
  grid-area: end;
  align-self: center;
  margin: 0;
  font-size: var(--h3-item);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
}

@media (hover: hover) {
  .how-braid:has(.how-braid-item:hover) .how-line:not(.is-merged) { stroke: var(--how-line-dim); }
  .how-braid:has(.how-braid-item[data-strand="1"]:hover) .how-line[data-strand="1"],
  .how-braid:has(.how-braid-item[data-strand="2"]:hover) .how-line[data-strand="2"],
  .how-braid:has(.how-braid-item[data-strand="3"]:hover) .how-line[data-strand="3"] { stroke: var(--how-line-strong); }
}

@media print, (max-width: 991px) {
  .how-braid {
    grid-template-columns: 3.75rem 1rem minmax(0, 1fr);
    grid-template-areas: "art . copy" ". . end";
  }
  .how-braid-list { grid-auto-rows: auto; }
  .how-braid-item { display: block; padding: 0 0 2.75rem; }
  .how-braid-title { margin-top: calc(var(--h3-card) * -.6); } /* its first line's middle sits on the strands' start */
  .how-braid-end { margin-top: -.75em; }                        /* its middle sits on the rail's end */
}

/* ---------- Method: one line, four behaviours (_method.html) ----------
   Each stage is its own draw-once diagram (an <li> of .how-method), so under 992px each stretch
   draws as you scroll past it. Wide: four equal columns with no gap, so the four stretches join
   into one line across the top; each stage's copy sits under its stretch, its title under the
   stage's node. The stages enter view together and their wide --at counts in stages, so the line
   plays left to right. The art row is sized to keep each 250x100 stretch near 2.5:1 (the loop
   stays round). Narrow: the stages stack, the line runs down a 60px rail and each title's first
   line sits on its stage's node. */
.how-method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: clamp(5.25rem, 8.6vw, 7.125rem) repeat(3, auto); /* art, then title, body and deliverables */
  margin: 0;
  padding: 0;
  list-style: none;
}
/* subgrid: the stages share the parent's rows, so every title, body and deliverables list starts level */
.how-method-stage {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  grid-template-areas: "art" "copy" "copy" "copy";
  margin: 0;
}
.how-method-stage > :is(.how-svg, .how-nodes) { grid-area: art; }
.how-method-dots {
  fill: none;
  stroke: var(--how-line);
  stroke-width: var(--line-hair);
  stroke-dasharray: 1 5;
  vector-effect: non-scaling-stroke;
}

.how-method-copy {
  display: grid;
  grid-area: copy;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 1.75rem 2rem 0 0;
  --at: var(--stage);
}
.how-method-title {
  margin: 0;
  color: var(--how-ink);
  font-size: var(--h3-feature);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.how-method-body { margin: .75rem 0 0; font-size: 1rem; line-height: 1.55; }
.how-method-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.how-method-list li {
  margin: 0;
  padding: .625rem 0;
  border-top: 1px solid var(--line-dark);
  color: var(--how-ink);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}

@media print, (max-width: 991px) {
  .how-method { display: block; }
  .how-method-stage {
    grid-template-columns: 3.75rem 1rem minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "art . copy";
  }
  .how-method-copy { display: block; padding: 0 0 3.5rem; --at: 0; }
  .how-method-stage:last-child .how-method-copy { padding-bottom: 0; }
  .how-method-title { margin-top: -.575em; } /* its first line's middle sits on the stage's node */
}

/* ---------- Engage: the Route map (_engage.html) ----------
   Transit style. Wide: four equal columns with no gap, one art row across them; stations sit on the
   column edges, so each label's left edge is its station. The upper options (fixed milestones, monthly
   support) are labelled above the line, the rest below it. Each choice is one list item whose options
   share the diagram's rows (subgrid), so the copy stays one ordered list in route order. Narrow: a 60px
   rail in column 1, cut into one SVG and node layer per copy row, so each station is level with its
   name's first line; the copy column sits in column 2, after the tracks. A mouse on an option lights
   its track and dims the other one. */
.how-engage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 4.5rem auto; /* labels above the line, the art, labels below */
}
.how-engage > :is(.how-svg--wide, .how-nodes--wide) { grid-column: 1 / -1; grid-row: 2; }
.how-engage .how-line { stroke-linejoin: round; }

.how-engage-copy,
.how-engage-choice,
.how-engage-options { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; margin: 0; padding: 0; list-style: none; }
.how-engage-copy { grid-column: 1 / -1; grid-template-columns: subgrid; }
.how-engage-copy > :nth-child(1) { grid-column: 1; }
.how-engage-copy > :nth-child(2) { grid-column: 2; }
.how-engage-copy > :nth-child(3) { grid-column: 3; }
.how-engage-copy > :nth-child(4) { grid-column: 4; }
.how-engage-copy > .how-engage-stop { grid-row: 3; }
.how-engage-options > :first-child { grid-row: 1; align-self: end; padding: 0 2rem 1rem 0; }
.how-engage-options > :last-child { grid-row: 3; }

.how-engage-stop { margin: 0; padding: 1rem 2rem 0 0; }
.how-engage-name {
  margin: 0;
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.how-engage-note { margin: .5rem 0 0; max-width: 32ch; font-size: 1rem; line-height: 1.55; }

/* each label lands as its station does */
.how-engage-stop[data-stop="discovery"] { --at: 0; }
.how-engage-stop:is([data-stop="milestones"], [data-stop="team"]) { --at: .24; }
.how-engage-stop[data-stop="launch"] { --at: .57; }
.how-engage-stop:is([data-stop="support"], [data-stop="handover"]) { --at: 1; }

@media (hover: hover) {
  .how-engage:has(.how-engage-stop[data-stop="milestones"]:hover) .how-line[data-stop="team"],
  .how-engage:has(.how-engage-stop[data-stop="team"]:hover) .how-line[data-stop="milestones"],
  .how-engage:has(.how-engage-stop[data-stop="support"]:hover) .how-line[data-stop="handover"],
  .how-engage:has(.how-engage-stop[data-stop="handover"]:hover) .how-line[data-stop="support"] { stroke: var(--how-line-dim); }
  .how-engage:has(.how-engage-stop[data-stop="milestones"]:hover) .how-line[data-stop="milestones"],
  .how-engage:has(.how-engage-stop[data-stop="team"]:hover) .how-line[data-stop="team"],
  .how-engage:has(.how-engage-stop[data-stop="support"]:hover) .how-line[data-stop="support"],
  .how-engage:has(.how-engage-stop[data-stop="handover"]:hover) .how-line[data-stop="handover"] { stroke: var(--how-line-strong); }
}

@media print, (max-width: 991px) {
  .how-engage {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    grid-template-rows: repeat(6, auto); /* one row per stop; the rail's SVGs take rows 1 to 5 */
    column-gap: 1rem;
  }
  .how-engage > :is(.how-svg, .how-nodes) { grid-column: 1; }
  .how-engage-copy { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
  .how-engage-copy > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .how-engage-copy > :nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
  .how-engage-copy > :nth-child(3) { grid-column: 1; grid-row: 4; }
  .how-engage-copy > :nth-child(4) { grid-column: 1; grid-row: 5 / span 2; }
  .how-engage-options > :first-child { grid-row: 1; align-self: auto; padding: 0 0 1.5rem; } /* the two options of a choice sit close */
  .how-engage-options > :last-child { grid-row: 2; }
  .how-engage-stop { padding: 0 0 2.75rem; }
  .how-engage-copy > :last-child .how-engage-stop:last-child { padding-bottom: 0; }
  .how-engage-name { margin-top: -.6em; } /* its first line's middle sits on its station */
  .how-engage-note { max-width: none; }
  .how-engage-stop[data-stop="team"] { --at: .39; }
  .how-engage-stop[data-stop="support"] { --at: .81; }
}

/* ---------- Week: two days, one overlap (_week.html) ----------
   On top at every width, one day strip (one SVG, node layer and label layer, no variant): the "You" and "Us"
   bars, offset, share a lit window, the overlap band between their lit stretches. Eight columns of 100 units:
   You runs columns 1 to 5, Us 4 to 8, so the window is columns 4 and 5. Wide: the overlap's copy starts on the
   window's left edge; the week runs underneath as a rail across columns 1 to 6, a dot for each day's written
   update and the sparkling demo at its end, with the demo's copy beside the spark (its title's first line on
   the rail) and the daily updates and the reply below. Narrow: the strip stays full width on top, and the week
   becomes a 60px rail beside the daily-update copy; the spark sits level with the demo's title. */
.how-week {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: 8rem auto calc(var(--h3-card) * 1.2) auto; /* the strip, the overlap, the rail, the rest */
}
.how-week > .how-week-strip { grid-column: 1 / -1; grid-row: 1; }
.how-week > :is(.how-svg--wide, .how-nodes--wide) { grid-column: 1 / span 6; grid-row: 3; }
.how-week .is-lit { stroke: var(--how-line-strong); }
.how-overlap { fill: var(--how-line-faint); stroke: none; }

.how-week-bars { position: relative; margin: 0; }
.how-week-bar {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: var(--how-ink);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* transform, not translate: .how-copy rises with translate, so the two compose */
.how-week-bar[data-bar="you"] { transform: translateY(calc(-100% - .75rem)); } /* above the start of its bar */
.how-week-bar[data-bar="us"] { transform: translate(-100%, .75rem); }          /* below the end of its bar */

.how-week-beats {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2 / -1;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-week-beat { margin: 0; }
.how-week-title {
  margin: 0;
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.how-week-body { margin: .5rem 0 0; max-width: 32ch; font-size: 1rem; line-height: 1.55; }

/* each beat's place, and when it lands */
.how-week-beat[data-beat="overlap"] { grid-column: 4 / span 3; grid-row: 1; padding: 1.75rem 2rem 4rem 0; --at: .25; }
.how-week-beat[data-beat="update"] { grid-column: 1 / span 3; grid-row: 3; padding: 1.5rem 2rem 0 0; --at: .5; }
.how-week-beat[data-beat="demo"] { grid-column: 7 / span 2; grid-row: 2 / span 2; padding-left: 1.25rem; --at: 1; }
.how-week-beat[data-beat="reply"] { grid-column: 4 / span 3; grid-row: 3; padding: 1.5rem 2rem 0 0; --at: .75; }

@media print, (max-width: 991px) {
  .how-week {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    grid-template-rows: 7rem repeat(4, auto); /* the strip, then one row per beat; the rail takes the updates' row */
    column-gap: 1rem;
  }
  .how-week > :is(.how-svg--narrow, .how-nodes--narrow) { grid-column: 1; grid-row: 3; }
  .how-week-beat[data-beat] { grid-column: 2; padding: 0 0 2.75rem; } /* as specific as the wide places, so it wins */
  .how-week-beat[data-beat="overlap"] { grid-row: 1; padding-top: 1.75rem; }
  .how-week-beat[data-beat="update"] { grid-row: 2; min-height: 9rem; } /* its row is the rail: room for five days */
  .how-week-beat[data-beat="demo"] { grid-row: 3; padding-left: 0; }
  .how-week-beat[data-beat="reply"] { grid-row: 4; padding-bottom: 0; }
  .how-week-beat:is([data-beat="update"], [data-beat="demo"]) .how-week-title { margin-top: -.6em; } /* its first line's middle sits on its node */
  .how-week-body { max-width: none; }
}

/* ---------- AI: two lanes (_ai.html) ----------
   A people lane (solid line, solid nodes) runs over an AI lane (dashed, a .how-fade, hollow nodes). Research,
   testing and review each start on the AI lane and climb to a decision on the people lane; the last decision
   sparkles. Wide: the lane labels in their own column, three equal step columns over one viewBox 900x100, then
   the data note beside the lanes. Each step's name and the AI's part sit under its start node, the people's
   part over its decision (20% in: 60 of the column's 300 units). Narrow: the lanes turn vertical in a 60px rail
   (AI on x 12, people on x 48), one SVG and node layer per copy row, so each slant runs from its start node,
   level with the name, to its decision, level with the people's part. A mouse on a step lights its climb. */
.how-ai {
  display: grid;
  grid-template-columns: max-content 1.25rem repeat(3, minmax(0, 1fr)) clamp(2rem, 4vw, 4.5rem) clamp(13rem, 22vw, 17rem);
  grid-template-rows: auto clamp(5rem, 7vw, 6.5rem) auto; /* the people's parts, the lanes, the names and the AI's parts */
}
.how-ai > :is(.how-svg--wide, .how-nodes--wide) { grid-column: 3 / span 3; grid-row: 2; }
.how-ai-lane {
  fill: none;
  stroke: var(--how-line);
  stroke-width: var(--line-hair);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.how-ai-lanes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}
.how-ai-lane-label {
  color: var(--how-ink);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* transform, not translate: .how-copy rises with translate, so the two compose */
.how-ai-lane-label[data-lane="people"] { transform: translateY(-50%); } /* its middle on the people lane */
.how-ai-lane-label[data-lane="ai"] { transform: translateY(50%); }      /* its middle on the AI lane */

.how-ai-steps {
  display: grid;
  grid-column: 3 / span 3;
  grid-row: 1 / span 3;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-ai-step { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; margin: 0; }
.how-ai-start { grid-row: 3; padding: 1.25rem 1.5rem 0 0; }
.how-ai-name {
  margin: 0;
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.how-ai-part { margin: .5rem 0 0; max-width: 32ch; font-size: 1rem; line-height: 1.55; }
/* the decision reads as ink, like the solid lane it sits on; outranks .band-light p */
.how-ai .how-ai-people {
  grid-row: 1;
  align-self: end;
  margin: 0;
  padding: 0 1rem 1rem 20%;
  color: var(--how-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

/* each part lands as its node does */
.how-ai-step[data-step="1"] .how-ai-start { --at: 0; }
.how-ai-step[data-step="1"] .how-ai-people { --at: .15; }
.how-ai-step[data-step="2"] .how-ai-start { --at: .3; }
.how-ai-step[data-step="2"] .how-ai-people { --at: .45; }
.how-ai-step[data-step="3"] .how-ai-start { --at: .6; }
.how-ai-step[data-step="3"] .how-ai-people { --at: .75; }

.how-ai-data { grid-column: 7; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 0; list-style: none; }
.how-ai-data li {
  margin: 0;
  padding: .875rem 0;
  border-top: 1px solid var(--how-line-faint);
  font-size: 1rem;
  line-height: 1.5;
}
.how-ai-data li:last-child { border-bottom: 1px solid var(--how-line-faint); }

@media (hover: hover) {
  .how-ai:has(.how-ai-step[data-step="1"]:hover) .how-ai-climb[data-step="1"],
  .how-ai:has(.how-ai-step[data-step="2"]:hover) .how-ai-climb[data-step="2"],
  .how-ai:has(.how-ai-step[data-step="3"]:hover) .how-ai-climb[data-step="3"] { stroke: var(--how-line-strong); }
}

@media print, (max-width: 991px) {
  .how-ai {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    grid-template-rows: repeat(8, auto); /* the lane labels, two rows per step (the rail's SVGs take rows 2 to 7), the data note */
    column-gap: 1rem;
  }
  .how-ai > :is(.how-svg, .how-nodes) { grid-column: 1; }
  .how-ai-lanes { display: block; position: relative; grid-column: 1 / -1; grid-row: 1; height: .75rem; margin-bottom: 1.5rem; }
  .how-ai-lane-label { position: absolute; top: 0; }
  .how-ai-lane-label[data-lane] { transform: none; }                       /* as specific as the wide offsets, so it wins */
  .how-ai-lane-label[data-lane="ai"] { left: calc(3.75rem * .2 - 3px); }     /* its left edge on its lane's node */
  .how-ai-lane-label[data-lane="people"] { left: calc(3.75rem * .8 - 3px); }
  .how-ai-steps { grid-column: 2; grid-row: 2 / span 6; grid-template-columns: minmax(0, 1fr); }
  .how-ai-step { grid-column: 1; grid-row: span 2; }
  .how-ai-start { grid-row: 1; padding: 0 0 1.5rem; }
  .how-ai-name { margin-top: -.6em; }    /* its first line's middle sits on the start node */
  .how-ai-part { max-width: none; }
  .how-ai .how-ai-people { grid-row: 2; align-self: start; margin-top: -.75em; padding: 0 0 2.75rem; } /* its first line on the decision */
  .how-ai .how-ai-step:last-child .how-ai-people { padding-bottom: 0; }
  .how-ai-data { grid-column: 2; grid-row: 8; align-self: auto; margin-top: 3rem; }
}

/* ---------- Always: the constants (_always.html) ----------
   Three dashed project outlines of different sizes (.how-outline, a .how-fade) crossed by four unbroken lines,
   one per promise. Every outline runs its SVG's full height, so every line crosses it by construction; the sizes
   differ by width. The promises are one list on a subgrid: a title row and a body row each, between a top and a
   bottom spacer row that give the outlines room above the first line and below the last. Each line is its own
   SVG on its promise's title row, drawn along the row's bottom edge, so the title sits on it and its sentence
   reads below; it runs the diagram's full width at every size. Wide: the copy on the left, the projects in the
   art column on the right. Narrow: the projects stand in a 60px rail on the left, and the lines still cross it
   and run under the titles to the far edge. A mouse on a promise lights its line. */
.how-always {
  display: grid;
  grid-template-columns: minmax(0, 24rem) clamp(2rem, 5vw, 4.5rem) minmax(0, 1fr);
  grid-template-rows: 2.5rem repeat(8, auto) 3rem; /* spacer, a title row and a body row per promise, spacer */
  --how-max-wide: 1080px;
}
.how-always > .how-svg { grid-column: 1 / -1; }                            /* the constants: full width */
.how-always > .how-svg[data-art="projects"] { grid-column: 3; grid-row: 1 / -1; }
.how-outline {
  fill: none;
  stroke: var(--how-line);
  stroke-width: var(--line-hair);
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.how-always-list {
  display: grid;
  grid-column: 1;
  grid-row: 2 / span 8;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-always-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; margin: 0; }
.how-always-title {
  align-self: end;
  margin: 0;
  padding-bottom: .75rem; /* the title sits on its line, the row's bottom edge */
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.how-always-body { margin: 0; padding: 1rem 0 2.75rem; max-width: 40ch; font-size: 1rem; line-height: 1.55; }
.how-always-item:last-child .how-always-body { padding-bottom: 0; }

/* each promise lands as its line starts */
.how-always-item[data-promise="1"] { --at: .25; }
.how-always-item[data-promise="2"] { --at: .35; }
.how-always-item[data-promise="3"] { --at: .45; }
.how-always-item[data-promise="4"] { --at: .55; }

@media (hover: hover) {
  .how-always:has(.how-always-item[data-promise="1"]:hover) .how-line[data-promise="1"],
  .how-always:has(.how-always-item[data-promise="2"]:hover) .how-line[data-promise="2"],
  .how-always:has(.how-always-item[data-promise="3"]:hover) .how-line[data-promise="3"],
  .how-always:has(.how-always-item[data-promise="4"]:hover) .how-line[data-promise="4"] { stroke: var(--how-line-strong); }
}

@media print, (max-width: 991px) {
  .how-always {
    grid-template-columns: 3.75rem 1rem minmax(0, 1fr);
    grid-template-rows: 2rem repeat(8, auto) 2.5rem;
  }
  .how-always > .how-svg[data-art="projects"] { grid-column: 1; }
  .how-always-list { grid-column: 3; }
  .how-always-body { max-width: none; }
}

/* ---------- Stack: a cross-section with one request (_stack.html) ----------
   Four strata, top to bottom, with their tools set in, and one request line (.how-request, lit) dropping through
   every layer to the cloud; each stratum's boundary draws out from the crossing as the request reaches it, and
   the request lands on the sparkle at the base. The strata are one list on a subgrid of four equal rows, so the
   one request line crosses each boundary at y 100i of its viewBox whatever the copy's length. Wide: the names
   (set against the request), the request's rail and the tools at 2fr 1fr 7fr with no gap, so the request runs
   at 25%. Narrow: one column, the request down the right edge, the strata taller so the tools fit in two lines.
   A mouse on a stratum lights its boundary. */
.how-stack {
  display: grid;
  grid-template-columns: 2fr 1fr 7fr; /* the names, the request's rail (its middle at 25%), the tools */
  grid-template-rows: repeat(4, 1fr); /* equal strata: the tallest sets every row */
  --how-max-wide: 1080px;
}
.how-stack > :is(.how-svg, .how-nodes) { grid-column: 1 / -1; grid-row: 1 / -1; }
.how-stack .how-request { stroke: var(--how-line-strong); }

.how-stack-strata {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-stack-layer {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  margin: 0;
  padding-block: 2rem;
}
.how-stack-name {
  grid-column: 1;
  margin: 0;
  font-size: var(--h3-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: right; /* each name reads into the request */
  text-wrap: balance;
}
.how-stack-tools { grid-column: 3; display: flex; flex-wrap: wrap; gap: 1.25rem clamp(2rem, 3.5vw, 3.5rem); } /* Frontend and Mobile share a line from 992px */
.how-stack .how-stack-group-name {
  margin: 0 0 .625rem;
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.how-stack-items { display: flex; flex-wrap: wrap; gap: .375rem clamp(1rem, 1.75vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.how-stack-items li { margin: 0; color: var(--how-ink); font-size: 1.0625rem; line-height: 1.45; letter-spacing: -.01em; }

/* each stratum lands as the request reaches it */
.how-stack-layer[data-layer="1"] { --at: 0; }
.how-stack-layer[data-layer="2"] { --at: .2; }
.how-stack-layer[data-layer="3"] { --at: .4; }
.how-stack-layer[data-layer="4"] { --at: .6; }

@media (hover: hover) {
  .how-stack:has(.how-stack-layer[data-layer="1"]:hover) .how-line[data-layer="1"],
  .how-stack:has(.how-stack-layer[data-layer="2"]:hover) .how-line[data-layer="2"],
  .how-stack:has(.how-stack-layer[data-layer="3"]:hover) .how-line[data-layer="3"],
  .how-stack:has(.how-stack-layer[data-layer="4"]:hover) .how-line[data-layer="4"] { stroke: var(--how-line-strong); }
}

@media print, (max-width: 991px) {
  .how-stack { grid-template-columns: minmax(0, 1fr); }
  /* clear of the request on the right edge; centred in its stratum, since the tallest stratum sets every row */
  .how-stack-layer { display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 1.5rem 2.5rem 1.5rem 0; }
  .how-stack-name { text-align: left; }
  .how-stack-tools { flex-direction: column; gap: .5rem; margin-top: .875rem; }
  /* the top stratum's group names sit beside their tools, so it stays near the others' height */
  .how-stack-group:has(.how-stack-group-name) { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; }
  .how-stack .how-stack-group-name { margin: 0; }
}
@media (max-width: 599px) {
  /* too narrow for a name beside its tools: it goes back above them, so each group's tools keep one line */
  .how-stack-group:has(.how-stack-group-name) { display: block; }
  .how-stack .how-stack-group-name { margin: .25rem 0 .5rem; }
}
