/* The service pages and the chapter pages, round 4 (Anthony's 11/17 Tella, rows 47 to 55): the drawn figures, the
   timeline, the accordion table, the cost table, the case cards and the chapter steps. Markup: design-lab/vix-site/
   services.mjs. Loaded on service and chapter pages only, before site.css, so every rule here is scoped under its own
   block and never leans on source order. Flat color only: ink, paper, the brand purple, and green for a gain. */
/* --gain, the green of a result, is the site's one token (system/tokens.css, written by render.mjs flatTokens: #12754a
   on paper, lifted at night and on the deep band). This file used to define its own (integration, 11/17). */
:root { --fig-card: #fffdf8; --soft: cubic-bezier(.42, 0, .22, 1); --wait: .3; } /* --wait: how strong a piece shows before its part plays */
:root[data-theme="dark"] { --fig-card: #231f2c; }
.sec.deep { --fig-card: #2a2256; }
.svc-get .sr, .svc-cost .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- what it is: three benefits, each under its figure */
.svc-what .svc-head { max-width: 860px; }
.svc-what .svc-figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.svc-what .svc-figs li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; padding-top: 0; border-top: 0; }
.svc-what .svc-figs .svc-fig { order: -1; margin-bottom: 10px; }
.svc-what .svc-figs h3 { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.18; }
.svc-what .svc-figs p { font-size: 16px; color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .svc-what .svc-figs { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* the plate every figure is drawn on, and the one set of marks they share */
.svc-fig { background: var(--surface); border-radius: var(--r); aspect-ratio: 8 / 5; overflow: hidden; }
.svc-fig svg { display: block; width: 100%; height: 100%; }
.svc-fig .f-card { fill: var(--fig-card); stroke: var(--ink); stroke-width: 1.5; }
.svc-fig .f-you { fill: color-mix(in srgb, var(--orb) 14%, var(--fig-card)); stroke: var(--orb); stroke-width: 1.5; }
.svc-fig .f-gain-card { fill: var(--fig-card); stroke: var(--ink); stroke-width: 1.5; } /* round 5: green is for a small arrow or a check only ("our branding isn't green") */
.svc-fig .f-row { fill: none; stroke: var(--ink); stroke-opacity: .16; stroke-width: 1; }
.svc-fig .f-line { fill: none; stroke: var(--ink); stroke-opacity: .42; stroke-width: 1.2; stroke-linecap: round; }
.svc-fig .f-k { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-fig .f-dash { stroke-dasharray: 4 4; }
.svc-fig .f-ink { fill: var(--ink); }
.svc-fig .f-mute { fill: var(--ink); fill-opacity: .34; }
.svc-fig .f-faint { fill: var(--ink); fill-opacity: .14; }
.svc-fig .f-orb { fill: var(--orb); }
.svc-fig .f-gain { fill: var(--gain); }
.svc-fig .f-orb-s { fill: none; stroke: var(--orb); stroke-width: 1.5; stroke-linecap: round; }
.svc-fig .f-orb-bar { fill: var(--orb); stroke: var(--orb); stroke-width: 1.5; }
.svc-fig .f-gain-bar { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.svc-fig .f-gain-s { fill: none; stroke: var(--gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-fig .f-track { fill: none; stroke: var(--ink); stroke-opacity: .14; stroke-width: 10; }
.svc-fig .f-gain-arc { fill: none; stroke: var(--orb); stroke-width: 10; }
.svc-fig .f-needle { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.svc-fig .f-cell { fill: var(--fig-card); stroke: var(--ink); stroke-opacity: .3; stroke-width: 1; }
.svc-fig .f-orb-cell { fill: var(--orb); }
.svc-fig .f-gain-cell { fill: var(--orb); }
.svc-fig .f-mute-cell { fill: var(--ink); fill-opacity: .3; }
.svc-fig .f-street { fill: none; stroke: var(--ink); stroke-opacity: .16; stroke-width: 1; }
.svc-fig .f-park { fill: var(--ink); fill-opacity: .06; }
.svc-fig .f-pin { fill: var(--orb); stroke: var(--fig-card); stroke-width: 1.5; }
.svc-fig .f-pin-you { fill: var(--ink); stroke: var(--fig-card); stroke-width: 1.5; }
.svc-fig .f-pin-eye { fill: var(--fig-card); }
.svc-fig .f-t { font: 600 8.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.svc-fig .f-t-orb { fill: var(--orb); }
.svc-fig .f-t-gain { fill: var(--ink); }

/* entry motion (row 53): the page is finished without it. The figures and the timeline carry data-rise, so the site's
   own reveal (inner.js: .rise-on on <html> for a visitor who has not asked for less motion, .seen on a part once it is
   on screen) holds each at its first frame, then lets it settle once. The part itself does not fade or rise. */
.rise-on .svc-fig[data-rise], .rise-on .svc-tl[data-rise] { opacity: 1; transform: none; transition: none; }
.svc-fig [class*="a-"] { transform-box: fill-box; transform-origin: 50% 100%; }
.svc-fig .a-turn { transform-box: view-box; transform-origin: var(--ox) var(--oy); }
.rise-on .svc-fig [class*="a-"] { transition: transform .9s var(--soft) var(--d, 0s), opacity .9s var(--soft) var(--d, 0s), stroke-dashoffset .9s var(--soft) var(--d, 0s); } /* round 5: about 900 ms a mark, eased gently, in steps of 0.4 s */
.rise-on .svc-fig:not(.seen) [class*="a-"] { transition: none; }
.rise-on .svc-fig:not(.seen) .a-fade { opacity: var(--wait); } /* review #935: whole first. A piece waits quietly, never invisible */
.rise-on .svc-fig:not(.seen) .a-up { transform: translateY(var(--dy, 10px)); }
.rise-on .svc-fig:not(.seen) .a-move { transform: translateY(var(--ty, 0)); }
.rise-on .svc-fig:not(.seen) .a-grow { transform: scaleY(.04); }
.rise-on .svc-fig:not(.seen) .a-draw { stroke-dashoffset: var(--from, 1); }
.rise-on .svc-fig:not(.seen) .a-turn { transform: rotate(var(--from, 0deg)); }
.rise-on .svc-fig:not(.seen) .a-set { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)); }
.svc-fig .a-set { transform-origin: 50% 50%; }
.rise-on .svc-fig .a-move { transition-duration: 1.1s, .5s, .9s; }

/* ---------------------------------------------------------------- how we run it: the timeline (row 51) */
.svc-how .svc-tl { position: relative; }
.svc-tl .tl-axis { position: relative; height: 28px; border-bottom: 1.5px solid var(--ink); }
.svc-tl.tl-order .tl-axis { height: 0; }
.svc-tl .tl-axis span { position: absolute; bottom: 9px; padding-left: 7px; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.svc-tl .tl-axis span::before { content: ""; position: absolute; left: 0; bottom: -9px; width: 1.5px; height: 14px; background: var(--ink); }
.svc-tl .tl-track { position: relative; padding-block: 26px 6px; }
.svc-tl .tl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.svc-tl .tl-row { display: grid; gap: 12px; position: relative; }
/* the lane a bar rides: a hairline across the track, with the scale's ticks on it */
.svc-tl .tl-lane { position: absolute; left: 0; right: 0; top: 0; height: 16px; pointer-events: none; }
.svc-tl .tl-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 1px; background: var(--ink); opacity: .13; }
.svc-tl .tl-lane i { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--ink); opacity: .2; }
.svc-tl .tl-bar { display: block; position: relative; height: 16px; margin-left: calc(var(--s) * 100%); width: calc(var(--w) * 100%); min-width: 28px; overflow: hidden; } /* fix 24: a touch taller (12 px before), so an outlined bar is easy to see */
.svc-tl .tl-bar i { display: block; float: left; height: 100%; box-sizing: border-box; border-radius: 2px; }
.svc-tl .tl-dated .tl-bar i { background: var(--ink); }
.svc-tl .tl-dated .tl-bar em { display: block; overflow: hidden; height: 100%; box-sizing: border-box; border: 1.5px solid var(--ink); border-left: 0; border-radius: 0 2px 2px 0; background: color-mix(in srgb, var(--ink) 24%, var(--surface)); }
.svc-tl .tl-plain .tl-bar i { width: 100%; border: 1.5px solid var(--ink); background: var(--fig-card); }
/* fix 24: on a day scale a step with no days is dashed and empty, so it cannot be read as a measured bar */
.svc-tl.tl-days .tl-plain .tl-bar i { border-style: dashed; background: transparent; }
.svc-tl .tl-ongoing .tl-bar { display: flex; gap: 6px; }
.svc-tl .tl-ongoing .tl-bar i { float: none; flex: 1 1 0; background: var(--ink); }
.svc-tl .tl-ongoing .tl-bar i:nth-child(2) { background: color-mix(in srgb, var(--ink) 70%, var(--surface)); }
.svc-tl .tl-ongoing .tl-bar i:nth-child(3) { background: color-mix(in srgb, var(--ink) 45%, var(--surface)); }
.svc-tl .tl-ongoing .tl-bar i:nth-child(4) { background: color-mix(in srgb, var(--ink) 24%, var(--surface)); }
.svc-tl .tl-txt { margin-left: calc(var(--s) * 100%); max-width: min(400px, calc((1 - var(--s)) * 100%)); display: grid; gap: 6px; justify-self: start; }
/* fix 24: a row that starts in the last two fifths of the track sets its words against the track's right edge, at
   their full measure, so they never run off it and never wrap into a narrow column */
.svc-tl .tl-row.tl-end .tl-txt { margin-left: 0; margin-right: calc((1 - var(--s) - var(--w)) * 100%); max-width: 400px; justify-self: end; text-align: right; }
.svc-tl .tl-txt h3 { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; }
.svc-tl .tl-n { font: 600 12px/1 var(--body); letter-spacing: .1em; color: var(--orb); margin-right: 10px; vertical-align: .22em; }
.svc-tl .tl-txt p { font-size: 15.5px; color: var(--muted); }
.svc-tl .tl-now { position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; background: var(--orb); opacity: 0; pointer-events: none; }
.svc-tl .tl-now::before { content: ""; position: absolute; top: -5px; left: -4px; width: 9.5px; height: 9.5px; border-radius: 50%; background: var(--orb); }
.svc-tl .tl-note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.svc-how .how-body > .svc-tl + * { margin-top: clamp(20px, 3vw, 36px); }
/* the marker sweeps the track once; each bar and its words arrive as it passes */
.rise-on .svc-tl .tl-bar { transition: clip-path calc(var(--w) * 2.2s) linear calc(.55s + var(--s) * 2.2s); clip-path: inset(0 0 0 0); }
.rise-on .svc-tl .tl-txt { transition: opacity .5s var(--ease) calc(.55s + var(--s) * 2.2s), transform .5s var(--ease) calc(.55s + var(--s) * 2.2s); }
.rise-on .svc-tl:not(.seen) .tl-bar { clip-path: inset(0 100% 0 0); transition: none; }
.rise-on .svc-tl:not(.seen) .tl-txt { opacity: var(--wait); transform: translateY(8px); transition: none; }
.rise-on .svc-tl.seen .tl-now { animation: tl-sweep 2.2s linear .55s both; }
@keyframes tl-sweep { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* a tablet or a phone: the same steps down a rail */
@media (max-width: 900px) {
  .svc-tl .tl-axis, .svc-tl .tl-lane, .svc-tl .tl-now, .svc-tl .tl-wide { display: none; }
  .svc-tl .tl-track { padding-block: 0; }
  .svc-tl .tl-rows { gap: 0; }
  .svc-tl .tl-row { grid-template-columns: 10px minmax(0, 1fr); gap: 0 18px; }
  .svc-tl .tl-bar { margin-left: 0; width: 10px; min-width: 0; height: auto; align-self: stretch; margin-bottom: 4px; }
  .svc-tl .tl-bar i { float: none; width: 100% !important; height: 100%; }
  .svc-tl .tl-dated .tl-bar em { display: none; }
  .svc-tl .tl-ongoing .tl-bar { flex-direction: column; gap: 4px; }
  .svc-tl .tl-txt, .svc-tl .tl-row.tl-end .tl-txt { margin-left: 0; margin-right: 0; max-width: 560px; padding: 0 0 26px; justify-self: stretch; text-align: left; }
  .rise-on .svc-tl .tl-bar { transition: clip-path .5s linear calc(.3s + var(--i) * .3s); }
  .rise-on .svc-tl .tl-txt { transition-delay: calc(.3s + var(--i) * .3s); }
  .rise-on .svc-tl:not(.seen) .tl-bar { clip-path: inset(0 0 100% 0); }
}

/* ---------------------------------------------------------------- what you get: the accordion table (row 52) */
.svc-how .svc-sub { margin-bottom: 0; }
.svc-get { width: 100%; max-width: 900px; border-collapse: collapse; border-top: var(--rule) solid var(--ink); margin-top: 0; }
.svc-get td, .svc-get th { padding: 0; text-align: left; font-weight: 400; vertical-align: middle; }
.svc-get .g-row > * { border-bottom: 1px solid var(--line); }
.svc-get .g-n { width: 48px; font: 600 12px/1 var(--body); letter-spacing: .1em; color: var(--orb); }
.svc-get .g-t { font-size: 18px; line-height: 1.4; padding-block: 16px; }
.svc-get .g-has .g-t { padding-block: 0; }
.svc-get .g-btn { display: flex; align-items: center; width: 100%; min-height: 58px; padding: 12px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.svc-get .g-btn:focus-visible { outline: 2px solid var(--orb); outline-offset: 2px; }
.svc-get .g-has { cursor: pointer; }
.svc-get .g-has:hover .g-btn { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.svc-get .g-x { width: 44px; }
.svc-get .g-x i { display: block; position: relative; width: 14px; height: 14px; margin-left: auto; }
.svc-get .g-x i::before, .svc-get .g-x i::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--ink); transition: transform var(--t-quick) var(--ease); }
.svc-get .g-row.is-closed .g-x i::after { transform: rotate(90deg); }
.svc-get .g-has:not(.is-closed) > * { border-bottom-color: transparent; }
.svc-get .g-more td { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.svc-get .g-more p { font-size: 16px; color: var(--muted); max-width: 64ch; }
.svc-get + p { margin-top: var(--s5); max-width: 62ch; }
@media (max-width: 520px) { .svc-get .g-n { width: 36px; } .svc-get .g-t { font-size: 17px; } }

/* ---------------------------------------------------------------- what it costs (row 49) */
.svc-cost .cost-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s5) clamp(32px, 6vw, 96px); align-items: start; }
.svc-cost .cost-head { display: grid; gap: 16px; align-content: start; }
.svc-cost .cost-note { font: 400 clamp(20px, 2vw, 26px)/1.22 var(--display); max-width: 18ch; }
.svc-cost .cost-body { display: grid; gap: 28px; }
.svc-cost .cost-table { width: 100%; border-collapse: collapse; border-top: var(--rule) solid var(--ink); }
.svc-cost .cost-table th, .svc-cost .cost-table td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.svc-cost .cost-table thead th { padding-block: 12px; font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-cost .cost-table tbody th { font: 400 clamp(19px, 1.8vw, 23px)/1.25 var(--display); padding-right: 20px; }
.svc-cost .cost-table td, .svc-cost .cost-table thead th + th { text-align: right; white-space: nowrap; }
.svc-cost .cost-call { font: 600 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.svc-cost .cost-from { font: 400 clamp(24px, 2.4vw, 32px)/1 var(--display); }
.svc-cost .cost-mods { display: grid; gap: 12px; }
.svc-cost .cost-k { font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-cost .cost-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-cost .cost-chips li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: var(--btn-r); font-size: 14.5px; line-height: 1.2; }
@media (max-width: 860px) { .svc-cost .cost-grid { grid-template-columns: minmax(0, 1fr); } .svc-cost .cost-note { max-width: none; } }
@media (max-width: 420px) { .svc-cost .cost-table thead th + th { white-space: normal; text-wrap: balance; } .svc-cost .cost-table tbody th { padding-right: 14px; font-size: 18px; } .svc-cost .cost-call { font-size: 11.5px; letter-spacing: .06em; } }

/* ---------------------------------------------------------------- case cards (rows 48 and 54) */
.case-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.case-cards .cc { display: grid; min-width: 0; }
.case-cards .cc-a { display: grid; grid-template-rows: auto 1fr; gap: 18px; color: inherit; text-decoration: none; border-top: var(--rule) solid var(--ink); padding-top: 14px; }
.case-cards .cc-cover { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); border-radius: var(--r); }
.case-cards .cc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .7s var(--ease); }
.case-cards .cc-a:hover .cc-cover img, .case-cards .cc-a:focus-visible .cc-cover img { transform: scale(1.035); }
.case-cards .cc-a:focus-visible { outline: 2px solid var(--orb); outline-offset: 4px; }
.case-cards .cc-body { display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.case-cards .cc-ind { font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-cards .cc-h { font: 400 clamp(20px, 1.9vw, 25px)/1.18 var(--display); text-wrap: balance; }
.case-cards .cc-a:hover .cc-h, .case-cards .cc-a:focus-visible .cc-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.case-cards .cc-fig { display: grid; gap: 6px; align-content: start; margin-top: 4px; }
.case-cards .cc-n { font: 400 clamp(34px, 3.4vw, 50px)/1 var(--display); font-variant-numeric: tabular-nums; }
/* fix 17 (Anthony, 11/17: "green numbers in full is too much... just do a green arrow?"): the number is ink, its arrow green */
.case-cards .cc-n.up::before, .case-cards .cc-n.down::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: .22em; border-inline: .2em solid transparent; vertical-align: .16em; color: var(--gain); }
.case-cards .cc-n.up::before { border-bottom: .32em solid currentColor; }
.case-cards .cc-n.down::before { border-top: .32em solid currentColor; }
.case-cards .cc-l { font-size: 15px; line-height: 1.45; color: var(--muted); }
.case-cards .cc-src { font-size: 13px; color: var(--muted); }
.case-cards .cc-go { justify-self: start; margin-top: 4px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font: 600 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
/* one, two or four cases: the cover beside the words */
.case-cards.n1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.case-cards.n2, .case-cards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-cards.n1 .cc-a, .case-cards.n2 .cc-a, .case-cards.n4 .cc-a { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto; gap: clamp(16px, 2vw, 28px); align-items: start; }
.case-cards.n1 .cc-cover, .case-cards.n2 .cc-cover, .case-cards.n4 .cc-cover { aspect-ratio: 4 / 5; }
.svc-proof .case-cards + .svc-sub { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .case-cards.n2, .case-cards.n4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .case-cards, .case-cards.n1, .case-cards.n2, .case-cards.n4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-cards .cc-a, .case-cards.n1 .cc-a, .case-cards.n2 .cc-a, .case-cards.n4 .cc-a { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; gap: 16px; padding-block: 16px 22px; align-items: start; }
  .case-cards .cc-cover, .case-cards.n1 .cc-cover, .case-cards.n2 .cc-cover, .case-cards.n4 .cc-cover { aspect-ratio: 4 / 5; }
  .case-cards .cc-n { font-size: 34px; }
  /* round 6, the phone lane: sentences hold the identity's 14 px floor on a phone (qc-phone.mjs part F) */
  .case-cards .cc-src, .svc-tl .tl-note { font-size: 14px; }
}

/* ---------------------------------------------------------------- the chapter page: scroll steps, no overview grid (row 47) */
.svc-story .story-head { display: grid; gap: 14px; max-width: 640px; padding-block: clamp(56px, 7.5vw, 112px) clamp(8px, 2vw, 24px); }
.svc-story .story-head h2 { font-size: var(--h2); line-height: 1; }
.svc-story .story-steps > .sec.step { padding-block: 0 clamp(48px, 6vw, 88px); }
.svc-story .story-steps > .sec.step > .in { background: none; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 16px; justify-items: start; }
.svc-story .story-steps > .sec.step:first-of-type > .in, .svc-story .story-head + .sec.step > .in { border-top: var(--rule) solid var(--ink); }
.svc-story .story-steps > .sec.step:last-child { padding-bottom: var(--sy); }
.svc-story .step-head { display: flex; align-items: baseline; gap: 16px; }
.svc-story .step-n { font: 600 13px/1 var(--body); letter-spacing: .1em; color: var(--orb); }
.svc-story .step-head h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; }
.svc-story .step-line { font-size: 18px; max-width: 54ch; margin: 0; }
.svc-story .step-mini, .svc-story .step-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; width: 100%; max-width: 620px; }
.svc-story .step-mini { counter-reset: sm; }
.svc-story .step-mini li { counter-increment: sm; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 0; padding-block: 11px; border-top: 1px solid var(--line); }
.svc-story .step-mini li::before { content: counter(sm, decimal-leading-zero); grid-row: 1 / span 2; font: 600 11.5px/1.9 var(--body); letter-spacing: .1em; color: var(--muted); }
.svc-story .step-mini b { font-weight: 600; font-size: 16px; }
.svc-story .step-mini span { grid-column: 2; font-size: 15px; color: var(--muted); }
.svc-story .step-list li { position: relative; padding: 11px 0 11px 34px; border-top: 1px solid var(--line); font-size: 16px; }
.svc-story .step-list li::before { content: ""; position: absolute; left: 4px; top: 1.25em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.svc-story .svc-go { margin: 6px 0 0; }
.svc-story .step-open { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--btn-r); color: var(--ink); font: 600 13px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }
.svc-story .step-open::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--t-quick) var(--ease); }
.svc-story .step-open:hover, .svc-story .step-open:focus-visible { background: var(--ink); color: var(--bg); }
.svc-story .step-open:hover::after, .svc-story .step-open:focus-visible::after { transform: translateX(3px) rotate(45deg); }
.svc-story .step-open:focus-visible { outline: 2px solid var(--orb); outline-offset: 3px; }
@media (max-width: 900px) {
  .svc-story .story-head { margin-inline: var(--gut); padding-top: clamp(40px, 8vw, 64px); }
  .svc-story .story-steps > .sec.step > .in { padding-inline: 0; margin-inline: var(--gut); } /* the rule over a step keeps the gutter */
  .svc-story .story-steps > .sec.step:last-child { padding-bottom: clamp(48px, 9vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-fig [class*="a-"], .svc-tl .tl-bar, .svc-tl .tl-txt, .case-cards .cc-cover img, .svc-get .g-x i::before, .svc-get .g-x i::after { transition: none !important; }
  .svc-tl .tl-now { animation: none !important; }
}

/* the story visual slot: a part that tilts or bleeds (the press clipping at 390) never widens the page */
.svc-see { overflow-x: clip; }

/* ================================================================ round 5: the service stories
   Markup: services.mjs (finish, included, questions) and services-story/stories.mjs (the story block and its figures).
   One motion at a time: every figure, the timeline and the method band carry data-draw, and services.js lets the next
   one play only when the one before it has finished. Nothing here moves in steps shorter than 0.4 s. */

/* ---------------------------------------------------------------- the marks the story figures add to the shared set */
.svc-fig .f-plate { fill: var(--surface); }
.svc-fig .f-paper { fill: var(--fig-card); }
.svc-fig .f-paper-s { fill: none; stroke: var(--fig-card); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-fig .f-hl { fill: color-mix(in srgb, var(--orb) 16%, var(--fig-card)); }
.svc-fig .f-ghost { fill: none; stroke: var(--ink); stroke-opacity: .42; stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; }
.svc-fig .f-ring { fill: var(--fig-card); stroke: var(--ink); stroke-opacity: .34; stroke-width: 1.3; }
.svc-fig .f-hatch { fill: color-mix(in srgb, var(--ink) 10%, var(--fig-card)); stroke: var(--ink); stroke-opacity: .34; stroke-width: 1.3; }
.svc-fig .f-orb-fill { fill: var(--orb); stroke: var(--orb); stroke-width: 1.5; }
.svc-fig .f-orb-soft { fill: color-mix(in srgb, var(--orb) 42%, var(--fig-card)); }
.svc-fig .f-ink-bar { fill: var(--ink); }
.svc-fig .f-mute-bar { fill: color-mix(in srgb, var(--ink) 30%, var(--surface)); }
.svc-fig .f-mute-s { fill: none; stroke: var(--ink); stroke-opacity: .4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-fig .f-ink-ring { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.svc-fig .f-pick { fill: none; stroke: var(--orb); stroke-width: 2.5; }
.svc-fig .f-track-s { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 6; }
.svc-fig .f-heavy { stroke-width: 2.5; }
.svc-fig .f-dot { stroke-dasharray: 1 6; }
.svc-fig .f-orb-s.f-dash { stroke-dasharray: 5 5; }
.svc-fig .f-orb-s { stroke-linejoin: round; }
.svc-fig .s-t { font: 600 13.5px/1 var(--body); fill: var(--ink); }
.svc-fig .s-s { font-size: 12.5px; font-weight: 500; }
.svc-fig .s-c { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.svc-fig .s-m { fill: var(--muted); }
.svc-fig .s-o { fill: var(--orb); }
.svc-fig .s-w { fill: var(--fig-card); }
.svc-fig .a-growx { transform-box: fill-box; transform-origin: 0 50%; }
.rise-on .svc-fig:not(.seen) .a-growx { transform: scaleX(.02); }

/* the plate of a story figure: the drawing sets its own height */
.st-fig { margin: 0; aspect-ratio: auto; padding: clamp(10px, 1.6vw, 22px); }
.st-fig svg { height: auto; }
.st-fig .fg-tall { display: none; }
.svc-what .svc-figs .st-fig { aspect-ratio: 8 / 5; padding: 8px 10px; display: grid; }
.svc-what .svc-figs .st-fig svg { height: 100%; min-height: 0; }
/* a benefit plate is about as wide as a phone: its labels take the phone size */
.svc-what .svc-figs .st-fig .s-t { font-size: 15px; } .svc-what .svc-figs .st-fig .s-s { font-size: 14px; } .svc-what .svc-figs .st-fig .s-c { font-size: 12.5px; letter-spacing: .06em; }
/* and its lines the weight of the first nine figures beside it (those are drawn on a plate half the size) */
.svc-what .svc-figs .st-fig :is(.f-card, .f-you, .f-k, .f-orb-s, .f-ghost, .f-ring, .f-orb-fill, .f-ink-ring, .f-hatch, .f-mute-s, .f-gain-card) { stroke-width: 2.1; }
.svc-what .svc-figs .st-fig :is(.f-line, .f-row, .f-street, .f-cell) { stroke-width: 1.5; }
.svc-what .svc-figs .st-fig .f-gain-s { stroke-width: 2.6; }
/* a tablet: each benefit is a row, its figure beside its words, so no plate is drawn too small to read */
@media (min-width: 761px) and (max-width: 1000px) {
  .svc-what .svc-figs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-what .svc-figs li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: 32px; align-items: start; }
  .svc-what .svc-figs .svc-fig { grid-row: 1 / span 2; margin-bottom: 0; }
  .svc-what .svc-figs h3 { align-self: end; }
}

/* ---------------------------------------------------------------- the story block */
.svc-storyb .st-pov { font: 400 clamp(26px, 3.1vw, 42px)/1.12 var(--display); letter-spacing: var(--track); max-width: 27ch; text-wrap: balance; margin: 0 0 clamp(32px, 4.4vw, 60px); }
.svc-storyb .st-beats { list-style: none; margin: 0; padding: 0; }
.svc-storyb .st-beat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4.4vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.svc-storyb .st-beat:first-child { border-top: var(--rule) solid var(--ink); }
.svc-storyb .st-beat:last-child { padding-bottom: 0; }
.svc-storyb .st-copy { display: grid; gap: 16px; align-content: center; }
.svc-storyb .st-copy h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06; max-width: 15ch; }
.svc-storyb .st-copy p { margin: 0; font-size: 17.5px; line-height: 1.55; max-width: 44ch; }
.svc-storyb .st-wide { grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.6vw, 34px); }
.svc-storyb .st-wide .st-copy h2 { max-width: 24ch; }
.svc-storyb .st-wide .st-copy p { max-width: 62ch; }
.svc-storyb .st-big { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.4vw, 56px); }
.svc-storyb .st-big .st-copy h2 { max-width: 13ch; }
.svc-storyb .st-big .st-copy p { max-width: 40ch; }
.svc-storyb .st-hand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: var(--rule) solid var(--ink); }
.svc-storyb .st-hand p { margin: 0; font-size: 16.5px; max-width: 48ch; display: grid; grid-template-columns: 24px minmax(0, 1fr); }
.svc-storyb .st-hand i { width: 9px; height: 9px; margin-top: .52em; border-radius: 50%; background: var(--orb); }
.sec.hero + .svc-storyb > .in { padding-top: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) {
  .svc-storyb .st-beat, .svc-storyb .st-big { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc-storyb .st-copy h2, .svc-storyb .st-wide .st-copy h2 { max-width: 20ch; }
  .svc-storyb .st-hand { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .st-fig { padding: 10px 8px; }
  .st-fig.has-tall .fg-wide { display: none; }
  .st-fig.has-tall .fg-tall { display: block; }
  .st-fig.has-tall { padding: 14px 10px; }
  .svc-fig .s-t { font-size: 15px; }
  .svc-fig .s-s { font-size: 14px; }
  .svc-fig .s-c { font-size: 12.5px; letter-spacing: .06em; }
  .st-fig .fg-tall .s-t { font-size: 13.5px; } .st-fig .fg-tall .s-s { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- published, said, tested: three columns of real text */
.st-ev { background: var(--surface); padding: 0; border-radius: var(--r); }
.st-ev .ev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.st-ev .ev-col { padding: 22px clamp(14px, 1.8vw, 24px) 26px; border-right: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.st-ev .ev-col:last-child { border-right: 0; }
.st-ev .ev-wt { display: block; width: 60px; height: 8px; margin-bottom: 14px; background: var(--ink); }
.st-ev .ev-said .ev-wt { width: 30px; }
.st-ev .ev-test .ev-wt { height: 0; background: none; border-top: 4px dotted var(--ink); margin-bottom: 18px; }
.st-ev h3 { font: 400 clamp(21px, 2vw, 25px)/1.1 var(--display); margin: 0 0 14px; }
.st-ev ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-ev li { font-size: 15px; line-height: 1.38; background: var(--fig-card); border: 1px solid var(--ink); padding: 10px 12px; max-width: 34ch; }
.st-ev .ev-said li { border-style: dashed; }
.st-ev .ev-test li { background: color-mix(in srgb, var(--orb) 14%, var(--fig-card)); border-color: var(--orb); }
.st-ev .ev-none { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); border: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent); padding: 10px 12px; max-width: 34ch; }
.rise-on .st-ev .ev-col { transition: opacity .9s var(--soft) var(--d, 0s), transform .9s var(--soft) var(--d, 0s); }
.rise-on .st-ev:not(.seen) .ev-col { opacity: var(--wait); transform: translateY(12px); transition: none; }
@media (max-width: 760px) {
  .st-ev .ev { grid-template-columns: minmax(0, 1fr); }
  .st-ev .ev-col { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); padding: 18px 14px 20px; }
  .st-ev .ev-col:last-child { border-bottom: 0; }
  .st-ev li, .st-ev .ev-none { max-width: none; }
}

/* ---------------------------------------------------------------- what is included: rows that open (the table view) */
.svc-feats.svc-incl { grid-template-columns: minmax(0, 1fr); column-gap: 0; max-width: 900px; }
.svc-feats.svc-incl li { grid-template-columns: 48px minmax(0, 1fr); gap: 0; padding-block: 0; align-items: center; }
.svc-feats.svc-incl li::before { grid-row: 1; line-height: 1; }
.svc-feats.svc-incl h3 { grid-column: 2; font: 400 18px/1.4 var(--body); letter-spacing: 0; padding-block: 16px; }
.svc-feats.svc-incl h3:has(.acc-btn) { padding-block: 0; }
.svc-feats.svc-incl .acc-more { grid-column: 2; padding: 0 44px 20px 0; }
.svc-feats.svc-incl .acc-more p { font-size: 16px; color: var(--muted); max-width: 64ch; margin: 0; }
.svc-feats.svc-incl .acc-more p + p { margin-top: 8px; }
.acc-btn, .qa-btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 58px; padding: 12px 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.acc-btn::after, .qa-btn::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 1.5px 14px no-repeat; }
.acc-btn[aria-expanded="true"]::after, .qa-btn[aria-expanded="true"]::after { background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 14px 1.5px no-repeat; }
.acc-btn:hover, .qa-btn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.acc-btn:focus-visible, .qa-btn:focus-visible { outline: 2px solid var(--orb); outline-offset: 2px; }
@media (max-width: 520px) { .svc-feats.svc-incl li { grid-template-columns: 36px minmax(0, 1fr); } .svc-feats.svc-incl h3 { font-size: 17px; } .svc-feats.svc-incl .acc-more { padding-right: 0; } }

/* ---------------------------------------------------------------- the questions: every answer in the page, each row opens */
.faq.svc-qa > div { padding-block: 0; gap: 0; }
.faq.svc-qa .qa-btn { min-height: 64px; padding-block: 16px; }
.faq.svc-qa dd { padding: 0 34px 22px 0; max-width: 66ch; }
.faq.svc-qa dd[hidden] { display: none; }

/* ---------------------------------------------------------------- the method band: its terms light in turn, one line drawn through them
   (Anthony, 11/17, 10:08, on this band: "This is great. Just needs more excitement.") The band is finished without it. */
.svc-method .eq[data-draw] { position: relative; }
.svc-method .eq[data-draw]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orb); transform-origin: 0 50%; pointer-events: none; }
.svc-method .eq[data-draw] .eq-t { border-top-color: transparent; }
.rise-on .svc-method .eq[data-draw]::before { transition: transform 2.1s linear; }
.rise-on .svc-method .eq[data-draw] > * { transition: opacity .9s var(--soft) var(--d, 0s), transform .9s var(--soft) var(--d, 0s); }
.svc-method .eq[data-draw] > :nth-child(2), .svc-method .eq[data-draw] > :nth-child(3) { --d: .4s; }
.svc-method .eq[data-draw] > :nth-child(4), .svc-method .eq[data-draw] > :nth-child(5) { --d: .8s; }
.svc-method .eq[data-draw] > :nth-child(6), .svc-method .eq[data-draw] > :nth-child(7) { --d: 1.2s; }
.rise-on .svc-method .eq[data-draw]:not(.seen)::before { transform: scaleX(0); transition: none; }
.rise-on .svc-method .eq[data-draw]:not(.seen) > * { opacity: var(--wait); transform: translateY(10px); transition: none; }
@media (max-width: 900px) {
  .svc-method .eq[data-draw]::before { right: auto; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; }
  .svc-method .eq[data-draw] .eq-t { border-top-color: var(--line); border-left-color: transparent; }
  .rise-on .svc-method .eq[data-draw]:not(.seen)::before { transform: scaleY(0); }
}

/* a part finished without playing (services.js: scrolled past before its turn, or left while it played) does not move */
.svc-fig.q-skip [class*="a-"], .st-ev.q-skip .ev-col, .svc-method .eq.q-skip > *, .svc-method .eq.q-skip::before, .svc-tl.q-skip .tl-bar, .svc-tl.q-skip .tl-txt { transition: none !important; }
.svc-tl.q-skip .tl-now { animation: none !important; }

/* the ghosts (review #935): a part is whole before it plays. A bar that grows or a line that draws in has a faint
   finished copy under it (services.js clones it as .a-ghost), so the plate shows the complete picture while the solid
   piece grows over its own outline. The timeline's bars and the method band's line get the same from a pseudo-element.
   Once the part is .done the ghosts go, so the finished frame is exactly the one without motion. Motion only: without
   .rise-on there are no ghosts and every part is simply finished. */
.svc-fig .a-ghost { opacity: var(--wait); pointer-events: none; transition: opacity .6s var(--soft); }
.svc-fig.done .a-ghost { opacity: 0; }
.rise-on .svc-tl .tl-row::before { content: ""; position: absolute; top: 0; left: calc(var(--s) * 100%); width: max(28px, calc(var(--w) * 100%)); height: 16px; border-radius: 2px; background: var(--ink); opacity: calc(var(--wait) * .8); pointer-events: none; transition: opacity .6s var(--soft); }
.rise-on .svc-tl.done .tl-row::before { opacity: 0; }
@media (max-width: 900px) { .rise-on .svc-tl .tl-row::before { left: 0; width: 10px; height: auto; bottom: 4px; } }
.rise-on .svc-method .eq[data-draw] { background: linear-gradient(color-mix(in srgb, var(--orb) 30%, transparent), color-mix(in srgb, var(--orb) 30%, transparent)) 0 0 / 100% 2px no-repeat; }
.rise-on .svc-method .eq[data-draw].done { background: none; }
@media (max-width: 900px) { .rise-on .svc-method .eq[data-draw] { background-size: 2px 100%; } }

/* the timeline's short bars: no bar arrives in under 0.45 s */
@media (min-width: 901px) { .rise-on .svc-tl .tl-bar { transition-duration: max(.45s, calc(var(--w) * 2.2s)); } }

@media (prefers-reduced-motion: reduce) {
  .st-ev .ev-col, .svc-method .eq[data-draw] > *, .svc-method .eq[data-draw]::before { transition: none !important; }
}

/* ---- T1 [903], the service page template: "What is included" and "What you get" as one section of compartments,
   the page's own equation (its three parts, then what they add up to), each with its drawing, its items, what you get
   and why. Built by archive: scripts/templates-t1-t4.mjs; the drawings sit on the deep band, which is the same by day and by
   night. Three parts side by side with the equation's signs between them, the outcome under them the full width. */
.kit .kit-head { display: grid; gap: 12px; max-width: none; }
.kit .kit-head .lede { max-width: 62ch; }
.sec .kit-eqk { font: 600 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orb); margin: 10px 0 0; }
.sec .kit-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font: 500 16px/1.25 var(--body); color: var(--muted); max-width: none; }
.kit-eq b { color: var(--ink); font-weight: 600; }
.kit-eq i { font-style: normal; font-weight: 700; color: var(--orb); }
.sec .kit-eqp { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.kit-grid { --kit-gap: clamp(18px, 2.2vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kit-gap); margin-top: clamp(28px, 3vw, 44px); }
.kit-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 55%, #fff); }
:root[data-theme="dark"] .kit-card { background: var(--surface); }
.kit-card.kit-out { grid-column: 1 / -1; }
.kit-vis { position: relative; display: grid; place-items: center; height: 224px; padding: 14px 16px 26px; background: var(--deep); color: #e9e4ff; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.kit-out .kit-vis { height: 240px; padding: 0; }
.kit-vis svg { display: block; width: 100%; height: 100%; }
.kit-vis small { position: absolute; left: 14px; bottom: 9px; font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(233, 228, 255, .55); } /* .55: 5:1 on the deep band (.5 was 4.35, under AA; sweep 12/02) */
.kit-body { display: grid; gap: 16px; align-content: start; min-width: 0; padding: clamp(20px, 2vw, 28px); }
.sec .kit-k { margin: 0; font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orb); }
.sec .kit-body h3 { margin: 0; font: 400 clamp(21px, 1.75vw, 26px)/1.1 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.sec .kit-out .kit-body h3 { font-size: clamp(24px, 2.2vw, 32px); }
/* the outcome: the drawing a band across the top, its words in two columns under it */
.kit-out .kit-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); }
.kit-out .kit-body > :is(.kit-k, h3, .kit-inc) { grid-column: 1; }
.kit-out .kit-body > .kit-get { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.kit-out .kit-body > .kit-why { grid-column: 2; grid-row: 3; align-self: start; }
.kit-inc { display: grid; gap: 12px; align-content: start; margin: 0; padding: 0; list-style: none; }
.kit-inc li { display: grid; gap: 6px; justify-items: start; align-content: start; }
.kit-inc b { font: 500 13.5px/1.2 var(--body); padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.kit-inc span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.kit-get { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); }
.kit-get li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; font: 500 16px/1.4 var(--body); }
.kit-get b { font: 700 12px/1.9 var(--body); color: var(--orb); }
.kit-get small { display: block; margin-top: 4px; font: 400 14.5px/1.45 var(--body); color: var(--muted); }
.kit-why { display: grid; gap: 8px; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--orb); }
:root[data-theme="dark"] .kit-why { background: var(--bg); }
.sec .kit-why p { margin: 0; font-size: 14.5px; line-height: 1.5; max-width: none; }
.sec .kit-why .kit-why-k { font: 700 11px/1.35 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* the equation's signs, in the gaps: + between the three parts, = over the outcome */
.kit-card::before { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--orb); font: 700 18px/1 var(--body); }
.kit-card:nth-child(2)::before, .kit-card:nth-child(3)::before { content: "+"; left: calc(var(--kit-gap) / -2 - 15px); top: 75px; }
.kit-card.kit-out::before { content: "="; left: 50%; top: calc(var(--kit-gap) / -2 - 15px); }
@media (max-width: 999px) {
  .kit-grid { grid-template-columns: minmax(0, 1fr); }
  .kit-out .kit-body { grid-template-columns: minmax(0, 1fr); }
  .kit-out .kit-body > :is(.kit-k, h3, .kit-inc, .kit-get, .kit-why) { grid-column: 1; grid-row: auto; }
  .kit-vis { height: auto; aspect-ratio: 16 / 9.4; }
  .kit-out .kit-vis { height: auto; aspect-ratio: 16 / 7; }
  .kit-card:nth-child(2)::before, .kit-card:nth-child(3)::before, .kit-card.kit-out::before { left: 50%; top: calc(var(--kit-gap) / -2 - 15px); transform: translateX(-50%); }
  .kit-card.kit-out::before { transform: translateX(-50%); }
}
@media (min-width: 1000px) { .kit-card.kit-out::before { transform: translateX(-50%); } }

/* the outcome card on real data (review #936, 11/28): a real client's line, indexed, drawn the full width of the plate
   at any size (scripts/real-series.mjs). The line stretches with the plate; the dot, the end value, the months, the
   label and the tags are set as text in rows of their own, so nothing crops the start of the series and nothing sits
   on top of the label on a phone (the old label ran under the tags at 390). */
.kit-out .kit-vis.kit-series { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; place-items: stretch; gap: 8px; height: 300px; padding: 22px clamp(14px, 2vw, 24px) 14px; }
.kit-series .ks-plot { position: relative; min-height: 0; }
.kit-series .ks-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kit-series .ks-line { stroke: #a993ff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.kit-series .ks-base { stroke: rgba(233, 228, 255, .22); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.kit-series .ks-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #f3f0ff; box-shadow: 0 0 0 5px rgba(169, 147, 255, .25); }
.kit-series .ks-end { position: absolute; transform: translate(calc(-100% - 16px), -50%); padding: 6px 10px; border-radius: 999px; background: #3b2a8a; color: #f3f0ff; font: 700 14px/1 var(--body); white-space: nowrap; }
.sec .kit-series .ks-axis { display: flex; justify-content: space-between; margin: 0; max-width: none; font: 600 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 228, 255, .62); }
.kit-series .ks-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.kit-vis.kit-series small { position: static; font: 600 10.5px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 228, 255, .72); }
.kit-series .ks-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kit-series .ks-tags li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(233, 228, 255, .26); border-radius: 999px; font: 500 13.5px/1 var(--body); color: rgba(233, 228, 255, .7); }
.kit-series .ks-tags li.on { background: #3b2a8a; border-color: #3b2a8a; color: #e9e4ff; }
.kit-series .ks-tags li.on::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: #a993ff; } /* the line's key */
@media (max-width: 760px) {
  .kit-out .kit-vis.kit-series { height: auto; aspect-ratio: auto; grid-template-rows: 170px auto auto; padding: 18px 14px 14px; }
  .kit-series .ks-foot { flex-direction: column; align-items: flex-start; }
  .kit-series .ks-end { font-size: 13px; }
}

/* a source line under a figure that carries a real client's numbers */
.st-fig .fig-src { margin: 10px 2px 0; font: 500 12.5px/1.45 var(--body); color: var(--muted); max-width: 60ch; }
@media (max-width: 600px) { .st-fig .fig-src { font-size: 14px; } }
