/* ============================================================================
   Case study — detail page and index
   ---------------------------------------------------------------------------
   The design language of the owner's Wilmette guide, which is now the house
   style for every client story. What that guide is doing, stated once so the
   rules below read as consequences rather than choices:

     · Every band sits on the same pale blue-to-white ground, with the same
       lakeside line drawing along its foot. The drawing is what stops six
       stacked bands of white cards from reading as a slide deck.
     · Headlines are navy, not near-black. On a ground this pale, `--ink-900`
       looks like body copy that got bigger; `--blue-900` reads as a voice.
     · Cards are opaque white with a hairline and a wide, low shadow. They sit
       ON the drawing, which is what makes the page feel layered rather than
       decorated.
     · Yellow appears exactly twice per page — the call to action at the top
       and the one at the bottom — plus the relationship band's figure. It is
       the accent, not a third brand colour.

   SCOPE WARNING. These rules ship in the same bundle as every other page's
   stylesheet, so a bare `.metric` or `.section` selector here would reach the
   homepage. Everything below is either prefixed (`csp-`, `csx-`) or nested
   under one of those prefixes. `.metric` and `.outcome` are the two exceptions
   and they are deliberate: those blocks were lifted here wholesale from
   results.css when the evidence moved off the homepage, and they are used
   nowhere else.
   ========================================================================= */

/* Grid and flex children default to `min-width: auto`, which lets a long
   unbroken string push a column wider than its track. */
.csp-over__grid > *,
.csp-res__grid > *,
.csp-ask > * { min-width: 0; }

/* --- The shared band ------------------------------------------------------
   The bands share one ground and one set of positioning rules; only the
   masthead carries the scene at its foot. */
.csp-over,
.csp-chal,
.csp-del,
.csp-sup,
.csp-res {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.csp-over__inner,
.csp-chal__inner,
.csp-del__inner,
.csp-sup__inner,
.csp-res__inner {
  position: relative;
  z-index: 1;
}

/* One continuous ground, as the product pages use (`product-page.css`): every
   band below the masthead sits on the same `--blue-50` field, and what marks
   the end of one band is the illustration's horizon rather than a change of
   colour. The white cards carry the contrast, which is why they read more
   clearly here than they did against a white ground.

   The masthead keeps its own gradient. The band under it starts exactly where
   that gradient ends and eases into the field over its first quarter, so the
   two do not meet in a hard line across the page. */
.csp-over { background: linear-gradient(180deg, #FFFFFF 0%, var(--blue-50) 78%, var(--blue-100) 100%); }
.csp-chal { background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-50) 26%); }
.csp-sup,
.csp-res  { background: var(--blue-50); }

/* The delivery band breaks the field, the way the product pages break theirs
   with the yellow package band (`.sc-demo` in product-page.css). The rules are
   restated here rather than reused because the theme enqueues only this
   stylesheet on a case study.

   A band is a visible container, so it needs its own air at the top — and so
   does whatever section follows it — which `.section--flow + .section--flow`
   would otherwise strip. */
.csp-del { background: #F5F5C6; }
.csp-del.section.section--flow,
.csp-del + .section.section--flow { padding-top: var(--section-y); }

/* The halftone corners: one fan out of the top right, one out of the bottom
   left. What makes it a halftone rather than a dot grid is that the dots
   change SIZE — heavy at the corner, fine as they travel away from it.

   Three layers, because a CSS dot pattern has a single fixed radius. Each
   draws the same lattice at a different radius and is masked to a different
   reach from the corner. Where they overlap they share centres, so the largest
   wins and the eye reads one field growing toward the corner. A mask on the
   element also clips its own pseudo-elements, so the element carries the
   widest reach and each pseudo-element narrows it from there. */
.csp-halftone {
  --dot: #D8D834;
  --pitch: 13.5px;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 0.9px, transparent 1.05px);
  background-size: var(--pitch) var(--pitch);
}
.csp-halftone::before,
.csp-halftone::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: var(--pitch) var(--pitch);
}
.csp-halftone::before { background-image: radial-gradient(circle, var(--dot) 1.8px, transparent 1.95px); }
.csp-halftone::after  { background-image: radial-gradient(circle, var(--dot) 2.8px, transparent 2.95px); }

.csp-halftone--tr {
  top: 0;
  right: 0;
  width: 34rem;
  height: 29rem;
  -webkit-mask-image: radial-gradient(78% 78% at 100% 0%, #000 42%, transparent 100%);
  mask-image: radial-gradient(78% 78% at 100% 0%, #000 42%, transparent 100%);
}
.csp-halftone--tr::before {
  -webkit-mask-image: radial-gradient(52% 52% at 100% 0%, #000 34%, transparent 100%);
  mask-image: radial-gradient(52% 52% at 100% 0%, #000 34%, transparent 100%);
}
.csp-halftone--tr::after {
  -webkit-mask-image: radial-gradient(30% 30% at 100% 0%, #000 26%, transparent 100%);
  mask-image: radial-gradient(30% 30% at 100% 0%, #000 26%, transparent 100%);
}

.csp-halftone--bl {
  bottom: 0;
  left: 0;
  width: 26rem;
  height: 24rem;
  -webkit-mask-image: radial-gradient(78% 78% at 0% 100%, #000 42%, transparent 100%);
  mask-image: radial-gradient(78% 78% at 0% 100%, #000 42%, transparent 100%);
}
.csp-halftone--bl::before {
  -webkit-mask-image: radial-gradient(52% 52% at 0% 100%, #000 34%, transparent 100%);
  mask-image: radial-gradient(52% 52% at 0% 100%, #000 34%, transparent 100%);
}
.csp-halftone--bl::after {
  -webkit-mask-image: radial-gradient(30% 30% at 0% 100%, #000 26%, transparent 100%);
  mask-image: radial-gradient(30% 30% at 0% 100%, #000 26%, transparent 100%);
}

/* Below this the copy runs the full width and the corners are not free. */
@media (max-width: 899px) {
  .csp-halftone { display: none; }
}

/* --- Eyebrow ---------------------------------------------------------------
   Short rule, tracked label, short rule. */
.csp-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(0.75rem, 0.6rem + 0.6vw, 1.1rem);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csp-eyebrow--center { justify-content: center; }
.csp-eyebrow--start { justify-content: flex-start; }
.csp-eyebrow--start .csp-eyebrow__rule:first-child { display: none; }
.csp-eyebrow__rule {
  width: clamp(1.5rem, 3vw, 2.75rem);
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* --- Band headings --------------------------------------------------------- */
.csp-band__title {
  margin: 0 auto;
  /* Wide enough that a band heading sits on two lines. At 20ch the longer
     ones ran to four, which reads as a stack of fragments rather than as one
     sentence. `text-wrap: balance` then evens the two. */
  max-width: 44ch;
  color: var(--blue-900);
  text-align: center;
  text-wrap: balance;
}
.csp-band__title--start { margin-inline: 0; text-align: left; max-width: 34ch; }

.csp-band__lead {
  margin: clamp(0.85rem, 0.7rem + 0.8vw, 1.35rem) auto 0;
  max-width: 62ch;
  color: var(--text-secondary);
  text-align: center;
  text-wrap: pretty;
}
.csp-band__lead--start { margin-inline: 0; text-align: left; max-width: 58ch; }
.csp-band__lead--start p { margin: 0 0 0.85rem; }
.csp-band__lead--start p:last-child { margin-bottom: 0; }

/* Title left, lead right. Stacked, these two leave the whole right half of the
   band empty — the title is held to 18ch and the lead to 58ch, so neither
   reaches even half the container on its own. */
/* Tops aligned, not baselines: the lead can run several times the height of
   the heading beside it, and bottom alignment then drops the heading to the
   foot of the row with nothing above it. */
.csp-band__head { display: grid; gap: clamp(1rem, 0.8rem + 2vw, 2.75rem); align-items: start; }
@media (min-width: 900px) {
  /* The heading takes the larger share: these are the two bands whose titles
     are longest, and an even split pushed them to three and four lines.

     Where the band also carries the handwritten signature, the lead has a
     third column taking room from it, so the split moves back towards the
     lead — otherwise it runs to ten narrow lines beside a two-line title. */
  .csp-band__head { grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.7fr) auto; }
  .csp-band__head:has(.csp-headmark) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) auto; }
  .csp-band__head .csp-band__lead--start { margin-top: 0; }
}

/* In these two bands the signature is a third column of the head, not a
   floating corner mark: the head already fills the width, and an absolutely
   placed mark landed on top of the lead. */
.csp-headmark { align-self: start; margin-block-start: 0.35rem; }
@media (max-width: 1199px) { .csp-headmark { display: none; } }

/* ============================================================================
   1 — Project overview
   ========================================================================= */

/* The foot is deep enough to hold the scene with the scope chips clear of the
   tree line — the artwork has a definite horizon and content resting on it
   looks dropped. */
.csp-over {
  padding-top: clamp(7rem, 5rem + 8vw, 10.5rem);
  padding-bottom: clamp(9rem, 6rem + 12vw, 15rem);
}

/* The scene, closing the masthead. `object-fit: cover` anchored to the bottom
   keeps the horizon where it was drawn and crops into the sky instead, which
   is the empty part. On a phone that crop would be severe — the artwork is
   nearly six times as wide as it is high — so below 700px it scales to the
   width and the band shortens to match rather than showing one tree at 6x. */
.csp-scape {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: clamp(130px, 17vw, 240px);
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}
@media (max-width: 699px) {
  .csp-scape { height: auto; max-height: 46vw; object-fit: contain; }
}

.csp-back { margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.csp-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out-soft);
}
.csp-back a:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.csp-back svg { flex: none; }

.csp-over__grid {
  display: grid;
  /* No row gap: stacked, the breadcrumb carries its own margin and the stage
     follows the copy directly. The generous gap is between columns only. */
  column-gap: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  row-gap: 0;
  align-items: center;
}
@media (min-width: 980px) {
  .csp-over__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: auto 1fr;
  }
  .csp-back { grid-area: 1 / 1; }
  .csp-over__copy { grid-area: 2 / 1; }
  /* Spanning both rows, pinned to the top: the stage starts level with the
     breadcrumb rather than with the eyebrow below it. */
  .csp-stage { grid-area: 1 / 2 / span 2 / auto; align-self: start; }
}

.csp-over__eyebrow {
  margin: 0 0 clamp(0.85rem, 0.7rem + 0.6vw, 1.25rem);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csp-over__eyebrow span { margin-inline: 0.35em; }

.csp-over__headline {
  margin: 0;
  /* Wide enough that a long headline fills its column rather than running
     down the left of it and leaving the rest of the masthead empty. The
     column, not this cap, is what usually governs. */
  max-width: 23ch;
  color: var(--blue-900);
  text-wrap: balance;
}
.csp-over__lead {
  margin: clamp(1.1rem, 0.9rem + 1vw, 1.6rem) 0 0;
  max-width: 54ch;
  color: var(--ink-700);
  text-wrap: pretty;
}
.csp-over__sub {
  margin: 0.9rem 0 0;
  max-width: 58ch;
  color: var(--text-muted);
  text-wrap: pretty;
}
.csp-over__cta { margin: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) 0 0; }

/* Scope chips. White on the pale ground, so they read as objects laid on the
   page rather than as a second row of buttons competing with the yellow one. */
/* Two across, not four. The guide runs these in a single row, but it has the
   full page width to do it in; here they share the masthead with a headline
   and sit in a 45% column, where four across breaks to 3 + 1. A 2 x 2 block of
   equal tiles is the same information without the orphan. */
.csp-scope {
  display: grid;
  gap: 0.6rem;
  margin: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.csp-scope__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200), 0 6px 16px -12px rgb(14 47 99 / 0.5);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-900);
}
@media (min-width: 420px) { .csp-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.csp-scope__item svg { flex: none; color: var(--blue-500); }

/* A chip that carries a figure and the line qualifying it. The two stack, and
   the chip gains the height to hold them; a single-line chip is unaffected. */
.csp-scope__item--two { align-items: flex-start; padding-block: 0.7rem; }
.csp-scope__item--two svg { margin-block-start: 0.1rem; }
.csp-scope__item--two > span { display: grid; gap: 0.15rem; min-width: 0; }
.csp-scope__item--two em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
}

/* --- The stage -------------------------------------------------------------
   The client's mark, and the site as residents meet it. Only ever a real
   screenshot: a client with none shows the mark on its own and the column
   closes up rather than framing an empty rectangle. */
.csp-stage {
  --seal-size: clamp(3.25rem, 2.5rem + 3vw, 4.5rem);
  position: relative;
  display: grid;
  justify-items: center;
  /* Tight, because the device mockup carries its own white margin above the
     monitor: the measured gap is bigger than the declared one. */
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 1rem);
  /* Hugs the photograph rather than filling the column, so the mark below can
     be pinned to the picture's corner instead of to the column's far edge. */
  width: fit-content;
  margin-inline: auto;
  max-width: 100%;
}
.csp-stage::before {
  content: '';
  position: absolute;
  inset: -8% -6% 4%;
  border-radius: 50%;
  background: radial-gradient(60% 55% at 50% 45%, rgb(169 203 251 / 0.45) 0%, transparent 72%);
  pointer-events: none;
}
.csp-stage > * { position: relative; }

/* The photograph, framed as a picture. A generous white mount and one soft
   shadow — the supplied images already contain a device, so the frame must not
   pretend to be another one. */
.csp-stage__shot {
  display: block;
  /* Wide enough for a landscape device mockup; a portrait phone photograph
     still sits inside it because the image only ever fills the width. */
  width: min(100%, 34rem);
  padding: 0.75rem;
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px var(--blue-100),
    0 34px 64px -34px rgb(14 47 99 / 0.6),
    0 10px 22px -14px rgb(14 47 99 / 0.28);
}
.csp-stage__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  background: var(--blue-50);
}

/* A cut-out on transparency needs no mount: it has no edge to square off, and
   its own shadow is already drawn into the artwork. Framing one would put a
   white card behind a picture that is deliberately floating. */
.csp-stage__shot--cutout {
  width: min(100%, 38rem);
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.csp-stage__shot--cutout img {
  border-radius: 0;
  background: none;
}

/* The client's mark, centred above the frame: whose site this is, then the
   site itself. */
.csp-stage__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200), 0 14px 30px -18px rgb(14 47 99 / 0.7);
}
/* No photograph: the mark carries the column on its own, so it is allowed to
   grow rather than sitting as a small chip in an empty column. */
.csp-stage--bare { --seal-size: clamp(4.5rem, 3rem + 6vw, 7rem); }

/* ============================================================================
   2 — The challenge     3 — What we delivered
   ========================================================================= */

.csp-cards {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1.2vw, 1.5rem);
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px)  { .csp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .csp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.csp-card {
  display: flex;
  gap: clamp(0.9rem, 0.8rem + 0.5vw, 1.25rem);
  align-items: flex-start;
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 14px 34px -26px rgb(14 47 99 / 0.7);
}
.csp-card--tall { flex-direction: column; gap: 0.9rem; }
.csp-card__head { display: flex; align-items: center; gap: 0.8rem; }
/* Three across, one title runs to a single line and the other two wrap, which
   drops that card's body copy a line clear of its neighbours'. Holding the
   head to two lines puts every body paragraph on the same baseline. */
@media (min-width: 900px) {
  .csp-cards--3 .csp-card__head { min-height: calc(2 * 1.3em); }
}
.csp-card__text { min-width: 0; }
.csp-card__k {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-700);
  text-wrap: pretty;
}
.csp-card--tall .csp-card__k { margin: 0; }
.csp-card__d {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.csp-chip {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(2.6rem, 2.3rem + 1vw, 3.15rem);
  aspect-ratio: 1;
  background: var(--blue-100);
  color: var(--blue-500);
}
.csp-chip--round { border-radius: 50%; }
.csp-chip--square { border-radius: var(--r-md); }

/* A screenshot above the card's text. The row only renders these when EVERY
   card in it has one — see CaseStudyPage.tsx — so this never draws an empty
   frame beside a filled one. */
.csp-shot {
  display: block;
  margin: calc(clamp(1.25rem, 1rem + 1.2vw, 1.85rem) * -1) calc(clamp(1.25rem, 1rem + 1.2vw, 1.85rem) * -1) 0.35rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--blue-50);
  overflow: hidden;
}
.csp-shot img { display: block; width: 100%; height: auto; }

/* --- The plain list, for a client with no card content -------------------- */
.csp-list {
  display: grid;
  gap: 0.75rem;
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) auto 0;
  max-width: 78ch;
  padding: 0;
  list-style: none;
}
@media (min-width: 880px) { .csp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.csp-list__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.csp-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  aspect-ratio: 1;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}

/* --- The journey rail ------------------------------------------------------
   Three steps and the handover at the end of them. One rail on a wide screen;
   below that it stacks and the arrows turn to point down. */
.csp-journey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 0.6rem + 1vw, 1.5rem);
  margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) 0 0;
  padding: clamp(1rem, 0.85rem + 0.8vw, 1.4rem) clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200), 0 14px 34px -28px rgb(14 47 99 / 0.7);
  list-style: none;
  counter-reset: none;
}
/* The same strip used as a lead-in above the cards rather than as a summary
   below them: it sits centred and reads lighter, so it introduces the section
   instead of concluding it. */
.csp-journey--lead {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}
.csp-journey__step {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.5rem + 0.6vw, 1rem);
  flex: 1 1 15rem;
}
.csp-journey__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-500);
}
.csp-journey__k {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-800);
  text-wrap: pretty;
}

.csp-arrow { flex: none; color: var(--blue-300); }
.csp-arrow svg { display: block; }
@media (max-width: 759px) {
  .csp-arrow { align-self: center; rotate: 90deg; }
}

/* ============================================================================
   4 — Delivery and ongoing support
   ========================================================================= */

.csp-steps {
  --step-gap: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  display: grid;
  gap: var(--step-gap);
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .csp-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .csp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .csp-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  /* Four abreast only where each card still holds a readable measure. Below
     this they run two by two, and the arrow between rows is suppressed. */
  .csp-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); --step-gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); }
}
/* Only in the two-column range: there the second card of each row ends the
   row, so its arrow would point into the gutter. Stacked in one column every
   arrow is between two adjacent cards and all of them belong. */
@media (min-width: 760px) and (max-width: 1099px) {
  .csp-steps--4 .csp-step:nth-child(2n) .csp-arrow { display: none; }
}

.csp-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 14px 34px -26px rgb(14 47 99 / 0.7);
}
.csp-step__n {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue-500);
}
.csp-step__glyph { color: var(--blue-500); }
.csp-step__k {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-700);
}
.csp-step__d {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* The arrow rides the gap between two cards on a wide screen, and drops to the
   foot of the card when they stack.

   It is centred INSIDE the gap rather than straddling the card edge. Siblings
   paint in source order, so an arrow that overhangs into the next card's box
   is painted over by that card's background — which is what happened when the
   gap was narrower than the arrow. Hence the wider `--step-gap`. */
.csp-step .csp-arrow {
  position: absolute;
  inset-inline-start: 100%;
  top: 50%;
  /* Explicit, not shrink-to-fit. Anchored at `left: 100%` the available width
     is zero, and the site-wide `svg { max-width: 100% }` then collapses the
     arrow to nothing rather than letting it overhang. */
  width: 28px;
  translate: calc(var(--step-gap) / 2 - 50%) -50%;
}
@media (max-width: 899px) {
  .csp-step .csp-arrow {
    position: static;
    translate: none;
    justify-self: center;
    margin-top: 0.35rem;
    rotate: 90deg;
  }
}

/* --- The relationship band -------------------------------------------------
   Navy, with the figure in yellow. It is the only dark object on the page
   before the closing call to action, and it is carrying the sentence the whole
   section exists to say. */
.csp-relation {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 0.8rem + 1.5vw, 2rem);
  margin: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) 0 0;
  padding: clamp(1.35rem, 1.1rem + 1.4vw, 2rem) clamp(1.5rem, 1.2rem + 2vw, 2.75rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(52% 120% at 88% 50%, rgb(90 146 228 / 0.38) 0%, rgb(90 146 228 / 0) 62%),
    linear-gradient(115deg, var(--blue-900) 0%, var(--blue-800) 58%, var(--blue-700) 100%);
  box-shadow: 0 22px 44px -30px rgb(14 47 99 / 0.85);
}
/* The same halftone the delivery band uses, in white and confined to the far
   corner: enough texture that the right half is not flat navy. */
.csp-relation::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 18rem;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.5) 1.1px, transparent 1.25px);
  background-size: 13.5px 13.5px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 90% at 100% 0%, #000 20%, transparent 100%);
}
.csp-relation__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px var(--border-ink);
  color: var(--blue-300);
}
.csp-relation__figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow-300);
}
.csp-relation__text { display: grid; gap: 0.2rem; min-width: 0; }
.csp-relation__text strong {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 700;
  color: var(--text-on-ink);
}
.csp-relation__text span { font-size: var(--fs-sm); color: var(--text-on-ink-2); }

/* The same bar carrying two or three things that continue, rather than one
   figure. They share the width evenly; the continuity track has no place here
   because each item is already its own statement. */
.csp-relation--strip {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1.2vw, 1.75rem);
  padding-block: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  list-style: none;
}
@media (min-width: 760px) {
  .csp-relation--strip { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
.csp-relation--strip li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.csp-relation--strip strong {
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-on-ink);
  text-wrap: pretty;
}
.csp-relation--strip .csp-relation__glyph { width: 3rem; }

/* The continuity track, pushed to the far end of the row. */
.csp-relation__track {
  flex: none;
  margin-inline-start: auto;
  width: clamp(10rem, 18vw, 15rem);
  height: auto;
  aspect-ratio: 240 / 64;
}
.csp-relation__rail {
  stroke: rgb(255 255 255 / 0.32);
  stroke-width: 2.5;
  stroke-linecap: round;
}
/* The open end: dashed, and in the accent, because it is the part of the
   sentence that says the work has not stopped. */
.csp-relation__rail--on {
  stroke: var(--yellow-300);
  stroke-dasharray: 2 10;
  opacity: 0.85;
}
.csp-relation__pip { fill: rgb(255 255 255 / 0.55); }
.csp-relation__ring { fill: none; stroke: var(--yellow-300); stroke-width: 2.5; }

/* Below this the row wraps and the track would land under the copy on a line
   of its own, reading as a stray graphic rather than as the end of a sentence. */
@media (max-width: 899px) {
  .csp-relation__track { display: none; }
  .csp-relation::after { width: 12rem; }
}

/* ============================================================================
   5 — Results and continued partnership
   ========================================================================= */

.csp-ev {
  display: grid;
  /* Follows the count, so three figures fill the panel rather than leaving a
     fourth cell painted and empty. */
  grid-template-columns: repeat(var(--ev, 4), minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2rem, 1.6rem + 2.4vw, 3rem) 0 0;
  background: var(--blue-200);
  border-radius: var(--r-2xl);
  box-shadow: 0 16px 36px -30px rgb(14 47 99 / 0.8);
  overflow: hidden;
}
.csp-ev--words { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.metric, .outcome {
  background: var(--white);
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
  min-width: 0;
}

/* Figures stay brand blue on every card. The client accent lives in the seal,
   the kind label and the bar; running it through the headline number too would
   have put a 2.4rem word in olive on one study and green on another. */
.metric__value {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue-600);
  margin-bottom: 0.6rem;
}
.metric__word { font-size: 0.62em; letter-spacing: -0.02em; color: var(--blue-900); }
.metric__label {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.metric__bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-100);
  margin-top: 0.85rem;
  overflow: hidden;
}
/* Brand blue, not the client accent. The accent used to earn its place here
   because the seal and the kind label carried it too; on this page neither is
   present any more, so a lone olive or green bar in a navy-and-yellow band
   read as a state, not as a brand. */
.metric__bar i { display: block; height: 100%; border-radius: 2px; background: var(--blue-500); }

.outcome__k {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cid-ink, var(--blue-500));
  margin-bottom: 0.5rem;
}
.outcome__d {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--blue-900);
  text-wrap: pretty;
}

/* A verbatim result statement, for a client with no richer results block. */
.csp-result {
  display: grid;
  gap: 0.5rem;
  margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) 0 0;
  padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 16px 36px -30px rgb(14 47 99 / 0.8);
  border-inline-start: 3px solid var(--blue-400);
}
.csp-result__k {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csp-result__d {
  max-width: 78ch;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--blue-900);
  text-wrap: pretty;
}

/* --- Improvements, and what the client said ------------------------------- */
.csp-res__grid {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1.2vw, 1.5rem);
  margin-top: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  align-items: stretch;
}
.csp-res__grid > * { display: grid; }
@media (min-width: 980px) {
  .csp-res__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  /* Nothing in the left column: the remaining panel takes a readable measure
     rather than stretching the full width of the band. */
  .csp-res__grid--one { grid-template-columns: minmax(0, 40rem); justify-content: center; }
}

.csp-improve {
  align-content: start;
  padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 16px 36px -30px rgb(14 47 99 / 0.8);
}
.csp-improve__k {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: var(--blue-700);
}
.csp-improve__list { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.csp-improve__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--blue-100);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--blue-900);
  text-wrap: pretty;
}
.csp-improve__list li:last-child { border-bottom: 0; }
/* A finding with a sentence qualifying it: the claim leads, the evidence sits
   under it. A plain string entry keeps the single-line treatment above. */
.csp-improve__pair { display: grid; gap: 0.2rem; min-width: 0; }
.csp-improve__pair b { font-weight: 700; color: var(--blue-800); }
.csp-improve__pair > span { font-size: var(--fs-xs); line-height: 1.55; color: var(--text-secondary); }

.csp-stats {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 560px) { .csp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.csp-stat {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-lg);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-100);
}
.csp-stat > div { display: grid; gap: 0.15rem; min-width: 0; }
.csp-stat b {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-700);
}
.csp-stat span { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.csp-stat .csp-chip { background: var(--white); width: 2.4rem; }

/* --- The quote panel -------------------------------------------------------
   Yellow, because in the guide this is the one warm object on the page and the
   thing a prospect scans for. Text on it is navy: `--yellow-300` is far too
   light to take white, and the body copy here has to clear 4.5:1. */
.csp-say {
  position: relative;
  align-content: start;
  margin: 0;
  padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--yellow-200) 0%, var(--yellow-300) 100%);
  box-shadow: inset 0 0 0 1px var(--yellow-400), 0 16px 36px -30px rgb(110 110 12 / 0.55);
}
.csp-say__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--blue-500);
}
.csp-say__k {
  margin: 0.85rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: var(--blue-700);
}
.csp-say__body { display: grid; gap: 0.9rem; margin: 0; }
.csp-say__body p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--blue-900);
  text-wrap: pretty;
}
/* A long statement leads with its opening line and lets the rest sit back a
   step, so the panel still reads as a quotation rather than as a wall of
   italic display type. */
/* The full statement, folded away under the attribution. */
.csp-say__more {
  margin-block-start: clamp(1rem, 0.85rem + 0.8vw, 1.5rem);
  padding-block-start: clamp(1rem, 0.85rem + 0.8vw, 1.5rem);
  border-block-start: 1px solid var(--yellow-500);
}
.csp-say__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-700);
  cursor: pointer;
  list-style: none;
}
.csp-say__more > summary::-webkit-details-marker { display: none; }
.csp-say__more > summary:hover { color: var(--blue-900); }
.csp-say__more > summary svg { transition: rotate var(--d-fast) var(--ease-out-soft); }
.csp-say__more[open] > summary svg { rotate: 180deg; }
.csp-say__more > p {
  margin: 0.85rem 0 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--blue-900);
  text-wrap: pretty;
}
@media (prefers-reduced-motion: reduce) {
  .csp-say__more > summary svg { transition: none; }
}

.csp-say__body p ~ p {
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
  line-height: 1.6;
  color: var(--blue-800);
}

/* The unapproved state. The source document says, in as many words, to confirm
   the exact quotation and job title before publication, so the page shows the
   slot rather than the draft. The dashed rule is the signal that this is
   waiting on someone, not a design flourish. */
/* A reference invitation is three short things, where a testimonial is a
   paragraph. Left to stretch beside a long improvements list it would be most
   of a column of empty yellow, so it takes its own height instead. */
.csp-say--ref { align-self: start; }

/* The reference invitation, where a client offers those instead of a published
   testimonial. Solid, not dashed: nothing here is waiting to be filled in. */
/* Following the story, the invitation is a separate thought: a rule between
   them, matching the one above an attribution. */
.csp-say__body + .csp-say__ref {
  margin-block-start: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  padding-block-start: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  border-block-start: 1px solid var(--yellow-500);
}

.csp-say__ref {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--blue-900);
  text-wrap: pretty;
}
.csp-say__refcta { margin: clamp(1.25rem, 1rem + 1.2vw, 1.85rem) 0 0; }

.csp-say__slot {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--yellow-500);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.45);
  font-size: var(--fs-sm);
  font-style: italic;
  text-align: center;
  color: var(--yellow-700);
}

.csp-say__by {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(110 110 12 / 0.22);
}
.csp-say__by strong { font-size: var(--fs-sm); font-weight: 700; color: var(--blue-800); }
.csp-say__by > span { font-size: var(--fs-xs); color: var(--yellow-700); }
.csp-say__pending { font-style: italic; }

.csp-say__note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(110 110 12 / 0.22);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--blue-900);
  text-wrap: pretty;
}
.csp-say__note-glyph { flex: none; color: var(--blue-500); }

/* ============================================================================
   6 — Start a conversation, and the next study
   ========================================================================= */

/* The field runs to the end of the page; the CTA panel is a dark object on it. */
.csp-foot { background: var(--blue-50); }

.csp-ask {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 2.4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 1.6rem + 3vw, 3.5rem) clamp(1.5rem, 1.2rem + 3vw, 3.5rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-500) 55%, var(--blue-600) 100%);
  box-shadow: 0 30px 60px -38px rgb(14 47 99 / 0.9);
}
/* The art takes the larger share, because the copy column is sized to the
   measure the paragraph keeps anyway — so the channel between the two halves
   is the gap and nothing else. Side by side only from 1040: narrower than
   that the copy column cannot hold a readable line beside a drawing this
   wide, and the two read better stacked. The 22rem floor holds that measure
   at the breakpoint itself, where the ratio alone would undercut it.
   Column gap only: stacked, the halves still want the generous row gap. */
@media (min-width: 1040px) {
  .csp-ask {
    grid-template-columns: minmax(22rem, 1fr) minmax(0, 1.45fr);
    column-gap: 60px;
  }
}
.csp-ask > .csp-ask__copy,
.csp-ask > .csp-ask__side { position: relative; z-index: 1; }

.csp-ask__k { margin: 0; max-width: 16ch; color: var(--text-on-ink); text-wrap: balance; }
.csp-ask__d {
  margin: clamp(0.9rem, 0.75rem + 0.8vw, 1.35rem) 0 clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  max-width: 46ch;
  color: var(--text-on-ink-2);
  text-wrap: pretty;
}
/* Beside the drawing the column is already the measure, so the caps only put
   white space between the two halves. Declared after the rules they override:
   a media query carries no specificity of its own. */
@media (min-width: 1040px) {
  .csp-ask__k,
  .csp-ask__d { max-width: none; }
}

.csp-ask__side { display: grid; align-content: center; gap: 1.5rem; }

/* The drawing: browser, wires, outcomes. The wire column is fixed because the
   arrows are drawn to a fixed viewBox — stretching it distorts the curve. */
.csp-ask__art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(2.75rem, 5vw, 4.25rem) minmax(0, 0.72fr);
  align-items: center;
}

/* The browser. Chrome is drawn rather than photographed: three dots, a screen
   and the nav, which is as much as the picture needs to read as a website. */
.csp-win {
  display: grid;
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 22px 44px -28px rgb(6 24 56 / 0.95);
}
.csp-win__bar { display: flex; gap: 0.3rem; padding-inline-start: 0.15rem; }
.csp-win__bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue-200);
}
.csp-win__screen {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-50) 100%);
}
/* The screenshot fills the screen, which keeps the frame at the height it
   already had — only what is inside it changed. Anchored top left: a browser
   shows a page from its top, and the masthead is the part that has to be
   there for the picture to read as a website at this size. */
.csp-win__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.csp-win__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; }
.csp-win__tabs > span {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.2rem;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue-500);
}
.csp-win__tabs em {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--blue-800);
}

/* The two arrows out of the browser. Stroked in the band's own pale blue so
   they read as a connection rather than as a third object. */
.csp-ask__wires {
  width: 100%;
  height: auto;
  /* Matches the viewBox. Stretching it flattens one curve and fattens the
     stroke on one axis, which turns the two arrows into a bracket. */
  aspect-ratio: 60 / 200;
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Two panels, stacked beside the browser the way the guide draws them. */
.csp-ask__panels {
  display: grid;
  gap: clamp(0.75rem, 0.6rem + 0.8vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.csp-ask__panels li {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: clamp(5.5rem, 10vw, 7rem);
  padding: clamp(0.9rem, 0.8rem + 0.6vw, 1.25rem) 0.85rem;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 18px 36px -26px rgb(6 24 56 / 0.9);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  color: var(--blue-800);
}
.csp-ask__panels svg { color: var(--blue-500); }

/* Narrow: the three columns will not hold, so the wires go and the outcomes
   move under the browser as a row. The arrows were the only thing saying
   "these follow from that", and stacked order says it well enough. */
@media (max-width: 719px) {
  .csp-ask__art { grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 4vw, 1.5rem); }
  .csp-ask__wires { display: none; }
  .csp-ask__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The underlined line the guide sets beside the illustration. The rule is
   yellow and short — the same accent as the button, tying the two halves of
   the band together. */
.csp-ask__tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-on-ink);
}
.csp-ask__tag::after {
  content: '';
  display: block;
  width: 5.5rem;
  height: 3px;
  margin: 0.5rem auto 0;
  border-radius: 2px;
  background: var(--yellow-300);
}

/* --- Narrow screens -------------------------------------------------------- */
@media (max-width: 719px) {
  .csp-ev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 439px) {
  .csp-ev { grid-template-columns: minmax(0, 1fr); }
  .csp-scope__item span { max-width: none; }
}


/* ============================================================================
   The Oak Park shapes
   ---------------------------------------------------------------------------
   Four blocks its guide asks for that the other four studies do not set: the
   strip of three under the masthead, challenge-and-change pairs, alternating
   picture-and-copy features, and the navy bar carrying a sentence. Each is
   optional in the data, so nothing here reaches another page.
   ========================================================================= */

/* --- 1 · What the project brings together ---------------------------------
   Three things across the foot of the masthead, on one white card, so they
   read as a summary of the page rather than as its first section. */

.csp-bring {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.65rem) clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 18px 40px -32px rgb(14 47 99 / 0.75);
  list-style: none;
}
@media (min-width: 820px) {
  .csp-bring { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Hairlines between, not around: the card is the container, the rules only
     separate what is inside it. */
  .csp-bring > li + li {
    padding-inline-start: clamp(1rem, 0.8rem + 1vw, 1.6rem);
    border-inline-start: 1px solid var(--blue-100);
  }
}
.csp-bring > li { display: flex; align-items: flex-start; gap: 0.85rem; min-width: 0; }
.csp-bring > li > div { display: grid; gap: 0.25rem; min-width: 0; }
.csp-bring b { font-size: var(--fs-sm); font-weight: 700; color: var(--blue-900); }
.csp-bring span { font-size: var(--fs-xs); line-height: 1.55; color: var(--text-secondary); }

/* Two buttons in the masthead, wrapping rather than shrinking. */
.csp-over__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- 2 · Challenge-and-change pairs ----------------------------------------
   Problem on the left, what replaced it on the right, an arrow between. The
   two halves are tinted differently so the eye can tell which is which before
   reading either. */

.csp-pairs {
  display: grid;
  gap: clamp(1rem, 0.85rem + 1vw, 1.5rem);
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.csp-pair {
  padding: clamp(1.1rem, 0.95rem + 0.9vw, 1.6rem);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 14px 34px -30px rgb(14 47 99 / 0.6);
}
.csp-pair__k {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(0.85rem, 0.7rem + 0.6vw, 1.25rem);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-900);
}
.csp-pair__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-500);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: #fff;
}

.csp-pair__row { display: grid; gap: clamp(0.75rem, 0.6rem + 0.8vw, 1.25rem); align-items: center; }
@media (min-width: 900px) {
  /* The glyph keeps its own column so the two text halves stay equal. */
  .csp-pair__row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto;
  }
}
.csp-pair__was,
.csp-pair__now {
  min-width: 0;
  padding: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem);
  border-radius: var(--r-md);
}
.csp-pair__was { background: var(--page); }
.csp-pair__now { background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-100); }
.csp-pair__lbl {
  margin: 0 0 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csp-pair__was .csp-pair__lbl { color: var(--text-secondary); }
.csp-pair__d { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--blue-900); text-wrap: pretty; }

.csp-pair__row > .csp-arrow { position: static; translate: none; justify-self: center; color: var(--blue-400); }
@media (max-width: 899px) {
  /* Stacked, the arrow points down the page rather than across it. */
  .csp-pair__row > .csp-arrow { rotate: 90deg; }
}
.csp-pair__glyph { justify-self: center; color: var(--blue-300); }
@media (max-width: 899px) { .csp-pair__glyph { display: none; } }

/* The route the change produced, and the sentence it proves. */
.csp-flow { margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.csp-journey--flow { margin-top: 0; background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-200); }
.csp-flow__note {
  margin: 0.85rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  color: var(--blue-700);
  text-wrap: balance;
}

/* --- 3 · Alternating picture-and-copy features -----------------------------
   Copy and picture swap sides down the list, so four blocks read as a sequence
   rather than as four identical rows. */

.csp-feats {
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 2.4vw, 3.25rem);
  margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
}
.csp-feat {
  display: grid;
  gap: clamp(1rem, 0.85rem + 1.2vw, 2rem);
  align-items: center;
}
@media (min-width: 900px) {
  .csp-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Even blocks put the picture first; `order` rather than `direction` so the
     reading order stays copy-then-picture for a screen reader. */
  .csp-feat:nth-child(even) .csp-feat__copy { order: 2; }
  .csp-feat:nth-child(even) .csp-feat__art  { order: 1; }
  .csp-feat__flow { grid-column: 1 / -1; order: 3; }
}
.csp-feat__copy { min-width: 0; }
.csp-feat__n {
  margin: 0 0 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csp-feat__k {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--blue-900);
  text-wrap: balance;
}
.csp-feat__d { margin: 0; font-size: var(--fs-md); line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

/* Who the block is for, set apart from the description that precedes it. */
.csp-feat__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: clamp(1rem, 0.85rem + 0.6vw, 1.35rem) 0 0;
  padding: clamp(0.8rem, 0.7rem + 0.5vw, 1.1rem);
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--blue-900);
}
.csp-feat__note b { color: var(--blue-700); }
.csp-feat__glyph { flex: none; color: var(--blue-500); }

.csp-feat__art { min-width: 0; }
.csp-feat__shot {
  display: grid;
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 22px 48px -34px rgb(14 47 99 / 0.7);
}
/* Every screenshot sits in the same frame whatever shape it arrives in, so
   the alternating blocks keep one rhythm down the section. 17/10 is the shape
   of the first one, so that one is effectively uncropped.

   Anchored to the top left, not the centre. A page is read from the top down
   and from the left, so the foot and the right-hand edge are the parts worth
   losing: a screenshot missing its right edge reads as a page continuing off
   frame, while one missing its left reads as a picture that failed to load.
   Centring cost these their filter rails and search labels, half a control at
   a time. */
.csp-feat__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 17 / 10;
  object-fit: cover;
  object-position: left top;
  border-radius: var(--r-sm);
}
/* Empty: a browser bar and a wireframe, labelled, so nobody reads it as the
   client's actual design. */
.csp-feat__shot--empty { position: relative; aspect-ratio: 17 / 10; align-content: start; }
.csp-feat__bar { display: flex; gap: 0.3rem; padding: 0.15rem 0.2rem 0.35rem; }
.csp-feat__bar i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--blue-200); }
.csp-feat__wire { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; align-content: start; }
.csp-feat__wire i { height: 1.6rem; border-radius: 5px; background: var(--blue-50); }
.csp-feat__wide { grid-column: span 3; height: 2.8rem !important; }
.csp-feat__tag {
  position: absolute;
  inset-inline: 0.6rem;
  bottom: 0.6rem;
  padding: 0.35rem;
  border-radius: 6px;
  background: var(--blue-50);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-align: center;
  color: var(--blue-500);
}
.csp-feat__flow { min-width: 0; }
/* The ordinal is for the data, not the page — the numbered label carries it. */
.csp-feat__i { display: none; }

/* The button that closes the section, centred under the last block. */
.csp-del__cta { margin: clamp(2rem, 1.6rem + 2.4vw, 3.25rem) 0 0; text-align: center; }

/* --- 4 · A step's tag, and the navy bar carrying a sentence ---------------- */

.csp-step__tag {
  justify-self: start;
  margin: 0.75rem 0 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue-700);
}
.csp-relation--say { gap: clamp(0.9rem, 0.8rem + 0.6vw, 1.4rem); }
.csp-relation--say .csp-relation__glyph { width: 3rem; }

/* --- 5 · Quote first ------------------------------------------------------- */

@media (min-width: 980px) {
  /* The quotation leads and the evidence sits beside it. Column widths swap
     with the order so the wider column is still the one with more in it. */
  .csp-res__grid--said { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .csp-res__grid--said > :first-child { order: 2; }
  .csp-res__grid--said > :last-child  { order: 1; }
}
/* With no findings list beside them, the tiles are the column — so they stack
   full width and lose the card that was holding a list as well. */
.csp-res__grid--said .csp-improve {
  padding: 0;
  background: none;
  box-shadow: none;
}
.csp-res__grid--said .csp-stats { grid-template-columns: minmax(0, 1fr); margin-top: 0; }

/* --- 6 · The closing panel's extras ---------------------------------------- */

.csp-ask__eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.csp-ask__second { margin: clamp(1rem, 0.85rem + 0.6vw, 1.35rem) 0 0; }
.csp-ask__second a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-on-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(255 255 255 / 0.45);
}
.csp-ask__second a:hover { text-decoration-color: currentColor; }
.csp-ask__foot {
  margin: clamp(0.9rem, 0.8rem + 0.5vw, 1.2rem) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-on-ink-2);
}
/* ============================================================================
   The work — index (/case-studies)
   ---------------------------------------------------------------------------
   A roster page: a blue hero with a drawn civic scene, three story cards, the
   rest of the clients, the two that have not launched, and a navy closing
   panel. Flatter than the case-study pages on purpose — thin borders, one
   shadow, no gradients on the cards — so a grid of fifteen things stays calm.

   Every rule here is prefixed `wk-`. Page stylesheets are global once bundled,
   so an unprefixed `.card` or `.grid` would reach every other page.
   ========================================================================= */

.wk-h {
  margin: 0 0 clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem);
  color: var(--blue-900);
  text-wrap: balance;
}

/* --- Hero ------------------------------------------------------------------
   The scene sits in its own column and shrinks away below 900px rather than
   wrapping under the copy, where it would push the first card off the fold. */

.wk-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* No bottom padding above 900px: the scene is drawn to a ground line and
     sits on the band's own edge, the way the reference has it. */
  padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) clamp(2.5rem, 1.6rem + 4vw, 4rem);
  background: var(--blue-50);
}
@media (min-width: 900px) {
  .wk-hero { padding-bottom: 0; }
}
.wk-hero__inner {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}
/* The copy keeps the larger share: the headline is written as two lines and
   has to hold them, or it breaks to three and stops reading as a pair. */
@media (min-width: 900px) {
  .wk-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
  }
}
@media (min-width: 1200px) {
  .wk-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.wk-hero__copy { min-width: 0; }
.wk-hero__eyebrow {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
}
/* Two lines, always — the headline is written as two and reads as one
   statement broken in the middle, not as a paragraph that happens to wrap. */
.wk-hero__title {
  display: grid;
  margin: clamp(0.6rem, 0.5rem + 0.5vw, 1rem) 0 0;
  color: var(--blue-900);
  text-wrap: balance;
}
.wk-hero__lead {
  margin: clamp(0.9rem, 0.75rem + 0.8vw, 1.35rem) 0 0;
  max-width: 48ch;
  color: var(--text-secondary);
}

.wk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
}
.wk-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-900);
  text-decoration: none;
  transition: box-shadow var(--d-fast) var(--ease-out-soft),
              background var(--d-fast) var(--ease-out-soft);
}
.wk-pill:hover { background: var(--blue-100); box-shadow: inset 0 0 0 1px var(--blue-400); }

/* Wider than its column and pulled right, so the stand of trees runs off the
   edge of the band instead of stopping inside the gutter. */
.wk-hero__art { min-width: 0; }
@media (min-width: 900px) {
  .wk-hero__art {
    width: calc(100% + clamp(1rem, 4vw, 5rem));
    margin-inline-end: clamp(-5rem, -4vw, -1rem);
  }
}
.wk-scene {
  display: block;
  width: 100%;
  height: auto;
  color: var(--blue-300);
  opacity: 0.9;
}
@media (max-width: 899px) {
  /* Below the fold it is decoration competing with the first card. */
  .wk-hero__art { display: none; }
}

/* --- Grids and cards -------------------------------------------------------
   One card rule for the whole page; the variants only add. */

.wk-grid {
  display: grid;
  gap: clamp(1rem, 0.85rem + 0.9vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wk-grid > li { display: grid; min-width: 0; }
@media (min-width: 680px)  { .wk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 680px)  { .wk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .wk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Flex rather than grid: the foot link uses `margin-top: auto` to sit on the
   card's baseline, which a grid with `align-content: start` would ignore — and
   a row whose cards carry different amounts of copy would lose its line of
   links. */
.wk-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  height: 100%;
  padding: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200);
  transition: box-shadow var(--d-fast) var(--ease-out-soft);
}
.wk-card:has(.wk-go:hover),
.wk-card:has(.wk-go:focus-visible) { box-shadow: inset 0 0 0 1px var(--blue-400); }

.wk-card__head { display: flex; align-items: flex-start; gap: 0.85rem; min-width: 0; }
.wk-card__head > div { display: grid; gap: 0.35rem; min-width: 0; }
.wk-card__icon {
  flex: none;
  align-self: start;
  display: grid;
  place-items: center;
  width: fit-content;
  color: var(--blue-500);
}

.wk-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
  text-wrap: balance;
}
.wk-card__type { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-secondary); }
.wk-card__d { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

/* The pale duration tag. Only ever printed where a duration is known. */
.wk-chip {
  /* Both, because the chip appears in a flex card and in the grid inside a
     card head, and each container honours a different one. */
  align-self: start;
  justify-self: start;
  margin: 0.15rem 0 0;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue-700);
}

/* Pushed to the card's foot so the links line up across a row whose cards
   carry different amounts of copy. */
.wk-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: start;
  justify-self: start;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.wk-go:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.wk-go svg { flex: none; }

/* --- The story cards' screenshot frame ------------------------------------- */

.wk-stories { background: var(--white); }

.wk-shot {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.55rem;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-100);
}
.wk-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 7;
  object-fit: cover;
  border-radius: 6px;
}
/* Empty: a browser bar, a wireframe of blocks, and a line saying what is
   missing — so nobody mistakes it for the client's actual design. */
.wk-shot--empty { position: relative; aspect-ratio: 11 / 7; align-content: start; }
.wk-shot__bar { display: flex; gap: 0.3rem; padding: 0.1rem 0.15rem 0.3rem; }
.wk-shot__bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue-200);
}
.wk-shot__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  align-content: start;
}
.wk-shot__body i { height: 1.4rem; border-radius: 4px; background: var(--blue-100); }
.wk-shot__wide { grid-column: span 3; }
.wk-shot__wide:first-child { height: 2.6rem; }
.wk-shot__note {
  position: absolute;
  inset-inline: 0.55rem;
  bottom: 0.55rem;
  padding: 0.3rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.86);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-align: center;
  color: var(--blue-500);
}

/* --- The rest of the roster ------------------------------------------------ */

.wk-more { background: var(--white); }
/* The one card that is not a project, so it is the one card that is tinted. */
.wk-card--promo {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}
.wk-card--promo .wk-card__icon { color: var(--blue-600); }

/* --- Not launched ---------------------------------------------------------- */

.wk-prog { background: var(--blue-50); }
.wk-card--prog { gap: 0.9rem; }
.wk-badge {
  align-self: start;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--yellow-200);
  box-shadow: inset 0 0 0 1px var(--yellow-400);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow-700);
}

/* --- Closing panel ---------------------------------------------------------- */

.wk-foot { background: var(--white); }
.wk-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 1.4rem + 2.4vw, 3rem) clamp(1.5rem, 1.2rem + 2.4vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--blue-900);
}
@media (min-width: 900px) {
  .wk-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); }
}
.wk-cta__copy { min-width: 0; position: relative; z-index: 1; }
.wk-cta__k { margin: 0; max-width: 24ch; color: var(--text-on-ink); text-wrap: balance; }
.wk-cta__d {
  margin: 0.75rem 0 clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  max-width: 52ch;
  color: var(--text-on-ink-2);
  text-wrap: pretty;
}
/* Knocked well back: on navy the same line weight reads as a second subject
   rather than as a watermark behind one. */
.wk-scene--ink { color: var(--blue-400); opacity: 0.4; }
@media (max-width: 899px) {
  .wk-scene--ink { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-card, .wk-pill, .wk-go { transition: none; }
}

/* Only ever seen in wp-admin before the Setup screen has run. */
.csx-empty { margin: 0; font-size: var(--fs-md); color: var(--text-secondary); }

/* ============================================================================
   The handwritten corner mark (`ScriptMark`)
   ---------------------------------------------------------------------------
   Set in the display face, italic and loosely spaced so it reads as a signature
   beside the headline rather than as a third heading. Each line steps right,
   which is what gives the stack its hand-drawn rise.
   ========================================================================= */

.pmark {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--blue-300);
  white-space: nowrap;
  user-select: none;
}
.pmark > span { padding-inline-start: calc(var(--i) * 0.7em); }

/* ============================================================================
   Case studies — index (/case-studies)
   ---------------------------------------------------------------------------
   One card per client, carrying the four things the detail page opens with, so
   the card and the page it leads to agree.
   ========================================================================= */

.csx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(7rem, 5rem + 8vw, 11rem);
  padding-bottom: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--blue-50) 100%);
}
.csx-hero__field { position: absolute; inset: 0; background: var(--page-wash); opacity: 0.55; pointer-events: none; }
.csx-hero > .container { position: relative; }
.csx-hero__eyebrow {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.csx-hero__title { margin: 1rem 0 0; max-width: 18ch; color: var(--blue-900); }
.csx-hero__lead { margin: 1.35rem 0 0; max-width: 56ch; color: var(--text-secondary); }

.csx-list-wrap { background: var(--white); }
.csx-list {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px)  { .csx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .csx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.csx-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border), var(--e-1);
  text-decoration: none;
  transition: box-shadow var(--d-base) var(--ease-out-soft),
              transform var(--d-base) var(--ease-out-soft);
}
.csx-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--blue-300), var(--e-2);
}
.csx-card__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
}
.csx-card__stat { display: grid; gap: 0.1rem; margin: 0; }
.csx-card__stat b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue-600);
}
.csx-card__stat span { font-size: var(--fs-sm); color: var(--text-secondary); }

.csx-card__state { margin: 0; min-height: 1.5rem; }
.csx-card__live,
.csx-card__pending {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.csx-card__live { background: #E4F5EA; color: #1E7A44; }
/* Not live yet — the card says so rather than implying a link exists. */
.csx-card__pending { background: #FDF6E0; color: #7A5A05; }

.csx-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue-600);
}
.csx-card:hover .csx-card__go { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .csx-card, .csx-card:hover { transition: none; transform: none; }
}

/* Only ever seen in wp-admin before the Setup screen has run. */
.csx-empty { margin: 0; font-size: var(--fs-md); color: var(--text-secondary); }
