/* ═══════════════════════════════════════════════════════════════
   EXACT · DESIGN LAYER

   exact.css carries the client's content and structure verbatim. This
   file puts it in our design language — and nothing else. It changes
   no text, no order, no interaction: purely type, colour, rule and
   space, expressed only in tokens.

   Loaded after exact.css and hand-maintained, so regenerating the
   extract never overwrites the design work.

   The move is the same one the rest of the tool makes: lose the boxes,
   keep a ruled ledger. Cards become columns divided by hairlines,
   claims are set in the serif, and every number is a display numeral
   in the active theme's tone — which is what ties these pages to the
   sections they sit under.
   ═══════════════════════════════════════════════════════════════ */

.xj {
  --xj-tone: var(--theme-tone, var(--step-deploy));
  font-family: var(--font-text);
}

/* ── Three-column friction boards ──────────────────────────────
   T1 (lead funnel / observed / proof) and the shared variant. */

.xj .fv3card-grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--ink);
}
.xj .fv3card {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  border-right: 1px solid var(--line);
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 1.8vw, 30px) clamp(18px, 2.4vh, 28px) 0;
  display: flex; flex-direction: column; min-width: 0;
}
.xj .fv3card:last-child { border-right: 0; padding-right: 0; }
.xj .fv3card + .fv3card { padding-left: clamp(18px, 1.8vw, 30px); }

.xj .fv3card-head {
  background: none; border: 0; padding: 0;
  font-family: var(--font-display);
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--xj-tone);
  min-height: 2.6em; display: flex; align-items: flex-start;
  margin-bottom: clamp(12px, 1.8vh, 20px);
}
.xj .fv3card-body { padding: 0; gap: 0; }
.xj .fv3card-sep {
  height: 0; border-top: 1px solid var(--line); background: none;
  margin: clamp(10px, 1.4vh, 16px) 0;
}
.xj .fv3card-item { padding: 0; gap: 12px; align-items: flex-start; }

/* Observed points: the claim in serif, its detail in the ink ramp. */
.xj .fv3card-item > p,
.xj .fv3-point-heading {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1.3;
  letter-spacing: -.005em; color: var(--ink); margin: 0;
}
.xj .fv3-point-icon { color: var(--xj-tone); flex: none; opacity: .85; }
.xj .fv3-point-icon svg { width: 22px; height: 22px; }

/* ── Bullets: a hairline dash, not a glyph ─────────────────────
   One rule for every bullet list the client ships, so the friction
   board, the carousel and the CX tables all read as one system. */
.xj .fv3-point-bullets,
.xj .cap-fric-bullets,
.xj .cx-cat-ul,
.xj .vflow-pop ul,
.xj .jc-bullets {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 7px;
}
.xj .fv3-point-bullets li,
.xj .cap-fric-bullets li,
.xj .cx-cat-ul li,
.xj .vflow-pop ul li,
.xj .jc-bullets li {
  position: relative; padding-left: 18px; margin: 0;
  font-size: var(--t-200); line-height: 1.45; color: var(--stone);
}
.xj .fv3-point-bullets li::before,
.xj .cap-fric-bullets li::before,
.xj .cx-cat-ul li::before,
.xj .vflow-pop ul li::before,
.xj .jc-bullets li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 9px; height: 1px; background: var(--xj-tone);
}

/* ── Numbers ───────────────────────────────────────────────────
   Every metric in the tool is a display numeral in the section's
   tone. This is the single strongest cue that a page belongs to a
   theme, so it is applied to all of them at once. */
.xj .sales-funnel-metric,
.xj .sales-proof-metric,
.xj .fv-lever-metric,
.xj .cap-fric-lever-metric,
.xj .cx-vp-metric,
.xj .crm-metric,
.xj .pain-kpi-v {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.3vw, 36px); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: var(--xj-tone);
}
.xj .sales-funnel-label,
.xj .sales-proof-label,
.xj .fv-lever-label,
.xj .cap-fric-lever-label,
.xj .cx-vp-label,
.xj .pain-kpi-l {
  font-size: var(--t-200); color: var(--stone); line-height: 1.4; margin-top: 7px;
}
.xj .sales-funnel-note {
  font-size: var(--t-100); color: var(--grey-2); font-style: italic; margin-top: 4px;
}
/* The closing number is the one the room should leave with, so it is
   the largest — but still the theme's tone. The client's sheet paints
   it a fixed green, which reads as a different system on a bronze
   page; size carries the emphasis instead of a second colour. */
.xj .sales-proof-strong .sales-proof-metric {
  font-size: clamp(26px, 2.9vw, 44px);
  color: var(--xj-tone) !important;
}

.xj .sales-funnel-arrow,
.xj .sales-proof-arrow { color: var(--line-firm); }
.xj .sales-funnel-arrow svg,
.xj .sales-proof-arrow svg { width: 15px; height: 15px; }

/* Levers stack as rows on a ledger rather than floating chips. */
.xj .fv-lever,
.xj .cap-fric-lever {
  background: none; border: 0; border-radius: 0; padding: 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(10px, 1.4vh, 15px); margin-top: clamp(10px, 1.4vh, 15px);
}
.xj .fv-lever:first-child,
.xj .cap-fric-lever:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.xj .cap-fric-lever-plain {
  font-size: var(--t-200); color: var(--stone); line-height: 1.45;
  position: relative; padding-left: 18px;
}
.xj .cap-fric-lever-plain::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 9px; height: 1px; background: var(--xj-tone);
}

/* ── T2 carousel ───────────────────────────────────────────────
   Two ledger columns, and the step fills the height it is given so
   the page does not trail off into dead space below the nav. */
/* The stepper shows one of three steps, so its natural height is only
   a third of what the page has. Without a floor it leaves the bottom
   of the screen empty and the nav floating mid-page; this pins the
   nav to the fold and lets the step breathe into the space. */
.xj .cap-fric-stepper {
  display: flex; flex-direction: column;
  /* 312px of chrome sits above this panel (top bar, theme strip, page
     rail, section head), measured; 24px clears the bottom edge. Using
     min- and max- together pins the nav to the fold either way. */
  min-height: calc(100vh - 336px);
  max-height: calc(100vh - 336px);
}
.xj .cap-fric-step {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid var(--ink);
  gap: clamp(20px, 3vw, 56px); padding: clamp(18px, 2.4vh, 28px) 0 0;
  /* Steps carry three to five bullets, never enough to fill the panel.
     Centred in the space they are given, the whitespace reads as
     composition; top-aligned it reads as a page that failed to load. */
  flex: 1; align-content: center;
}
.xj .cap-fric-left { border: 0; background: none; padding: 0; }
.xj .cap-fric-right {
  border: 0; border-left: 1px solid var(--line); background: none;
  padding: 0 0 0 clamp(20px, 2.4vw, 44px);
}
.xj .cap-fric-card-head {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--xj-tone); background: none; border: 0; padding: 0;
  margin-bottom: clamp(12px, 1.8vh, 20px);
}
/* The step name sits under a serif H2. Setting it in serif caps too
   made two competing headlines, so it drops to the display face as a
   tracked label — same family as every other eyebrow in the tool. */
.xj .cap-fric-label {
  display: block; background: none; border: 0; border-radius: 0; padding: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(15px, 1.35vw, 21px);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: clamp(12px, 1.8vh, 18px);
}
.xj .cap-fric-point-heading:empty { display: none; }

.xj .cap-fric-nav {
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto;
}
.xj .cap-fric-step-label {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--stone);
}
.xj .cap-stepper-arr {
  background: none; border: 1px solid var(--line-firm); color: var(--ink);
  border-radius: 50%; transition: border-color .15s ease, color .15s ease;
}
.xj .cap-stepper-arr:hover:not(:disabled) { border-color: var(--xj-tone); color: var(--xj-tone); }
.xj .cap-stepper-arr:disabled { opacity: .3; }
.xj .cap-stepper-dot { background: var(--line-firm); }
.xj .cap-stepper-dot.active { background: var(--xj-tone); }

/* ── T3 category tables ────────────────────────────────────────
   Three ruled columns; the group heads keep the client's own
   straightforward / complex / special colour coding. */
.xj .cx-cat-grid {
  gap: 0; border-top: 1px solid var(--ink); margin-bottom: clamp(16px, 2.2vh, 26px);
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
  border-radius: 0; box-shadow: none; padding: 0;
}
.xj .cx-cat-col {
  background: none; border: 0; border-right: 1px solid var(--line);
  border-radius: 0; padding: clamp(14px, 2vh, 22px) clamp(16px, 1.6vw, 26px) clamp(14px, 2vh, 22px) 0;
}
.xj .cx-cat-col:last-child { border-right: 0; padding-right: 0; }
.xj .cx-cat-col + .cx-cat-col { padding-left: clamp(16px, 1.6vw, 26px); }
.xj .cx-cat-head {
  background: none; border: 0; padding: 0;
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  margin-bottom: clamp(10px, 1.4vh, 16px);
}

/* Friction cards → a ruled row of claims in the serif. */
.xj .cx-fp-row { gap: 0; border-top: 1px solid var(--ink); }
.xj .cx-fp-card {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  border-right: 1px solid var(--line);
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 1.6vw, 26px) clamp(14px, 1.8vh, 20px) 0;
  align-items: flex-start; gap: 11px;
}
.xj .cx-fp-card:last-child { border-right: 0; }
.xj .cx-fp-card + .cx-fp-card { padding-left: clamp(16px, 1.6vw, 26px); }
.xj .cx-fp-ico { color: var(--warn); flex: none; }
.xj .cx-fp-text {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1.3; color: var(--ink); margin: 0;
}

.xj .cx-vp-panel {
  background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0;
  padding: clamp(14px, 2vh, 22px) 0 0; margin-top: clamp(14px, 2vh, 22px);
}
.xj .cx-vp-head {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--xj-tone); margin-bottom: clamp(10px, 1.4vh, 16px);
}
.xj .cx-vp-items { gap: clamp(28px, 4vw, 72px); }
.xj .cx-vp-item { background: none; border: 0; padding: 0; }

/* ── Journey chains ────────────────────────────────────────────
   Phase bands become ruled caps; step cards lose their fill and
   keep one accent edge, so a nine-card chain reads as a sequence
   rather than nine competing boxes. */
.xj .vphase {
  background: none; border: 0; border-radius: 0;
  border-bottom: 2px solid currentColor;
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  padding: 0 0 7px; margin-bottom: 10px;
}
.xj .vflow-card {
  background: var(--base-raise); border: 1px solid var(--line);
  border-top: 2px solid var(--xj-tone);
  border-radius: 0; box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.xj .vflow-col:hover .vflow-card { border-color: var(--xj-tone); }
.xj .vchain-head .name,
.xj .vflow-card h4 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(13px, 1vw, 16px); line-height: 1.25;
  letter-spacing: -.005em; color: var(--ink);
}
.xj .num-badge {
  background: var(--xj-tone); color: var(--base-raise);
  font-family: var(--font-display); font-weight: 800;
  font-variant-numeric: tabular-nums; border-radius: 50%;
}
.xj .vflow-desc { font-size: var(--t-100); color: var(--stone); line-height: 1.45; }
.xj .vflow-legend {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--grey-2);
}
.xj .vflow-legend svg { color: var(--warn); }

/* The pain pop: a warning-edged note, matching .fr-seen elsewhere. */
.xj .vflow-pop {
  background: var(--base-raise); border: 1px solid var(--line);
  border-left: 2px solid var(--warn); border-radius: 0;
  box-shadow: 0 8px 28px var(--ink-16);
}
.xj .vflow-warn { color: var(--warn); }

.xj .vflow-chip,
.xj .vflow-pill,
.xj .crm-tile,
.xj .jc-callout {
  border-radius: 0; font-size: var(--t-100);
}

/* ── Scroll affordances ────────────────────────────────────────
   These chains run wider than the screen by design. The hint has to
   be visible or the room never learns there is more to the right. */
.xj .crm-rj-scroll-hint,
.xj .rj-nav-hint {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--grey-2);
}
.xj .crm-rj-scroll-btn,
.xj .rj-nav-btn {
  background: var(--base-raise); border: 1px solid var(--line-firm);
  color: var(--ink); border-radius: 50%;
}
.xj .crm-rj-scroll-btn:hover,
.xj .rj-nav-btn:hover { border-color: var(--xj-tone); color: var(--xj-tone); }

/* Keep the horizontal scrollbar quiet but present. */
.xj .vchain-scroll::-webkit-scrollbar { height: 6px; }
.xj .vchain-scroll::-webkit-scrollbar-thumb {
  background: var(--line-firm); border-radius: 3px;
}
.xj .vchain-scroll::-webkit-scrollbar-track { background: none; }

/* ═══════════════════════════════════════════════════════════════
   FINISH PASS — 22 Sep
   Tightening toward the leaner, quieter register the rest of the
   tool uses. Everything here is space, scale and weight; no content
   or behaviour changes.
   ═══════════════════════════════════════════════════════════════ */

/* ── Friction: collate ─────────────────────────────────────────
   The funnel column was justified to fill the panel, which stretched
   the connector arrows into long empty runs. Content now sets its own
   height and each arrow sits directly under the step it follows. */
.xj .sales-funnel-body,
.xj .sales-proof-body {
  justify-content: flex-start; gap: 0;
  padding-top: clamp(4px, 0.8vh, 10px);
}
.xj .sales-funnel-step,
.xj .sales-proof-step { padding: 0; margin: 0; }
.xj .sales-funnel-arrow,
.xj .sales-proof-arrow {
  margin: clamp(6px, 0.9vh, 11px) 0; padding: 0; min-height: 0; height: auto;
}
.xj .sales-funnel-arrow svg,
.xj .sales-proof-arrow svg { width: 13px; height: 13px; display: block; }

/* Dialled back from display-poster scale to reading scale. */
.xj .sales-funnel-metric,
.xj .sales-proof-metric,
.xj .fv-lever-metric,
.xj .cap-fric-lever-metric,
.xj .cx-vp-metric,
.xj .crm-metric,
.xj .pain-kpi-v { font-size: clamp(19px, 1.75vw, 27px); }
.xj .sales-proof-strong .sales-proof-metric { font-size: clamp(22px, 2.05vw, 32px); }
.xj .sales-funnel-label,
.xj .sales-proof-label { margin-top: 5px; }

/* ── Journeys: lose the boxes ──────────────────────────────────
   The chain read as a row of framed tiles. Dropping the borders and
   fills leaves the numerals, the rules and the spacing to carry the
   sequence — which is how the rest of the tool works. */
.xj .vflow-card {
  background: none; border: 0; border-top: 1px solid var(--line);
  padding: clamp(11px, 1.5vh, 16px) clamp(11px, 1vw, 15px) clamp(11px, 1.5vh, 16px) 0;
  transition: border-color .18s ease;
}
.xj .vflow-col:hover .vflow-card { border-top-color: var(--xj-tone); background: none; }
.xj .vflow-col:hover,
.xj .vflow-col:focus-within { transform: none; }

.xj .vchain-head .name,
.xj .vflow-card h4 { font-size: clamp(12px, .92vw, 14.5px); line-height: 1.25; }
.xj .vflow-desc { font-size: clamp(10.5px, .8vw, 12.5px); line-height: 1.4; }
.xj .vflow-pop ul li,
.xj .jc-bullets li { font-size: clamp(10.5px, .8vw, 12.5px); }
.xj .num-badge {
  width: 17px; height: 17px; min-width: 17px; font-size: 9.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.xj .vchain-head { gap: 8px; align-items: center; margin-bottom: 7px; }
.xj .vflow-chip, .xj .vflow-pill { font-size: 10px; }
.xj .vphase { font-size: 9.5px; padding-bottom: 5px; margin-bottom: 8px; }

/* Icon discs were heavy circles; a bare line icon is quieter. */
.xj .vflow-actor,
.xj .crm-tile-ic { background: none; border: 0; color: var(--xj-tone); }
.xj .vflow-actor svg { width: 18px; height: 18px; }

/* ── Hover pop: clean, and never clipped ───────────────────────
   The pop opens inside a scroll container, so without room reserved
   beneath the cards it was cut off at the container edge. The track
   now carries that room, and the pop is a quiet ruled note rather
   than a shadowed panel. */
.xj .vflow-cards { padding-bottom: 150px; }
.xj .vflow-pop {
  background: var(--base-raise);
  border: 0; border-left: 2px solid var(--warn); border-radius: 0;
  box-shadow: 0 2px 14px var(--ink-03);
  padding: 11px 14px; gap: 9px; max-width: 290px;
}
.xj .vflow-pop-wrap, .xj .vflow-pop-wrap-below { max-width: 290px; }
.xj .vflow-point { display: none; }

/* ── Dead scroll chrome ────────────────────────────────────────
   Left/Right/Up/Down buttons and the "scroll to explore" hint had no
   behaviour attached — controls that do nothing are worse than none,
   so they are removed. The chains still scroll by trackpad and wheel. */
.xj .crm-rj-scroll-nav,
.xj .crm-rj-scroll-hint,
.xj .crm-rj-scroll-btn,
.xj .rj-nav-bar,
.xj .rj-nav-hint,
.xj .rj-nav-lr,
.xj .rj-nav-ud,
.xj .rj-nav-btn { display: none !important; }

/* ── Cards keep their rectangle ────────────────────────────────
   Stripping the frame entirely went too far: with only a top rule
   the hover state had nothing to change and the steps stopped
   reading as discrete cards. The rectangle comes back, just quiet —
   a hairline and a paper fill, no radius, no shadow. */
.xj .vflow-card {
  background: var(--base-raise);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-firm);
  border-radius: 0;
  padding: clamp(11px, 1.5vh, 16px) clamp(11px, 1vw, 15px);
  transition: border-color .16s ease, background .16s ease;
}
.xj .vflow-col:hover .vflow-card,
.xj .vflow-col:focus-within .vflow-card {
  border-color: var(--xj-tone);
  border-top-color: var(--xj-tone);
  background: var(--base-raise);
}

/* ── Pop containment ───────────────────────────────────────────
   The pop opens inside a scroll container, so it is croppable on two
   edges. Bottom: the track reserves room beneath the cards. Right:
   the last columns anchor their pop to the right instead of the left,
   which is what was cutting them off at the end of the chain. */
.xj .vflow-cards { padding-bottom: 210px; }
.xj .vflow-pop-wrap,
.xj .vflow-pop-wrap-below { width: max-content; max-width: 300px; }
.xj .vflow-col:nth-last-child(-n+3) .vflow-pop-wrap,
.xj .vflow-col:nth-last-child(-n+3) .vflow-pop-wrap-below {
  left: auto; right: 0;
}
.xj .vflow-pop {
  max-width: 300px; white-space: normal;
  box-shadow: 0 4px 18px var(--ink-16);
}
.xj .vflow-pop ul { margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   UNIFORMITY PASS — 22 Sep, late
   One rule: a page must look like it belongs to the same document
   whichever theme or tab you arrive from. Heading placement, icon
   treatment, alignment and hover behaviour are therefore set once
   here and inherited by all three sections, rather than each
   section keeping whatever the client's original happened to do.
   ═══════════════════════════════════════════════════════════════ */

/* ── Icons: one treatment everywhere ───────────────────────────
   The client used bare glyphs in some places and framed marks in
   others. All of them now sit on a soft disc that reads as a tint of
   the page rather than a button — present enough to anchor the eye,
   quiet enough not to compete with the numbers. */
.xj .fv3-point-icon,
.xj .cx-fp-ico,
.xj .vflow-actor,
.xj .crm-tile-ic {
  width: 34px; height: 34px; min-width: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--xj-tone) 11%, transparent);
  color: var(--xj-tone); opacity: 1;
  transition: background .18s ease, transform .18s ease;
}
.xj .fv3-point-icon svg,
.xj .cx-fp-ico svg,
.xj .vflow-actor svg,
.xj .crm-tile-ic svg { width: 17px; height: 17px; }
.xj .cx-fp-ico { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.xj .fv3card-item:hover .fv3-point-icon,
.xj .vflow-col:hover .vflow-actor {
  background: color-mix(in srgb, var(--xj-tone) 20%, transparent);
}

/* ── T1 + T3 friction: left-aligned like the middle column ─────
   Lead Funnel Leakage and AI Value Proof were centred while the
   observed column beside them was flush left, so the three read as
   three different layouts. All flush left now. */
.xj .sales-funnel-body,
.xj .sales-proof-body,
.xj .sales-funnel-step,
.xj .sales-proof-step,
.xj .cx-vp-items,
.xj .cx-vp-item,
.xj .fv3card-proof-body { align-items: flex-start; text-align: left; }
.xj .sales-funnel-arrow,
.xj .sales-proof-arrow { align-self: flex-start; margin-left: 5px; }

/* A quiet lift on the group being read. Transform only — never
   opacity, so a throttled tab can't leave a panel invisible. */
.xj .fv3card-item,
.xj .cx-fp-card,
.xj .sales-funnel-step,
.xj .sales-proof-step,
.xj .cx-vp-item {
  transition: transform .2s cubic-bezier(.22,.61,.36,1);
  transform-origin: left center;
}
.xj .fv3card-item:hover,
.xj .cx-fp-card:hover,
.xj .sales-funnel-step:hover,
.xj .sales-proof-step:hover,
.xj .cx-vp-item:hover { transform: scale(1.025); }

/* ── T3 friction: close the gaps ───────────────────────────────
   The caution row sat low with a large dead band beneath it. */
.xj .cx-fp-card { align-items: center; }
.xj .cx-cat-ul li { line-height: 1.38; }
.xj .cx-fp-row { margin-top: clamp(10px, 1.4vh, 16px); }
.xj .cx-vp-panel { margin-bottom: 0; padding-bottom: 0; }

/* ── T2 carousel: match the other two ──────────────────────────
   It was vertically centred inside a tall panel while T1 and T3 start
   hard under the rule, so switching tabs moved the content. It now
   starts at the top like its neighbours, and the arrows sit just
   under the content rather than pinned to the fold. */
.xj .cap-fric-stepper { min-height: 0; max-height: none; }
.xj .cap-fric-step { align-content: start; flex: 0 1 auto; }
.xj .cap-fric-nav {
  margin-top: clamp(16px, 2.2vh, 26px); padding-top: 14px;
  justify-content: flex-start; gap: 16px;
}
.xj .cap-fric-card-head { margin-bottom: clamp(8px, 1.1vh, 13px); }
.xj .cap-fric-label { margin-bottom: clamp(8px, 1.1vh, 13px); }
.xj .cap-fric-bullets { margin-top: 0; }

/* ── Journeys: rectangles, arrows, hover ───────────────────────
   Outline dropped for a tinted fill — the same "subtle contrast with
   the background" the rest of the tool uses — with the accent kept to
   a single top edge so a long chain doesn't turn into a grid. */
.xj .vflow-card {
  background: var(--ink-03);
  border: 0; border-top: 2px solid var(--line-firm);
  box-shadow: none;
  transition: background .2s cubic-bezier(.22,.61,.36,1),
              border-color .2s ease, transform .2s cubic-bezier(.22,.61,.36,1);
}
.xj .vflow-col:hover .vflow-card,
.xj .vflow-col:focus-within .vflow-card {
  background: var(--base-raise);
  border-top-color: var(--xj-tone);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--ink-03);
}

/* Number badges align to the first line of the title, not its middle. */
.xj .vchain-head { align-items: flex-start; }
.xj .num-badge { margin-top: 1px; }

/* Connector arrows were absolutely placed and drifted over the card
   before them. Centred in the gap between columns instead. */
.xj .vflow-cards { align-items: stretch; }
.xj .vflow-col > .vflow-next,
.xj .vflow-next {
  position: absolute; top: 34px; right: -13px; left: auto;
  width: 22px; height: 22px; margin: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  background: var(--base); border: 1px solid var(--line);
  border-radius: 50%; color: var(--stone);
}
.xj .vflow-next svg { width: 11px; height: 11px; }

/* Pop motion, matching the immersion section's easing. */
@keyframes xjPopRise {
  from { opacity: 0; transform: translateY(-7px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.xj .vflow-col:hover .vflow-pop-wrap,
.xj .vflow-col:focus-within .vflow-pop-wrap,
.xj .vflow-col:hover .vflow-pop-wrap-below,
.xj .vflow-col:focus-within .vflow-pop-wrap-below {
  animation: xjPopRise .22s cubic-bezier(.22,.61,.36,1) both;
}

/* ── Reimagined journeys ───────────────────────────────────────
   Phase bands were sized by content, so "Design" was a sliver next to
   a very wide "Procurement & Contracting". Equal columns read as a
   sequence of equal stages, which is what they are.

   SUPERSEDED 23 Sep. That fix was `flex: 1 1 0 !important` on every
   band. Correct for the reimagined chains — one band over one card —
   and wrong for the current chain, where "Pre-Sales" spans three
   cards and was being squashed to a fifth of the row, leaving "First
   Site Visit" sitting on top of the third card. Sizing now happens in
   layoutChain() in views/theme.js, which recovers each band's span
   from the client's own flex-basis and drives both rows off one card
   width. Equal bands still come out equal; spanning bands come out
   the right width. The !important is gone because it was the thing
   stopping those inline spans from being read at all. */
.xj .vchain-groups-top,
.xj .vchain-groups { display: flex; }
.xj .vchain-groups-top > .vphase,
.xj .vchain-groups > .vphase { min-width: 0; }

/* Horizontal scroll is permitted on the chains now (client, 23 Sep)
   so the cards can be sized for the room rather than for the
   viewport. Vertical scroll remains forbidden everywhere. */
.xj .vchain-scroll { overflow-x: auto; overflow-y: hidden; }
/* overflow:hidden here was clipping the hover tooltip that hangs off a
   phase label (the CRM lane detail), cutting it at the band edge.
   Equal widths come from flex:1 1 0, not from clipping, so the band can
   let its tooltip out. Truncation moves to the label text itself. */
.xj .vphase { text-align: center; overflow: visible; }
.xj .vphase > span:not([class]),
.xj .vphase { white-space: nowrap; }
.xj .crm-lane-label-wrap { overflow: visible; }
.xj .crm-lane-label-tooltip { white-space: normal; z-index: 30; }

/* Cards in the reimagined chains were changing opacity on hover, which
   read as the card half-disappearing. Opacity is pinned; motion and
   fill carry the state instead. */
.xj .rjcard,
.xj .crm-card,
.xj .jcard {
  opacity: 1 !important;
  background: var(--ink-03); border: 0; border-top: 2px solid var(--line-firm);
  border-radius: 0; box-shadow: none;
  transition: background .2s cubic-bezier(.22,.61,.36,1),
              border-color .2s ease, transform .2s cubic-bezier(.22,.61,.36,1);
}
.xj .rjcard:hover,
.xj .crm-card:hover,
.xj .jcard:hover {
  opacity: 1 !important;
  background: var(--base-raise); border-top-color: var(--xj-tone);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   MOTION + FINISH — 23 Sep
   The hover was doing too much at once: a lift, a shadow, a border
   change and a hard-cut pop. One gesture instead — a barely-there
   highlight on the card, and the note fading up from behind it.
   ═══════════════════════════════════════════════════════════════ */

:root { --xj-r: 8px; }        /* one corner radius for every rectangle */

.xj .vflow-card,
.xj .rjcard, .xj .crm-card, .xj .jcard,
.xj .vflow-pop, .xj .cx-fp-card, .xj .crm-tile,
.xj .vflow-chip, .xj .vflow-pill { border-radius: var(--xj-r); }

/* Barely a zoom — a highlight that happens to have scale in it. */
.xj .vflow-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-firm);
  background: var(--base-raise);
  box-shadow: none;
  transition: transform .26s cubic-bezier(.22,.61,.36,1),
              border-color .26s ease, background .26s ease;
}
.xj .vflow-col:hover .vflow-card,
.xj .vflow-col:focus-within .vflow-card {
  transform: scale(1.012) translateY(-1px);
  border-color: color-mix(in srgb, var(--xj-tone) 45%, transparent);
  border-top-color: var(--xj-tone);
  background: var(--base-raise); box-shadow: none;
}

/* The note rises out from behind the card rather than appearing on
   top of it: it starts tucked up under the card edge, slightly small,
   and settles into place. */
@keyframes xjPopRise {
  from { opacity: 0; transform: translateY(-14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.xj .vflow-pop-wrap,
.xj .vflow-pop-wrap-below { z-index: 4; }        /* behind the card */
.xj .vflow-card { position: relative; z-index: 6; }
.xj .vflow-col:hover .vflow-pop-wrap,
.xj .vflow-col:focus-within .vflow-pop-wrap,
.xj .vflow-col:hover .vflow-pop-wrap-below,
.xj .vflow-col:focus-within .vflow-pop-wrap-below {
  animation: xjPopRise .3s cubic-bezier(.22,.61,.36,1) both;
}
.xj .vflow-pop {
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  box-shadow: 0 6px 22px var(--ink-03);
}
/* The warning mark is part of the note, not a thing that moves by
   itself — no separate hover state on it. */
.xj .vflow-warn { transform: none !important; transition: none; opacity: .75; }

/* Connector arrows centred in the gutter between two cards. */
.xj .vflow-next {
  right: calc(var(--xj-gap, 22px) / -2 - 11px);
  top: 50%; transform: translateY(-50%);
}

/* ── 3.3 friction: one colour per category ─────────────────────
   Straightforward / Complex / Special Situations are three levels of
   difficulty, so they take the three staircase colours rather than
   all reading as one undifferentiated block. Matches the caution row
   beneath, so a card and its friction point share an identity. */
.xj .cx-cat-col { border-top: 2px solid var(--cat, var(--line-firm)); }
.xj .cx-cat-col:nth-child(1) { --cat: var(--step-deploy); }
.xj .cx-cat-col:nth-child(2) { --cat: var(--step-reshape); }
.xj .cx-cat-col:nth-child(3) { --cat: var(--step-invent); }
.xj .cx-cat-head { color: var(--cat); }
.xj .cx-cat-ul li::before { background: var(--cat); }

.xj .cx-fp-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cat, var(--warn));
  background: var(--base-raise);
  padding: clamp(12px, 1.6vh, 17px) clamp(13px, 1.3vw, 18px);
  transition: transform .26s cubic-bezier(.22,.61,.36,1), border-color .26s ease;
}
.xj .cx-fp-row { gap: clamp(12px, 1.2vw, 20px); border-top: 0; }
.xj .cx-fp-card:nth-child(1) { --cat: var(--step-deploy); }
.xj .cx-fp-card:nth-child(2) { --cat: var(--step-reshape); }
.xj .cx-fp-card:nth-child(3) { --cat: var(--step-invent); }
/* Whole card lifts; the exclamation stays put inside it. */
.xj .cx-fp-card:hover { transform: scale(1.012) translateY(-1px); }
.xj .cx-fp-ico {
  background: color-mix(in srgb, var(--cat) 12%, transparent);
  color: var(--cat); transform: none !important;
}
.xj .cx-fp-card:hover .cx-fp-ico { transform: none !important; }

/* ── Tickets table ─────────────────────────────────────────────
   Restored with its intro line. Given the same rectangle language as
   everything else instead of the client's dark grid. */
.xj .tt-wrap { margin-bottom: clamp(14px, 2vh, 22px); }
.xj .tt-intro { font-size: var(--t-100); color: var(--stone); line-height: 1.45; }
.xj .tt-table { border-radius: var(--xj-r); overflow: hidden; font-size: 10.5px; }
.xj .tt-scroll { overflow-x: auto; }

/* ═══════════════════════════════════════════════════════════════
   DIALOGS — 23 Sep
   The client's shells are dark-theme panels. Relit here rather than
   in the generated file, and given the same rectangle language as
   every other surface: soft radius, tinted fill, one faint shadow.
   ═══════════════════════════════════════════════════════════════ */

.xj-overlays { position: static; }

.xj .overlay, .xj #rjOv, .xj #nsOv {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: clamp(18px, 4vh, 48px);
  background: color-mix(in srgb, var(--ink) 38%, transparent);
  backdrop-filter: blur(3px);
}
.xj .overlay.open, .xj #rjOv.open, .xj #nsOv.open { display: flex; }

.xj .modal, .xj #rjOv > *, .xj #nsOv > * { color: var(--ink); }
.xj .modal {
  background: var(--base-raise); border: 0; border-radius: 12px;
  box-shadow: 0 18px 60px color-mix(in srgb, var(--ink) 22%, transparent);
  max-width: min(94vw, 880px); width: 100%;
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  animation: xjModalIn .26s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes xjModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.xj .modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px 13px; border-bottom: 1px solid var(--line);
  background: var(--base); flex: none;
}
.xj .modal-head h3 {
  flex: 1; min-width: 0; margin: 0;
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink);
}
.xj .modal-close {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: none; border: 1px solid var(--line-firm); color: var(--stone);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .16s ease, color .16s ease;
}
.xj .modal-close:hover {
  background: none; border-color: var(--ink); color: var(--ink);
}
.xj .modal-body {
  padding: clamp(16px, 2.4vh, 24px) clamp(18px, 2vw, 28px);
  font-size: var(--t-200); line-height: 1.55; color: var(--stone);
  background: var(--base-raise);
}
.xj .modal-body img, .xj .modal-body video {
  max-width: 100%; height: auto; border-radius: 8px; display: block;
}
.xj .m-shot, .xj .m-top-shot, .xj .m-carousel-img { border-radius: 8px; }
.xj .m-pain-head, .xj .m-solve-head, .xj .m-plain-head, .xj .m-sf-label {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--xj-tone);
}
.xj .m-solve-text, .xj .m-caption, .xj .m-slide-meta { color: var(--stone); }

/* Full-screen deck viewer */
.xj #rjOv { flex-direction: column; background: color-mix(in srgb, var(--ink) 80%, transparent); }
.xj .rj-ov-bar, .xj .rj-ov-caption, .xj .rj-ov-nav { color: var(--base-raise); }
.xj .rj-ov-bar-title { color: var(--base-raise); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   RECTANGLES — no outline, a tint and a whisper of shadow
   ═══════════════════════════════════════════════════════════════ */
.xj .vflow-card,
.xj .rjcard, .xj .crm-card, .xj .jcard, .xj .cx-fp-card {
  border: 0;
  border-radius: var(--xj-r);
  background: var(--ink-03);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
  transition: background .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s cubic-bezier(.22,.61,.36,1),
              transform .3s cubic-bezier(.22,.61,.36,1);
}
/* Category identity moves from a border to a tinted fill, so the card
   stays a plain rectangle. */
.xj .cx-fp-card { background: color-mix(in srgb, var(--cat) 6%, var(--ink-03)); }

.xj .vflow-col:hover .vflow-card,
.xj .vflow-col:focus-within .vflow-card,
.xj .rjcard:hover, .xj .crm-card:hover, .xj .jcard:hover,
.xj .cx-fp-card:hover {
  border: 0;
  background: var(--base-raise);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 9%, transparent);
  transform: translateY(-2px);
}

/* A short hold before the note appears, so sweeping the mouse across
   the chain doesn't strobe nine popovers. */
.xj .vflow-col:hover .vflow-pop-wrap,
.xj .vflow-col:focus-within .vflow-pop-wrap,
.xj .vflow-col:hover .vflow-pop-wrap-below,
.xj .vflow-col:focus-within .vflow-pop-wrap-below {
  animation: xjPopRise .34s cubic-bezier(.22,.61,.36,1) .12s both;
}
.xj .vflow-pop {
  border: 0; border-left: 2px solid var(--warn);
  background: var(--base-raise);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--ink) 11%, transparent);
}

/* ═══════════════════════════════════════════════════════════════
   3.1 — equal columns
   Lead Funnel Leakage was sizing to its content and eating the row.
   Three equal columns; the funnel is not more important than the proof.
   ═══════════════════════════════════════════════════════════════ */
.xj .fv3card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xj .fv3card { min-width: 0; }

/* ═══════════════════════════════════════════════════════════════
   3.2 — the stepper nav holds its position
   The panel was sizing to each step, so the arrows jumped as you
   clicked through. A fixed panel height keeps them still.
   ═══════════════════════════════════════════════════════════════ */
.xj .cap-fric-stepper {
  min-height: calc(100vh - 336px); max-height: calc(100vh - 336px);
}
.xj .cap-fric-step { flex: 1 1 auto; align-content: start; }
.xj .cap-fric-nav { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════════
   TICKETS TABLE — 23 Sep
   Centred like the source, and allowed its full width instead of
   being clipped by the panel.
   ═══════════════════════════════════════════════════════════════ */
.xj .tt-wrap { width: 100%; }
.xj .tt-scroll { overflow-x: auto; overflow-y: visible; width: 100%; }
.xj .tt-table {
  width: 100%; min-width: 760px; border-collapse: collapse;
  table-layout: fixed;
}
.xj .tt-table th,
.xj .tt-table td {
  text-align: center; vertical-align: middle;
  padding: 6px 4px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The row label is the one column that reads as prose, so it stays
   flush left; every figure is centred in its cell. */
.xj .tt-row-label { text-align: left; white-space: normal; padding-left: 0; }
.xj .tt-corner { text-align: left; }
.xj .tt-group, .xj .tt-bucket { font-size: 9.5px; letter-spacing: .04em; }
.xj .tt-cell { font-size: 10.5px; }
.xj .tt-row-share { display: block; font-size: 9px; color: var(--grey-2); }

/* ═══════════════════════════════════════════════════════════════
   DECK OVERLAY — a fixed frame, only the image changes
   The title, caption and arrows were laid out around whatever image
   happened to be showing, so everything shifted on every click and
   the arrows sat on top of the artwork. The chrome is pinned now and
   the stage is a constant box the image is centred inside.
   ═══════════════════════════════════════════════════════════════ */
.xj #rjOv {
  display: none; flex-direction: column;
  padding: clamp(14px, 3vh, 34px) clamp(14px, 3vw, 44px);
}
.xj #rjOv.open { display: flex; }
.xj #rjOv > * { flex: none; width: min(1100px, 94vw); margin-inline: auto; }

.xj .rj-ov-bar {
  background: var(--base-raise); border: 0; border-radius: 12px 12px 0 0;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.xj .rj-ov-bar-title {
  color: var(--ink); font-family: var(--font-display);
  font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
}
.xj .rj-ov-close { background: none; border: 1px solid var(--line-firm); color: var(--stone); }
.xj .rj-ov-close:hover { background: none; border-color: var(--ink); color: var(--ink); }

/* Constant stage. The image is contained inside it, so a tall
   portrait screenshot and a wide dashboard both leave the frame in
   exactly the same place. */
.xj .rj-ov-stage {
  flex: 1 1 auto; height: auto; min-height: 0;
  background: var(--base-raise);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 2vh, 22px);
}
.xj .rj-ov-stage img,
.xj .rj-ov-stage video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 8px; display: block;
}
.xj .rj-ov-caption {
  background: var(--base-raise); padding: 10px 18px 4px;
  min-height: 3.4em;            /* reserved, so captions of different
                                   lengths don't move the arrows */
}
.xj .rj-ov-caption-label { color: var(--ink); font-weight: 700; font-size: var(--t-200); }
.xj .rj-ov-caption-sub { color: var(--stone); font-size: var(--t-100); }

/* Arrows sit below the stage in their own bar — never over the art. */
.xj .rj-ov-nav {
  background: var(--base-raise); border-radius: 0 0 12px 12px;
  border-top: 1px solid var(--line);
  padding: 11px 18px; justify-content: center; gap: 16px;
}
.xj .rj-ov-arr {
  background: none; border: 1px solid var(--line-firm); color: var(--stone);
}
.xj .rj-ov-arr:hover:not(:disabled) { background: none; border-color: var(--ink); color: var(--ink); }
.xj .rj-ov-dot { background: var(--line-firm); }
.xj .rj-ov-dot.active { background: var(--xj-tone, var(--step-deploy)); transform: scale(1.35); }
.xj .m-solve-head { background: var(--base-raise); padding: 10px 18px; }

/* 3.1 reimagined cards take the same rectangle as every other card. */
.xj .jy-step, .xj .vflow-card, .xj .rjcard, .xj .crm-card, .xj .jcard {
  border: 0; border-radius: var(--xj-r); background: var(--ink-03);
}

/* Placeholder for the screenshots still outstanding from the client. */
.asset-missing {
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; padding: 28px; border-radius: 8px;
  background: var(--ink-03); border: 1px dashed var(--line-firm);
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--grey-2);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   CLIP HEADROOM — 23 Sep
   .vchain-scroll clips on both axes, so anything sitting flush
   against an edge loses its hover lift, its shadow, or its pop.
   Padding inside a scroll container joins the scrollable area rather
   than the visible box, so this buys room without adding chrome.
   Sized off the tallest pop measured across all nine pages (50px)
   plus the lift and shadow, with margin to spare.
   ═══════════════════════════════════════════════════════════════ */
.xj .vchain-scroll {
  padding-top: 14px;
  padding-bottom: 8px;
  padding-right: 24px;
  overscroll-behavior-x: contain;
}
.xj .vflow-cards {
  padding-bottom: 150px;   /* room for the pop under the last row */
  padding-top: 4px;
}
/* Friction pages are not scrollers, but their cards lift too. */
.xj .cx-fp-row, .xj .fv3card-grid, .xj .cx-cat-grid { padding: 6px 4px 10px; margin-inline: -4px; }

/* ═══════════════════════════════════════════════════════════════
   3.1 — genuinely equal thirds
   grid-template-columns with minmax(0,1fr) still lets a long word
   push a track wider. Fixed tracks, and the content wraps instead.
   ═══════════════════════════════════════════════════════════════ */
.xj .fv3card-grid {
  display: grid !important;
  grid-template-columns: 33.333% 33.333% 33.333% !important;
  grid-auto-flow: column;
}
.xj .fv3card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.xj .fv3card-body { min-width: 0; }

/* ═══════════════════════════════════════════════════════════════
   3.2 — arrows close under the content, and still
   ═══════════════════════════════════════════════════════════════ */
.xj .cap-fric-stepper { min-height: 0; max-height: none; }
.xj .cap-fric-step {
  flex: 0 0 auto; align-content: start;
  /* One fixed height for all three steps — measured against the
     longest (Design, three levers). The nav then cannot move when
     the step changes, without pinning it to the bottom of the page. */
  min-height: 268px;
}
.xj .cap-fric-nav {
  margin-top: clamp(14px, 1.8vh, 20px);
  padding-top: 13px; justify-content: flex-start; gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   DECK OVERLAY — one fixed frame, images swap inside it
   ═══════════════════════════════════════════════════════════════ */
.xj #rjOv > * { width: min(1040px, 92vw); }
.xj .rj-ov-stage {
  /* A constant box sized to the largest screenshot in the set, so the
     frame never resizes as you page through. Images are contained
     inside it and the leftover space is just background. */
  height: min(58vh, 560px); flex: none;
  background: var(--base-raise);
  padding: clamp(10px, 1.6vh, 18px);
}
.xj .rj-ov-caption { min-height: 3.6em; }
.xj .rj-ov-nav { min-height: 56px; }
/* Arrows live in the bar below the stage — never over the artwork. */
.xj .rj-ov-arr { position: static; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   MODAL CAROUSEL — the real one
   Earlier passes styled .rj-ov-*, but the tile dialogs use .m-car-*
   inside #ov. That is why the frame kept resizing and the arrows kept
   sitting on the artwork. Fixed here.
   ═══════════════════════════════════════════════════════════════ */

/* The dialog is one size, always — set by the largest screenshot in
   the set rather than by whichever slide is showing. */
.xj .modal { width: min(1000px, 94vw); max-width: none; }

/* Header block: reserved heights, so a long title or caption on one
   slide cannot shift the image below it. */
.xj .m-slide-meta      { min-height: 1.4em; }
.xj .m-slide-title-el  { min-height: 1.6em; font-weight: 700; color: var(--ink); }
.xj .m-green-caption-el,
.xj .m-solve-head      { min-height: 3.2em; align-items: flex-start; }

/* The stage. Fixed height; every image is contained inside it and the
   leftover space is simply background, so small and large screenshots
   occupy exactly the same frame. */
.xj .m-carousel {
  position: relative;
  height: min(52vh, 470px);
  /* Gutters host the arrows, so they are beside the picture and never
     on top of it. */
  padding: 0 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-03); border-radius: var(--xj-r);
  overflow: hidden;
}
.xj .m-carousel-track {
  height: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.xj .m-carousel-img,
.xj .m-carousel img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; display: block; margin: 0 auto;
}

/* Arrows: centred in the gutter, outside the artwork. */
.xj .m-car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: var(--base-raise);
  border: 1px solid var(--line-firm); color: var(--stone);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: border-color .16s ease, color .16s ease;
}
.xj .m-car-prev { left: 10px; right: auto; }
.xj .m-car-next { right: 10px; left: auto; }
.xj .m-car-arrow:hover { border-color: var(--ink); color: var(--ink); background: var(--base-raise); }
.xj .m-car-arrow:disabled { opacity: .28; }
.xj .m-car-arrow svg { width: 15px; height: 15px; }

.xj .m-car-dots {
  display: flex; justify-content: center; gap: 7px;
  padding-top: 13px; min-height: 26px;
}
.xj .m-car-dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: 0;
  background: var(--line-firm);
}
.xj .m-car-dot.active { background: var(--xj-tone, var(--step-deploy)); transform: scale(1.35); }
.xj .m-car-caption, .xj .m-car-slide-caption {
  min-height: 2.8em; text-align: center; color: var(--stone);
  font-size: var(--t-100); padding-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ONE ZOOM, EVERYWHERE — and a small one
   Several different hover scales had accumulated. A single value,
   barely perceptible, applied to every card in the tool.
   ═══════════════════════════════════════════════════════════════ */
:root { --xj-lift: -1px; }
.xj .vflow-col:hover .vflow-card,
.xj .vflow-col:focus-within .vflow-card,
.xj .rjcard:hover, .xj .crm-card:hover, .xj .jcard:hover,
.xj .cx-fp-card:hover, .xj .crm-tile:hover,
.xj .fv3card-item:hover,
.xj .sales-funnel-step:hover, .xj .sales-proof-step:hover,
.xj .cx-vp-item:hover {
  transform: translateY(var(--xj-lift)) !important;
}

/* ═══════════════════════════════════════════════════════════════
   3.1 FRICTION — compact, flush left
   The funnel was stretched down the full panel. It is a four-step
   list, so it is set as one, and the three columns are read across
   rather than filling the screen.
   ═══════════════════════════════════════════════════════════════ */
.xj .fv3card-grid { align-items: start; }
.xj .fv3card { align-self: start; }
.xj .sales-funnel-body,
.xj .sales-proof-body {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  gap: 0; padding-top: 2px;
}
.xj .sales-funnel-step,
.xj .sales-proof-step { padding: 0; margin: 0; text-align: left; }
.xj .sales-funnel-arrow,
.xj .sales-proof-arrow { margin: 5px 0 5px 4px; }
.xj .sales-funnel-metric,
.xj .sales-proof-metric,
.xj .fv-lever-metric,
.xj .cap-fric-lever-metric,
.xj .cx-vp-metric {
  font-size: clamp(17px, 1.5vw, 23px);   /* one step for every figure */
}
.xj .sales-proof-strong .sales-proof-metric { font-size: clamp(19px, 1.7vw, 26px); }
.xj .sales-funnel-label, .xj .sales-proof-label { margin-top: 3px; font-size: var(--t-100); }
.xj .sales-funnel-note { margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   CROP HEADROOM — more of it, on the axes that were still cutting
   ═══════════════════════════════════════════════════════════════ */
.xj .vchain-scroll { padding-top: 18px; padding-bottom: 20px; }
.xj .vflow-cards   { padding-bottom: 190px; }
.xj .theme-content, .xj .jy, .xj .journey-wrap { overflow: visible; }

/* 3.3 friction: the bottom panel was flush against the fold. */
.xj .cx-vp-panel { margin-bottom: 14px; }
.xj .cx-fp-row   { padding-bottom: 14px; }

/* The rule above Straightforward / Complex / Special was mine, not the
   client's — an extra line the page did not need. */
.xj .cx-cat-grid { border-top: 0; padding-top: 0; }

/* 3.3 current journey: pull the cards in so the chain stops running
   deeper than it needs to. */
.xj .crm-flow .vflow-card,
.xj [data-tab-panel="crm-current"] .vflow-card { padding: 10px 12px; }
.xj [data-tab-panel="crm-current"] .vflow-desc { line-height: 1.35; }
.xj [data-tab-panel="crm-current"] .vchain-head { margin-bottom: 5px; }

/* 3.2 step A: the tallest step (Design, three levers) sets the height
   for all three, so the arrow rail never moves. */
.xj .cap-fric-step { min-height: 300px; }

/* ═══════════════════════════════════════════════════════════════
   3.3 — fitting four blocks on one screen
   Friction carries the tickets table, the category lists, the caution
   row and the value panel. Together they ran ~190px past the fold and
   were being silently clipped by an overflow:hidden ancestor, which is
   the worst way to lose content: no scrollbar, no warning. Everything
   here is tightening, nothing is removed.
   ═══════════════════════════════════════════════════════════════ */
.xj .tt-wrap { margin-bottom: 8px; }
.xj .tt-intro { font-size: 10.5px; line-height: 1.35; margin: 0 0 7px; }
.xj .tt-table th, .xj .tt-table td { padding: 3px 3px; }
.xj .tt-cell { font-size: 9.5px; }
.xj .tt-group, .xj .tt-bucket { font-size: 8.5px; }
.xj .tt-row-label { font-size: 10px; }
.xj .tt-row-share { font-size: 8.5px; }

.xj .cx-cat-grid { margin-bottom: 10px; }
.xj .cx-cat-col { padding-top: 10px; padding-bottom: 10px; }
.xj .cx-cat-ul { gap: 4px; margin-top: 7px; }
.xj .cx-cat-ul li { font-size: 10.5px; line-height: 1.32; padding-left: 15px; }
.xj .cx-cat-head { margin-bottom: 8px; }

.xj .cx-fp-row { padding-bottom: 8px; margin-top: 8px; gap: 12px; }
.xj .cx-fp-card { padding: 9px 12px; }
.xj .cx-fp-text { font-size: 12.5px; }
.xj .cx-fp-ico { width: 26px; height: 26px; min-width: 26px; }
.xj .cx-fp-ico svg { width: 14px; height: 14px; }

.xj .cx-vp-panel { padding-top: 10px; margin-top: 10px; margin-bottom: 4px; }
.xj .cx-vp-head { margin-bottom: 7px; }
.xj .cx-vp-metric { font-size: clamp(16px, 1.4vw, 21px); }
.xj .cx-vp-label { margin-top: 3px; font-size: 10.5px; }

/* 3.3 reimagined ran ~120px long for the same reason. */
.xj [data-tab-panel="crm-reimagined"] .vflow-card,
.xj [data-tab-panel="crm-reimagined"] .crm-card { padding: 9px 11px; }
.xj [data-tab-panel="crm-reimagined"] .vflow-desc,
.xj [data-tab-panel="crm-reimagined"] .crm-tile-sub { font-size: 10px; line-height: 1.32; }
.xj [data-tab-panel="crm-reimagined"] .crm-tile { padding: 7px 9px; }
.xj [data-tab-panel="crm-reimagined"] .vchain-head { margin-bottom: 5px; }
.xj .crm-lane { gap: 7px; }
/* 3.3 reimagined was still ~100px long. The chain is the tallest thing
   on it, so the client's own fitter is allowed to scale it — capped at
   0.88 so it stays readable from the back of the room. */
.xj [data-chain-fit="crm-reimagined"],
.xj [data-tab-panel="crm-reimagined"] { max-height: calc(100vh - 270px); }
.xj [data-tab-panel="crm-reimagined"] .crm-flow { transform: scale(.9); transform-origin: top left; width: 111.1%; }

/* ── Carousel dots: below the image, centred ───────────────────
   The dots are children of .m-carousel, which is a centring flex row,
   so they were being laid out beside the picture and shifting with it.
   The stage reserves a strip at the bottom and the dots are pinned to
   the middle of it, clear of both the artwork and the arrows. */
.xj .m-carousel { padding-bottom: 34px; }
.xj .m-car-dots {
  position: absolute; left: 50%; bottom: 11px;
  transform: translateX(-50%);
  padding: 0; min-height: 0; z-index: 4;
}
.xj .m-car-dot { transition: background .18s ease, transform .18s ease; }

/* ═══════════════════════════════════════════════════════════════
   3.1 FRICTION — bento
   Two number grids carrying the argument, evidence at the side.
   Leakage takes the warning tone, recovery the value tone, so the
   page states its own thesis in colour before a word is read.
   ═══════════════════════════════════════════════════════════════ */

.xj .bx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
}
.xj .bx-main { display: grid; gap: clamp(14px, 1.8vh, 22px); min-width: 0; }

.xj .bx-head {
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  margin: 0 0 clamp(9px, 1.2vh, 13px);
  color: var(--bx-tone, var(--xj-tone));
}
.xj .bx-grid--leak { --bx-tone: var(--warn); }
.xj .bx-grid--gain { --bx-tone: var(--step-deploy); }
.xj .bx-side      { --bx-tone: var(--stone); }

/* Bento proper: a dense grid where the opening figure takes a wider
   cell, so the set has a clear entry point rather than reading as a
   row of equal tiles. */
.xj .bx-cells {
  display: grid; gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
}
.xj .bx-cell {
  background: color-mix(in srgb, var(--bx-tone) 7%, transparent);
  border-radius: var(--xj-r);
  padding: clamp(11px, 1.5vh, 16px) clamp(11px, 1vw, 15px);
  display: flex; flex-direction: column; min-width: 0;
  transition: background .24s cubic-bezier(.22,.61,.36,1),
              transform .24s cubic-bezier(.22,.61,.36,1);
}
.xj .bx-cell--lead { grid-column: span 2; }
.xj .bx-cells:hover .bx-cell { background: color-mix(in srgb, var(--bx-tone) 4%, transparent); }
.xj .bx-cells:hover .bx-cell:hover {
  background: color-mix(in srgb, var(--bx-tone) 13%, transparent);
  transform: translateY(-1px);
}

.xj .bx-metric {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 1.75vw, 27px); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: var(--bx-tone);
}
.xj .bx-cell--lead .bx-metric { font-size: clamp(22px, 2.1vw, 33px); }
.xj .bx-label {
  margin-top: 6px; font-size: var(--t-100); line-height: 1.35; color: var(--stone);
}
.xj .bx-note {
  margin-top: 3px; font-size: 10px; font-style: italic; color: var(--grey-2);
}

/* Evidence column, held behind a rule rather than boxed. */
.xj .bx-side {
  border-left: 1px solid var(--line); padding-left: clamp(16px, 1.8vw, 28px);
  min-width: 0; align-self: stretch;
}
.xj .bx-obs__item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: clamp(10px, 1.3vh, 14px) 0;
  border-bottom: 1px solid var(--line);
}
.xj .bx-obs__item:last-child { border-bottom: 0; }
.xj .bx-obs__ic {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--xj-tone) 10%, transparent);
  color: var(--xj-tone);
}
.xj .bx-obs__ic svg { width: 15px; height: 15px; }
.xj .bx-obs__body { min-width: 0; }
.xj .bx-obs__body > p, .xj .bx-obs__h {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(13px, 1.02vw, 15.5px); line-height: 1.3; color: var(--ink);
}
.xj .bx-obs__ul { list-style: none; margin: 7px 0 0; padding: 0; }
.xj .bx-obs__ul li {
  position: relative; padding-left: 15px; margin-bottom: 4px;
  font-size: 11px; line-height: 1.38; color: var(--stone);
}
.xj .bx-obs__ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px; background: var(--xj-tone);
}

@media (max-width: 1180px) {
  .xj .bx { grid-template-columns: minmax(0, 1fr); }
  .xj .bx-side { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HOVER — on the card, not on a wrapper that may not exist
   Every hover rule so far hung off .vflow-col. The reimagined sales
   chain has no .vflow-col wrappers — its cards sit straight in the
   track — so that entire page had no hover at all. Hovering the card
   itself covers both structures.
   ═══════════════════════════════════════════════════════════════ */
.xj .vflow-card:hover,
.xj .vflow-card:focus-within {
  background: var(--base-raise);
  border-top-color: var(--xj-tone);
  transform: translateY(var(--xj-lift));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 9%, transparent);
}
.xj .vflow-info { cursor: help; }

/* ═══════════════════════════════════════════════════════════════
   SALES AI DEMO — on the heading line, not above the chain
   The button sat on its own row and pushed the whole journey down,
   which is what was costing the chain its headroom. Floated up beside
   the section heading it belongs to, the chain starts ~56px higher.
   ═══════════════════════════════════════════════════════════════ */
.xj .sales-ai-demo-wrap {
  position: absolute; top: 0; right: 0; z-index: 5;
  margin: 0; padding: 0; display: flex; align-items: center;
}
.theme-content:has(.sales-ai-demo-wrap) { position: relative; }
.theme-content:has(.sales-ai-demo-wrap) .sec-head { padding-right: 230px; }
.xj .sales-ai-demo-btn {
  border-radius: 100px; padding: 8px 16px;
  background: color-mix(in srgb, var(--xj-tone) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--xj-tone) 34%, transparent);
  color: var(--xj-tone);
  font-family: var(--font-display); font-size: var(--t-050); font-weight: 700;
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease;
}
.xj .sales-ai-demo-btn:hover {
  background: color-mix(in srgb, var(--xj-tone) 18%, transparent);
  border-color: var(--xj-tone);
}

/* ═══════════════════════════════════════════════════════════════
   HEADROOM — take it from the chrome, not from the content
   The page rail and section head were the two biggest fixed costs
   above every chain. Trimming them gives the journeys ~40px back,
   which is what stops the hover lift and pop being clipped.
   ═══════════════════════════════════════════════════════════════ */
.view.is-model .theme-sidebar { padding-top: clamp(12px, 1.6vh, 18px); }
.view.is-model .theme-page-btn { padding: 11px 18px 13px 0; }
.view.is-model .theme-page-btn__sub { display: none; }
.theme-content:has(.xj) .sec-head { margin-bottom: clamp(8px, 1vh, 13px); }
.xj .vchain-scroll { padding-top: 22px; }

/* ═══════════════════════════════════════════════════════════════
   HOVER POPS — grow sideways, not downward
   A card with three pain points made a tall pop that ran out of the
   panel; one with a single point wasted the width it had. Vertical
   space is the scarce resource here and horizontal space is not, so
   the pop widens and splits into columns as the point count rises.
   A column rule does the separating, which is also easier to read
   than one long list.
   ═══════════════════════════════════════════════════════════════ */

.xj .vflow-pop { max-width: none; width: max-content; }
.xj .vflow-pop-wrap,
.xj .vflow-pop-wrap-below { max-width: none; width: max-content; }

/* One or two points: a single readable column. */
.xj .vflow-pop ul { max-width: 270px; }

/* Three or four: two columns with a rule between them. */
.xj .vflow-pop:has(li:nth-child(3)) ul {
  max-width: 540px;
  columns: 2; column-gap: 20px;
  column-rule: 1px solid var(--line);
}
/* Five or more: three columns. */
.xj .vflow-pop:has(li:nth-child(5)) ul {
  max-width: 780px;
  columns: 3;
}
/* Items must not break across a column boundary mid-sentence. */
.xj .vflow-pop ul li {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: 7px;
}

/* A wider pop near the end of a chain would run off the right edge,
   so the last few columns open leftward instead. */
.xj .vflow-col:nth-last-child(-n+4) .vflow-pop-wrap,
.xj .vflow-col:nth-last-child(-n+4) .vflow-pop-wrap-below {
  left: auto; right: 0;
}

/* ═══════════════════════════════════════════════════════════════
   DIALOGS — BCG 2:3, near-fullscreen                     23 Sep
   Supersedes the centred 880px / 1000px card above. Two changes,
   both asked for directly by the client:

   1. Near-fullscreen. The old modal used barely half the screen in
      a room where the whole point is that everyone can read the
      screenshot from the back. It now takes everything but a thin
      inset, which keeps it legible as a dialog rather than a page.
   2. The 2:3 split. Copy left, visual right — the BCG slide format.
      The DOM partition is done in js/dialog.js; this only lays out
      the two columns it produces.
   ═══════════════════════════════════════════════════════════════ */

.xj .overlay { padding: var(--m-inset, clamp(14px, 1.8vh, 26px)); }

/* .modal-lg must be named explicitly. The client's own sheet carries
   `.xj .modal.modal-lg { max-width: 760px }`, which outranks a
   single-class selector no matter how late it is declared — the
   dialog stayed 760px wide while the height was already full. */
.xj .modal,
.xj .modal.modal-lg {
  max-width: none; width: 100%;
  max-height: none; height: 100%;
  border-radius: 14px;
}

/* The bar is now a close affordance and nothing else — dialog.js
   empties the title, because the heading belongs in the left column.
   Kept minimal rather than deleted so there is still somewhere
   obvious for the eye to find the X. */
.xj .modal-head { padding: 10px 14px; border-bottom: 0; background: transparent; }
.xj .modal-head h3:empty { display: none; }

.xj .modal-body {
  flex: 1; min-height: 0;
  padding: 0 clamp(20px, 2.2vw, 40px) clamp(18px, 2.4vh, 32px);
  display: flex; flex-direction: column;
}

.xj .m-2x3 {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 2fr 3fr;
  gap: clamp(22px, 2.6vw, 48px);
  align-items: start;
}
.xj .m-2x3--solo { grid-template-columns: 1fr; }

/* ── Left: the copy ─────────────────────────────────────────── */

.xj .m-2x3__copy {
  min-height: 0; overflow: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding-top: clamp(8px, 2vh, 28px);
}
.xj .m-2x3__copy::-webkit-scrollbar { width: 0; }

/* The promoted sub-detail. This is the only heading in the dialog
   now, so it carries the weight the bar title used to — display
   face, real scale, sentence case because it is a statement rather
   than a label. */
.xj .m-2x3__h {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.75vw, 34px);
  font-weight: 700; line-height: 1.16; letter-spacing: -.018em;
  color: var(--ink); text-wrap: balance;
}


.xj .m-2x3__copy .m-pain-head,
.xj .m-2x3__copy .m-solves-for {
  display: block; padding: 14px 16px; border-radius: var(--xj-r, 8px);
  background: color-mix(in srgb, var(--xj-tone, var(--step-deploy)) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--xj-tone, var(--step-deploy)) 16%, transparent);
}
.xj .m-2x3__copy .m-pain-list,
.xj .m-2x3__copy .m-sf-list {
  margin: 8px 0 0; padding-left: 18px;
  font-family: var(--font-body); font-size: var(--t-200);
  font-weight: 400; letter-spacing: 0; text-transform: none;
  line-height: 1.5; color: var(--stone);
}
.xj .m-2x3__copy .m-pain-list li,
.xj .m-2x3__copy .m-sf-list li { margin-top: 5px; }
.xj .m-2x3__copy .m-solve-text,
.xj .m-2x3__copy .m-caption { font-size: var(--t-200); }
.xj .m-2x3__copy .m-slide-title-el {
  font-family: var(--font-display); font-size: var(--t-300);
  font-weight: 700; color: var(--ink);
}

/* ── Right: the visual ──────────────────────────────────────── */

.xj .m-2x3__vis {
  min-height: 0; height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
/* Both stills have to be visible at once — the client's own markup
   stacks them and the old fixed-height modal simply cut the second
   one off. Sharing the column with object-fit:contain means two
   images fit where one used to, at whatever height is going. */
.xj .m-2x3__vis > img,
.xj .m-2x3__vis .m-carousel-img,
.xj .m-2x3__vis video {
  min-height: 0; flex: 1 1 0;
  width: 100%; height: auto; max-height: 100%;
  object-fit: contain; object-position: center;
}
.xj .m-2x3__vis .m-carousel {
  flex: 1 1 auto; min-height: 0; height: auto;
  display: flex; flex-direction: column;
  padding: 0 58px 34px;
}
.xj .m-2x3__vis .m-carousel-track {
  flex: 1; min-height: 0; display: flex; align-items: center;
}
.xj .m-2x3__vis .m-toggle { flex: none; }
.xj .m-2x3__vis .m-top-row { flex: 1 1 0; min-height: 0; display: flex; }

@media (max-width: 900px) {
  .xj .m-2x3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CHAIN CARDS — type at room scale                       23 Sep
   The cards went from 220px to 300px wide but kept the type they
   were given at 220px, so they read as small cards with a lot of
   padding rather than as bigger cards. The extra width also buys
   the headings two comfortable lines instead of three cramped ones.
   ═══════════════════════════════════════════════════════════════ */

.xj .vchain-head .name {
  font-size: clamp(14px, 1.18vw, 19px);
  line-height: 1.22;
  /* Two lines is the target. The old clamp let a long name run to
     three and knock every card in the row out of rhythm. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.xj .vchain-bullets   { font-size: clamp(12px, 1.02vw, 15.5px); line-height: 1.48; }
.xj .vchain-bullets li { margin-bottom: 5px; padding-left: 12px; }

/* The icon grows with the card, but less than proportionally — it is
   an identifier, not the content, and at full scale it started
   competing with the heading for the top of the card. */
.xj .vflow-actor { width: clamp(40px, 3.4vw, 60px); height: clamp(40px, 3.4vw, 60px); }
.xj .vflow-actor svg { width: clamp(22px, 2vw, 32px); height: clamp(22px, 2vw, 32px); }

.xj .vflow-card { padding: clamp(12px, 1.2vw, 18px); }
.xj .crm-tile-name { font-size: clamp(12.5px, 1.02vw, 15.5px); }
.xj .crm-tile-sub  { font-size: clamp(10.5px, .88vw, 13px); }

/* ═══════════════════════════════════════════════════════════════
   3.1 — THREE CARDS                                      23 Sep
   Back to the client's own arrangement: what leaks, what we see,
   what it is worth — three equal cards, in that order, with the
   observations in the MIDDLE rather than in a side rail. The bento
   made the observations look like a footnote to the numbers when
   they are the middle third of the argument.

   Everything below is our design system on the client's structure:
   card frame, one head treatment, display numerals in the tone, a
   connector between the steps of each descending sequence.
   ═══════════════════════════════════════════════════════════════ */

.xj .bx--cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 22px);
  align-items: stretch;
  min-height: 0;
}

.xj .bx-card {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--xj-r, 8px);
  background: var(--base-raise);
  border-top: 2px solid color-mix(in srgb, var(--bx-tone) 60%, transparent);
  overflow: hidden;
}
.xj .bx-card--leak { --bx-tone: var(--warn); }
.xj .bx-card--obs  { --bx-tone: var(--stone); }
.xj .bx-card--gain { --bx-tone: var(--step-deploy); }

.xj .bx-card .bx-head {
  margin: 0; flex: none;
  padding: clamp(12px, 1.5vh, 18px) clamp(14px, 1.2vw, 20px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bx-tone) 5%, transparent);
  color: var(--ink);
}

/* The two number cards are a descending sequence, so they centre and
   stack rather than sitting in a grid of equal tiles. */
.xj .bx-card--leak .bx-cells,
.xj .bx-card--gain .bx-cells {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-evenly;
  flex: 1; min-height: 0; gap: 0;
  padding: clamp(10px, 1.6vh, 20px) clamp(12px, 1vw, 18px);
  text-align: center;
}
.xj .bx-card .bx-cell {
  grid-column: auto; background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.xj .bx-card .bx-metric {
  font-size: clamp(24px, 2.5vw, 42px); line-height: 1;
  color: var(--bx-tone);
}
.xj .bx-card--leak .bx-metric { color: var(--step-deploy); }
.xj .bx-card .bx-cell--lead .bx-metric { font-size: clamp(24px, 2.5vw, 42px); }
.xj .bx-card .bx-label { font-size: clamp(12px, 1vw, 15px); color: var(--ink); }
.xj .bx-card .bx-note  { font-size: clamp(10.5px, .85vw, 13px); font-style: italic; }

/* Connector between steps. Sized off the gap it sits in so it never
   competes with the numerals it joins. */
.xj .bx-arrow {
  display: block; line-height: 1;
  font-size: clamp(13px, 1.1vw, 17px);
  color: color-mix(in srgb, var(--ink) 34%, transparent);
  margin: clamp(4px, .9vh, 10px) 0;
}

.xj .bx-card--obs .bx-obs {
  flex: 1; min-height: 0; overflow: auto;
  padding: clamp(6px, 1vh, 12px) clamp(14px, 1.2vw, 20px);
}
.xj .bx-card--obs .bx-obs::-webkit-scrollbar { width: 0; }
.xj .bx-card .bx-obs__item { padding: clamp(10px, 1.5vh, 16px) 0; }
.xj .bx-card .bx-obs__body > p,
.xj .bx-card .bx-obs__h { font-size: clamp(12.5px, 1.05vw, 16px); }
.xj .bx-card .bx-obs__ul li { font-size: clamp(11.5px, .95vw, 14.5px); }

@media (max-width: 1000px) {
  .xj .bx--cards { grid-template-columns: 1fr; }
}

/* ── Hover pop: one full-width panel ────────────────────  23 Sep
   Supersedes every max-width and nth-last-child rule above. The pop
   is sized and positioned by place() in views/theme.js to span the
   visible chain, so a fixed max-width here would fight it. The
   points spread into as many columns as the width allows, with a
   rule between them — which is also what was asked for: two points,
   a divider, two more, stretched across the tab. */
.xj .vflow-pop-wrap,
.xj .vflow-pop-wrap-below { max-width: none; width: auto; }

.xj .vflow-pop ul,
.xj .vflow-pop-wrap ul,
.xj .vflow-pop-wrap-below ul {
  columns: 270px auto;
  column-gap: clamp(18px, 2vw, 34px);
  column-rule: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  max-width: none;
}
.xj .vflow-pop ul li { break-inside: avoid; }

/* ── 3.3 A: the corner cell ─────────────────────────────  23 Sep
   "Category & volume share" was inheriting `white-space: nowrap`
   from the shared th/td rule while the column was pinned to 150px
   under `table-layout: fixed`. A nowrap label in a fixed column
   cannot shrink, so it ran straight out over the first group
   header. It wraps to two lines now and the column is sized to
   hold it. */
/* `.xj .tt-table th` (0,3,2) outranks `.xj .tt-corner` (0,2,0), so
   the first attempt at this never took: nowrap kept winning and the
   label kept running 10px past its column. Named against the table
   so it actually applies. */
.xj .tt-table th.tt-corner {
  white-space: normal;
  width: clamp(112px, 11vw, 168px);
  line-height: 1.25;
  padding-right: 10px;
  hyphens: none;
}

/* ── 3.2 C: the #rjOv dialog, same 2:3 as the rest ──────  23 Sep
   This page has its own overlay shell, which is how it escaped the
   dialog rules until now. js/dialog.js wraps its parts into .rj2;
   this lays them out to match #ov exactly, so the two dialogs in
   the tool are one object with one set of manners. */
.xj #rjOv, #rjOv {
  padding: var(--m-inset, clamp(14px, 1.8vh, 26px));
}
#rjOv .rj2 {
  width: 100%; height: 100%;
  background: var(--base-raise); border-radius: 14px;
  box-shadow: 0 18px 60px color-mix(in srgb, var(--ink) 22%, transparent);
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(22px, 2.6vw, 48px);
  padding: 0 clamp(20px, 2.2vw, 40px) clamp(18px, 2.4vh, 32px);
  overflow: hidden;
}
#rjOv .rj-ov-bar {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 10px 0; border-bottom: 0; background: transparent;
}
/* The card title, removed for the same reason as the other dialog:
   it is on the card that was just clicked. The step caption is the
   heading now, and it lives in the left column. */
#rjOv .rj-ov-bar-title { display: none; }

#rjOv .rj2__copy {
  grid-column: 1; grid-row: 2;
  min-height: 0; overflow: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: clamp(8px, 2vh, 28px);
}
#rjOv .rj2__copy::-webkit-scrollbar { width: 0; }
#rjOv .rj2__vis {
  grid-column: 2; grid-row: 2;
  min-height: 0;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
#rjOv .rj-ov-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
#rjOv .rj-ov-stage > img,
#rjOv .rj-ov-stage > video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain; border-radius: 8px;
}
/* Both halves of a before/after pair have to be visible at once —
   the fixed-height stage was cutting the second one off. */
#rjOv .rj-img-pair {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; height: 100%; min-height: 0;
}
#rjOv .rj-img-pair img {
  flex: 1 1 0; min-height: 0;
  width: 100%; height: auto; max-height: 100%;
  object-fit: contain; border-radius: 8px;
}

/* Caption becomes the heading. Same treatment as .m-2x3__h so the
   two dialogs read identically. */
#rjOv .m-solve-head svg,
#rjOv .rj-ov-caption svg { display: none; }
#rjOv #rjOvTopCaptionText,
#rjOv .rj-ov-caption-label {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.75vw, 34px);
  font-weight: 700; line-height: 1.16; letter-spacing: -.018em;
  color: var(--ink); text-wrap: balance; display: block;
}
#rjOv .m-solve-head { display: block; }

#rjOv .rj-ov-caption-sub { font-size: var(--t-200); color: var(--stone); margin-top: 14px; }
#rjOv .rj-ov-nav { flex: none; justify-content: center; }

@media (max-width: 900px) { #rjOv .rj2 { grid-template-columns: 1fr; } }

/* ── Hover pop: two ruled halves ────────────────────────────────
   Per the sketch: one rounded panel spanning the cards, the points
   split into two groups with a single divider between them, rather
   than a tall stack. `columns: 2` splits whatever count arrives —
   two points give one each, four give two and two. */
.xj .vflow-pop ul,
.xj .vflow-pop-wrap ul,
.xj .vflow-pop-wrap-below ul {
  columns: 2;
  column-gap: clamp(22px, 3vw, 54px);
  column-rule: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  max-width: none;
}
.xj .vflow-pop {
  border-radius: var(--xj-r, 8px);
  padding: clamp(12px, 1.6vh, 20px) clamp(24px, 2.4vw, 44px);
}
.xj .vflow-pop ul li { break-inside: avoid; }

/* 3.1 C — the headings under each pop-up card carry the point, so
   they are set at the size of a point rather than a caption. */
.xj .m-2x3__copy .m-slide-title-el { font-size: clamp(16px, 1.35vw, 23px); }
.xj .rj-ov-caption-sub,
.xj .m-2x3__copy .m-caption,
.xj .m-2x3__copy .m-solve-text { font-size: clamp(14px, 1.15vw, 19px); }
.xj .m-car-slide-caption { font-size: clamp(13px, 1.05vw, 17px); }

/* The CX heading is promoted in place inside .m-slide-meta, so the
   wrapper must not add its own box around it. */
.xj .m-2x3__copy .m-slide-meta { display: contents; }
.xj .m-2x3__h--live { font-family: var(--font-display); }

/* ── 3.3 B: close the chain up ──────────────────────────  23 Sep
   The cards and gaps here already matched the other themes (300px /
   22px). What made this chain read as spread out is that it is the
   only one with arrow connectors BETWEEN the cards: a 22px gap, a
   20px chevron, another 22px gap — 64px of separation where every
   other theme has 19px.

   The chevron now sits IN the gap rather than taking a column of its
   own, so card-to-card spacing matches the rest of the build and the
   connector still reads. */
.xj .crm-cur-arr,
.xj .cap-stepper-arr {
  margin-inline: -22px;
  z-index: 2;
}

/* `columns` is ignored on a flex container, and the client's sheet
   sets `display: flex` on this list — so every column rule written
   for it so far did nothing and the points stayed in one stack.
   Block display, then the two columns and the divider apply. */
.xj .vflow-pop-wrap ul,
.xj .vflow-pop-wrap-below ul,
.xj .vflow-pop ul {
  display: block;
  columns: 2;
  column-gap: clamp(22px, 3vw, 54px);
  column-rule: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}
.xj .vflow-pop-wrap ul li,
.xj .vflow-pop-wrap-below ul li,
.xj .vflow-pop ul li { break-inside: avoid; display: list-item; }

/* ═══════════════════════════════════════════════════════════════
   THE HOVER SCALE — why the panel kept moving          23 Sep
   `.vflow-col:hover { transform: scale(1.12) }` in the client's
   sheet. The pop-up is a child of that column, so on hover the
   browser scaled the panel by 1.12 too and pushed it off centre by
   ~12% of its own width. Every number place() writes was correct;
   the browser was transforming the result afterwards.

   It never showed up in testing because a programmatic placement
   check does not trigger :hover, so the scale was never applied
   while measuring. That is the whole history of this bug.

   The lift moves to the CARD inside the column. Same feel, and the
   pop is no longer inside a transformed subtree.
   ═══════════════════════════════════════════════════════════════ */
.xj [data-tab-panel="current-chain"] .vflow-col:hover,
.xj [data-tab-panel="current-chain"] .vflow-col:focus-within,
.xj [data-tab-panel="capital-current"] .vflow-col:hover,
.xj [data-tab-panel="capital-current"] .vflow-col:focus-within,
.xj [data-tab-panel="crm-current"] .vflow-col:hover,
.xj [data-tab-panel="crm-current"] .vflow-col:focus-within {
  transform: none;
  z-index: 6;
}
.xj .vflow-col:hover > .vflow-card,
.xj .vflow-col:focus-within > .vflow-card {
  transform: translateY(-2px) scale(1.04);
  transition: transform var(--d-ui) var(--ease);
}
/* The card's own hover rule also scales; it is inside the column so
   it is harmless, but 1.12 next to a 1.04 lift reads inconsistent. */
.xj button.vflow-card:hover,
.xj button.vflow-card:focus-visible { transform: translateY(-2px) scale(1.04); }

/* ═══════════════════════════════════════════════════════════════
   DIALOG — fourth pass                                   23 Sep
   Three treatments are now gone: the wedge, the solid green column,
   and the wash-in-a-rectangle. Each of them drew a BOX around the
   words. The note was that the box is the problem.

   So there is no panel. The copy sits centred in its half with
   nothing behind it but the dialog surface, and the 2:3 area as a
   whole carries a slow BPTP-toned aurora at low opacity — the same
   drifting-gradient idea as the section strip, several stops
   quieter, so it reads as a lit background rather than as a
   graphic. Nothing to crop, nothing to align, no edge to notice.
   ═══════════════════════════════════════════════════════════════ */

.xj .modal-body { padding: 0; position: relative; overflow: hidden; }
.xj .m-2x3 { gap: 0; position: relative; z-index: 1; }

/* The drift, taken from the agenda slide so the two surfaces feel
   like one product: a tone gradient anchored at the left of the
   copy half, fading out before it reaches the visual, moving
   slowly on a long alternating cycle. Left-weighted and fading
   right is the point — it sits under the words and releases the
   image. Very low strength; it should register as light on a
   surface, not as a graphic. */
.xj .modal-body::before,
#rjOv .rj2::before {
  content: ''; position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  width: 62%;                      /* copy side, then gone */
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--xj-tone, var(--theme-tone)) 30%, transparent) 0%,
    color-mix(in srgb, var(--xj-tone, var(--theme-tone)) 14%, transparent) 38%,
    transparent 74%);
  background-size: 190% 100%;
  opacity: .5;
  animation: dlgDrift 22s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 55%, transparent 100%);
          mask-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 55%, transparent 100%);
}
@keyframes dlgDrift {
  from { background-position: 0 0; }
  to   { background-position: 60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .xj .modal-body::before, #rjOv .rj2::before { animation: none; }
}

/* No panel, no fill, no border. Just centred copy. */
.xj .m-2x3__copy,
#rjOv .rj2__copy {
  position: relative; z-index: 1;
  background: none; border: 0; border-radius: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(30px, 4.6vh, 64px) clamp(30px, 3vw, 60px);
  overflow: auto;
  color: var(--ink);
}
.xj .m-2x3__copy::after, #rjOv .rj2__copy::after { content: none; }

.xj .m-2x3__h,
#rjOv #rjOvTopCaptionText,
#rjOv .rj-ov-caption-label {
  background: none; clip-path: none;
  padding: 0; margin: 0;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.05vw, 40px);
  font-weight: 700; line-height: 1.14; letter-spacing: -.018em;
  text-wrap: balance;
}
.xj .m-2x3__h::after, #rjOv .rj-ov-caption-label::after { content: none; }

.xj .m-2x3__copy .m-pain-head,
.xj .m-2x3__copy .m-solves-for {
  background: none; border: 0; padding: 0; text-align: center;
}
.xj .m-2x3__copy .m-pain-list,
.xj .m-2x3__copy .m-sf-list { padding-left: 0; list-style: none; text-align: center; }

.xj .m-2x3__vis,
#rjOv .rj2__vis {
  position: relative; z-index: 1;
  padding: clamp(20px, 2.6vh, 36px) clamp(20px, 2vw, 40px);
}

.xj .modal { position: relative; overflow: hidden; }
.xj .modal-head { padding: 8px 12px; position: absolute; right: 0; top: 0; z-index: 3; }
#rjOv .rj2 { padding: 0; column-gap: 0; grid-template-rows: 1fr; position: relative; overflow: hidden; }
#rjOv .rj-ov-bar { position: absolute; right: 0; top: 0; padding: 8px 12px; z-index: 3; }
#rjOv .rj2__copy { grid-row: 1; }
#rjOv .rj2__vis  { grid-row: 1; }

/* ═══════════════════════════════════════════════════════════════
   3.1 A — third variant                                  23 Sep
   Gone: tone-coloured figures (pass 1), and the proportional bars
   under them (pass 2). The bars were the worse of the two — four
   stubs of different lengths under four numbers read as a broken
   chart, not as a funnel.

   This pass drops decoration entirely and lets the TYPE carry it.
   The figures are the largest thing on the page and step down in
   size as the funnel narrows, so the shape of the drop is in the
   numerals themselves. A thin rule runs down the centre of each
   card behind the sequence — a spine, not a chart. The label under
   each figure is quiet; the figure is the point.
   ═══════════════════════════════════════════════════════════════ */

.xj .bx-card .bx-head {
  background: none;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
  font-size: clamp(11px, .88vw, 13px);
}
.xj .bx-card { border-top: 1px solid var(--line); }
.xj .bx-card--gain { border-top: 2px solid var(--step-deploy); }

/* The spine. Sits behind the sequence, stops short at both ends. */
.xj .bx-card--leak .bx-cells,
.xj .bx-card--gain .bx-cells { position: relative; }
.xj .bx-card--leak .bx-cells::before,
.xj .bx-card--gain .bx-cells::before {
  content: ''; position: absolute; left: 50%; top: 12%; bottom: 12%;
  width: 1px; background: var(--line); transform: translateX(-.5px);
}
.xj .bx-cell, .xj .bx-arrow { position: relative; z-index: 1; }
.xj .bx-cell { background: var(--base-raise); padding: 4px 0; }

/* Type does the work. Each step down the funnel is set smaller
   than the one above it, so the narrowing is legible as a shape
   before a single number is read. */
.xj .bx-card .bx-metric {
  color: var(--ink); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(30px, 3.1vw, 54px); line-height: 1;
}
.xj .bx-card .bx-cell:nth-child(3) .bx-metric { font-size: clamp(26px, 2.7vw, 47px); }
.xj .bx-card .bx-cell:nth-child(5) .bx-metric { font-size: clamp(23px, 2.35vw, 41px); }
.xj .bx-card .bx-cell:nth-child(7) .bx-metric { font-size: clamp(20px, 2.05vw, 36px); }

/* The one figure the room should leave with. */
.xj .bx-card--gain .bx-cell--lead .bx-metric { color: var(--step-deploy); }

.xj .bx-card .bx-label {
  font-size: clamp(11.5px, .95vw, 14px);
  color: var(--stone); margin-top: 2px;
}
.xj .bx-card .bx-note {
  font-size: clamp(10.5px, .85vw, 12.5px);
  font-style: italic; color: var(--grey-2);
}
.xj .bx-arrow {
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  background: var(--base-raise);
  font-size: clamp(12px, 1vw, 15px);
  margin: clamp(2px, .5vh, 6px) 0;
}

/* ═══════════════════════════════════════════════════════════════
   3.2 C — four demos, 2 × 2                              23 Sep
   The groups were a horizontal row of four, each a different width
   with a label bar above it, so the four demos read as a chain
   they are not: Site Feasibility, Design, Procurement, Execution
   are four capabilities, not four steps. Two up, two down, all the
   same size — a set, and each tile big enough to show its still.
   ═══════════════════════════════════════════════════════════════ */
.xj .rj-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.4vw, 24px);
  min-width: 0;
  align-items: stretch;
}
.xj .rj-group,
.xj .rj-group-exec {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--xj-r, 8px);
  background: var(--base-raise);
  overflow: hidden;
}
.xj .rj-group-header {
  background: none;
  border-bottom: 1px solid var(--line);
  padding: clamp(10px, 1.3vh, 15px) clamp(13px, 1.1vw, 18px);
  text-align: left;
}
.xj .rj-group-label {
  font-size: clamp(11px, .92vw, 14px);
  color: var(--stone);
}
.xj .rj-group .rjcard,
.xj .rj-group-exec .rjcard {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  border: 0; border-radius: 0; background: none;
  text-align: left; width: 100%;
}
.xj .rjcard-thumb {
  flex: 1; min-height: clamp(90px, 15vh, 190px); height: auto;
}
.xj .rjcard-body { padding: clamp(11px, 1.3vh, 16px) clamp(13px, 1.1vw, 18px); }
.xj .rjcard-title { font-size: clamp(14px, 1.18vw, 19px); line-height: 1.2; }
.xj .rjcard-desc  { font-size: clamp(12px, 1vw, 15px); line-height: 1.45; }
.xj .rjcard-chip  { font-size: clamp(9.5px, .8vw, 11.5px); }

/* The exec group held its cards in a nested grid; inside a 2x2
   tile that becomes a grid in a grid. One card per tile. */
.xj .rj-group-exec .rj-exec-grid { display: flex; flex-direction: column; flex: 1; min-height: 0; }

@media (max-width: 900px) {
  .xj .rj-groups { grid-template-columns: 1fr; }
}

/* The first cell carries .bx-cell--lead, which an earlier block
   sized DOWN to clamp(22px, 2.1vw, 33px). That inverted the step:
   38 / 41 / 36 / 31 — the funnel got wider before it narrowed.
   Named by position so the descent is monotonic regardless of
   which cell happens to be flagged as the lead. */
.xj .bx-card .bx-cells > .bx-cell:nth-child(1) .bx-metric,
.xj .bx-card .bx-cell--lead .bx-metric { font-size: clamp(30px, 3.1vw, 54px); }
.xj .bx-card .bx-cells > .bx-cell:nth-child(3) .bx-metric { font-size: clamp(26px, 2.7vw, 47px); }
.xj .bx-card .bx-cells > .bx-cell:nth-child(5) .bx-metric { font-size: clamp(23px, 2.35vw, 41px); }
.xj .bx-card .bx-cells > .bx-cell:nth-child(7) .bx-metric { font-size: clamp(20px, 2.05vw, 36px); }

/* ── Dialog: fill the height, then centre in it ─────────  23 Sep
   `.m-2x3 { align-items: start }` from the first pass was still
   live, so both columns were content-height: the copy box measured
   186px inside an 855px modal and the text sat 334px above centre.
   Centring inside a box that is only as tall as its own text does
   nothing — the box has to fill first. */
.xj .modal-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.xj .m-2x3 { align-items: stretch; flex: 1; min-height: 0; }
.xj .m-2x3__copy, #rjOv .rj2__copy { height: 100%; }

/* Serif, matching the theme pages. The dialog heading is a
   statement in the same register as "Where AI creates value at
   BPTP", not a UI label, so it takes the same face. */
.xj .m-2x3__h,
#rjOv #rjOvTopCaptionText,
#rjOv .rj-ov-caption-label {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.16;
}

/* No image. The ask was the AGENDA'S ANIMATION, not its picture —
   the drifting tone gradient that runs behind the agenda, debrief
   and next-steps surfaces. The plate is gone; the drift above
   (.modal-body::before) is that same treatment, and it already
   fades out to the right before it reaches the visual. */

/* ── 3.1 A: no hover highlight on the figures ───────────────────
   A leftover from the first pass tinted every cell on hovering the
   group. The figures are static content, not controls — nothing
   happens when you click them, so nothing should light up. */
.xj .bx-cells:hover .bx-cell,
.xj .bx-cells:hover .bx-cell:hover {
  background: var(--base-raise);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* The chain uses the height fillHeight() gives it: the cards row
   stretches, and each card grows downwards rather than the extra
   space collecting under the chain. Content still sits from the
   top of the card — the gain is breathing room, not stretched
   line-spacing. */
.xj [data-chain-fit] { display: flex; flex-direction: column; }
.xj .vchain-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.xj .vflow-cards { flex: 1; min-height: 0; align-items: stretch; }
.xj .vflow-col { display: flex; flex-direction: column; }
.xj .vflow-col > .vflow-card { flex: 1; }
.xj .vflow-card { justify-content: flex-start; }

/* ═══════════════════════════════════════════════════════════════
   3.2 C — four tiles, no scroll                          23 Sep
   The 2x2 grid was right but the tiles were sized from their own
   content, so the block ran past the fold and scrolled. Sized from
   the SPACE instead, the way the open-discussion grid is: two
   equal rows that divide whatever height the page has left.
   ═══════════════════════════════════════════════════════════════ */
.xj .rj-scroll-wrap {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.xj .rj-groups {
  grid-auto-rows: minmax(0, 1fr);
  flex: 1; min-height: 0;
  overflow: visible;
}
.xj .rj-group,
.xj .rj-group-exec { min-height: 0; }
.xj .rjcard-thumb { min-height: 0; flex: 1 1 auto; }

/* Type up, and the category label above each tile with it — there
   was room over the cards doing nothing. */
.xj .rj-group-header { padding: clamp(12px, 1.6vh, 20px) clamp(14px, 1.2vw, 20px); }
.xj .rj-group-label  { font-size: clamp(13px, 1.08vw, 17px); letter-spacing: .05em; }
.xj .rjcard-title    { font-size: clamp(16px, 1.35vw, 22px); line-height: 1.2; }
.xj .rjcard-desc     { font-size: clamp(13px, 1.1vw, 17px); line-height: 1.45; }
.xj .rjcard-chip     { font-size: clamp(10.5px, .88vw, 13px); }
.xj .rjcard-body     { padding: clamp(13px, 1.5vh, 19px) clamp(14px, 1.2vw, 20px); }

/* ── 3.3 A: group headers over their own columns ───────  23 Sep
   "Straightforward", "Complex" and "Special Situations" each span
   four bucket columns but were left-aligned in them, so none of
   the three sat over the block it labels. Centred on their span,
   which is what a colspan header is for. */
.xj .tt-table th.tt-group { text-align: center; vertical-align: middle; }
.xj .tt-share-badge { display: inline-block; margin-left: 7px; }
