/* AIO-106 · The case study (success-stories/[slug].astro and ag1.astro) on
   the new design system. No Figma frame: built from the system's type,
   tones and components, so the layouts here are approximations of the old
   template's (success-story.css, which these pages no longer load).

   Bands: white hero with the brand-tint tile, Neutral/100 Impact (white
   cards), white Challenge with the Ink at-a-glance card, Neutral/100
   Solution, white Results, the AOS split, the story rail on Neutral/100,
   the logo marquee and the shared CTA.

   The story blocks keep the class names StoryBlocks.astro, StoryBridge.astro
   and the AG1 partial print (.cs-*), and public/js/story-impact.js reads
   (.cs-impact-grid, .cs-stat-dim, .cs-progress-fill, .cs-tab-active).
   Everything is scoped to .cs-page. */

.cs-page {
  --st-ink: var(--ax-ink);
  --st-body: var(--ax-n800);
  --st-dim: var(--ax-n700);
  --st-rule: var(--ax-n200);
  --st-surface: var(--ax-n100);
  --st-measure: 721px;
}
.cs-page .ax-section--muted { --st-surface: var(--ax-white); }

/* ---------------------------------------------------------------- Hero */
.cs-page .st-hero { padding-bottom: 0; }
.st-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: var(--ax-space-64); align-items: start; }
.st-hero__copy > .ax-eyebrow { margin-bottom: var(--ax-space-24); }
.st-hero__badge {
  display: inline-flex; align-items: center; height: 28px; margin: 0 0 var(--ax-space-24); padding: 0 var(--ax-space-12);
  border-radius: var(--ax-radius-pill); background: var(--ax-red); color: var(--ax-white);
  font-family: var(--ax-font-label); font-size: var(--ax-fs-12); font-weight: var(--ax-fw-medium); line-height: 1;
  letter-spacing: var(--ax-ls-label); text-transform: uppercase;
}
.st-hero__title {
  margin: 0; font-family: var(--ax-font-display); font-size: var(--ax-fs-64); font-weight: var(--ax-fw-regular);
  line-height: 70.4px; letter-spacing: var(--ax-ls-display); color: var(--ax-ink); text-wrap: balance;
}
/* A → in the title: the system arrow drawn at a 2px stroke (requester). */
.st-hero__arrow { display: inline-block; width: 0.66em; height: 0.3em; margin: 0 0.12em; vertical-align: 0.16em; overflow: visible; }
.cs-page .cs-dek { margin: var(--ax-space-32) 0 0; max-width: 560px; font-family: var(--ax-font-display); font-size: var(--ax-fs-28); line-height: 33.6px; color: var(--ax-n800); }
.cs-page .cs-summary { margin: var(--ax-space-24) 0 0; max-width: 600px; font-family: var(--ax-font-body); font-size: var(--ax-fs-20); line-height: 30px; color: var(--ax-n700); }
.cs-page .cs-byline { display: flex; align-items: center; gap: var(--ax-space-16); margin-top: var(--ax-space-24); }
.cs-page .cs-byline-avatar { width: 56px; height: 56px; border-radius: var(--ax-radius-pill); object-fit: cover; }
.cs-page .cs-byline-name { font-family: var(--ax-font-body); font-size: var(--ax-fs-18); font-weight: var(--ax-fw-semibold); line-height: 22.5px; color: var(--ax-ink); }
.cs-page .cs-byline-role { font-family: var(--ax-font-body); font-size: var(--ax-fs-16); line-height: 20px; color: var(--ax-n600); }
/* The tile takes the brand's tint (src/lib/brand-tints.js, set on body). */
.cs-page .cs-hero-tile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--ax-radius-lg); background: var(--cs-tint-b); }
.cs-page .cs-hero-tile img.cs-hero-photo { width: 100%; height: 100%; object-fit: cover; }
.cs-page .cs-hero-tile img.cs-hero-art { width: 91%; height: auto; max-height: 88%; object-fit: contain; }
.cs-page .cs-hero-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms ease; }
.cs-page .cs-hero-canvas.is-live { opacity: 1; }

/* -------------------------------------------------------------- Impact
   White band, Neutral/100 cards, 64 above and below (requester); the band
   after it starts without its own top padding so the gap stays 64. */
.cs-page .st-impact { --st-surface: var(--ax-n100); padding-block: var(--ax-space-64); background: var(--ax-white); }
.cs-page :is(.st-impact + .st-band, .st-impact + script + .st-band) { padding-top: 0; }
.st-impact__h { margin: 0 0 var(--ax-space-32); }
.cs-page .cs-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ax-space-16); }
.cs-page .cs-stat { padding: var(--ax-space-32); border-radius: var(--ax-radius-card); background: var(--st-surface); color: var(--ax-ink); }
/* The row's position is on the icon only: red where the reader is, Ink
   elsewhere (story-impact.js toggles .cs-stat-dim). */
.cs-page .cs-stat-icon {
  display: block; width: 32px; height: 32px; margin-bottom: var(--ax-space-24); background-color: var(--ax-red);
  transition: background-color .35s ease;
  -webkit-mask: var(--cs-stat-icon) no-repeat left center / contain; mask: var(--cs-stat-icon) no-repeat left center / contain;
}
.cs-page .cs-stat-dim .cs-stat-icon { background-color: var(--ax-ink); }
.cs-page .cs-stat-title { margin-bottom: var(--ax-space-12); font-family: var(--ax-font-display); font-size: var(--ax-fs-32); line-height: 35.2px; letter-spacing: var(--ax-ls-display); }
.cs-page .cs-stat-desc { font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--ax-n700); }
.cs-page .cs-progress { position: relative; height: 2px; margin-top: var(--ax-space-32); overflow: hidden; background: var(--ax-n250); }
.cs-page .cs-progress-fill { position: absolute; top: 0; left: 0; width: 26%; height: 2px; background: var(--ax-red); transition: transform .45s ease, width .45s ease; }
.cs-page .cs-next-step { margin: var(--ax-space-32) 0 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--ax-n700); }
.cs-page .cs-next-step a { color: var(--ax-ink); font-weight: var(--ax-fw-semibold); text-decoration: underline; text-decoration-color: var(--ax-red); text-underline-offset: 4px; }
.cs-page .cs-next-step a:hover { color: var(--ax-red); }
.st-offer-slot { margin-top: var(--ax-space-48); }
.cs-page .cs-impact-offer .cs-offer { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .cs-page .cs-progress-fill, .cs-page .cs-stat-icon, .cs-page .cs-tab, .cs-page .cs-tab-title { transition: none; }
}

/* ------------------------------------------------- Article and sidebar */
.cs-page .cs-article { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: var(--ax-space-96); align-items: start; }
.cs-page .cs-article-body { max-width: var(--st-measure); min-width: 0; }
.cs-page .cs-article-solo { grid-template-columns: minmax(0, 1fr); }
.cs-page .cs-article-solo > .cs-article-body { margin-inline: auto; }
.cs-page .cs-article-body > :first-child { margin-top: 0; }

/* Desktop: the text column sits centred on the page in every section; the
   at-a-glance card (and the Solution's rail) fills the space to its left,
   40px off the text (requester). The side column never drops under 260, so
   on narrower desktops the text gives way instead. */
@media (min-width: 1101px) {
  .cs-page .cs-article:not(.cs-article-solo) { grid-template-columns: minmax(260px, 1fr) minmax(0, var(--st-measure)) minmax(0, 1fr); gap: var(--ax-space-40); }
  /* The first section (with the at-a-glance card) keeps the old left-set
     layout: the card is as wide as its button needs to sit on one line (never
     under 336), and the text starts 64 after it (requester). The pills don't
     size the card. */
  .cs-page .cs-article:has(> .cs-sidebar) { grid-template-columns: minmax(336px, max-content) minmax(0, var(--st-measure)); gap: var(--ax-space-64); }
  .cs-page .cs-article:has(> .cs-sidebar) > .cs-article-body { grid-column: 2; }
  .cs-page .cs-side-pills { contain: inline-size; }
  .cs-page .cs-side-cta { white-space: nowrap; }
  .cs-page .cs-article:not(.cs-article-solo) > .cs-article-body { grid-column: 2; width: 100%; }
  .cs-page .cs-results-wide .cs-article-body > :is(.cs-eyebrow, .cs-h2, .cs-h3, .cs-p, .cs-ul, .cs-ol, .cs-callout, .cs-inline-h) { max-width: var(--st-measure); margin-inline: auto; }
  .cs-page .cs-results-wide .cs-article-body > .cs-ul { columns: 1; }
}
.cs-page .cs-sidebar { box-sizing: border-box; padding: var(--ax-space-40); border-radius: var(--ax-radius-lg); background: var(--ax-ink); color: var(--ax-white); }
.cs-page .cs-sidebar-logo { display: block; width: 200px; height: auto; margin-bottom: var(--ax-space-16); }
.cs-page .cs-sidebar-brand { margin-bottom: var(--ax-space-16); font-family: var(--ax-font-body); font-size: var(--ax-fs-36); font-weight: var(--ax-fw-semibold); line-height: 1.1; }
.cs-page .cs-side-brand, .cs-page .cs-side-facts, .cs-page .cs-side-meta { display: contents; }
.cs-page .cs-side-row { display: flex; align-items: center; gap: var(--ax-space-8); margin: var(--ax-space-24) 0 var(--ax-space-12); padding-top: var(--ax-space-20); border-top: 1px solid var(--ax-white-25); }
/* The row icons are white-on-transparent files; the label carries the row. */
.cs-page .cs-side-row img { width: 16px; height: 16px; opacity: .8; }
.cs-page .cs-side-label { font-family: var(--ax-font-label); font-size: var(--ax-fs-12); line-height: 15px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-white-80); }
.cs-page .cs-side-value { margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-20); line-height: 26px; color: var(--ax-white); }
.cs-page .cs-side-link { color: inherit; text-decoration: underline; text-decoration-color: var(--ax-red); text-underline-offset: 3px; }
.cs-page .cs-side-link:hover { color: var(--ax-red); }
.cs-page .cs-side-pills { display: flex; flex-wrap: wrap; gap: var(--ax-space-8); }
.cs-page .cs-side-pill {
  box-sizing: border-box; display: inline-block; max-width: 100%; padding: 7px var(--ax-space-12) 5px;
  border: 1px solid var(--ax-white-25); border-radius: var(--ax-radius-pill);
  font-family: var(--ax-font-body); font-size: var(--ax-fs-14); line-height: 18px; color: var(--ax-white); text-decoration: none; text-wrap: balance;
  transition: background-color var(--ax-dur-toggle) ease-out, border-color var(--ax-dur-toggle) ease-out;
}
.cs-page a.cs-side-pill:hover { border-color: var(--ax-white); background: var(--ax-white); color: var(--ax-ink); }
/* A tag that leaves the page says so: the system arrow, turned 45°. */
.cs-page a.cs-side-pill::after, .cs-page .cs-side-link::after {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: 0;
  background-color: currentColor; transform: rotate(-45deg);
  -webkit-mask: url("/images/icons/arrow-ax-sm.svg") center / contain no-repeat; mask: url("/images/icons/arrow-ax-sm.svg") center / contain no-repeat;
}
.cs-page a.cs-side-pill:focus-visible, .cs-page .cs-side-link:focus-visible { outline: var(--ax-focus-ring); outline-color: var(--ax-white); outline-offset: 2px; }
.cs-page .cs-side-cta { margin-top: var(--ax-space-32); white-space: normal; height: auto; min-height: 48px; padding-block: var(--ax-space-4); }

/* --------------------------------------------------------- Reading type */
.cs-page .cs-eyebrow { margin: 0 0 var(--ax-space-12); font-family: var(--ax-font-label); font-size: var(--ax-fs-14); line-height: 17.5px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-red); }
.cs-page .cs-h2 { margin: 0 0 var(--ax-space-32); font-family: var(--ax-font-display); font-size: var(--ax-fs-48); font-weight: var(--ax-fw-regular); line-height: 52.8px; letter-spacing: var(--ax-ls-display); color: var(--st-ink); text-wrap: balance; }
.cs-page .cs-p + .cs-eyebrow, .cs-page .cs-ul + .cs-eyebrow, .cs-page .cs-ol + .cs-eyebrow, .cs-page figure + .cs-eyebrow { margin-top: var(--ax-space-72); }
.cs-page .cs-h3 { margin: var(--ax-space-64) 0 var(--ax-space-32); font-family: var(--ax-font-display); font-size: var(--ax-fs-36); font-weight: var(--ax-fw-regular); line-height: 40px; letter-spacing: var(--ax-ls-display); color: var(--st-ink); text-wrap: balance; }
.cs-page .cs-inline-h { margin: var(--ax-space-48) 0 var(--ax-space-16); font-family: var(--ax-font-display); font-size: var(--ax-fs-28); font-weight: var(--ax-fw-regular); line-height: 33.6px; letter-spacing: var(--ax-ls-display); color: var(--st-ink); }
.cs-page :is(.cs-p, .cs-ul, .cs-ol) { margin: 0 0 var(--ax-space-24); font-family: var(--ax-font-body); font-size: var(--ax-fs-20); line-height: 30px; color: var(--st-body); }
.cs-page :is(.cs-ul, .cs-ol) { padding-left: var(--ax-space-24); }
.cs-page :is(.cs-ul, .cs-ol) li { margin-bottom: var(--ax-space-12); padding-left: var(--ax-space-4); }
.cs-page :is(.cs-ul, .cs-ol) li::marker { color: var(--ax-red); }
.cs-page :is(.cs-p, .cs-ul, .cs-ol) a { color: inherit; text-decoration: underline; text-decoration-color: var(--ax-red); text-underline-offset: 3px; }
.cs-page :is(.cs-p, .cs-ul, .cs-ol) a:hover { color: var(--ax-red); }
.cs-page :is(.cs-p, .cs-ul) strong { font-weight: var(--ax-fw-semibold); color: var(--st-ink); }
.cs-page .cs-p .cs-med { font-weight: var(--ax-fw-medium); }
.cs-page .cs-glance { margin: 0 0 var(--ax-space-48); font-family: var(--ax-font-body); font-size: var(--ax-fs-24); font-weight: var(--ax-fw-semibold); line-height: 31.2px; color: var(--st-ink); }
.cs-page .cs-lede { margin: 0 0 var(--ax-space-40); font-family: var(--ax-font-display); font-size: var(--ax-fs-32); line-height: 38.4px; letter-spacing: var(--ax-ls-display); color: var(--st-ink); }
.cs-page .cs-overview-img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 0 var(--ax-space-48); border-radius: var(--ax-radius-md); }
.cs-page .cs-body-img { display: block; width: 100%; max-width: 600px; height: auto; margin: var(--ax-space-48) 0; border-radius: var(--ax-radius-md); }

/* A line set apart: Semibold on a 1px red rule, as the prose rows' quote. */
.cs-page .cs-callout { margin: var(--ax-space-48) 0; padding: var(--ax-space-4) 0 var(--ax-space-4) var(--ax-space-24); border-left: 1px solid var(--ax-red); font-family: var(--ax-font-body); font-size: var(--ax-fs-24); font-weight: var(--ax-fw-semibold); line-height: 31.2px; color: var(--st-ink); }
.cs-page .cs-callout strong { font-weight: inherit; }

/* Figures on the same rule. */
.cs-page .cs-tally { margin: var(--ax-space-48) 0; padding-left: var(--ax-space-24); border-left: 1px solid var(--ax-red); }
.cs-page .cs-tally-title { margin-bottom: var(--ax-space-24); font-family: var(--ax-font-label); font-size: var(--ax-fs-14); line-height: 17.5px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-red); }
.cs-page .cs-tally-items { display: grid; gap: var(--ax-space-32) var(--ax-space-40); margin: 0; padding: 0; list-style: none; }
.cs-page :is(.cs-tally-large, .cs-tally-compact) .cs-tally-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-page .cs-tally-item { font-family: var(--ax-font-body); color: var(--st-ink); }
.cs-page .cs-tally-num { display: block; font-family: var(--ax-font-display); font-size: var(--ax-fs-52); line-height: 1; letter-spacing: var(--ax-ls-display); }
.cs-page .cs-tally-compact .cs-tally-num { font-size: var(--ax-fs-40); }
.cs-page .cs-tally-label { display: block; margin-top: var(--ax-space-8); font-size: var(--ax-fs-18); line-height: 23.4px; color: var(--st-dim); }
.cs-page .cs-tally-highlights .cs-tally-items { grid-template-columns: minmax(0, 1fr); gap: var(--ax-space-16); }
.cs-page .cs-tally-highlights .cs-tally-item { position: relative; padding-left: var(--ax-space-32); font-size: var(--ax-fs-20); font-weight: var(--ax-fw-semibold); line-height: 26px; }
.cs-page .cs-tally-highlights .cs-tally-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 7px; border-bottom: 2px solid var(--ax-red); border-left: 2px solid var(--ax-red); transform: rotate(-45deg); }
.cs-page .cs-tally-highlights .cs-tally-label { margin-top: 0; font-size: inherit; line-height: inherit; color: inherit; }

.cs-page .cs-metrics { display: flex; flex-wrap: wrap; gap: var(--ax-space-48); margin: var(--ax-space-48) 0; padding: var(--ax-space-32) 0; border-top: 1px solid var(--st-rule); border-bottom: 1px solid var(--st-rule); }
.cs-page .cs-metric-value { font-family: var(--ax-font-display); font-size: var(--ax-fs-64); line-height: 1; letter-spacing: var(--ax-ls-display); color: var(--ax-red); }
.cs-page .cs-metric-caption { max-width: 240px; margin-top: var(--ax-space-12); font-family: var(--ax-font-label); font-size: var(--ax-fs-12); line-height: 16px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--st-dim); }

/* A testimonial in the copy. */
.cs-page .cs-say { margin: var(--ax-space-56) 0; padding: var(--ax-space-32) 0 0; border-top: 1px solid var(--st-rule); }
.cs-page .cs-say-text { margin: 0; padding: 0; border: 0; font-family: var(--ax-font-display); font-size: var(--ax-fs-28); line-height: 33.6px; letter-spacing: var(--ax-ls-display); color: var(--st-ink); }
.cs-page .cs-say-text::before { content: "\201C"; color: var(--ax-red); }
.cs-page .cs-say-text::after { content: "\201D"; color: var(--ax-red); }
.cs-page .cs-say-pull { margin: var(--ax-space-16) 0 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-20); font-weight: var(--ax-fw-semibold); line-height: 26px; color: var(--ax-red); }
.cs-page .cs-say-attr { display: flex; align-items: center; gap: var(--ax-space-16); margin-top: var(--ax-space-24); text-align: left; }
.cs-page .cs-say-avatar { flex: none; width: 56px; height: 56px; border-radius: var(--ax-radius-pill); object-fit: cover; }
.cs-page .cs-say-name { font-family: var(--ax-font-body); font-size: var(--ax-fs-18); font-weight: var(--ax-fw-semibold); line-height: 22.5px; color: var(--st-ink); }
.cs-page .cs-say-role { font-family: var(--ax-font-body); font-size: var(--ax-fs-16); line-height: 20px; color: var(--st-dim); }

/* Screens and photographs: on a flat surface panel, hard-edged (the old
   offset card and drop shadow are gone). */
.cs-page :is(.cs-shot, .cs-devices) { margin: var(--ax-space-56) 0; }
.cs-page .cs-shot-label { margin-bottom: var(--ax-space-16); font-family: var(--ax-font-label); font-size: var(--ax-fs-12); line-height: 16px; letter-spacing: var(--ax-ls-label); text-align: left; text-transform: uppercase; color: var(--st-dim); }
.cs-page .cs-shot-stage { position: relative; padding: var(--ax-space-32); border-radius: var(--ax-radius-lg); background: var(--st-surface); }
.cs-page .cs-shot-card { display: none; }
.cs-page .cs-shot-stage img { display: block; width: 100%; height: auto; border-radius: var(--ax-radius-xs); }
.cs-page .cs-devices-stage { display: grid; grid-template-columns: minmax(0, 1fr) 27%; gap: var(--ax-space-24); align-items: end; padding: var(--ax-space-32); border-radius: var(--ax-radius-lg); background: var(--st-surface); }
.cs-page .cs-devices-browser .cs-devices-stage { grid-template-columns: minmax(0, 1fr); }
.cs-page .cs-devices-phone .cs-devices-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.cs-page :is(.cs-browser, .cs-phone) { overflow: hidden; border: 1px solid var(--st-rule); border-radius: var(--ax-radius-xs); background: var(--ax-white); }
.cs-page .cs-devices-phone .cs-phone { width: 46%; min-width: 220px; }
.cs-page :is(.cs-devices-desktop, .cs-devices-mobile) { display: block; width: 100%; height: auto; }
.cs-page .cs-devices-desktop.cs-crop { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.cs-page .cs-devices-mobile.cs-crop { aspect-ratio: 9 / 17; object-fit: cover; object-position: top center; }
.cs-page .cs-figure { margin: var(--ax-space-48) 0; }
.cs-page .cs-figure img { display: block; width: 100%; height: auto; border-radius: var(--ax-radius-md); }
.cs-page .cs-figure-portrait { max-width: 440px; }
.cs-page .cs-figure-cap { margin-top: var(--ax-space-12); font-family: var(--ax-font-body); font-size: var(--ax-fs-14); line-height: 20px; text-align: left; color: var(--st-dim); }

/* AG1 only: the storefront mockup on its surface panel, and the feature
   stack, lit as the reader reaches it (story-impact.js, .cs-tab-active). */
.cs-page .cs-mockup { margin: var(--ax-space-56) 0; padding: var(--ax-space-32); border-radius: var(--ax-radius-lg); background: var(--st-surface); }
.cs-page .cs-mockup-card { display: none; }
.cs-page .cs-mockup img { display: block; width: 100%; height: auto; }
.cs-page .cs-tab { margin-bottom: var(--ax-space-40); padding: var(--ax-space-4) 0 var(--ax-space-4) var(--ax-space-24); border-left: 1px solid var(--ax-n250); transition: border-color .35s ease; }
.cs-page .cs-tab-active { border-left-color: var(--ax-red); }
.cs-page .cs-tab-head { display: flex; align-items: center; gap: var(--ax-space-12); margin-bottom: var(--ax-space-16); }
.cs-page .cs-tab-head img { width: 28px; height: 28px; }
.cs-page .cs-tab-title { font-family: var(--ax-font-display); font-size: var(--ax-fs-28); line-height: 33.6px; letter-spacing: var(--ax-ls-display); color: var(--ax-n600); transition: color .35s ease; }
.cs-page .cs-tab-active .cs-tab-title { color: var(--ax-ink); }
.cs-page .cs-tab-items { font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--st-body); }
.cs-page .cs-tab-items div { margin-bottom: var(--ax-space-8); }

/* The Solution's timeline rail. */
.cs-page .cs-rail-gutter { align-self: stretch; }
.cs-page .cs-rail { position: sticky; top: 120px; margin: 0; padding: 0; list-style: none; }
.cs-page .cs-rail-item { position: relative; padding: 0 0 var(--ax-space-24) var(--ax-space-24); font-family: var(--ax-font-label); font-size: var(--ax-fs-12); line-height: 16px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--st-dim); }
.cs-page .cs-rail-item::after { content: ""; position: absolute; top: 14px; bottom: 0; left: 4px; width: 1px; background: var(--ax-n250); }
.cs-page .cs-rail-item:last-child { padding-bottom: 0; }
.cs-page .cs-rail-item:last-child::after { display: none; }
.cs-page .cs-rail-dot { position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border-radius: var(--ax-radius-pill); background: var(--ax-red); }

/* An in-copy offer (StoryBlocks `offer`): Neutral/100 panel on the rule. */
.cs-page .cs-offer { margin: var(--ax-space-48) 0; padding: var(--ax-space-32); border-left: 2px solid var(--ax-red); border-radius: 0 var(--ax-radius-card) var(--ax-radius-card) 0; background: var(--st-surface); }
.cs-page .cs-offer__label { margin: 0 0 var(--ax-space-8); font-family: var(--ax-font-label); font-size: var(--ax-fs-12); line-height: 16px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-red); }
.cs-page .cs-offer__text { max-width: 600px; margin: 0 0 var(--ax-space-24); font-family: var(--ax-font-display); font-size: var(--ax-fs-28); line-height: 33.6px; letter-spacing: var(--ax-ls-display); color: var(--ax-ink); }
.cs-page .cs-offer__text:has(+ .cs-offer__body) { margin-bottom: var(--ax-space-8); }
.cs-page .cs-offer__body { max-width: 600px; margin: 0 0 var(--ax-space-24); font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--ax-n700); }
.cs-page .cs-offer__btn { max-width: 100%; white-space: normal; }
.cs-page .cs-offer__alt { margin: var(--ax-space-16) 0 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-16); line-height: 24px; }
.cs-page .cs-offer__alt a { color: var(--ax-n700); text-decoration: underline; text-underline-offset: 4px; }
.cs-page .cs-offer__alt a:hover { color: var(--ax-ink); }

/* The next-step card (StoryOfferCard, placements A–C). */
.cs-page .so-card { display: flex; align-items: center; justify-content: space-between; gap: var(--ax-space-40); max-width: none; margin: 0; padding: var(--ax-space-40) var(--ax-space-48); border: 0; border-radius: var(--ax-radius-card); background: var(--st-surface); }
.cs-page .ax-section--tint .so-card { background: var(--ax-white); }
.cs-page .so-copy { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.cs-page .so-eyebrow { margin: 0 0 var(--ax-space-12); font-family: var(--ax-font-label); font-size: var(--ax-fs-14); line-height: 17.5px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-red); }
.cs-page .so-headline { margin: 0 0 var(--ax-space-12); font-family: var(--ax-font-display); font-size: var(--ax-fs-36); line-height: 40px; letter-spacing: var(--ax-ls-display); color: var(--ax-ink); }
.cs-page .so-body { margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--ax-n700); }
.cs-page .so-actions { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: var(--ax-space-20); }

/* ------------------------------------------------------------ Results */
.cs-page .cs-results-wide .cs-article-solo > .cs-article-body { max-width: none; margin-inline: 0; }
.cs-page .cs-results-wide .cs-p { max-width: var(--st-measure); }
.cs-page .cs-results-wide .cs-ul { columns: 2; column-gap: var(--ax-space-72); }
.cs-page .cs-results-wide .cs-ul li { break-inside: avoid; }
/* What It Meant, by Role: its own full-width Neutral/100 band (drawn with a
   border-image outset, so it adds no scroll width), white cards, 108 inside
   and around it (requester). */
.cs-page .cs-roles { --st-surface: var(--ax-white); margin-block: var(--ax-space-108); padding-block: var(--ax-space-108); border-image: linear-gradient(var(--ax-n100) 0 0) fill 0 / 0 / 0 100vw; }
.cs-page .cs-roles .cs-h3 { margin: 0 0 var(--ax-space-32); }
.st-offer-slot--c { margin-top: var(--ax-space-96); }

/* The closing testimonial: an Ink panel (.ax-on-dark). */
.cs-page .cs-quote { margin: var(--ax-space-72) 0 0; padding: var(--ax-space-48); border-radius: var(--ax-radius-lg); background: var(--ax-ink); color: var(--ax-white); }
.cs-page .cs-quote-mark { display: block; width: 44px; height: 32px; margin: 0 0 var(--ax-space-24); background-color: var(--ax-red); -webkit-mask: url("/images/icons/quote-solid.svg") no-repeat left top / contain; mask: url("/images/icons/quote-solid.svg") no-repeat left top / contain; }
.cs-page .cs-quote-text { max-width: 760px; margin: 0 0 var(--ax-space-32); padding: 0; border: 0; font-family: var(--ax-font-display); font-size: var(--ax-fs-32); line-height: 38.4px; letter-spacing: var(--ax-ls-display); color: var(--ax-white); }
.cs-page .cs-quote-attr { display: flex; align-items: center; gap: var(--ax-space-16); margin: 0; }
.cs-page .cs-quote-avatar { width: 64px; height: 64px; border-radius: var(--ax-radius-pill); object-fit: cover; }
.cs-page .cs-quote-name { font-family: var(--ax-font-body); font-size: var(--ax-fs-18); font-weight: var(--ax-fw-semibold); line-height: 22.5px; color: var(--ax-white); }
.cs-page .cs-quote-role { font-family: var(--ax-font-body); font-size: var(--ax-fs-16); line-height: 20px; color: var(--ax-white-80); }

/* A story's closing ask (StoryBridge), Figma 2332:5332: one Ink card, the
   offer left and the voice on Neutral/800 right. The card is .ax-on-dark,
   which turns --ax-red into the on-dark red; the eyebrow mark and the button
   keep the brand red, so it is read off the section first. */
.cs-page .cs-results, .cs-page .st-offer-slot--c { --st-red: var(--ax-red); }
.cs-page .cs-final { display: grid; grid-template-columns: minmax(0, 1fr) 480px; margin-top: var(--ax-space-96); overflow: hidden; border-radius: var(--ax-radius-lg); background: var(--ax-ink); color: var(--ax-white); }
.cs-page .cs-final__offer { display: flex; flex-direction: column; gap: var(--ax-space-20); min-width: 0; padding: var(--ax-space-64) var(--ax-space-48) var(--ax-space-64) var(--ax-space-56); }
.cs-page .cs-final__eyebrow { margin: 0; font-family: var(--ax-font-label); font-size: var(--ax-fs-14); font-weight: var(--ax-fw-regular); line-height: 17.5px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-white); }
.cs-page .cs-final__mark { color: var(--st-red, var(--ax-red)); }
.cs-page .cs-final__title { margin: 0; font-family: var(--ax-font-display); font-size: var(--ax-fs-52); font-weight: var(--ax-fw-regular); line-height: 57.2px; letter-spacing: var(--ax-ls-display); color: var(--ax-white); text-wrap: balance; }
.cs-page .cs-final__accent { color: var(--ax-red-on-dark); }
.cs-page .cs-final__body { max-width: 691px; margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-18); line-height: 27px; color: var(--ax-n100); }
.cs-page .cs-final__risk { margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-14); line-height: 21px; color: var(--ax-n250); }
.cs-page .cs-final__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ax-space-28); }
.cs-page .cs-final__btn { --ax-btn-h: 56px; --ax-btn-bg: var(--st-red, var(--ax-red)); --ax-btn-arrow: var(--st-red, var(--ax-red)); max-width: 100%; }
.cs-page .cs-final__alt { margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-14); line-height: 21px; color: var(--ax-n250); }
.cs-page .cs-final__alt a { color: var(--ax-white); text-decoration: underline; text-underline-offset: 4px; }
.cs-page .cs-final__alt a:focus-visible { outline: var(--ax-focus-ring); outline-color: var(--ax-white); outline-offset: 3px; }
.cs-page .cs-final__voice { display: flex; flex-direction: column; justify-content: space-between; gap: var(--ax-space-28); margin: 0; padding: var(--ax-space-56) var(--ax-space-48); background: var(--ax-n800); }
.cs-page .cs-final__qmark { width: 40px; height: 28px; margin-bottom: var(--ax-space-24); background-color: var(--ax-n600); -webkit-mask: url("/images/icons/quote-solid.svg") no-repeat left top / contain; mask: url("/images/icons/quote-solid.svg") no-repeat left top / contain; }
.cs-page .cs-final__quote { margin: 0; padding: 0; border: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-24); font-weight: var(--ax-fw-semibold); line-height: 30px; color: var(--ax-white); }
.cs-page .cs-final__by { display: flex; align-items: center; gap: var(--ax-space-16); margin: 0; padding-top: var(--ax-space-16); border-top: 1px solid var(--ax-n600); }
.cs-page .cs-final__avatar { flex: none; width: 64px; height: 64px; border-radius: var(--ax-radius-pill); object-fit: cover; }
.cs-page .cs-final__name { font-family: var(--ax-font-body); font-size: var(--ax-fs-16); font-weight: var(--ax-fw-semibold); line-height: 20px; color: var(--ax-white); }
.cs-page .cs-final__role { margin-top: 2px; font-family: var(--ax-font-body); font-size: var(--ax-fs-14); line-height: 21px; color: var(--ax-white); }

/* --------------------------------------------------------- Story rail */
/* The Our Work card (Figma 2267:4238, StoryRailCard.astro) on white. */
.cs-page .st-more { background: var(--ax-white); }
.cs-page .st-more .ax-section-head { border-top-color: var(--ax-n250); }
/* After a closing offer card, 108 from the card to the rule (requester). */
.cs-page section:has(.cs-final) + .st-more { padding-top: 0; }
.cs-page .st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ax-space-24); }
.cs-page .st-card { position: relative; display: flex; flex-direction: column; gap: var(--ax-space-20); min-width: 0; padding: 0 0 var(--ax-space-32); overflow: hidden; border-radius: var(--ax-radius-md); background: var(--ax-n100); }
.cs-page .st-card__media { position: relative; height: 300px; overflow: hidden; background: var(--ax-n200); }
.cs-page .st-card__media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ax-ease); }
.cs-page .st-card:hover .st-card__media > img { transform: scale(1.03); }
.cs-page .st-card__badge { position: absolute; top: var(--ax-space-16); left: var(--ax-space-16); background: color-mix(in srgb, var(--ax-n800) 30%, transparent); color: var(--ax-white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Text 20 in from the left and 24 from the right (requester). */
.cs-page .st-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ax-space-12); padding: 0 var(--ax-space-24) 0 var(--ax-space-20); }
.cs-page .st-card__brand { margin: 0; font-family: var(--ax-font-label); font-size: var(--ax-fs-14); font-weight: var(--ax-fw-medium); line-height: 17.5px; letter-spacing: var(--ax-ls-label); text-transform: uppercase; color: var(--ax-ink); }
.cs-page .st-card__title { margin: 0; font-family: var(--ax-font-body); font-size: var(--ax-fs-24); font-weight: var(--ax-fw-semibold); line-height: 30px; letter-spacing: 0; color: var(--ax-ink); text-wrap: wrap; } /* not balanced: lines run to the 24px edge (requester) */
.cs-page .st-card__link { position: static; }
.cs-page .st-card__link::after { inset: 0; z-index: 1; }
.cs-page .st-card:hover .st-card__link .ax-link__arrow::before { animation: ax-arrow-nudge var(--ax-dur-nudge) var(--ax-ease); }
@media (prefers-reduced-motion: reduce) { .cs-page .st-card__media > img { transition: none; } .cs-page .st-card:hover .st-card__media > img { transform: none; } }
.cs-page .st-skip { margin-top: var(--ax-space-40); text-align: center; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .st-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--ax-space-48); }
  .cs-page .cs-hero-tile { max-width: 640px; }
  .st-hero__title { font-size: var(--ax-fs-48); line-height: 52.8px; }
  .cs-page .cs-impact-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-page .cs-progress { display: none; }
  .cs-page .cs-stat-dim .cs-stat-icon { background-color: var(--ax-red); }
  .cs-page .cs-article { grid-template-columns: minmax(0, 1fr); gap: var(--ax-space-56); }
  .cs-page .cs-sidebar { max-width: 480px; }
  .cs-page .cs-rail-gutter { display: none; }
  .cs-page .cs-article-body { margin-inline: 0; }
  .cs-page .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-page .so-card { flex-direction: column; align-items: flex-start; }
  .cs-page .cs-final { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .st-hero__title { font-size: var(--ax-fs-36); line-height: 40px; letter-spacing: 0; }
  .cs-page .cs-dek { font-size: var(--ax-fs-24); line-height: 28.8px; }
  .cs-page .cs-summary { font-size: var(--ax-fs-18); line-height: 27px; }
  .cs-page .cs-stat { padding: var(--ax-space-24); }
  .cs-page .cs-stat-title { font-size: var(--ax-fs-28); line-height: 30.8px; }
  .cs-page .cs-sidebar { max-width: none; padding: var(--ax-space-24); }
  .cs-page .cs-h2 { font-size: var(--ax-fs-36); line-height: 40px; }
  .cs-page .cs-h3, .cs-page .cs-final__title { font-size: var(--ax-fs-32); line-height: 35.2px; }
  .cs-page :is(.cs-final__offer, .cs-final__voice) { padding: var(--ax-space-32) var(--ax-space-24); }
  .cs-page .cs-final__quote { font-size: var(--ax-fs-20); line-height: 26px; }
  .cs-page .cs-final__btn { white-space: normal; height: auto; min-height: 56px; padding-block: var(--ax-space-8); }
  .cs-page .cs-inline-h { font-size: var(--ax-fs-24); line-height: 28.8px; }
  .cs-page :is(.cs-p, .cs-ul, .cs-ol) { font-size: var(--ax-fs-18); line-height: 27px; }
  .cs-page .cs-lede { font-size: var(--ax-fs-28); line-height: 33.6px; }
  .cs-page .cs-glance { font-size: var(--ax-fs-20); line-height: 26px; }
  .cs-page .cs-callout { font-size: var(--ax-fs-20); line-height: 26px; }
  .cs-page .cs-say-text { font-size: var(--ax-fs-24); line-height: 28.8px; }
  .cs-page .cs-metric-value { font-size: var(--ax-fs-48); }
  .cs-page .cs-tally-num { font-size: var(--ax-fs-40); }
  .cs-page :is(.cs-shot-stage, .cs-devices-stage) { padding: var(--ax-space-16); border-radius: var(--ax-radius-md); }
  .cs-page .cs-devices-pair .cs-devices-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cs-page .cs-devices-pair .cs-phone { width: 52%; }
  .cs-page .cs-quote { padding: var(--ax-space-24); }
  .cs-page .cs-quote-text { font-size: var(--ax-fs-24); line-height: 28.8px; }
  .cs-page .cs-results-wide .cs-ul { columns: 1; }
  .cs-page .st-cards { grid-template-columns: minmax(0, 1fr); gap: var(--ax-space-16); }
  .cs-page .st-card__media { height: 240px; }
  .cs-page .st-card__title { font-size: var(--ax-fs-20); line-height: 26px; }
  .cs-page .st-impact { padding-block: var(--ax-space-64); }
  .cs-page .so-card { padding: var(--ax-space-24); }
  .cs-page .so-headline { font-size: var(--ax-fs-28); line-height: 30.8px; }
  .cs-page .cs-offer { padding: var(--ax-space-24); }
  .cs-page .cs-offer__text { font-size: var(--ax-fs-24); line-height: 28.8px; }
  .cs-page .cs-final, .st-offer-slot--c { margin-top: var(--ax-space-64); }
  .cs-page .cs-roles { margin-block: var(--ax-space-64); padding-block: var(--ax-space-64); }
}
