/* Come lavoriamo (body.ds-v2): the numbered process page. Numbered mono labels are allowed here only (design-system.md).
   Tokens only; literal lengths use --ui-scale. Frames, status bands, hero, kicker, lead, section h2 and the ask frame are shared (vf.css). */
.page-how { overflow-x: clip; }
.how-hero .grid { align-items: center; row-gap: var(--space-48); }
.how-hero-copy { grid-column: 1/8; }
.step-index { color: var(--muted); font: 700 var(--type-13)/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.how-hero h1 { max-width: 14ch; }
.how-hero h1 .accent { color: var(--blue); }

/* route: three stacked steps in one white frame, the AI step marked in blue. Numbers are numbered process labels (mono); the sub-lines are plain text. */
.how-route { grid-column: 9/13; display: grid; margin: 0; padding: 0; list-style: none; }
.how-route > li { position: relative; isolation: isolate; display: grid; grid-template-columns: calc(32px * var(--ui-scale)) minmax(0, 1fr); column-gap: var(--space-16); align-items: baseline; padding: var(--space-24); }
.how-route > li + li { border-top: 1px solid var(--line-soft); }
.how-route > li + li::before { content: ''; position: absolute; top: calc(-11px * var(--ui-scale)); left: var(--space-24); width: calc(20px * var(--ui-scale)); height: calc(20px * var(--ui-scale)); border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.how-route > li + li::after { content: ''; position: absolute; top: calc(-6px * var(--ui-scale)); left: calc(var(--space-24) + 7px * var(--ui-scale)); width: calc(6px * var(--ui-scale)); height: calc(6px * var(--ui-scale)); border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg); }
.how-route span { color: var(--blue-dark); font: 400 var(--type-13)/1.4 var(--mono); }
.how-route b { color: var(--ink); font-size: var(--type-24); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.how-route small { grid-column: 2; margin-top: var(--space-8); color: var(--muted); font-size: var(--type-15); line-height: 1.5; font-weight: 400; white-space: nowrap; }
.route-fill { position: absolute; z-index: -1; inset: 0; background: var(--blue-soft); }
.how-route .route-ai b, .how-route .route-ai span { color: var(--blue-dark); }

/* intro and steps: full-width rule, even bands, content in the 1056px column */
.how-intro { padding-block: var(--space-64); border-top: 1px solid var(--line); }
.how-intro p, .step-copy > p:not(.step-index) { max-width: 60ch; color: var(--text-2); font-size: var(--type-17); line-height: 1.6; }
.how-intro p + p { margin-top: var(--space-16); }
.how-step { padding-block: var(--space-96); border-top: 1px solid var(--line); scroll-margin-top: var(--space-96); }
.how-step-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-48); align-items: start; }
.step-copy, .artifact { min-width: 0; }
.step-copy h2 { margin-top: var(--space-16); }
.step-copy > p:not(.step-index) { margin-top: var(--space-24); }
.step-copy > p + p:not(.step-index) { margin-top: var(--space-16); }

/* artefact frames: one example per step, seven different forms. Shared frame, header and status band come from vf.css. */
.artifact-header p { margin: 0 0 var(--space-8); color: var(--muted); font: 700 var(--type-13)/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.artifact-header h3 { margin: 0; color: var(--ink); font-size: var(--type-32); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.af-body { padding: var(--space-24); }
:where(.af) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.af) p { margin: 0; }
:where(.af) :is(b, strong) { font-weight: 700; }
.page-how .entry-tag { display: inline-flex; align-items: center; gap: var(--space-8); justify-self: start; padding: 0 var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--ink); font-size: var(--type-13); line-height: 1.6; font-weight: 700; white-space: nowrap; }
.strike { position: relative; display: inline-block; text-decoration: none; }
.strike::after { content: ''; position: absolute; left: -2px; right: -2px; top: 54%; border-top: 1.5px solid var(--ink); transform-origin: left center; }
.artifact-diagnosis { margin: 0; padding: var(--space-16) var(--space-24); border-top: 1px solid var(--line-soft); background: var(--blue-soft); color: var(--blue-dark); font-size: var(--type-15); line-height: 1.5; font-weight: 700; }

/* 01 priority bars */
.prio { display: grid; gap: var(--space-24); }
.prio-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--space-16); row-gap: var(--space-8); }
.prio-text strong { display: block; color: var(--ink); font-size: var(--type-17); line-height: 1.4; }
.prio-text span { display: block; color: var(--muted); font-size: var(--type-15); line-height: 1.5; }
.prio-tag { grid-column: 2; grid-row: 1; border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.prio-bar { grid-column: 1 / -1; display: block; height: calc(8px * var(--ui-scale)); overflow: hidden; border-radius: var(--radius-8); background: var(--line-soft); }
.prio-bar i { display: block; width: 100%; height: 100%; border-radius: var(--radius-8); background: var(--ink); opacity: .3; transform: translateX(calc((var(--w) - 1) * 100%)); }
.is-pick .prio-bar i { background: var(--blue); opacity: 1; }
.w-1, .w-2 { --w: 1; } .w-3 { --w: .5; }

/* 02 KPI meter */
.kpi-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-24); }
.kpi-num b { display: block; color: var(--ink); font-size: var(--type-44); line-height: 1.08; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi-num span { display: block; margin-top: var(--space-8); color: var(--muted); font-size: var(--type-15); line-height: 1.5; }
.kpi-goal b { color: var(--blue-dark); }
.kpi-num:last-child { text-align: right; padding-left: var(--space-24); border-left: 1px solid var(--line-soft); }
.scale { margin-top: var(--space-32); padding-inline: var(--space-16); }
.scale-track { position: relative; height: calc(12px * var(--ui-scale)); }
.scale-track::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); border-top: 2px solid var(--line); }
.scale-link { position: absolute; left: calc(4 / 26 * 100%); right: 0; top: calc(50% - 1px); height: 2px; overflow: hidden; }
.scale-link i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.scale-pt { position: absolute; top: 50%; width: calc(12px * var(--ui-scale)); height: calc(12px * var(--ui-scale)); translate: -50% -50%; border-radius: 50%; }
.pt-ref { left: 100%; background: var(--ink); }
.pt-goal { left: calc(4 / 26 * 100%); background: var(--blue); }
.scale-ticks { position: relative; height: calc(40px * var(--ui-scale)); }
.scale-ticks li { position: absolute; top: 0; width: 0; --drop: 0px; }
.scale-ticks li::before { content: ''; position: absolute; left: 0; top: 0; height: calc(6px * var(--ui-scale) + var(--drop)); border-left: 1px solid var(--muted); }
.scale-ticks span { position: absolute; left: 0; top: calc(8px * var(--ui-scale) + var(--drop)); transform: translateX(-50%); color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scale-ticks .t0 { left: 0; } .scale-ticks .t4 { left: calc(4 / 26 * 100%); } .scale-ticks .t12 { left: calc(12 / 26 * 100%); } .scale-ticks .t26 { left: 100%; }
.kpi-quality { margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--line-soft); color: var(--ink); font-size: var(--type-15); line-height: 1.5; }
.kpi-quality b { font-variant-numeric: tabular-nums; }

/* 03 systems map: one broken link between working ones */
.map { display: grid; grid-template-columns: auto minmax(0, 1fr) auto calc(48px * var(--ui-scale)) auto; align-items: center; }
.map-node { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(36px * var(--ui-scale)); padding: 0 var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--white); color: var(--ink); font-size: var(--type-15); line-height: 1.4; font-weight: 600; text-align: center; }
.map-src { position: relative; display: grid; gap: var(--space-8); padding-right: var(--space-16); }
.map-src::before { content: ''; position: absolute; right: 0; top: calc(18px * var(--ui-scale)); bottom: calc(18px * var(--ui-scale)); border-left: 1px solid var(--muted); }
.map-src .map-node::after { content: ''; position: absolute; left: 100%; top: 50%; width: var(--space-16); border-top: 1px solid var(--muted); transform-origin: left center; }
.map-link { position: relative; align-self: stretch; }
.map-line { position: absolute; left: 0; right: 0; top: calc(50% - 1px); display: block; border-top: 2px solid var(--muted); transform-origin: left center; }
.map-broken .map-line { height: 2px; overflow: hidden; border-top: 0; }
.map-broken .map-line i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.map-ok .map-line { --hide: scaleX(0); }
.map-broken .map-line { --from: translateX(-100%); }
.map-link small { position: absolute; left: 0; right: 0; bottom: calc(50% + 6px); color: var(--ink); font-size: var(--type-13); line-height: 1.4; font-weight: 700; text-align: center; }
.map-ok { align-self: center; height: calc(36px * var(--ui-scale)); }
.map-check { position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: calc(20px * var(--ui-scale)); height: calc(20px * var(--ui-scale)); translate: -50% -50%; border: 1px solid var(--line); border-radius: 50%; background: var(--white); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-ref { margin-top: var(--space-24); padding-top: var(--space-16); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--type-15); line-height: 1.5; }
.map-ref b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 04 plan */
.plan { padding: var(--space-8) 0; }
.plan-row { display: grid; grid-template-columns: calc(112px * var(--ui-scale)) minmax(0, 1fr); align-items: baseline; column-gap: var(--space-16); padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: var(--type-17); line-height: 1.4; font-weight: 600; }
.plan-build { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.plan-build .entry-tag { border-color: var(--blue); background: var(--white); color: var(--blue-dark); }
.plan-row.plan-no { grid-template-columns: minmax(0, 1fr) auto; margin-top: var(--space-8); border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
.plan-no .strike { justify-self: start; }

/* 05 data filter */
.filter { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--space-24); }
.col-label { margin-bottom: var(--space-8); color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.filter-col ul { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.af-data .chip { padding: var(--space-8) var(--space-16); border: 1px solid var(--ink); border-radius: var(--radius-8); background: var(--white); color: var(--ink); font-size: var(--type-15); line-height: 1.4; font-weight: 600; }
.chip-out { border: 1px dashed var(--line); color: var(--muted); white-space: nowrap; }
.chip-out .strike::after { border-top-color: var(--muted); }
.gate { position: relative; display: block; grid-column: 1; margin-top: var(--space-16); border-top: 2px solid var(--ink); }
.gate::after { content: ''; position: absolute; left: 50%; top: calc(6px * var(--ui-scale)); width: calc(8px * var(--ui-scale)); height: calc(8px * var(--ui-scale)); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); translate: -50% 0; rotate: 45deg; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-24); margin-top: var(--space-24); }
.cells li { padding: var(--space-16) 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: var(--type-15); line-height: 1.5; }
.cells strong { font-weight: 700; }

/* 06 facts for the legal check */
.facts { padding: var(--space-8) 0; }
.fact { position: relative; isolation: isolate; display: grid; grid-template-columns: calc(112px * var(--ui-scale)) minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-16); padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line-soft); font-size: var(--type-15); line-height: 1.5; }
.fact:last-child { border-bottom: 0; }
.fact-k { color: var(--muted); font-weight: 600; }
.fact-v { color: var(--ink); font-weight: 600; }
.fact-flag::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--paper-2); }
.flag { flex: none; width: calc(14px * var(--ui-scale)); height: calc(14px * var(--ui-scale)); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 07 decision rule on the same axis as 02 */
.rule-axis { position: relative; margin-right: var(--space-24); padding-top: var(--space-48); }
.rule-ref { position: absolute; top: 0; display: flex; align-items: flex-start; height: calc(56px * var(--ui-scale)); color: var(--ink); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.rule-goal { left: calc(4 / 26 * 100%); padding-left: var(--space-8); border-left: 1px solid var(--ink); }
.rule-start { right: 0; padding-right: var(--space-8); border-right: 1px solid var(--ink); text-align: right; }
.rule-ref span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rule-zones { display: flex; height: calc(40px * var(--ui-scale)); }
.rule-zones i, .sw { position: relative; display: block; box-sizing: border-box; border: 1px solid var(--line); }
.rule-zones i { min-width: 0; }
.rule-zones i { border-width: 1px 0 1px 1px; }
.rule-zones .z3 { border-right-width: 1px; }
.rule-zones .z1 { flex: 4 1 0; } .rule-zones .z2 { flex: 8 1 0; } .rule-zones .z3 { flex: 14 1 0; }
.z1 { background: var(--blue-soft); } .z2 { background: var(--paper-2); } .z3 { background: var(--line); }
.rule-zones .z3::after { content: ''; position: absolute; left: calc(100% + 1px); top: -1px; bottom: -1px; width: var(--space-24); border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--line), transparent); }
.rule-legend { margin-top: var(--space-24); }
.rule-legend li { display: grid; grid-template-columns: calc(16px * var(--ui-scale)) calc(104px * var(--ui-scale)) minmax(0, 1fr); align-items: center; column-gap: var(--space-16); padding: var(--space-8) 0; font-size: var(--type-15); line-height: 1.5; }
.sw { width: calc(16px * var(--ui-scale)); height: calc(16px * var(--ui-scale)); }
.rule-legend b { color: var(--ink); }
.rule-legend span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rule-quality { margin-top: var(--space-16); padding-top: var(--space-16); border-top: 1px solid var(--line-soft); color: var(--ink); font-size: var(--type-15); line-height: 1.5; }
.rule-quality b { font-variant-numeric: tabular-nums; }

/* movement: each frame plays once when it scrolls into view (come-lavoriamo.js adds .is-in). Transform and opacity only, no layout change.
   Without JS or with reduced motion the final state is the base state above. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-play] :is(.route-fill, .prio-bar i, .prio-tag, .scale-link i, .scale-pt, .map-line, .map-check, .map-link small, .artifact-diagnosis, .plan-row, .chip, .cells li, .fact, .flag, .rule-zones i, .rule-ref, .rule-legend li, .rule-quality),
  .js [data-play] .map-src::before, .js [data-play] .map-src .map-node::after, .js [data-play] .strike::after, .js [data-play] .fact-flag::before { transition-property: transform, opacity; transition-duration: .4s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js [data-play] :is(.route-fill, .prio-tag, .scale-pt, .map-check, .map-link small, .artifact-diagnosis, .flag, .rule-ref, .rule-quality, .rule-legend li) { transition-duration: .25s; }
  .js .how-route > li + li::before, .js .how-route > li + li::after { transition: transform .3s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), opacity .3s ease-out var(--d, 0s); }

  /* route */
  .js .how-route > li + li::before { --d: .0s; } .js .how-route > li + li::after { --d: .1s; }
  .js .how-route > li:nth-child(3)::before { --d: .35s; } .js .how-route > li:nth-child(3)::after { --d: .45s; }
  .js .how-route:not(.is-in) > li + li::before { opacity: 0; transform: scale(.4); }
  .js .how-route:not(.is-in) > li + li::after { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
  .js .how-route .route-fill { --d: .6s; }
  .js .how-route:not(.is-in) .route-fill { opacity: 0; }

  /* 01 */
  .js .af-prio:not(.is-in) .prio-bar i { transform: translateX(-100%); }
  .js .af-prio .is-pick .prio-bar i { --d: 0s; } .js .af-prio .prio-row:nth-child(2) .prio-bar i { --d: .1s; } .js .af-prio .prio-row:nth-child(3) .prio-bar i { --d: .2s; }
  .js .af-prio .prio-bar i { transition-duration: .55s; }
  .js .af-prio .prio-tag { --d: .6s; }
  .js .af-prio:not(.is-in) .prio-tag { opacity: 0; transform: translateX(-8px); }

  /* 02 */
  .js .af-kpi .pt-ref { --d: 0s; } .js .af-kpi .scale-link i { --d: .15s; transition-duration: .6s; } .js .af-kpi .pt-goal { --d: .7s; }
  .js .af-kpi:not(.is-in) .scale-pt { opacity: 0; transform: scale(.2); }
  .js .af-kpi:not(.is-in) .scale-link i { transform: translateX(100%); }

  /* 03 */
  .js .af-map:not(.is-in) .map-src::before, .js .af-map:not(.is-in) .map-src .map-node::after { opacity: 0; }
  .js .af-map .map-src::before, .js .af-map .map-src .map-node::after { --d: 0s; transition-duration: .3s; }
  .js [data-play] .map-broken .map-line i { transition-property: transform; transition-duration: .45s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js .af-map .map-broken .map-line i { --d: .15s; } .js .af-map .map-broken small { --d: .62s; }
  .js .af-map .map-ok .map-line { --d: .65s; transition-duration: .2s; } .js .af-map .map-check { --d: .8s; }
  .js .af-map .artifact-diagnosis { --d: .95s; }
  .js .af-map:not(.is-in) .map-ok .map-line { transform: var(--hide); }
  .js .af-map:not(.is-in) .map-check { opacity: 0; transform: scale(.4); }
  .js .af-map:not(.is-in) .map-broken .map-line i { transform: var(--from); }
  .js .af-map:not(.is-in) .map-broken small { opacity: 0; }
  .js .af-map:not(.is-in) .artifact-diagnosis { opacity: 0; transform: translateY(6px); }

  /* 04 */
  .js .af-plan .plan-row:nth-child(1) { --d: 0s; } .js .af-plan .plan-row:nth-child(2) { --d: .12s; } .js .af-plan .plan-row:nth-child(3) { --d: .24s; } .js .af-plan .plan-row:nth-child(4) { --d: .4s; }
  .js .af-plan .plan-no .strike::after { --d: .7s; transition-duration: .35s; }
  .js .af-plan:not(.is-in) .plan-row { opacity: 0; transform: translateY(8px); }
  .js .af-plan:not(.is-in) .strike::after { transform: scaleX(0); }

  /* 05 */
  .js .af-data .chip-in:nth-child(1) { --d: 0s; } .js .af-data .chip-in:nth-child(2) { --d: .08s; } .js .af-data .chip-in:nth-child(3) { --d: .16s; }
  .js .af-data .chip-out { --d: .2s; } .js .af-data .strike::after { --d: .55s; transition-duration: .3s; }
  .js .af-data:not(.is-in) .chip-in { opacity: 0; transform: translateY(-14px); }
  .js .af-data:not(.is-in) .chip-out { opacity: 0; }
  .js .af-data:not(.is-in) .strike::after { transform: scaleX(0); }
  .js .af-data .cells li { transition-duration: .3s; }
  .js .af-data .cells li:nth-child(1) { --d: .5s; } .js .af-data .cells li:nth-child(2) { --d: .57s; } .js .af-data .cells li:nth-child(3) { --d: .64s; }
  .js .af-data .cells li:nth-child(4) { --d: .71s; } .js .af-data .cells li:nth-child(5) { --d: .78s; } .js .af-data .cells li:nth-child(6) { --d: .85s; }
  .js .af-data:not(.is-in) .cells li { opacity: 0; transform: translateY(6px); }

  /* 06 */
  .js .af-check .fact:nth-child(1) { --d: 0s; } .js .af-check .fact:nth-child(2) { --d: .1s; } .js .af-check .fact:nth-child(3) { --d: .2s; } .js .af-check .fact:nth-child(4) { --d: .3s; }
  .js .af-check .fact { transition-duration: .3s; }
  .js .af-check .fact-flag::before { --d: .55s; } .js .af-check .flag { --d: .7s; }
  .js .af-check:not(.is-in) .fact { opacity: 0; transform: translateY(6px); }
  .js .af-check:not(.is-in) .fact-flag::before { opacity: 0; }
  .js .af-check:not(.is-in) .flag { opacity: 0; transform: translateY(-6px) scale(.6); }

  /* 07 */
  .js .af-rule .rule-zones i { transform-origin: left center; transition-duration: .4s; }
  .js .af-rule .z1 { --d: 0s; } .js .af-rule .z2 { --d: .15s; } .js .af-rule .z3 { --d: .3s; }
  .js .af-rule .rule-legend li:nth-child(1) { --d: .1s; } .js .af-rule .rule-legend li:nth-child(2) { --d: .25s; } .js .af-rule .rule-legend li:nth-child(3) { --d: .4s; }
  .js .af-rule .rule-ref { --d: .7s; } .js .af-rule .rule-quality { --d: .9s; }
  .js .af-rule:not(.is-in) .rule-zones i { transform: scaleX(0); }
  .js .af-rule:not(.is-in) :is(.rule-ref, .rule-quality) { opacity: 0; }
  .js .af-rule:not(.is-in) .rule-legend li { opacity: 0; transform: translateY(6px); }
}

/* standalone text links: the shared .text-link (vf.css); spacing only here */
.how-text-link { margin-top: var(--space-24); }
.how-text-link a { margin: 0; }

.how-sectors { padding-bottom: var(--space-96); }
.how-sectors nav { display: flex; flex-wrap: wrap; gap: var(--space-16); }
.how-sectors a { display: inline-flex; align-items: center; gap: var(--space-16); min-height: var(--btn-h); padding-inline: var(--space-24); border-radius: var(--radius-pill); font-size: var(--type-15); line-height: 1.4; font-weight: 700; }
.how-sectors a:hover { color: var(--blue-dark); }
.how-sectors a svg { flex: none; width: calc(16px * var(--ui-scale)); height: calc(16px * var(--ui-scale)); }

@media (max-width: 1023px) { .how-hero-copy { grid-column: 1/-1; } .how-route { grid-column: 1/-1; } }
@media (max-width: 899px) {
  .how-hero-copy, .how-route { grid-column: 1/-1; }
  .how-hero h1 { max-width: none; }
  .how-step-grid { grid-template-columns: minmax(0,1fr); gap: var(--space-32); }
  .how-step { padding-block: var(--space-64); }
  .how-sectors { padding-bottom: var(--space-64); }
}
@media (max-width: 599px) {
  .how-route > li { padding: var(--space-16); }
  .how-route > li + li::before { left: var(--space-16); }
  .how-route > li + li::after { left: calc(var(--space-16) + 7px * var(--ui-scale)); }
  .af-body { padding: var(--space-16); }
  .artifact-diagnosis { padding-inline: var(--space-16); }
  /* 01: bar under the name, tag on its own line */
  .prio-row { grid-template-columns: minmax(0, 1fr); }
  .prio-tag { grid-column: 1; grid-row: auto; }
  /* 02: the 4 tick label drops to its own level */
  .scale-ticks { height: calc(56px * var(--ui-scale)); }
  .scale-ticks .t4 { --drop: 20px; }
  /* 03: nodes in a column */
  .map { grid-template-columns: minmax(0, 1fr); }
  .map-src { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); padding: 0 0 var(--space-16); }
  .map-src::before { left: calc((100% - var(--space-16)) / 4); right: calc((100% - var(--space-16)) / 4); top: auto; bottom: 0; border-left: 0; border-top: 1px solid var(--muted); }
  .map-src .map-node::after { left: 50%; top: 100%; width: 0; height: var(--space-16); border-top: 0; border-left: 1px solid var(--muted); transform-origin: center top; }
  .map-link, .map-ok { align-self: stretch; height: calc(56px * var(--ui-scale)); }
  .map-line { right: auto; top: 0; bottom: 0; width: 0; left: calc(50% - 1px); border-top: 0; border-left: 2px solid var(--muted); transform-origin: center top; }
  .map-broken .map-line { width: 2px; height: auto; overflow: hidden; border-left: 0; }
  .map-broken .map-line i { width: 100%; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); }
  .map-link small { left: calc(50% + var(--space-16)); right: 0; top: 50%; bottom: auto; transform: translateY(-50%); text-align: left; }
  .map-check { top: 50%; }
  .js .af-map:not(.is-in) .map-ok .map-line { --hide: scaleY(0); }
  .map-broken .map-line { --from: translateY(-100%); }
  /* 04 / 06: label above the fact */
  .plan-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); padding-inline: var(--space-16); }
  .plan-row.plan-no { grid-template-columns: minmax(0, 1fr) auto; }
  .fact { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); padding-inline: var(--space-16); }
  /* 05 */
  .filter { grid-template-columns: minmax(0, 1fr); }
  .filter-yes { order: 1; } .gate { order: 2; margin-top: var(--space-16); } .filter-no { order: 3; margin-top: var(--space-24); }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .rule-legend li { grid-template-columns: calc(16px * var(--ui-scale)) minmax(0, 1fr); row-gap: 0; }
  .rule-legend span { grid-column: 2; }
  .how-sectors a { padding-inline: var(--space-16); }
}
@media (max-width: 359px) {
  .rule-ref span { white-space: normal; }
  .rule-goal { max-width: 52%; }
  .rule-start { max-width: 28%; }
  .kpi-nums { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-16); }
  .kpi-num:last-child { padding: var(--space-16) 0 0; border-left: 0; border-top: 1px solid var(--line-soft); text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .page-how *, .page-how *::before, .page-how *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.how-noscript { margin-top: var(--space-16); font-size: var(--type-15); }
.how-noscript a { color: var(--blue-dark); }
.page-how .ask { padding-top: 0; }

/* Short version (Michael, 26 Nov): data and rules move to a collapsed FAQ. */
.how-faq .faq-list { max-width: 820px; padding-inline: var(--space-24); }
.how-faq details + details { border-top: 1px solid var(--line-soft); }
.how-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 56px; padding-block: var(--space-16); color: var(--ink); font-size: var(--type-20); line-height: 1.35; font-weight: 700; cursor: pointer; list-style: none; }
.how-faq summary::-webkit-details-marker { display: none; }
.how-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: var(--space-4, 0); border: solid var(--blue-dark); border-width: 0 1.5px 1.5px 0; transform: translateY(-25%) rotate(45deg); transition: transform .15s ease; }
.how-faq details[open] summary::after { transform: translateY(25%) rotate(225deg); }
.how-faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-8); }
.how-faq details > div { padding-bottom: var(--space-24); }
.how-faq details p { max-width: 60ch; color: var(--text-2); font-size: var(--type-17); line-height: 1.6; }
.how-faq details .text-link { display: inline-flex; align-items: center; gap: var(--space-8); margin-top: var(--space-16); }
@media (max-width: 599px) { .how-faq .faq-list { padding-inline: var(--space-16); } }
@media (prefers-reduced-motion: reduce) { .how-faq summary::after { transition: none; } }
.how-hero h1 { max-width: 20ch; }

/* ---- v3 (Michael, 26 Nov): friction → where to start → one number → grow. Cards in the sector-page style. ---- */
.cl-hero, .cl-ch {
  --cl-line: color-mix(in srgb, var(--ink) 12%, var(--white));
  --cl-tint: color-mix(in srgb, var(--blue) 7%, var(--white));
  --cl-ok: color-mix(in srgb, var(--ok) 55%, var(--ink));
  --cl-ok-soft: color-mix(in srgb, var(--ok) 10%, var(--white));
  --cl-ok-bar: color-mix(in srgb, var(--ok) 38%, var(--white));
  --cl-sun-ink: color-mix(in srgb, var(--sunset) 45%, var(--ink));
  --cl-sun-soft: color-mix(in srgb, var(--sunset) 16%, var(--white));
}
.cl-hero { padding-block: var(--space-48) var(--space-96); }
.cl-hero .how-hero-copy { grid-column: 1/7; }
.cl-hero h1 { max-width: none; }
.cl-hero .lead { max-width: 36ch; }
.cl-hero .cl-map { grid-column: 8/13; }

.cl-card { margin: 0; overflow: hidden; border: 1px solid var(--cl-line); border-radius: var(--radius-16); background: var(--white); box-shadow: var(--shadow-2); }
.cl-card h3 { padding: var(--space-16) var(--space-24) 0; color: var(--ink); font-size: var(--type-17); line-height: 1.4; font-weight: 700; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line-soft); }
.cl-app { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--blue-dark); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.cl-app svg { width: 14px; height: 14px; fill: currentColor; }
.cl-tab { color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 600; }
.cl-sum { margin: 0; padding: var(--space-16) var(--space-24); border-top: 1px solid var(--line-soft); color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.cl-sum b { color: var(--ink); }

/* Hero map */
.cl-flow { margin: 0; padding: var(--space-8) var(--space-16); list-style: none; }
.cl-flow li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); padding: var(--space-16) var(--space-8); border-radius: var(--radius-8); }
.cl-flow li + li::before { content: ""; position: absolute; top: -12px; left: calc(var(--space-8) + 19px); width: 2px; height: 24px; background: var(--cl-line); }
.cl-node { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--cl-line); border-radius: var(--radius-8); background: var(--paper); color: var(--ink); position: relative; z-index: 1; }
.cl-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-flow p { display: grid; gap: 2px; min-width: 0; }
.cl-flow b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-flow p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-fr, .cl-ok { justify-self: end; padding: 4px 10px; border-radius: var(--radius-pill); font: 600 var(--type-13)/1.4 var(--mono); font-style: normal; white-space: nowrap; }
.cl-fr { background: var(--cl-sun-soft); color: var(--cl-sun-ink); }
.cl-ok { background: var(--cl-ok-soft); color: var(--cl-ok); }
.cl-flow .is-start { background: var(--cl-tint); box-shadow: inset 0 0 0 1.5px var(--blue); }
.cl-flow .is-start .cl-node { border-color: var(--blue); background: var(--blue); color: var(--white); }
.cl-start { grid-column: 2 / -1; justify-self: start; display: inline-flex; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.cl-foot { padding: var(--space-16) var(--space-24); border-top: 1px solid var(--line-soft); background: var(--cl-ok-soft); color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.cl-foot b { color: var(--cl-ok); }

/* Chapters */
.cl-ch { padding-block: var(--space-96); border-top: 1px solid var(--line); }
.cl-ch.cl-alt { background: var(--paper-2); }
.cl-ch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-64); align-items: center; }
.cl-label { margin-bottom: var(--space-16); color: var(--blue-dark); font-size: var(--type-13); line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cl-copy h2 { max-width: 20ch; }
.cl-copy > p:not(.cl-label) { max-width: 52ch; margin-top: var(--space-24); color: var(--text-2); font-size: var(--type-17); line-height: 1.6; }
.cl-copy > p + p:not(.cl-label) { margin-top: var(--space-16); }
.cl-copy .cl-note { padding: var(--space-16) var(--space-24); border-left: 3px solid var(--ok); border-radius: 0 var(--radius-8) var(--radius-8) 0; background: var(--cl-ok-soft); color: var(--ink); font-weight: 700; }

/* 1 · cost bars */
.cl-bars { display: grid; gap: var(--space-24); margin: 0; padding: var(--space-24); list-style: none; }
.cl-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); }
.cl-bars p { display: grid; gap: 2px; }
.cl-bars b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-bars p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-pill { display: block; height: 12px; border-radius: var(--radius-pill); background: var(--paper-2); overflow: hidden; }
.cl-pill > i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--sunset); transform-origin: left; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cl-bars li:nth-child(2) .cl-pill > i { transition-delay: .12s; } .cl-bars li:nth-child(3) .cl-pill > i { transition-delay: .24s; } .cl-bars li:nth-child(4) .cl-pill > i { transition-delay: .36s; }
.cl-bars strong { min-width: 7ch; color: var(--cl-sun-ink); font: 700 var(--type-15)/1.4 var(--mono); text-align: right; }

/* 2 · matrix */
.cl-plot { position: relative; margin: var(--space-24) var(--space-24) var(--space-24) var(--space-48); aspect-ratio: 16 / 10; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  background: linear-gradient(var(--line-soft), var(--line-soft)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line-soft), var(--line-soft)) 0 50% / 100% 1px no-repeat; }
.cl-zone { position: absolute; left: 0; top: 0; width: 50%; height: 50%; display: grid; align-content: end; justify-items: start; padding: var(--space-8) var(--space-16); background: var(--cl-tint); border-radius: 0 0 var(--radius-8) 0; text-align: left; }
.cl-zone b { color: var(--blue-dark); font-size: var(--type-13); line-height: 1.3; }
.cl-zone small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.cl-dot { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: var(--space-8); transform: translateY(-50%); color: var(--text-2); font-size: var(--type-13); line-height: 1.3; font-weight: 600; white-space: nowrap; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.cl-dot i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--muted); }
.cl-dot.is-pick { color: var(--ink); font-weight: 700; }
.cl-dot.is-pick i { width: 20px; height: 20px; border: 0; background: var(--blue); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 18%, transparent); }
.cl-ax { position: absolute; color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 600; }
.cl-ax-y { left: 0; top: 0; writing-mode: vertical-rl; transform: translateX(calc(-100% - 8px)) rotate(180deg); white-space: nowrap; }
.cl-ax-x { right: 0; bottom: -22px; }

/* 3 · number */
.cl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); padding: var(--space-16) var(--space-24) 0; }
.cl-tiles p { display: grid; gap: 2px; padding: var(--space-8) var(--space-16); border: 1px solid var(--cl-line); border-radius: var(--radius-8); }
.cl-tiles span { color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 600; }
.cl-tiles b { color: var(--ink); font: 700 var(--type-17)/1.3 var(--mono); }
.cl-tiles p:first-child b { color: var(--blue-dark); }
.cl-tiles .is-res { border-color: transparent; background: var(--cl-ok-soft); }
.cl-tiles .is-res b { color: var(--cl-ok); }
.cl-chart { position: relative; margin: var(--space-24); height: 200px; }
.cl-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cl-target { fill: var(--cl-ok-soft); }
.cl-down, .cl-up { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cl-down { stroke: var(--blue); } .cl-up { stroke: var(--ok); }
.cl-down-a { fill: color-mix(in srgb, var(--blue) 10%, transparent); } .cl-up-a { fill: color-mix(in srgb, var(--ok) 12%, transparent); }
.cl-mark { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cl-up { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1) .3s; }
.cl-lab { position: absolute; font-size: 12px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.cl-lab-t { left: 8px; top: 4%; color: var(--cl-ok); }
.cl-lab-m { left: 50%; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: var(--blue-dark); }
.cl-lab-m svg { width: 12px; height: 12px; fill: currentColor; }
.cl-lab-r { right: 0; top: -14px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ok); color: var(--ink); font-size: var(--type-13); }

/* 4 · road */
.cl-steps { display: grid; gap: var(--space-8); margin: 0; padding: var(--space-16) var(--space-24) var(--space-24); list-style: none; }
.cl-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); padding: var(--space-16); border: 1px solid var(--cl-line); border-radius: var(--radius-8); }
.cl-st { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--muted); font: 700 var(--type-13)/1 var(--mono); }
.cl-st svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-steps p { display: grid; gap: 2px; }
.cl-steps b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-steps p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-steps em { color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-style: normal; font-weight: 700; }
.cl-steps .is-done { background: var(--cl-ok-soft); border-color: transparent; }
.cl-steps .is-done .cl-st { background: var(--ok); color: var(--white); }
.cl-steps .is-done em, .cl-steps .is-done p span { color: var(--cl-ok); }
.cl-steps .is-now { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--cl-tint); }
.cl-steps .is-now .cl-st { background: var(--blue); color: var(--white); }
.cl-steps .is-now em { color: var(--blue-dark); }

/* Motion: final state without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .cl-card[data-play]:not(.is-in) .cl-pill > i { transform: scaleX(0); }
  .js .cl-card[data-play]:not(.is-in) .cl-up { stroke-dashoffset: 1; }
  .js .cl-card[data-play]:not(.is-in) .cl-dot.is-pick { transform: translateY(-50%) scale(.6); opacity: 0; }
  .js .cl-map[data-play] .cl-start { transition: opacity .4s ease .5s, transform .4s ease .5s; }
  .js .cl-map[data-play]:not(.is-in) .cl-start { opacity: 0; transform: translateY(4px); }
}

@media (max-width: 1023px) {
  .cl-hero .how-hero-copy, .cl-hero .cl-map { grid-column: 1/-1; }
  .cl-ch-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
}
@media (max-width: 599px) {
  .cl-hero { padding-block: var(--space-24) var(--space-64); }
  .cl-ch { padding-block: var(--space-64); }
  .cl-flow { padding-inline: var(--space-8); }
  .cl-flow li { grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-8) var(--space-16); }
  .cl-node { width: 36px; height: 36px; }
  .cl-flow li + li::before { left: calc(var(--space-8) + 17px); }
  .cl-fr, .cl-ok { grid-column: 2; justify-self: start; }
  .cl-bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-bars .cl-pill { grid-column: 1 / -1; grid-row: 2; }
  .cl-bars strong { grid-row: 1; grid-column: 2; }
  .cl-plot { margin-left: var(--space-32); margin-right: var(--space-16); aspect-ratio: 1; }
  .cl-dot { white-space: normal; max-width: 9em; }
  .cl-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); padding-inline: var(--space-16); }
  .cl-tiles p { padding: var(--space-8); }
  .cl-tiles b { font-size: var(--type-15); }
  .cl-chart { margin-inline: var(--space-16); height: 170px; }
  .cl-card h3, .cl-bar, .cl-sum, .cl-foot { padding-inline: var(--space-16); }
  .cl-bars, .cl-steps { padding-inline: var(--space-16); }
}

/* v3.1 (Michael, 26 Nov): hero shows the system revitalized; friction bars resolve in green; loop for «grows as one». */
.cl-res { display: grid; justify-items: end; gap: 2px; }
.cl-was { color: var(--muted); font: 500 var(--type-13)/1.3 var(--mono); text-decoration-color: var(--cl-sun-ink); }
.cl-flow .is-start .cl-node { background: var(--ok); border-color: var(--ok); }
.cl-flow .is-start { background: var(--cl-ok-soft); box-shadow: none; }
.cl-flow .is-start .cl-ok { background: var(--ok); color: var(--ink); }
.cl-foot { display: flex; align-items: center; gap: var(--space-8); }
.cl-foot-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: var(--white); }
.cl-foot-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.cl-pill { position: relative; }
.cl-pill > .cl-fix { position: absolute; left: 0; top: 0; width: var(--fw); background: var(--ok); transition-delay: .9s; }
.cl-vals { display: grid; justify-items: end; gap: 2px; min-width: 9ch; }
.cl-vals strong { min-width: 0; color: var(--cl-sun-ink); font: 600 var(--type-13)/1.3 var(--mono); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sunset) 70%, transparent); }
.cl-vals em { color: var(--cl-ok); font: 700 var(--type-15)/1.3 var(--mono); font-style: normal; }
.cl-legend { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); margin: 0; padding: 0 var(--space-24) var(--space-16); color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-legend span { display: inline-flex; align-items: center; gap: var(--space-8); }
.cl-legend i { width: 18px; height: 8px; border-radius: var(--radius-pill); }
.cl-legend .sw-lost { background: var(--sunset); } .cl-legend .sw-fix { background: var(--ok); }
.cl-sum-ok { background: var(--cl-ok-soft); }
.cl-sum-ok b { color: var(--cl-ok); } .cl-sum-ok b.lost { color: var(--cl-sun-ink); }

.cl-cycle { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: var(--space-16) auto 0; }
.cl-cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-ring { fill: none; stroke: var(--line-soft); stroke-width: 10; }
.cl-arc { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1) .2s; }
.cl-arrowhead { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cl-core { position: absolute; inset: 30%; display: grid; place-content: center; gap: 2px; border-radius: 50%; background: var(--cl-ok-soft); text-align: center; }
.cl-core b { color: var(--cl-ok); font-size: var(--type-15); line-height: 1.25; }
.cl-core small { color: var(--muted); font-size: 12px; line-height: 1.3; padding-inline: 6px; }
.cl-cy { position: absolute; padding: 4px 10px; border: 1px solid var(--cl-line); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: var(--type-13); line-height: 1.3; font-weight: 700; transform: translate(-50%, -50%); box-shadow: var(--shadow-1); }
.cl-cy-1 { left: 50%; top: 13%; } .cl-cy-2 { left: 87%; top: 63%; } .cl-cy-3 { left: 18%; top: 72%; }
.cl-loop .cl-steps .is-done em { color: var(--cl-ok); font-family: var(--mono); }

@media (prefers-reduced-motion: no-preference) {
  .js .cl-card[data-play]:not(.is-in) .cl-pill > .cl-fix { transform: scaleX(0); }
  .js .cl-card[data-play]:not(.is-in) .cl-arc { stroke-dashoffset: 1; }
  .js .cl-cost[data-play] .cl-vals em, .js .cl-cost[data-play] .cl-sum-ok { transition: opacity .4s ease 1.3s; }
  .js .cl-cost[data-play]:not(.is-in) .cl-vals em, .js .cl-cost[data-play]:not(.is-in) .cl-sum-ok { opacity: 0; }
}
@media (max-width: 599px) {
  .cl-res { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: var(--space-8); }
  .cl-vals { grid-row: 1; grid-column: 2; }
  .cl-legend { padding-inline: var(--space-16); }
}

/* v3.2 (Michael, 26 Nov): hero = working together as a team, with the wins; chapter 1 = map of what works and where to grow. */
.cl-crew { padding: var(--space-24) var(--space-24) var(--space-16); border-bottom: 1px solid var(--line-soft); }
.cl-avatars { display: flex; justify-content: space-between; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.cl-avatars li { display: grid; justify-items: center; gap: var(--space-8); flex: 1; }
.cl-avatars span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: var(--type-17); font-weight: 800; overflow: hidden; }
.cl-avatars li:nth-child(1) span { background: color-mix(in srgb, var(--sea) 14%, var(--white)); color: color-mix(in srgb, var(--sea) 76%, var(--ink)); }
.cl-avatars li:nth-child(2) span { background: color-mix(in srgb, var(--sunset) 20%, var(--white)); color: var(--cl-sun-ink); }
.cl-avatars li:nth-child(3) span { background: color-mix(in srgb, var(--blue) 12%, var(--white)); color: var(--blue-dark); }
.cl-avatars .is-me span { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }
.cl-avatars img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.cl-avatars small { color: var(--text-2); font-size: var(--type-13); line-height: 1.3; font-weight: 600; text-align: center; }
.cl-avatars .is-me small { color: var(--blue-dark); font-weight: 700; }
.cl-crew-note { position: relative; margin-top: var(--space-16); padding-top: var(--space-16); color: var(--muted); font-size: var(--type-13); line-height: 1.4; text-align: center; }
.cl-crew-note::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cl-line), var(--blue), var(--cl-line)); }
.cl-wins-h { padding: var(--space-16) var(--space-24) 0; color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cl-wins { display: grid; gap: var(--space-8); margin: 0; padding: var(--space-8) var(--space-24) var(--space-24); list-style: none; }
.cl-wins li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); padding: var(--space-8) 0; border-bottom: 1px solid var(--line-soft); }
.cl-wins li:last-child { border-bottom: 0; }
.cl-wins b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-w-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cl-ok-soft); color: var(--cl-ok); }
.cl-w-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-wins li:last-child .cl-ok { background: var(--ok); color: var(--ink); }
.cl-hero .cl-team { grid-column: 8/13; }
@media (prefers-reduced-motion: no-preference) {
  .js .cl-team[data-play] .cl-wins li { transition: opacity .4s ease, transform .4s ease; }
  .js .cl-team[data-play] .cl-wins li:nth-child(2) { transition-delay: .15s; } .js .cl-team[data-play] .cl-wins li:nth-child(3) { transition-delay: .3s; }
  .js .cl-team[data-play]:not(.is-in) .cl-wins li { opacity: 0; transform: translateY(6px); }
}

.cl-hm { display: grid; gap: var(--space-16); margin: 0; padding: var(--space-24); list-style: none; }
.cl-hm li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 9ch; align-items: center; gap: var(--space-16); }
.cl-hm p { display: grid; gap: 2px; }
.cl-hm b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-hm p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-health { position: relative; display: block; height: 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--sunset) 22%, var(--white)); overflow: hidden; }
.cl-health > i { display: block; width: var(--hv); height: 100%; border-radius: inherit; background: var(--ok); transform-origin: left; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cl-gap { justify-self: end; color: var(--cl-sun-ink); font: 700 var(--type-15)/1.3 var(--mono); }
.cl-good { justify-self: end; color: var(--cl-ok); font-size: var(--type-13); line-height: 1.3; font-weight: 700; text-align: right; }
.cl-legend .sw-room { background: color-mix(in srgb, var(--sunset) 40%, var(--white)); }
@media (prefers-reduced-motion: no-preference) { .js .cl-card[data-play]:not(.is-in) .cl-health > i { transform: scaleX(0); } }
@media (max-width: 599px) {
  .cl-hm li { grid-template-columns: minmax(0, 1fr) auto; }
  .cl-hm .cl-health { grid-column: 1 / -1; grid-row: 2; }
  .cl-avatars span { width: 44px; height: 44px; }
  .cl-wins li { grid-template-columns: 28px minmax(0, 1fr); }
  .cl-wins .cl-res { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: var(--space-8); }
  .cl-crew, .cl-wins, .cl-wins-h, .cl-hm { padding-inline: var(--space-16); }
}
@media (max-width: 1023px) { .cl-hero .cl-team { grid-column: 1/-1; } }
.cl-hm li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 12ch; }
.cl-good { white-space: nowrap; }
@media (max-width: 599px) { .cl-hm li { grid-template-columns: minmax(0, 1fr) auto; } }

/* v3.3 (Michael, 26 Nov): face centred; general wins; «funziona bene» in sea; solutions as bubbles sized by value. */
.cl-avatars .is-me img { object-position: 50% 12%; transform: scale(1.35); transform-origin: 50% 28%; }
.cl-wins p { display: grid; gap: 2px; }
.cl-wins p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-health { background: color-mix(in srgb, var(--sunset) 22%, var(--white)); }
.cl-health > i { background: var(--blue); }
.cl-hm .is-good .cl-health { background: color-mix(in srgb, var(--sea) 12%, var(--white)); }
.cl-hm .is-good .cl-health > i { background: var(--sea); }
.cl-good { color: color-mix(in srgb, var(--sea) 76%, var(--ink)); }
.cl-legend .sw-good { background: var(--sea); } .cl-legend .sw-now { background: var(--blue); }

.cl-plot { aspect-ratio: 4 / 3; }
.cl-dot { gap: var(--space-8); align-items: center; white-space: normal; transform: translate(0, -50%); }
.cl-dot > i { width: var(--s); height: var(--s); border: 0; background: color-mix(in srgb, var(--blue) 22%, var(--white)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 50%, var(--white)); margin-left: calc(var(--s) / -2); }
.cl-dot > span { display: grid; gap: 0; min-width: 0; max-width: 15em; }
.cl-dot b { color: var(--ink); font-size: var(--type-13); line-height: 1.25; }
.cl-dot small { color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 500; }
.cl-dot em { align-self: start; margin-top: 1px; color: var(--cl-ok); font: 700 12px/1.3 var(--mono); font-style: normal; white-space: nowrap; }
.cl-dot em.cl-no { color: var(--muted); font-family: var(--sans); }
.cl-dot.is-pick > i { width: var(--s); height: var(--s); background: var(--blue); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 16%, transparent); }
.cl-dot:last-of-type > i { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.cl-lab-m { margin-left: 8px; }
@media (max-width: 599px) {
  .cl-plot { aspect-ratio: 3 / 4; }
  .cl-dot small { display: none; }
  .cl-dot > span { max-width: 8.5em; }
}
/* Matrix v2: numbered bubbles sized by value, list below (labels collided on the grid). */
.cl-plot { aspect-ratio: 16 / 9; margin-bottom: var(--space-32); }
.cl-b { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; transform: translate(-50%, -50%); background: color-mix(in srgb, var(--blue) 16%, var(--white)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 45%, var(--white)); color: var(--blue-dark); font: 700 var(--type-13)/1 var(--sans); transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.cl-b.is-pick { background: var(--blue); color: var(--white); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 16%, transparent); }
.cl-b.is-no { background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.cl-zone { align-content: end; justify-items: start; }
.cl-blist { display: grid; gap: 0; margin: 0; padding: 0 var(--space-24) var(--space-16); list-style: none; border-top: 1px solid var(--line-soft); }
.cl-blist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-16); padding: var(--space-8) 0; border-bottom: 1px solid var(--line-soft); }
.cl-blist li:last-child { border-bottom: 0; }
.cl-bn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 12%, var(--white)); color: var(--blue-dark); font-size: var(--type-13); font-weight: 700; }
.cl-blist .is-pick .cl-bn { background: var(--blue); color: var(--white); }
.cl-blist .is-no .cl-bn { background: var(--paper-2); color: var(--muted); }
.cl-blist p { display: grid; gap: 0; }
.cl-blist b { color: var(--ink); font-size: var(--type-15); line-height: 1.35; }
.cl-blist p span { color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.cl-blist em { color: var(--cl-ok); font: 700 var(--type-13)/1.3 var(--mono); font-style: normal; white-space: nowrap; }
.cl-blist .is-no em { color: var(--muted); font-family: var(--sans); }
.cl-blist .is-pick { background: var(--cl-tint); margin-inline: calc(var(--space-8) * -1); padding-inline: var(--space-8); border-radius: var(--radius-8); }
@media (prefers-reduced-motion: no-preference) { .js .cl-card[data-play]:not(.is-in) .cl-b.is-pick { transform: translate(-50%, -50%) scale(.5); opacity: 0; } }
@media (max-width: 599px) { .cl-plot { aspect-ratio: 4 / 3; } .cl-blist { padding-inline: var(--space-16); } }
.cl-avatars .is-me img { object-position: 50% 8%; transform: scale(1.12); transform-origin: 50% 20%; }
.cl-avatars .is-me img { object-position: 50% 19%; transform: scale(1.3); transform-origin: 50% 50%; }
.cl-avatars .is-me img { transform: scale(1.12); object-position: 50% 17%; }
/* Map bars: partial fills on a neutral track (Michael, 26 Nov: the coloured remainder didn't make sense). */
.cl-health, .cl-hm .is-good .cl-health { background: var(--paper-2); }
.cl-blist .is-no b { color: var(--text-2); }
.cl-blist .is-no em { color: var(--cl-sun-ink); }
.cl-zone { align-content: start; justify-items: end; text-align: right; border-radius: 0 0 var(--radius-8) 0; }
.cl-zone { align-content: end; justify-items: start; text-align: left; }
@media (max-width: 599px) { .cl-zone small { display: none; } }
/* Compact map (Michael, 26 Nov: list too long): six tiles, 3 × 2. */
.cl-tiles6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); padding: var(--space-16) var(--space-24) var(--space-24); }
.cl-tiles6 li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding: var(--space-16); border: 1px solid var(--cl-line); border-radius: var(--radius-8); }
.cl-tiles6 .cl-gap, .cl-tiles6 .cl-good { justify-self: start; text-align: left; }
.cl-tiles6 .cl-good { display: inline-flex; align-items: center; gap: 4px; }
.cl-tiles6 .cl-good svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-tiles6 .is-good { background: color-mix(in srgb, var(--sea) 6%, var(--white)); }
.cl-tiles6 .cl-health { height: 8px; }
@media (max-width: 599px) { .cl-tiles6 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: var(--space-16); } .cl-tiles6 li { grid-template-columns: minmax(0, 1fr); } .cl-tiles6 .cl-health { grid-column: auto; grid-row: auto; } }
/* Face centred: the photo has the face right of centre and high, so offset it explicitly. */
.cl-avatars .is-me img { width: 118%; height: auto; max-width: none; object-fit: fill; transform: translate(-14%, -10%); }
/* «Fatto insieme» as mini charts, not capped figures (Michael, 26 Nov). */
.cl-spark { width: 80px; height: 30px; overflow: visible; }
.cl-spark-a { fill: color-mix(in srgb, var(--ok) 12%, transparent); }
.cl-spark-l { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1) .3s; }
.cl-wins li:nth-child(2) .cl-spark-l { transition-delay: .45s; } .cl-wins li:nth-child(3) .cl-spark-l { transition-delay: .6s; }
@media (prefers-reduced-motion: no-preference) { .js .cl-team[data-play]:not(.is-in) .cl-spark-l { stroke-dashoffset: 1; } }
@media (max-width: 599px) { .cl-wins li { grid-template-columns: 28px minmax(0, 1fr) auto; } }
/* Errori falling in blue (a fall is blue in our charts); growth areas on the map in orange as an alert (Michael, 26 Nov). */
.cl-spark.is-down .cl-spark-l { stroke: var(--blue); }
.cl-spark.is-down .cl-spark-a { fill: color-mix(in srgb, var(--blue) 10%, transparent); }
.cl-tiles6 li:not(.is-good) .cl-health > i { background: var(--sunset); }
.cl-tiles6 li:not(.is-good) { background: color-mix(in srgb, var(--sunset) 6%, var(--white)); }
.cl-avatars .is-me span { display: block; } .cl-avatars .is-me img { display: block; }
/* Matrix compact (Michael, 26 Nov: too vertical): short wide grid, tighter rows. */
.cl-matrix .cl-plot { aspect-ratio: 5 / 2; margin: var(--space-16) var(--space-24) var(--space-32) var(--space-48); }
.cl-matrix .cl-zone small { display: none; }
.cl-matrix .cl-zone { padding: var(--space-8); }
.cl-b { scale: .8; }
.cl-blist li { padding-block: 6px; gap: var(--space-8) var(--space-16); }
.cl-blist b { font-size: var(--type-15); line-height: 1.3; }
.cl-blist p span { font-size: var(--type-13); line-height: 1.3; }
.cl-blist .is-pick { padding-block: var(--space-8); }
@media (max-width: 599px) { .cl-matrix .cl-plot { aspect-ratio: 2 / 1; margin-left: var(--space-32); margin-right: var(--space-16); } }
.cl-b { scale: 1; min-width: 24px; min-height: 24px; }
.cl-avatars .is-me img { margin: 0; justify-self: start; position: relative; left: 0; }
