/* TSP homepage, section 7: "How we work" and "Three ways to engage" (v3, after the owner's look on 2026-11-26;
   review fixes r1). Self-contained: every rule is under .th-engage and reads only the tokens in tokens.css, so the
   section ports to one Kajabi section on its own. The shared patterns it uses from home.css (wrap, eyebrow, H2,
   anchors, sr-only, focus ring, one-time reveal) are copied at the top under this root, value for value.
   Default state = everything lit and drawn (no JS, reduced motion). The script adds .th-js only when it animates;
   the draw states of the artifacts are inline styles it writes, transforms and opacity only. */

/* ======================================================================= shared patterns (from home.css, 23:02) */
.th-engage { position: relative; line-height: 1.6; color: var(--text); scroll-margin-top: 0; padding: clamp(112px, 12vw, 168px) 0 clamp(96px, 9vw, 128px); }
.th-engage, .th-engage *, .th-engage *::before, .th-engage *::after { box-sizing: border-box; }
.th-engage .th-wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.th-engage .th-anchor { position: absolute; inset: 0; pointer-events: none; }
.th-engage .th-anchor--g { left: calc((100% - min(100%, var(--wrap))) / 4 + var(--gutter) / 2); right: calc((100% - min(100%, var(--wrap))) / 4 + var(--gutter) / 2); }
.th-engage .th-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.th-engage .th-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 15px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--text-3); }   /* 22:57, the owner: a quiet label, no cyan rule */
.th-engage .th-h2 { margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--text); text-wrap: balance; }
.th-engage .th-h2--utility { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.07; letter-spacing: -0.035em; max-width: 22ch; }
.th-engage :is(a, button):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.th-engage.th-js .th-rv { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: var(--rv-d, 0ms); }
.th-engage.th-js .th-rv.is-in { opacity: 1; transform: none; }

/* ======================================================================= section tokens */
.th-engage {
  --e-gap: 24px;                 /* between the six columns */
  --e-art-h: 140px;              /* the artifact shelf above the line (desktop) */
  --e-rail-gap: 26px;            /* shelf to line */
  --e-rail-y: calc(var(--e-art-h) + var(--e-rail-gap) + 10.5px);   /* the line, from the top of the steps */
  --e-ink: rgba(255, 255, 255, .34);     /* artifact strokes */
  --e-ink-2: rgba(255, 255, 255, .58);
  --e-fill: rgba(255, 255, 255, .14);
  --e-dim: .3;                   /* a highlighted tier: the marks (nodes, artifacts, maps, bars) it doesn't cover */
  --e-dim-t: .8;                 /* ...and their text, which stays at 4.5:1 or more (--text-3 at .8 is 4.65:1) */
}

/* ======================================================================= head */
.th-engage .th-engage__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 56px; }
.th-engage .th-engage__note { margin: 0 0 4px; max-width: 34ch; font: 400 14.5px/1.5 var(--f-body); color: var(--text-3); }

/* ======================================================================= the six steps: artifact, line, text */
.th-engage .th-engage__flow { position: relative; margin-top: clamp(52px, 5.5vw, 76px); }
.th-engage .th-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--e-gap); }
.th-engage .th-step { position: relative; padding-top: calc(var(--e-art-h) + var(--e-rail-gap) + 42px); }

/* The rail: a 1px track through the six node centres (the page thread draws over it), the lit part behind the
   pulse, the highlight a tier sets, and the pulse. Decorative; positioned by the script, laid out by CSS. */
.th-engage .th-engage__rail { position: absolute; inset: 0; pointer-events: none; }
.th-engage :is(.th-engage__track, .th-engage__lit, .th-engage__hl) { position: absolute; left: 10.5px; top: var(--e-rail-y); width: calc((100% + var(--e-gap)) * 5 / 6); height: 1px; margin-top: -.5px; transform-origin: 0 50%; }
.th-engage .th-engage__track { background: var(--line-2); }
.th-engage .th-engage__lit { background: var(--cyan); opacity: .7; transition: opacity .3s; }
.th-engage .th-engage__hl { height: 2px; margin-top: -1px; background: var(--cyan); opacity: 0; transition: opacity .3s, transform .35s var(--ease-out); }
.th-engage .th-engage__pulse { position: absolute; left: 10.5px; top: var(--e-rail-y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(var(--cyan-rgb), .35), 0 0 14px 4px rgba(var(--cyan-rgb), .55); opacity: 0; will-change: transform, opacity; }
/* The tail behind the pulse. The script scales it to the distance travelled, so it never reaches back past node 01. */
.th-engage .th-engage__tail { position: absolute; right: 50%; top: 50%; width: 84px; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0), rgba(var(--cyan-rgb), .85)); transform-origin: 100% 50%; }
.th-engage .th-engage__loop { position: absolute; left: 10.5px; top: var(--e-rail-y); width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0; transition: opacity .3s; }
.th-engage .th-engage__loop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.th-engage .th-engage__loop path { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* A node: a ring with a solid centre, centred on the line. Its centre is where the thread anchors (step-1..6).
   Lit is the default; with the script running, a node stays a dim ring until the pulse reaches it. */
.th-engage .th-step__node { position: absolute; z-index: 1; top: calc(var(--e-rail-y) - 7.5px); left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid rgba(255, 255, 255, .26); transition: opacity .3s; }
.th-engage .th-step__node::before { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--cyan); transition: opacity .35s; }
.th-engage .th-step__node::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--cyan); transition: opacity .35s, transform .35s var(--ease-out); }
.th-engage.th-js .th-step:not(.is-lit) .th-step__node::before { opacity: 0; }
.th-engage.th-js .th-step:not(.is-lit) .th-step__node::after { opacity: 0; transform: scale(.4); }

.th-engage .th-step__n { display: block; margin-bottom: 10px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--text-2); }
.th-engage .th-step__t { margin: 0 0 8px; font: 600 clamp(19px, 1.6vw, 22px)/1.2 var(--f-display); letter-spacing: -0.015em; color: var(--text); }
.th-engage .th-step__d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
/* (the artifacts' own opacity follows the scroll exactly, so it has no transition) */
.th-engage :is(.th-step__n, .th-step__t, .th-step__d) { transition: opacity .4s; }

/* Thread point (integration): steps-out, the end of the node row in the right gutter, on the line's height. */
.th-engage .th-steps__out { top: calc(var(--e-art-h) + var(--e-rail-gap)); bottom: auto; height: 21px; left: 0; right: calc(-1 * ((100vw - min(100vw, var(--wrap))) / 4 + var(--gutter) / 2)); }
/* 2026-11-27: the right gutter's middle from the section's own width (100cqw), as the hero and the rail measure theirs:
   100vw includes a visible scrollbar (14px in the owner's browser), which put this point 3.5px right of the middle the
   section's other gutter points use. The 100vw rule above stays for browsers without container units. Before the
   stacked layout's rule below (900px and under), which still places the point there. */
@supports (width: 1cqw) {
  .th-engage { container-type: inline-size; }
  .th-engage .th-steps__out { right: calc(-1 * ((100cqw - min(100cqw, var(--wrap))) / 4 + var(--gutter) / 2)); }
}

/* A short stem from each node up to its artifact. */
.th-engage .th-engage__stem { position: absolute; left: 10px; top: var(--e-art-h); width: 1px; height: calc(var(--e-rail-gap) - 1px); background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .3)); transform-origin: 50% 100%; transition: opacity .3s; }

/* ======================================================================= the six artifacts (shared) */
/* One accent per artifact, the outcome itself (.th-engage__hi, the ADR's status, the last check, "resolved");
   everything else is ink. Labels are 10px or more, except at 901-1099px where the columns are narrowest. */
.th-engage .th-engage__art { position: absolute; top: 0; left: 0; right: 0; height: var(--e-art-h); margin: 0; display: flex; flex-direction: column; justify-content: flex-end; color: var(--text-2); font: 400 11px/1.35 var(--f-body); }
.th-engage .th-engage__cap { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .01em; color: var(--text-3); white-space: nowrap; }
.th-engage .th-engage__cap img { flex: none; display: block; width: 14px; height: 14px; }
.th-engage .th-engage__chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; font: 500 10px/1.4 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.th-engage .th-engage__chip b { font-weight: 500; color: var(--cyan); }
.th-engage .th-engage__svg { display: block; width: 100%; height: auto; overflow: visible; }
.th-engage .th-engage__s { fill: none; stroke: var(--e-ink-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.th-engage .th-engage__s--soft { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 2 3; }
.th-engage .th-engage__ok { flex: none; display: block; width: 10px; height: 10px; overflow: visible; }
/* A line chart's draw: the script slides this clipping box right and its svg left by the same amount (a wipe). */
.th-engage .th-engage__wipe { display: block; overflow: hidden; }
.th-engage .th-engage__wipe > svg { display: block; }
.th-engage .th-engage__ok path { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 01 outcome brief: a page with a folded corner, three measures and their targets (the accuracy target is the accent) */
.th-engage .th-engage__doc { position: relative; padding: 8px 10px 4px; border: 1px solid var(--line-2); border-radius: 6px 0 6px 6px; }
.th-engage .th-engage__doc::after { content: ''; position: absolute; top: -1px; right: -1px; width: 13px; height: 13px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 3px; background: linear-gradient(to bottom left, var(--bg) 50%, rgba(255, 255, 255, .07) 50%); }
.th-engage .th-engage__doc::before { content: ''; position: absolute; top: 5.5px; right: -2.5px; width: 17.4px; height: 1px; background: var(--line-2); transform: rotate(45deg); }
.th-engage .th-engage__doc .th-engage__cap { margin-bottom: 5px; }
.th-engage .th-engage__kv { list-style: none; margin: 0; padding: 0; }
.th-engage .th-engage__kv li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0 4px; border-top: 1px solid var(--line); font: 400 11px/1.3 var(--f-body); color: var(--text-2); white-space: nowrap; }
.th-engage .th-engage__kv b { font: 500 10.5px/1.3 var(--f-mono); color: var(--text); }
.th-engage .th-engage__kv .th-engage__hi { color: var(--cyan); }

/* 02 reference architecture: three official AWS icons, arrows, a decision record, the run-cost estimate */
.th-engage .th-engage__arch { display: flex; align-items: flex-start; }
.th-engage .th-engage__svc { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 26px; font: 400 10px/1.15 var(--f-body); color: var(--text-2); text-align: center; }
.th-engage .th-engage__svc img { display: block; width: 26px; height: 26px; }
.th-engage .th-engage__arrow { position: relative; flex: 1 1 auto; min-width: 8px; max-width: 44px; height: 26px; margin: 0 3px; }
.th-engage .th-engage__arrow > i { position: absolute; left: 0; right: 2px; top: 12.5px; height: 1px; background: var(--e-ink-2); transform-origin: 0 50%; }
.th-engage .th-engage__arrow > b { position: absolute; right: 1px; top: 10px; width: 6px; height: 6px; border-top: 1px solid var(--e-ink-2); border-right: 1px solid var(--e-ink-2); transform: rotate(45deg); }
.th-engage .th-engage__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 11px; }
.th-engage .th-engage__cost { font: 500 10px/1.3 var(--f-mono); color: var(--text-2); }

/* 03 prototype: a browser frame running one flow (ask, draft, approve), and the test result (the accent) */
.th-engage .th-engage__frame { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.th-engage .th-engage__bar { display: flex; align-items: center; gap: 4px; height: 17px; padding: 0 7px; border-bottom: 1px solid var(--line); }
.th-engage .th-engage__bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.th-engage .th-engage__bar span { margin-left: 5px; font: 500 10px/1 var(--f-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; }
.th-engage .th-engage__screen { display: grid; gap: 4px; padding: 7px 8px 6px; }
.th-engage .th-engage__row { display: flex; align-items: center; gap: 6px; min-height: 13px; }
.th-engage .th-engage__row > em { flex: none; width: 5.2ch; font: normal 500 10px/1.2 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__ui { flex: none; height: 5px; border-radius: 3px; background: var(--e-fill); transform-origin: 0 50%; }
.th-engage .th-engage__ui--q { width: 46%; background: rgba(255, 255, 255, .24); }
.th-engage .th-engage__ui--a { width: calc(100% - 5.2ch - 6px); }
.th-engage .th-engage__ui--b { flex: 0 1 30%; min-width: 8px; }   /* gives way to "approve" in the narrowest columns */
.th-engage .th-engage__go { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 500 10px/1.4 var(--f-mono); color: var(--text-2); }
.th-engage .th-engage__test { margin: 9px 0 0; font: 500 10px/1.45 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__test span { display: flex; align-items: center; gap: 5px; color: var(--cyan); }

/* 04 iteration: an evaluation score per iteration, rising until it clears the target (the outlined bar) */
.th-engage .th-engage__chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 64px; border-bottom: 1px solid var(--line-2); }
.th-engage .th-engage__col { flex: 1 1 0; height: var(--h); border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, .17); transform-origin: 50% 100%; }
.th-engage .th-engage__col--on { background: rgba(var(--cyan-rgb), .08); border: 1.5px solid var(--cyan); border-bottom: 0; }
.th-engage .th-engage__goal { position: absolute; left: 0; right: 0; bottom: 80%; border-top: 1px dashed rgba(255, 255, 255, .45); }
.th-engage .th-engage__goal span { position: absolute; left: 0; bottom: 3px; font: 500 10px/1 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.th-engage .th-engage__val { position: absolute; right: 0; bottom: calc(86% + 4px); font: 500 10.5px/1 var(--f-mono); color: var(--text); }
.th-engage .th-engage__xs { display: flex; gap: 6px; margin-top: 4px; font: 500 10px/1.2 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__xs span { flex: 1 1 0; text-align: center; }

/* 05 production: lint, test, build, deploy, each checked (the last check is the accent); the SLO and the runbook */
.th-engage .th-engage__pipe { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-engage .th-engage__pipe::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 7.5px; height: 1px; background: var(--line-2); }
.th-engage .th-engage__pipe-l { position: absolute; left: 12.5%; right: 12.5%; top: 7.5px; height: 1px; background: rgba(255, 255, 255, .42); transform-origin: 0 50%; }
.th-engage .th-engage__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 500 10px/1.2 var(--f-mono); color: var(--text-2); }
.th-engage .th-engage__stage > i { position: relative; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); }
.th-engage .th-engage__stage > i > b { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); }
.th-engage .th-engage__stage .th-engage__ok { width: 8px; height: 8px; }
.th-engage .th-engage__stage .th-engage__ok path { stroke: var(--text-2); }
.th-engage .th-engage__stage--hi > i > b { border-color: var(--cyan); }
.th-engage .th-engage__stage--hi .th-engage__ok path { stroke: var(--cyan); }
.th-engage .th-engage__marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* 06 operate and evolve: p95 with an incident above the SLO line that resolves below it (the accent); cost per
   month trending down. Both labels stay in the end state, which is also what reduced motion and no JS show. */
.th-engage .th-engage__mon { position: relative; }
.th-engage .th-engage__wipe--over { position: absolute; top: 0; left: 0; right: 0; }   /* the p95 line, over the SLO line */
.th-engage .th-engage__tag { position: absolute; font: 500 10px/1 var(--f-mono); white-space: nowrap; }
.th-engage .th-engage__tag--inc { top: 1px; left: calc(41.25% + 7px); color: var(--text-2); }
.th-engage .th-engage__tag--ok { top: calc(35.6% + 3px); left: 55%; color: var(--cyan); }
.th-engage .th-engage__slo { position: absolute; left: 0; top: calc(35.6% - 12px); font: 500 10px/1 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__trend { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 10px/1.2 var(--f-mono); color: var(--text-3); white-space: nowrap; }
.th-engage .th-engage__trend .th-engage__wipe { flex: 1 1 auto; min-width: 30px; }
.th-engage .th-engage__trend svg { width: 100%; height: 14px; }

/* ======================================================================= three ways to engage */
.th-engage .th-tiers { margin-top: clamp(96px, 10vw, 140px); }
.th-engage .th-tiers__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 40px; margin-bottom: 26px; }
.th-engage .th-tiers__h { margin: 0; font: 600 clamp(26px, 2.5vw, 36px)/1.1 var(--f-display); letter-spacing: -0.028em; color: var(--text); }
.th-engage .th-tiers__sub { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* The shared week scale: one row per tier. Weeks 0-16 take the first 86% of the lane; past that, the scale
   runs on (only the Partnership reaches it). */
.th-engage .th-engage__dur { margin: 0 0 clamp(44px, 4.5vw, 60px); padding-top: 16px; border-top: 1px solid var(--line-2); }
.th-engage .th-engage__dur-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 10px; font: 400 14px/1.45 var(--f-body); color: var(--text-3); }
.th-engage .th-engage__dur-hint { display: none; }
.th-engage.th-ix .th-engage__dur-hint { display: block; }
.th-engage .th-engage__dur-hint--touch, .th-engage.th-ix .th-engage__dur-hint--touch { display: none; }
@media (hover: none) { .th-engage.th-ix .th-engage__dur-hint { display: none; } .th-engage.th-ix .th-engage__dur-hint--touch { display: block; } }
.th-engage .th-engage__dur-plot { --lin: 86%; }
.th-engage .th-engage__dur-row { display: grid; grid-template-columns: 148px minmax(0, 1fr) 150px; align-items: center; column-gap: 20px; height: 36px; }
.th-engage .th-engage__dur-name { font: 500 14px/1.2 var(--f-display); color: var(--text); white-space: nowrap; }
.th-engage .th-engage__dur-val { font: 500 11px/1.2 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.th-engage .th-engage__dur-lane { position: relative; height: 100%; background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-repeat: no-repeat; background-position: 0 0, 21.5% 0, 43% 0, 64.5% 0, 86% 0; }
.th-engage .th-engage__dur-bar { position: absolute; top: 50%; left: calc(var(--a) / 16 * var(--lin)); width: calc((var(--b) - var(--a)) / 16 * var(--lin)); height: 4px; margin-top: -2px; border-radius: 2px; background: var(--e-ink-2); transform-origin: 0 50%; transition: background-color .3s, opacity .3s; }
.th-engage .th-engage__dur-bar--opt { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .42) 0 3px, transparent 3px 6px); border-radius: 0 2px 2px 0; }
.th-engage .th-engage__dur-cyc { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 99%); mask-image: linear-gradient(90deg, #000 84%, transparent 99%); }
/* labels in a lane: the Partnership's quarters, the Build's shape ("milestone-based": no source gives a cadence,
   so the bar carries the word, not ticks at invented weeks) */
.th-engage .th-engage__dur-q { position: absolute; top: 2px; left: calc(var(--w) / 16 * var(--lin)); font: 500 10px/1 var(--f-mono); color: var(--text-3); white-space: nowrap; transition: opacity .3s; }
.th-engage .th-engage__dur-loop { position: absolute; top: 50%; left: calc(var(--w) / 16 * var(--lin)); width: 16px; height: 16px; margin: -8px 0 0 -8px; overflow: visible; transition: opacity .3s; }
.th-engage .th-engage__dur-loop path { fill: none; stroke: var(--text-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.th-engage .th-engage__dur-axis { display: grid; grid-template-columns: 148px minmax(0, 1fr) 150px; column-gap: 20px; margin-top: 6px; }
.th-engage .th-engage__dur-axis .th-engage__dur-lane { height: 16px; background: none; font: 500 10px/1 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__dur-axis .th-engage__dur-lane span { position: absolute; top: 3px; left: calc(var(--w) / 16 * var(--lin)); transform: translateX(-50%); }
.th-engage .th-engage__dur-axis .th-engage__dur-lane span:first-child { transform: none; }
.th-engage .th-engage__dur-axis .th-engage__dur-lane .th-engage__dur-more { left: auto; right: 0; transform: none; }
.th-engage .th-engage__dur-row > :is(.th-engage__dur-name, .th-engage__dur-val) { transition: opacity .3s; }
/* With the script: only the bars take the pointer (a 22px-tall hit band each), never the whole 1120px row. */
.th-engage.th-ix .th-engage__dur-row { pointer-events: none; }
.th-engage.th-ix .th-engage__dur-bar { pointer-events: auto; cursor: pointer; }
.th-engage.th-ix .th-engage__dur-bar::after { content: ''; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
/* a tier highlighted: its row in the accent; the other rows' bars quiet, their words still readable */
.th-engage .th-engage__dur-row.is-active .th-engage__dur-bar:not(.th-engage__dur-bar--opt) { background-color: var(--cyan); }
.th-engage .th-engage__dur-row.is-active .th-engage__dur-bar--opt { background: repeating-linear-gradient(90deg, rgba(var(--cyan-rgb), .75) 0 3px, transparent 3px 6px); }
.th-engage .th-engage__dur-row.is-active .th-engage__dur-loop path { stroke: var(--cyan); }
.th-engage[data-active] .th-engage__dur-row:not(.is-active) :is(.th-engage__dur-bar, .th-engage__dur-loop) { opacity: var(--e-dim); }
.th-engage[data-active] .th-engage__dur-row:not(.is-active) :is(.th-engage__dur-name, .th-engage__dur-val, .th-engage__dur-q) { opacity: var(--e-dim-t); }
/* one-time: the bars grow from week 0 as the chart comes into view */
.th-engage.th-js .th-engage__dur.th-rv :is(.th-engage__dur-bar, .th-engage__dur-cyc) { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-out); transition-delay: calc(var(--r, 0) * 120ms + 150ms); }
.th-engage.th-js .th-engage__dur.th-rv.is-in :is(.th-engage__dur-bar, .th-engage__dur-cyc) { transform: none; }

/* The three tiers: one aligned comparison, columns split by rules. Row 7 (2026-11-27): the calls to action, level. */
.th-engage .th-tiers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); }
.th-engage .th-tier { display: flex; flex-direction: column; padding: 4px 32px 0; border-left: 1px solid var(--line); }
@supports (grid-template-rows: subgrid) { .th-engage .th-tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; } }
.th-engage .th-tier:first-child { padding-left: 0; border-left: 0; }
.th-engage .th-tier:last-child { padding-right: 0; }
.th-engage .th-tier > * { transition: opacity .3s; }
.th-engage .th-tier__k { margin: 0 0 12px; font: 400 14px/1.4 var(--f-body); color: var(--text-3); }
.th-engage .th-tier__name { margin: 0 0 14px; font: 600 clamp(24px, 2.1vw, 30px)/1.1 var(--f-display); letter-spacing: -0.025em; color: var(--text); }
/* The name links to /contact/ (the owner, 2026-11-27), looking as the old toggle button did */
.th-engage .th-tier__link { display: inline-block; border-radius: 2px; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.th-engage .th-tier__link:hover, .th-engage .th-tier.is-active .th-tier__link { text-decoration-color: rgba(var(--cyan-rgb), .7); }
.th-engage .th-tier__d { margin: 0 0 24px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.th-engage .th-tier__meta { margin: 0 0 24px; padding: 14px 0; display: grid; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.th-engage .th-tier__meta > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: 12px; }
.th-engage .th-tier__meta dt { font: 400 14px/1.4 var(--f-body); color: var(--text-3); }
.th-engage .th-tier__meta dd { margin: 0; font: 500 15px/1.4 var(--f-display); color: var(--text); }
.th-engage .th-tier__inc { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 9px; }
.th-engage .th-tier__inc li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.th-engage .th-tier__inc li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--text-3); }
/* Each tier's call to action (2026-11-27): the live label, to /contact/. A secondary outline button: the hero .th-btn's
   geometry, the CTA library's ghost fill; edge 3.6:1 (1.4.11). Without subgrid, margin-top: auto keeps them level. */
.th-engage .th-tier__go { margin: auto 0 0; padding-top: 30px; }
.th-engage .th-tier__cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, .36); border-radius: 8px; background: rgba(255, 255, 255, .04); font: 600 15px/1 var(--f-display); letter-spacing: -0.005em; color: var(--text); text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.th-engage .th-tier__cta:hover, .th-engage .th-tier.is-active .th-tier__cta { border-color: rgba(var(--cyan-rgb), .7); background: rgba(255, 255, 255, .07); }
/* a tier highlighted: the other tiers' words stay readable (opacity .8 keeps --text-3 at 4.65:1); their maps quiet */
.th-engage[data-active] .th-tier:not(.is-active) > * { opacity: var(--e-dim-t); }
.th-engage[data-active] .th-tier:not(.is-active) > .th-engage__map { opacity: var(--e-dim); }

/* Each tier's copy of the six-step line, with the steps it covers lit. Sized to its content: with the name, it is
   where a pointer lights the tier (the description, the facts and the list never do). */
.th-engage .th-engage__map { position: relative; display: grid; grid-template-columns: repeat(6, 24px); align-self: start; justify-self: start; margin: 0 0 22px; padding-right: 64px; --a: 0; --b: 0; }
.th-engage .th-engage__map::before, .th-engage .th-engage__map::after { content: ''; position: absolute; top: 5.5px; left: 12px; height: 1px; }
.th-engage .th-engage__map::before { width: 120px; background: var(--line-2); }
.th-engage .th-engage__map::after { left: calc(12px + var(--a) * 24px); width: calc((var(--b) - var(--a)) * 24px); background: var(--cyan); }
.th-engage .th-engage__map > span { position: relative; z-index: 1; padding-top: 16px; text-align: center; font: 500 10px/1 var(--f-mono); color: var(--text-3); }
.th-engage .th-engage__map > span::before { content: ''; position: absolute; top: 2px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: var(--bg); }
.th-engage .th-engage__map > span.is-on { color: var(--text); }
.th-engage .th-engage__map > span.is-on::before { border-color: var(--cyan); background: var(--cyan); }
.th-engage .th-engage__map-loop { position: absolute; z-index: 0; top: -6px; left: 120px; width: 24px; height: 24px; overflow: visible; }
.th-engage .th-engage__map-loop path { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.th-engage .th-engage__map-on { position: absolute; left: 150px; top: 1px; font: 500 10px/1 var(--f-mono); color: var(--cyan); white-space: nowrap; }

/* ======================================================================= a tier highlighted: its steps above */
/* The steps it covers are lit and drawn (the script), joined by the brighter segment. The others keep their words
   readable (opacity .8: the sentence at 6.9:1) while their node, stem and artifact drop to .3. The artifact's
   opacity is also written inline by the scroll (its blueprint state), so the dim has to win over that. */
.th-engage[data-active] .th-step:not(.is-cov) :is(.th-step__node, .th-engage__stem) { opacity: var(--e-dim); }
.th-engage[data-active] .th-engage__art { transition: opacity .3s; }
.th-engage[data-active] .th-step:not(.is-cov) .th-engage__art { opacity: var(--e-dim) !important; }
.th-engage[data-active] .th-step:not(.is-cov) :is(.th-step__n, .th-step__t, .th-step__d) { opacity: var(--e-dim-t); }
/* Not yet reached by the pulse: quieter, never below 4.5:1 for the sentence (.64 of --text-2 is 4.76:1). After
   the rule above, so when both apply the quieter one holds; they never multiply. */
.th-engage.th-js .th-step:not(.is-lit) :is(.th-step__n, .th-step__t, .th-step__d) { opacity: .64; }
.th-engage[data-active] .th-engage__lit { opacity: .16; }
.th-engage[data-active] .th-engage__hl { opacity: 1; }
.th-engage[data-active="partner"] .th-engage__loop { opacity: 1; }

/* ======================================================================= 2026-11-27 mobile pass (v3/mobile-audit/PLAN.md) */
@media (max-width: 960px) {
  .th-engage { padding: clamp(72px, 12vw, 112px) 0 clamp(64px, 9vw, 96px); }
  .th-engage .th-tiers { margin-top: clamp(72px, 10vw, 96px); }
  .th-engage :is(.th-step__d, .th-tier__d, .th-engage__dur-hint, .th-engage__note) { text-wrap: pretty; }
}
/* S4 */
@media (pointer: coarse) {
  .th-engage .th-tier__link { position: relative; }
  .th-engage .th-tier__link::after { content: ''; position: absolute; inset: -9px -8px; }
  .th-engage.th-ix .th-engage__dur-bar::after { top: -20px; bottom: -20px; }
}

/* ======================================================================= the steps stack (<= 900px) */
/* A vertical timeline. The line and nodes run down the right edge: the six node anchors pull the page thread
   through the nodes, and on phones the thread hugs the right margin and never crosses the reading column.
   Everything else is left-aligned, so no words sit at the right edge where the thread runs. */
@media (max-width: 900px) {
  .th-engage .th-engage__head { flex-direction: column; align-items: flex-start; }
  .th-engage .th-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .th-engage .th-step { padding: 0 56px 48px 0; }
  .th-engage .th-step:last-child { padding-bottom: 8px; }
  .th-engage .th-step__node { top: 3px; left: auto; right: 3px; }
  .th-engage .th-step__n { margin-bottom: 6px; }
  .th-engage .th-engage__stem { display: none; }
  .th-engage .th-engage__art { position: relative; top: auto; left: auto; right: auto; height: auto; display: block; width: 100%; max-width: 292px; margin-top: 22px; }
  .th-engage :is(.th-engage__track, .th-engage__lit, .th-engage__hl) { left: auto; right: 10px; top: 10.5px; bottom: 0; width: 1px; height: auto; margin: 0; transform-origin: 50% 0; }
  .th-engage .th-engage__hl { width: 2px; right: 9.5px; }
  .th-engage :is(.th-engage__pulse, .th-engage__loop) { left: auto; right: 10.5px; top: 10.5px; }
  .th-engage .th-engage__pulse { margin: -4.5px -4.5px 0 0; }
  .th-engage .th-engage__tail { right: 50%; top: auto; bottom: 50%; width: 2px; height: 84px; margin: 0 -1px 0 0; background: linear-gradient(rgba(var(--cyan-rgb), 0), rgba(var(--cyan-rgb), .85)); transform-origin: 50% 100%; }
  .th-engage .th-engage__loop { margin: -20px -20px 0 0; }

  .th-engage .th-tiers__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .th-engage .th-engage__dur { padding-right: 28px; }
  .th-engage .th-engage__dur-head { flex-direction: column; gap: 2px; }
  .th-engage .th-engage__dur-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name val" "lane lane"; height: auto; column-gap: 14px; row-gap: 2px; padding: 8px 0 4px; }
  .th-engage .th-engage__dur-name { grid-area: name; font-size: 14px; }
  .th-engage .th-engage__dur-val { grid-area: val; justify-self: start; }
  .th-engage .th-engage__dur-row > .th-engage__dur-lane { grid-area: lane; height: 30px; }
  .th-engage .th-engage__dur-axis { grid-template-columns: minmax(0, 1fr); }
  .th-engage .th-engage__dur-axis > span:not(.th-engage__dur-lane) { display: none; }

  .th-engage .th-tiers__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; max-width: 640px; }
  /* the same 28px right inset as the week scale: the page thread runs in that margin, so no line of copy ends in it */
  .th-engage .th-tier, .th-engage .th-tier:first-child { display: flex; flex-direction: column; grid-row: auto; padding: 26px 28px 34px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .th-engage .th-tier:last-child { padding-right: 28px; padding-bottom: 0; }   /* beats the wide layout's last-column 0 */

  /* Thread points (integration): steps-out sits just under the last node; the entry moves to the right gutter,
     where the stacked nodes are; engage-down is only for the wide layout. */
  .th-engage .th-steps__out { left: auto; right: 10.5px; width: 0; top: auto; bottom: -56px; height: 0; }
  .th-engage .th-anchor--md-r { left: auto; width: 0; }
  .th-engage .th-anchor--md-none { display: none; }
  /* E1: the steps are screens up; each tier's map shows them */
  .th-engage.th-ix .th-engage__dur-hint, .th-engage.th-ix .th-engage__dur-hint--touch { display: none; }
}
/* 2026-11-27 (page review): stacked, the examples run up to two screens below the note that says they are examples
   (.th-engage__note), so each one carries its own small "Example" tag, as each rail cover carries "Illustration" (the
   rail's tag style). Wide, all six sit just under the note and need none. The figures are role="img" with labels
   that already begin "Example from ...", so the tag is for the eye only. */
@media (max-width: 900px) {
  .th-engage .th-engage__art::before { content: "Example"; display: table; margin: 0 0 10px; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
}
/* Tablets: each step's text and its artifact side by side. */
@media (min-width: 641px) and (max-width: 900px) {
  .th-engage .th-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 36px; align-items: start; }
  .th-engage .th-step > :is(.th-step__n, .th-step__t, .th-step__d) { grid-column: 1; }
  .th-engage .th-engage__art { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
}
@media (max-width: 640px) {
  .th-engage .th-engage__note { font-size: 14px; }
  .th-engage .th-step { padding-right: 48px; padding-bottom: 44px; }
  .th-engage .th-tiers__head { margin-bottom: 20px; }
  /* phones: full width (the 28px thread margin kept) */
  .th-engage .th-tier__go { padding-top: 26px; }
  .th-engage .th-tier__cta { display: flex; width: 100%; }
  /* S5 */
  .th-engage .th-engage__art { max-width: 340px; font-size: 13px; }
  .th-engage :is(.th-engage__cap, .th-engage__chip, .th-engage__cost, .th-engage__test, .th-engage__trend, .th-engage__svc, .th-engage__stage, .th-engage__xs, .th-engage__goal span, .th-engage__tag, .th-engage__slo, .th-engage__bar span, .th-engage__go, .th-engage__row > em, .th-engage__val, .th-engage__dur-q, .th-engage__dur-axis .th-engage__dur-lane, .th-engage__map > span, .th-engage__map-on) { font-size: 11.5px; }
  .th-engage .th-engage__kv li { font-size: 13px; }
  .th-engage .th-engage__kv b, .th-engage .th-engage__dur-val { font-size: 12px; }
  .th-engage .th-engage__art::before { font-size: 11px; }
}

/* Desktop at 901-1199px: narrower columns, a little taller shelf for the wrapping artifacts. */
@media (min-width: 901px) and (max-width: 1199px) {
  .th-engage { --e-gap: 20px; --e-art-h: 150px; }
  .th-engage .th-engage__art { font-size: 10.5px; }
  .th-engage .th-engage__kv li { font-size: 10.5px; }
  .th-engage .th-tier { padding-left: 24px; padding-right: 24px; }
  .th-engage .th-engage__dur-row, .th-engage .th-engage__dur-axis { grid-template-columns: 132px minmax(0, 1fr) 132px; }
}
/* 901-1099px, the narrowest columns (121-153px): labels step down to 9-9.5px, the architecture's arrows may
   shrink to a chevron so "Bedrock" stays in its column, and the pipeline's stage names alternate between two rows
   (lint and build, then test and deploy), so neighbours never touch while the four checks stay evenly spaced on
   one line. */
@media (min-width: 901px) and (max-width: 1099px) {
  .th-engage :is(.th-engage__chip, .th-engage__test, .th-engage__trend) { font-size: 9.5px; }
  .th-engage :is(.th-engage__svc, .th-engage__bar span, .th-engage__go, .th-engage__goal span, .th-engage__xs, .th-engage__tag, .th-engage__slo, .th-engage__row > em) { font-size: 9px; }
  .th-engage .th-engage__val { font-size: 10px; }
  .th-engage .th-engage__arrow { min-width: 4px; margin: 0 1px; }
  .th-engage .th-engage__pipe { margin: 0 4px; }
  .th-engage .th-engage__stage { font-size: 9.5px; }
  .th-engage .th-engage__stage:nth-of-type(even) > i { margin-bottom: 12px; }
}


/* ======================================================================= reduced motion: final states, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .th-engage *, .th-engage *::before, .th-engage *::after { animation: none !important; transition: none !important; }
  .th-engage.th-js .th-rv { opacity: 1; transform: none; }
  .th-engage.th-js .th-engage__dur.th-rv :is(.th-engage__dur-bar, .th-engage__dur-cyc) { transform: none; }
  .th-engage .th-engage__pulse { display: none; }
}
