/* Case studies (/case-studies/*) on the v2 system, 10/11/2026. Needs css/v2.css (tokens, .ground-ink,
   type) loaded first. One file for all three pages: their markup and every word on them stay as
   written; this is the look only. The hero and the final call to action carry .ground-ink. */
main > section, main > header { min-height: 0; }
.cs-wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* hero */
.cs-hero { padding: clamp(56px, 7vw, 112px) 0 clamp(56px, 6vw, 96px); }
.cs-hero .breadcrumb { margin: 0 0 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.cs-hero .breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.cs-hero .breadcrumb a:hover { color: var(--ink); }
.cs-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font: 500 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-eyebrow::before { content: ''; flex: none; width: 6px; height: 6px; background: currentColor; }
.cs-hero h1 { max-width: 19ch; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 80px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; animation: riseIn .9s var(--ease) both; }
.cs-hero h1 .hl { color: var(--y); }
.cs-hero .lede { margin-top: 28px; max-width: 60ch; font-size: var(--t-lead); line-height: 1.55; color: var(--muted); animation: fadeUp .8s var(--ease) .25s both; }

/* headline numbers, in the X-mark colours */
.cs-stats { padding: clamp(48px, 6vw, 84px) 0; border-bottom: 1px solid var(--line); }
.cs-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cs-stat-tile { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 3px solid var(--k, var(--ink)); scroll-margin-top: calc(var(--nav) + 24px); }
.cs-stat-tile:nth-child(1) { --k: var(--r); }
.cs-stat-tile:nth-child(2) { --k: var(--g); }
.cs-stat-tile:nth-child(3) { --k: var(--y); }
.cs-stat-tile:nth-child(4) { --k: var(--b); }
.cs-stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.cs-stat-label { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cs-stat-label strong { color: var(--ink); font-weight: 700; }

/* sections */
.cs-section, .cs-next { padding: clamp(80px, 9vw, 128px) 0; }
.section-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-eyebrow::before { content: ''; flex: none; width: 6px; height: 6px; background: currentColor; }
.cs-section h2, .cs-next h2 { max-width: 18ch; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.045em; }
.cs-section .cs-wrap > p:not(.section-eyebrow), .cs-next .cs-wrap > p:not(.section-eyebrow) { margin-top: 20px; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* what we built */
.cs-work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 40px; }
.cs-work-text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.cs-work-text p + p { margin-top: 18px; }
.cs-work-img { overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(36, 38, 39, .55); }
.cs-work-img img { display: block; width: 100%; height: auto; }

/* the receipts: each screenshot in a square card with its source */
.cs-data { background: var(--surface); }
.cs-receipts { display: grid; gap: 40px; margin-top: 48px; }
.cs-receipt { margin: 0; background: var(--c-cream); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(36, 38, 39, .45); scroll-margin-top: calc(var(--nav) + 24px); }
.cs-receipt-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cs-receipt-caption strong { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.cs-receipt-caption .source { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cs-receipt-frame { display: flex; justify-content: center; align-items: center; padding: clamp(16px, 3vw, 36px); background: #fff; }
.cs-receipt-frame a { display: block; cursor: zoom-in; }
.cs-receipt-img { display: block; max-width: 100%; height: auto; box-shadow: 0 0 0 1px var(--line); }

/* how we did it */
.cs-method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; margin-top: 48px; }
.cs-method-item { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--k, var(--ink)); }
.cs-method-item:nth-child(4n+1) { --k: var(--r); }
.cs-method-item:nth-child(4n+2) { --k: var(--g); }
.cs-method-item:nth-child(4n+3) { --k: var(--y); }
.cs-method-item:nth-child(4n+4) { --k: var(--b); }
.cs-method-item .num { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-method-item h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.cs-method-item p { margin: 0; max-width: 54ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.cs-method-item p strong { color: var(--ink); }

/* the client, in their own words */
.cs-testimonial { padding: clamp(80px, 9vw, 128px) 0; background: var(--surface); }
.cs-quote { max-width: 1000px; }
.cs-quote .mark { display: block; width: 18px; height: 18px; margin-bottom: 30px; background: var(--y); font-size: 0; line-height: 0; color: transparent; }
.cs-quote-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.cs-quote-attr { margin-top: 26px; font: 500 13px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs-quote-attr strong { color: var(--ink); font-weight: 700; }

/* final call to action (ink) */
.cs-final { padding: clamp(80px, 9vw, 136px) 0 clamp(64px, 7vw, 104px); }
.cs-final h2 { max-width: 16ch; font-size: clamp(38px, 5.6vw, 88px); line-height: .96; letter-spacing: -.045em; }
.cs-final .cs-wrap > p { margin-top: 24px; max-width: 52ch; font-size: var(--t-lead); line-height: 1.55; color: var(--muted); }
.cs-final-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.cs-btn:active { transform: translateY(1px); }
.cs-btn-primary { background: var(--c-cream); color: var(--c-ink); }
.cs-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.cs-btn-secondary { color: var(--c-cream); box-shadow: inset 0 0 0 1.5px rgba(241, 238, 233, .4); }
.cs-btn-secondary:hover { background: rgba(241, 238, 233, .06); box-shadow: inset 0 0 0 1.5px var(--c-cream); }
.cs-livesite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 56px; padding: 22px 26px; box-shadow: inset 0 0 0 1px var(--line); }
.cs-livesite .ls-text { display: grid; gap: 6px; }
.cs-livesite .ls-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-livesite .ls-url { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.cs-livesite .ls-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; background: var(--y); color: var(--c-ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s ease; }
.cs-livesite .ls-cta:hover { transform: translateY(-1px); }

/* the other case studies */
.cs-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.cs-next-card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-ink); color: var(--c-cream); text-decoration: none; box-shadow: 0 30px 60px -36px rgba(36, 38, 39, .6); transition: transform .35s var(--ease); }
.cs-next-card:hover, .cs-next-card:focus-visible { transform: translateY(-4px); }
.cs-next-img { position: absolute; inset: 0; background-size: cover; background-position: top center; filter: grayscale(.5) brightness(.4); transition: filter .4s ease, transform .8s var(--ease); }
.cs-next-card:hover .cs-next-img { filter: grayscale(0) brightness(.55); transform: scale(1.03); }
.cs-next-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(20px, 3vw, 34px); background: linear-gradient(to top, rgba(20, 21, 22, .85), rgba(20, 21, 22, .2) 70%); }
.cs-next-tag { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.cs-next-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; color: var(--c-cream); }
.cs-next-cta { align-self: flex-start; padding-bottom: 4px; border-bottom: 1.5px solid rgba(241, 238, 233, .45); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }
.cs-next-card:hover .cs-next-cta { color: var(--y); border-color: var(--y); }

/* footer: the shared map, no closing headline above it */
.cs-foot .fcols { margin-top: 0; }

@media (max-width: 1023px) {
  .cs-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cs-work-grid, .cs-method-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .cs-next-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .cs-receipt-caption { padding: 14px 16px; }
  .cs-receipt-frame { padding: 12px; }
  .cs-livesite { padding: 18px; }
  .cs-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero h1, .cs-hero .lede { animation: none; }
  .cs-next-img, .cs-next-card { transition: none; }
}
