/* ============================================================
   MELLOW STUDIO · CASE STUDY (extends styles.css)
   Long-form editorial. Paper base, aubergine bands, orchid accents,
   sage + apricot used sparingly as per-item accents.
   ============================================================ */

/* ── Quick stats band (sits between hero and first section) ── */
.cs-quick-stats {
  background: var(--cs-quick-stats-bg, var(--paper-200));
  padding: 56px 0;
}
.cs-quick-stats-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-quick-stat {
  display: flex; flex-direction: column;
  gap: 20px;
  padding: clamp(32px, 3.4vw, 52px) clamp(20px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
}
.cs-quick-stat:first-child { padding-left: 0; }
.cs-quick-stat:last-child  { padding-right: 0; border-right: none; }

.cs-quick-stat-value {
  margin: 0;
  font-family: var(--f-primary);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.cs-quick-stat-value .big { display: inline; }
.cs-quick-stat-value .sub {
  display: inline;
  font-weight: 400;
  font-size: 0.46em;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-left: 0.28em;
}
.cs-quick-stat-arrow {
  display: inline-block;
  width: 1.0em;
  height: 0.5em;
  vertical-align: 0.14em;
  margin: 0 0.04em;
  color: var(--ink);
}

.cs-quick-stat-body {
  margin: 0;
  font-size: var(--t-prose-sm);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
}

@media (max-width: 880px) {
  .cs-quick-stats-grid { grid-template-columns: 1fr; }
  .cs-quick-stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: clamp(24px, 5vw, 32px) 0;
  }
  .cs-quick-stat:last-child { border-bottom: none; }
}

/* ── Nav: Go back link aligned to the content's left edge ── */
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  margin-left: 0;
  border: 1px solid var(--white);
  border-radius: var(--r-full);
  background: var(--white);
  transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease), transform 320ms var(--ease);
}
.nav-back:hover { background: var(--paper-50); color: var(--ink); border-color: var(--paper-50); }
.nav-back .arrow { transition: transform 320ms var(--ease); display: inline-block; }
.nav-back:hover .arrow { transform: translateX(-4px); }

/* ── Meta strip just below nav ── */
.cs-meta {
  background: var(--paper);
  padding: 84px 0 0;
  border-bottom: 1px solid var(--line);
}
.cs-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding: 14px 0;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cs-crumbs {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cs-crumbs a {
  color: var(--muted); text-decoration: none;
  transition: color 240ms var(--ease);
}
.cs-crumbs a:hover { color: var(--ink); }
.cs-crumbs .sep { color: var(--paper-400); }
.cs-crumbs .here { color: var(--ink); font-weight: 500; }

.cs-meta-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.cs-tag {
  font-family: var(--f-mono);
  font-size: var(--t-label-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 10px;
  border: 1px solid var(--paper-300);
  border-radius: var(--r-full);
  background: var(--bone);
}

/* ── Hero ──
   Theme via body[data-case-theme="…"] — see "Case study themes" block at the
   end of this file. Each theme sets --cs-hero-bg / --cs-hero-underline /
   --cs-hero-accent / --cs-hero-stat-line / --cs-quick-stats-bg / --cs-bigquote-*. */
.cs-hero {
  background: var(--cs-hero-bg, var(--orchid));
  color: var(--orchid-deep);
  padding: clamp(96px, 12vw, 152px) 0 clamp(64px, 8vw, 96px);
  position: relative;
}

.cs-hero-headline {
  font-family: var(--f-primary);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .cs-hero-headline { margin-bottom: 32px; }
}
.cs-hero-headline .row { display: block; }
.cs-hero-headline .italic {
  font-weight: 400;
  font-size: 1.04em;
  line-height: 0.84;
  display: inline-block;
  vertical-align: -0.04em;
  letter-spacing: -0.012em;
}
.cs-hero-headline .underline {
  position: relative; display: inline-block; white-space: nowrap;
}
.cs-hero-headline .underline::after {
  content: ""; position: absolute;
  left: -0.04em; right: -0.04em; bottom: 0.05em;
  height: 0.18em;
  background: var(--cs-hero-underline, var(--orchid-600));
  z-index: -1;
  border-radius: 4px;
}
.cs-hero-headline .italic { color: var(--cs-hero-accent, inherit); }

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .cs-hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.cs-hero-lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink);
  max-width: 50ch;
}
.cs-hero-lede strong { color: var(--ink); font-weight: 700; }
.cs-hero-lede .italic { color: var(--cs-hero-accent, var(--auber)); }
.cs-hero-lede em {
  font-family: var(--f-emph); font-style: italic;
  color: var(--cs-hero-accent, var(--auber));
  font-size: 1.05em;
}

.cs-stat-foot {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--cs-hero-stat-line, var(--orchid-overlay));
}
.cs-stat-foot li {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cs-hero-stat-line, var(--orchid-overlay));
}
.cs-stat-foot li:last-child { border-bottom: none; }
.cs-stat-foot .l {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-hero-stat-l, var(--ink));
  align-self: center;
}
.cs-stat-foot .v {
  font-family: var(--f-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--cs-hero-stat-v, var(--ink));
}

/* ── Section base ── */
.cs-section {
  background: var(--paper);
  padding: 80px 0 clamp(80px, 10vw, 144px);
}
.cs-section--alt { background: var(--bone); }

.cs-sec-head {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 80ch;
}
@media (max-width: 640px) {
  /* Tighten the heading→body gap on phones, but keep a clear gap (not 0,
     which glued the section heading to the prose underneath it). */
  .cs-sec-head { margin-bottom: 32px; }
  .cs-shift-diagram { margin-top: 32px; }
}
.cs-sec-head .kicker { display: block; }
.cs-h2 {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.cs-h2 .italic {
  font-weight: 400;
  font-size: 1.05em; line-height: 0.9;
  display: inline-block; vertical-align: -0.02em;
}
.cs-h2--light { color: var(--bone); }
.cs-h2--light .italic { color: var(--orchid); }

/* ── Prose body ── */
.cs-prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 420px);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 880px) {
  .cs-prose-grid { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
}
.cs-prose-aside {
  margin: 0;
  display: block;
}
.cs-prose-aside img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.cs-prose {
  max-width: 68ch;
  display: flex; flex-direction: column; gap: 18px;
  font-size: var(--t-prose);
  line-height: 1.6;
  color: var(--ink-soft);
}
.cs-prose strong { color: var(--ink); font-weight: 700; }
.cs-prose em {
  font-family: var(--f-emph); font-style: italic;
  color: var(--auber);
  font-size: 1.04em;
  letter-spacing: -0.005em;
}
.cs-lead {
  font-family: var(--f-primary);
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.012em;
  max-width: 30ch;
  margin-bottom: 8px;
}
/* ── Pull-quote band (sage) ── */
/* ── The shift band (dark) ── */
.cs-shift {
  background: var(--auber-800);
  color: var(--bone);
  padding: 112px 0;
}
.cs-shift .cs-sec-head { max-width: none; }
.cs-shift-lede {
  font-family: var(--f-primary);
  font-size: var(--t-prose);
  line-height: 1.5;
  color: var(--bone-soft);
  max-width: 60ch;
  margin-top: 8px;
}
.cs-shift-lede strong { color: var(--bone); font-weight: 700; }

.cs-shift-diagram {
  margin-bottom: 56px;
  display: flex; flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.cs-diag-block {
  display: flex; flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.cs-diag-heading {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--bone);
}
.cs-diag-heading--now { color: var(--orchid); }

.cs-diag-row {
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
}
@media (max-width: 880px) {
  .cs-diag-row { grid-template-columns: 1fr; gap: 20px; }
}

/* Before — bone card on dark aubergine ground */
.cs-diag-row--before {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, var(--bone));
}
/* After — orchid card */
.cs-diag-row--after {
  background: var(--orchid);
  color: var(--orchid-deep);
  border: 1px solid var(--orchid);
}

.cs-diag-chain {
  list-style: none;
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px 14px;
}
.cs-diag-chain li:not(.arr) {
  font-family: var(--f-primary);
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 10px;
}
.cs-diag-chain .ic {
  width: 14px; height: 14px;
  flex: none;
}
.cs-diag-chain .arr {
  display: inline-flex; align-items: center;
}
.cs-diag-chain .arr svg {
  width: 16px; height: 16px;
}

.cs-diag-row--before .cs-diag-chain li:not(.arr) {
  background: var(--paper-200);
  border: 1px solid color-mix(in oklab, var(--ink) 14%, var(--paper-200));
  color: var(--ink);
}
.cs-diag-row--before .cs-diag-chain .ic { color: var(--auber); }
.cs-diag-row--before .cs-diag-chain li:nth-child(1) .ic  { color: var(--auber); }
.cs-diag-row--before .cs-diag-chain li:nth-child(3) .ic  { color: var(--sage-deep); }
.cs-diag-row--before .cs-diag-chain li:nth-child(5) .ic  { color: var(--apricot-deep); }
.cs-diag-row--before .cs-diag-chain li:nth-child(7) .ic  { color: var(--auber); }
.cs-diag-row--before .cs-diag-chain li:nth-child(9) .ic  { color: var(--sage-deep); }
.cs-diag-row--before .cs-diag-chain li:nth-child(11) .ic { color: var(--apricot-deep); }
.cs-diag-row--before .cs-diag-chain .arr { color: var(--auber); }

.cs-shift-coda {
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--f-primary);
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--bone-soft);
  max-width: 60ch;
}

/* ── Enables list ── */
.cs-enables {
  list-style: none;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--paper-300);
}
.cs-en {
  display: grid;
  grid-template-columns: clamp(140px, 14vw, 200px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--paper-300);
  align-items: start;
}
@media (max-width: 720px) {
  .cs-en { grid-template-columns: 1fr; gap: 16px; }
}

.cs-en-num {
  font-family: var(--f-primary);
  font-weight: 900;
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.9;
  color: var(--auber);
  letter-spacing: -0.05em;
}
.cs-en-body {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 92ch;
}
.cs-en-body h3 {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 38ch;
}
.cs-en-body p {
  font-size: var(--t-prose-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 88ch;
}
.cs-en-body em {
  font-family: var(--f-emph); font-style: italic;
  color: var(--auber);
  font-size: 1.04em;
}
.cs-en-quote {
  font-family: var(--f-emph) !important;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  line-height: 1.35 !important;
  color: var(--auber) !important;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--paper-300);
  letter-spacing: -0.005em;
}

/* ── Two views ── */
.cs-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 28px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .cs-views { grid-template-columns: 1fr; } }

.cs-view {
  background: var(--paper);
  border: 1px solid var(--paper-300);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column;
  gap: 18px;
}
.cs-view-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.cs-view-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orchid); display: inline-block;
}
.cs-view-h {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 6px;
}
.cs-view ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.cs-view li {
  padding: 4px 0 4px 22px;
  font-family: var(--f-primary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}
.cs-view li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px;
  background-color: var(--auber);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.cs-views-coda {
  font-family: var(--f-primary);
  font-size: var(--t-prose-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.cs-views-coda .italic {
  font-family: var(--f-primary);
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* ── Per-item accents (sage + apricot, used sparingly) ── */
.cs-en:nth-child(1) .cs-en-num { color: var(--auber); }
.cs-en:nth-child(2) .cs-en-num { color: var(--sage-deep); }
.cs-en:nth-child(3) .cs-en-num { color: var(--apricot-deep); }
.cs-en:nth-child(4) .cs-en-num { color: var(--orchid-600); }

.cs-view .cs-view-tag::before { background: var(--sage); }
.cs-view li::before { color: var(--sage-deep); }

.cs-meta-tags .cs-tag:nth-child(2) {
  border-color: color-mix(in oklab, var(--sage) 40%, var(--paper-300));
}
.cs-meta-tags .cs-tag:nth-child(3) {
  border-color: color-mix(in oklab, var(--apricot) 40%, var(--paper-300));
}

/* "Other case studies" carousel — tighter top padding than the home page work block */
#other-work.work { padding-top: 80px; }

/* ─────────── "What we did" — alternating editorial rows ─────────── */
.cs-work {
  display: flex; flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
}
.cs-work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .cs-work-row { grid-template-columns: 1fr; } }
.cs-work-row.reverse .cs-work-body  { order: 2; }
.cs-work-row.reverse .cs-work-media { order: 1; }
@media (max-width: 880px) {
  .cs-work-row.reverse .cs-work-body  { order: 0; }
  .cs-work-row.reverse .cs-work-media { order: 0; }
}
.cs-work-body { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.cs-work-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cs-work h3 {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.cs-work h3 .italic {
  font-weight: 400;
  font-size: 1.06em;
  color: inherit;
  line-height: 0.92;
  display: inline-block;
  vertical-align: -0.02em;
}
.cs-work p {
  font-family: var(--f-primary);
  font-size: var(--t-prose);
  line-height: 1.6;
  color: var(--ink-soft);
}
.cs-work p em {
  font-family: var(--f-emph); font-style: italic;
  color: var(--auber);
  font-size: 1.04em;
}
.cs-work p strong { color: var(--ink); font-weight: 700; }

/* Alternating banded rows — even rows sit on a full-bleed paper-200 ribbon */
.cs-work > .cs-work-row:nth-child(even) {
  position: relative;
  isolation: isolate;
  padding-top: 56px;
  padding-bottom: 56px;
}
.cs-work > .cs-work-row:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  background: var(--cs-work-band-bg, var(--paper-200));
  z-index: -1;
}

/* ─────────── Crossfade image carousel ─────────── */
.cs-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 2.5;
  margin: 0 auto;
}
.cs-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  border-radius: var(--r-md);
  animation: csCarouselFade 16s infinite ease-in-out;
}
.cs-carousel img:nth-child(1) { animation-delay:   0s; }
.cs-carousel img:nth-child(2) { animation-delay: -12s; }
.cs-carousel img:nth-child(3) { animation-delay:  -8s; }
.cs-carousel img:nth-child(4) { animation-delay:  -4s; }
@keyframes csCarouselFade {
  0%, 21%  { opacity: 1; }
  25%, 96% { opacity: 0; }
  100%     { opacity: 1; }
}

/* Tight variant — narrower frame, taller 4:3 crop (vs canonical 100% / 4:2.5) */
.cs-carousel--tight {
  width: 85%;
  aspect-ratio: 4 / 3;
}

/* Two-image variant — longer visible window per image */
.cs-carousel--two img {
  animation: csCarouselFade2 8s infinite ease-in-out;
}
.cs-carousel--two img:nth-child(1) { animation-delay:  0s; }
.cs-carousel--two img:nth-child(2) { animation-delay: -4s; }
@keyframes csCarouselFade2 {
  0%, 46%  { opacity: 1; }
  50%, 96% { opacity: 0; }
  100%     { opacity: 1; }
}

/* Single-image variant — no animation, always visible */
.cs-carousel--one img {
  animation: none;
  opacity: 1;
}

/* Five-image variant — 20s duration with a tighter visible window so the staggered images don't double-expose */
.cs-carousel--five img {
  animation: csCarouselFade5 20s infinite ease-in-out;
}
.cs-carousel--five img:nth-child(1) { animation-delay:   0s; }
.cs-carousel--five img:nth-child(2) { animation-delay: -16s; }
.cs-carousel--five img:nth-child(3) { animation-delay: -12s; }
.cs-carousel--five img:nth-child(4) { animation-delay:  -8s; }
.cs-carousel--five img:nth-child(5) { animation-delay:  -4s; }
@keyframes csCarouselFade5 {
  0%, 17%  { opacity: 1; }
  20%, 97% { opacity: 0; }
  100%     { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-carousel img { animation: none; opacity: 0; }
  .cs-carousel img:nth-child(1) { opacity: 1; }
}

/* ─────────── Big pull quote ─────────── */
.cs-bigquote {
  display: none;
  background: var(--cs-bigquote-bg, var(--sage));
  padding: clamp(64px, 8vw, 112px) 0;
}
.cs-bigquote-card {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 112px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 92ch;
}
.cs-bigquote-mark {
  font-family: var(--f-primary);
  font-weight: 900;
  font-size: clamp(80px, 9vw, 140px);
  line-height: 0.6;
  color: var(--cs-bigquote-ink, var(--sage-ink));
  margin-top: -0.16em;
}
.cs-bigquote-body {
  font-family: var(--f-emph); font-style: italic;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  color: var(--cs-bigquote-ink, var(--sage-ink));
  letter-spacing: -0.008em;
  text-wrap: balance;
  max-width: 56ch;
}
.cs-bigquote-attr {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-bigquote-ink, var(--sage-ink));
  display: inline-flex; align-items: center; gap: 10px;
}
.cs-bigquote-attr::before {
  content: ""; width: 24px; height: 1px;
  background: var(--cs-bigquote-ink, var(--sage-ink));
  display: inline-block;
}

/* ─────────── Small utilities ─────────── */

/* Prose block — used as an intro paragraph above a section grid */
.cs-prose--block {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 76ch;
}

/* "Other case studies" carousel ships without prev/next arrows on case study pages */
#workControls { display: none; }

/* ─────────── Case study themes ───────────
   One attribute on <body data-case-theme="…"> drives:
     • .cs-hero          (bg + headline accent + underline + stat-foot lines)
     • .cs-quick-stats   (tinted background that harmonises with hero)
     • .cs-bigquote      (--cs-bigquote-bg / --cs-bigquote-ink — already tokenised)
   Default (no attribute) keeps the canonical orchid hero. */

body[data-case-theme="mauve"] {
  --cs-hero-bg:        var(--auber-200);
  --cs-hero-underline: color-mix(in oklab, var(--auber) 30%, var(--auber-200));
  --cs-hero-accent:    var(--auber);
  --cs-hero-stat-line: color-mix(in oklab, var(--auber) 24%, transparent);
  --cs-quick-stats-bg: var(--auber-100);
  --cs-bigquote-bg:    var(--apricot);
  --cs-bigquote-ink:   var(--apricot-deep);
}

body[data-case-theme="apricot"] {
  --cs-hero-bg:        var(--apricot-200);
  --cs-hero-underline: var(--apricot);
  --cs-hero-accent:    var(--apricot-deep);
  --cs-hero-stat-line: color-mix(in oklab, var(--apricot-deep) 24%, transparent);
  --cs-quick-stats-bg: color-mix(in oklab, var(--apricot-200) 55%, var(--bone));
}

body[data-case-theme="sage"] {
  --cs-hero-bg:        var(--sage-300);
  --cs-hero-underline: var(--sage-500);
  --cs-quick-stats-bg: color-mix(in oklab, var(--sage-300) 55%, var(--bone));
  --cs-bigquote-bg:    var(--orchid);
  --cs-bigquote-ink:   var(--sage-ink);
}

body[data-case-theme="orchid"] {
  --cs-quick-stats-bg: var(--orchid-200);
}
