/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Scroll offset -- accounts for sticky nav height ────── */
section, .page-header, [id] {
  scroll-margin-top: var(--nav-height);
}

@media (max-width: 680px) {
  section, .page-header, [id] {
    scroll-margin-top: var(--nav-height-mobile);
  }
}

/* ─── Nav placeholder -- reserves space before component loads ── */
#nav-placeholder {
  min-height: var(--nav-height);
}

@media (max-width: 680px) {
  #nav-placeholder {
    min-height: var(--nav-height-mobile);
  }
}

/* ─── Tokens ─────────────────────────────────────────────── */
:root {

  /* ── Cloud surfaces ──────────────────────────────────────── */
  --cloud-white: #ffffff;
  --cloud-warm:  #FAFAF8;
  --cloud-base:  #F5F4F0;

  /* ── Stone (H92° — warm neutral) ─────────────────────────── */
  --stone-50:  #F2F2F1;
  --stone-100: #DFDEDB;
  --stone-200: #BFBEB8;
  --stone-300: #928F86;
  --stone-400: #66635A;
  --stone-500: #45423A;
  --stone-600: #282621;

  /* ── Strait (H246° — blue) ───────────────────────────────── */
  --strait-50:  #ECF3F9;
  --strait-100: #D0E0F0;
  --strait-200: #A1C2E0;
  --strait-300: #5B95C6;
  --strait-400: #21689E;
  --strait-500: #004576;
  --strait-600: #002848;

  /* ── Salal (H150° — green) ───────────────────────────────── */
  --salal-50:  #EDF4EE;
  --salal-100: #D2E3D5;
  --salal-200: #A5C8AB;
  --salal-300: #62A070;
  --salal-400: #2B7440;
  --salal-500: #005121;
  --salal-600: #003011;

  /* ── Kelp (H97° — warm yellow-green) ────────────────────── */
  --kelp-50:  #F3F2E9;
  --kelp-100: #E2DFC9;
  --kelp-200: #C6BF93;
  --kelp-300: #9E903D;
  --kelp-400: #746300;
  --kelp-500: #514200;
  --kelp-600: #302600;

  /* ── Lichen (H55° — golden yellow) ──────────────────────── */
  /* Maritime Sunburst Lichen (Xanthoria parietina)            */
  /* Note: 300 is luminous — dark text only on this stop      */
  --lichen-50:  #F8F7ED;
  --lichen-100: #F1ECC6;
  --lichen-200: #E4DC81;
  --lichen-300: #C2B200;
  --lichen-400: #7A7000;
  --lichen-500: #524B00;
  --lichen-600: #332F00;

  /* ── Camas (H285° — violet) ──────────────────────────────── */
  --camas-50:  #F2EEFA;
  --camas-100: #DDD4F4;
  --camas-200: #BAA9E8;
  --camas-300: #8B68D2;
  --camas-400: #6338B5;
  --camas-500: #431A90;
  --camas-600: #260D5A;

  /* ── Ochre (H34° — terracotta) ───────────────────────────── */
  --ochre-50:  #FAEFED;
  --ochre-100: #F1D7D1;
  --ochre-200: #E2B0A5;
  --ochre-300: #C77764;
  --ochre-400: #9C4532;
  --ochre-500: #732413;
  --ochre-600: #461308;

  /* ── Sunset (H50° — orange) ──────────────────────────────── */
  --sunset-50:  #FAF0E5;
  --sunset-100: #F5D8B0;
  --sunset-200: #E8B468;
  --sunset-300: #CA8200;
  --sunset-400: #9C5F00;
  --sunset-500: #6C3D00;
  --sunset-600: #3E2200;

  /* ── Semantic colour aliases ─────────────────────────────── */
  --white:      var(--cloud-white);
  --off-white:  var(--cloud-base);
  --light-grey: var(--stone-100);
  --mid-grey:   var(--stone-400);
  --dark-grey:  var(--stone-500);
  --near-black: var(--stone-600);
  --black:      #0d0d0c;

  --accent:            var(--strait-400);
  --accent-bg:         var(--strait-50);
  --interactive-hover: var(--strait-500);
  --surface-elevated:  var(--cloud-white);

  --lichen-accent: var(--lichen-400);
  --lichen-light:  var(--lichen-50);

  --text-primary:   var(--near-black);
  --text-secondary: var(--dark-grey);
  --text-muted:     var(--mid-grey);
  --border:         var(--light-grey);
  --bg-page:        var(--white);
  --bg-surface:     var(--off-white);

  /* ── Typography scale ────────────────────────────────────── */
  --font:       'Roboto Flex', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --text-xs:      12px;
  --text-sm:      14px;
  --text-caption: 15px;
  --text-base:    18px;
  --text-lg:      20px;
  --text-xl:      clamp(22px, 3vw, 28px);
  --text-2xl:     clamp(28px, 4vw, 44px);
  --text-display: clamp(42px, 8vw, 72px);

  --leading-tight: 1.15;
  --leading-snug:  1.4;
  --leading-base:  1.6;
  --leading-loose: 1.75;

  /* ── Spacing (4px base grid) ─────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-13: 52px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* ── Border radius ───────────────────────────────────────── */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  /* ── Elevation ───────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(40, 38, 33, 0.08);
  --shadow-md: 0 4px 16px rgba(40, 38, 33, 0.12);

  /* ── Motion ──────────────────────────────────────────────── */
  --duration-fast:   0.12s;
  --duration-base:   0.18s;
  --duration-slow:   0.32s;
  --duration-reveal: 1.2s;
  --ease:            ease;
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --transition:      var(--duration-base) var(--ease);

  /* ── Layout ──────────────────────────────────────────────── */
  --max-width:         800px;
  --body-max:          680px;
  --wide-max:          1040px;
  --nav-height:        80px;
  --nav-height-mobile: 56px;
}

/* ─── Base ───────────────────────────────────────────────── */
html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Skip navigation ───────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--near-black);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-nav:focus {
  top: 0;
}

/* ─── Shared utilities ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 3px 10px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-full);
  color: var(--stone-500);
  background: var(--stone-50);
  white-space: nowrap;
}

/* ── Gradient background ─────────────────────────────────── */
/* Override --gradient-from and/or --gradient-to inline or with a
   modifier class to change the palette. --gradient-angle is also
   overrideable. Default fades stone-50 → cloud-white.            */
.bg-gradient {
  --gradient-from:  var(--stone-50);
  --gradient-to:    var(--cloud-white);
  --gradient-angle: 145deg;
  background: linear-gradient(
    var(--gradient-angle),
    var(--gradient-from) 0%,
    var(--gradient-to)   45%
  );
}

.bg-gradient--camas  { --gradient-from: var(--camas-50);  }
.bg-gradient--salal  { --gradient-from: var(--salal-50);  }
.bg-gradient--kelp   { --gradient-from: var(--kelp-50);   }
.bg-gradient--strait { --gradient-from: var(--strait-50); }
.bg-gradient--sunset { --gradient-from: var(--sunset-50); }
.bg-gradient--stone  { --gradient-from: var(--stone-50);  }
.bg-gradient--lichen { --gradient-from: var(--lichen-50); }

/* ─── Filter buttons ─────────────────────────────────────────────── */
/* Defined here so work.html and any future filtered views share them. */
/* Base .filter-btn styles live in work.html; only the active colour   */
/* overrides and hover hints live here.                                */

.filter-btn--program-design:hover  { border-color: var(--salal-300);  color: var(--salal-400);  }
.filter-btn--ai:hover              { border-color: var(--camas-300);  color: var(--camas-400);  }
.filter-btn--brand-campaign:hover  { border-color: var(--sunset-300); color: var(--sunset-400); }
.filter-btn--design-thinking:hover { border-color: var(--ochre-300); color: var(--ochre-400); }
.filter-btn--digital:hover         { border-color: var(--strait-300); color: var(--strait-400); }
.filter-btn--equity:hover          { border-color: var(--kelp-300);  color: var(--kelp-500);  }

.filter-btn--program-design.active  { background: var(--salal-400);  border-color: var(--salal-400);  color: var(--white); }
.filter-btn--ai.active              { background: var(--camas-400);  border-color: var(--camas-400);  color: var(--white); }
.filter-btn--brand-campaign.active  { background: var(--sunset-400); border-color: var(--sunset-400); color: var(--white); }
.filter-btn--design-thinking.active { background: var(--ochre-400); border-color: var(--ochre-400); color: var(--white); }
.filter-btn--digital.active         { background: var(--strait-400); border-color: var(--strait-400); color: var(--white); }
.filter-btn--equity.active          { background: var(--kelp-500);  border-color: var(--kelp-500);  color: var(--white); }

/* ─── Tag group (multiple tags on one work item) ─────────────────── */
.work-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Tag colour variants ─────────────────────────────────────────── */
/* Pair rule: 50 fill · 200 border · 400/500 text (palette AA-verified) */

.tag--program-design { background: var(--salal-50);  border-color: var(--salal-200);  color: var(--salal-400);  }
.tag--ai             { background: var(--camas-50);  border-color: var(--camas-200);  color: var(--camas-400);  }
.tag--brand-campaign { background: var(--sunset-50);  border-color: var(--sunset-200); color: var(--sunset-400); }
.tag--design-thinking{ background: var(--ochre-50); border-color: var(--ochre-200); color: var(--ochre-400); }
.tag--digital        { background: var(--strait-50);border-color: var(--strait-200); color: var(--strait-400); }
.tag--equity         { background: var(--kelp-50); border-color: var(--kelp-200);  color: var(--kelp-400);  }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  padding: 0 100px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }

.nav-cta {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 7px 18px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--off-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-overlay.open { display: flex; }

.nav-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--nav-height-mobile);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.nav-overlay-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-secondary);
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}

.nav-close:hover { color: var(--text-primary); }

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-overlay-links a {
  display: block;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 40px;
  transition: opacity var(--transition);
  text-align: center;
}

.nav-overlay-links a:hover { opacity: 0.4; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-left  { font-size: 16px; color: var(--text-muted); }
.footer-right { font-size: 16px; color: var(--text-muted); }

.footer-linkedin {
  color: var(--text-muted);
  text-decoration: none;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 4px;
  transition: color var(--transition);
}
.footer-linkedin:hover { color: var(--text-primary); }

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-inner {
    padding: 0 20px;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    padding: 0 20px;
    height: var(--nav-height-mobile);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links     { display: none; }
  .nav-cta       { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── Case study: pull quote ─────────────────────────────── */
/* border-left colour inherits from --page-accent-400, set per page. */
.cs-pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 2px solid var(--page-accent-400);
  padding-left: 28px;
  margin: 40px 0;
}

.cs-pullquote-cite {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* ─── Case study: responsive video embed ────────────────── */
.cs-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cs-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Case study: image caption ─────────────────────────── */
.cs-img-caption {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── Case study: cropped image frame ───────────────────── */
/* Fixed aspect ratio container -- image fills and crops to fit.
   Wrap <img> in a div.cs-img-frame to activate. */
.cs-img-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cs-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Back link ─────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.back-link:hover {
  color: var(--text-secondary);
}

.back-link .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

/* ─── Scroll reveal ──────────────────────────────────────── */
/* Add class="reveal" to any element to opt in.
   Respects prefers-reduced-motion. */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Back to top button ─────────────────────────────────── */
.cs-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--near-black);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out), background var(--duration-base) var(--ease);
}

.cs-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cs-top-btn:hover { background: var(--dark-grey); }

.cs-top-btn .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

/* ─── Contact form ───────────────────────────────────────── */
.contact-form-group--error input,
.contact-form-group--error textarea {
  border-color: var(--ochre-400);
  background: var(--ochre-50);
}

.contact-form-field-error {
  font-size: var(--text-sm);
  color: var(--ochre-500);
  margin-top: var(--space-1);
}

/* ─── Case study: layout framework ──────────────────────────────
   All cs-* component styles live here so every case study page
   shares one source of truth. Each page defines only:
     :root { --page-accent-50/200/400/500/600 }
   and all components inherit the correct category colour.
─────────────────────────────────────────────────────────────── */

/* ── Hero ─── */
.cs-hero {
  width: 100%;
  padding: var(--space-24) var(--space-6) var(--space-20);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cs-hero-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-accent-400);
  background: var(--page-accent-50);
  border: 1px solid var(--page-accent-200);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: var(--space-6);
}

.cs-hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cs-hero-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 48px;
}

.cs-hero-meta {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 36px;
  border-right: 1px solid var(--border);
}

.cs-meta-item:last-child { border-right: none; }

.cs-meta-label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-meta-value {
  font-size: var(--text-caption);
  color: var(--text-secondary);
}


/* ── Block wrapper ─── */
.cs-block {
  padding: var(--space-18) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.cs-block:last-of-type  { border-bottom: none; }
.cs-block--no-divider  { border-bottom: none !important; }
.cs-block--divider     { border-bottom: 1px solid var(--border) !important; }
/* Add to a chapter header block when it includes a cs-deck — removes bottom
   padding so the deck's own margin-bottom handles the gap to the next block.
   Omit this class (and the <p class="cs-deck">) for a deck-free header. */
.cs-block--deck        { padding-bottom: 0; }
.cs-block--flush-top   { padding-top: 0; }
.cs-block--flush-bottom { padding-bottom: 0; }

.cs-body { max-width: var(--body-max); margin: 0 auto; }
.cs-wide { max-width: var(--wide-max); margin: 0 auto; }


/* ── Typography ─── */
.cs-section-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-accent-400);
  margin-bottom: 16px;
}

.cs-headline {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.cs-chapter-headline {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text-primary);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto 20px;
}

.cs-deck {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.cs-deck--left {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: left;
  max-width: 560px;
  margin: 0 0 52px;
}

.cs-prose {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

.cs-prose p + p { margin-top: 20px; }
.cs-prose h3 { font-size: var(--text-caption); font-weight: 700; color: var(--text-primary); margin: 28px 0 10px; }
.cs-prose a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.cs-prose ul { margin: 16px 0 16px 20px; }
.cs-prose li { margin-bottom: 8px; }


/* ── Stats row ─── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
}

.cs-stat {
  background: var(--page-accent-50);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-stat-value {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--page-accent-400);
  line-height: 1;
}

.cs-stat-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.4;
}


/* ── Images ─── */
.cs-img-wide      { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.cs-img-contained { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

.cs-image-row        { display: grid; gap: 12px; }
.cs-image-row--2     { grid-template-columns: 1fr 1fr; }
.cs-image-row--3     { grid-template-columns: repeat(3, 1fr); }
.cs-image-row--4     { grid-template-columns: repeat(4, 1fr); }
.cs-image-row img    { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--radius-lg); }


/* ── Two-column text split ─── */
.cs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 40px 0; }

.cs-two-col-label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
}

.cs-two-col-text          { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; }
.cs-two-col-text p + p    { margin-top: 16px; }
.cs-two-col-text ul       { margin: 12px 0 0 18px; }
.cs-two-col-text li       { margin-bottom: 7px; }


/* ── Three-column grid ─── */
.cs-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0; }

.cs-three-col-label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.cs-three-col-text        { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.65; }
.cs-three-col-text ul     { margin: 10px 0 0 16px; }
.cs-three-col-text li     { margin-bottom: 6px; }


/* ── Left-label / right-content ─── */
.cs-label-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
}

.cs-label-content:last-child { margin-bottom: 0; }

.cs-label-content__anchor {
  font-size: 18px;
  font-weight: 500;
  color: var(--page-accent-400);
  padding-top: 2px;
  line-height: 1.4;
}

.cs-label-content__body              { font-size: 18px; color: var(--text-secondary); line-height: 1.75; }
.cs-label-content__body p + p        { margin-top: 16px; }
.cs-label-content__body h4           { font-size: 13px; font-weight: 500; color: var(--text-primary); margin: 20px 0 8px; }
.cs-label-content__body ul           { margin: 8px 0 8px 18px; }
.cs-label-content__body li           { margin-bottom: 6px; }


/* ── Image + text split ─── */
.cs-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cs-image-text img { width: 100%; height: auto; display: block; border-radius: 8px; }

.cs-image-text__content h3 {
  font-size: clamp(20px, 3vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cs-image-text__content p              { font-size: 18px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.cs-image-text__content p:last-child   { margin-bottom: 0; }
.cs-image-text__content ul             { margin: 12px 0 0 18px; }
.cs-image-text__content li             { font-size: 18px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.cs-image-text--reverse .cs-image-text__content { order: -1; }


/* ── Card grid ─── */
.cs-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 32px 0; }
.cs-card      { border: 1px solid var(--border); border-radius: 8px; padding: 24px 26px; }
.cs-card h4   { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.cs-card p    { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }


/* ── Pill tag list ─── */
.cs-pill-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs-pills     { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cs-pills li  {
  font-size: 12px;
  color: var(--page-accent-400);
  background: var(--page-accent-50);
  border: 1px solid var(--page-accent-200);
  border-radius: 100px;
  padding: 5px 14px;
}


/* ── Event timeline cards ─── */
.cs-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 40px 0;
}

.cs-timeline-card {
  border: 1px solid var(--page-accent-200);
  border-radius: 8px;
  padding: 24px;
  background: var(--page-accent-50);
}

.cs-timeline-card--pause {
  background: var(--stone-50);
  border-color: var(--stone-100);
}

.cs-timeline-card--pause .cs-timeline-year {
  color: var(--stone-400);
}

.cs-timeline-year {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--page-accent-400);
  margin-bottom: 14px;
  line-height: 1;
}

.cs-timeline-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.cs-timeline-key {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-timeline-val {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.45;
}


/* ── Dark closing section ─── */
.cs-closing { background: var(--page-accent-400); border-bottom: none; }
.cs-closing .cs-section-label    { color: rgba(255,255,255,0.90); text-align: center; }
.cs-closing .cs-chapter-headline { color: var(--white); }
.cs-closing .cs-deck             { color: rgba(255,255,255,0.85); }

.cs-closing-cols {
  max-width: var(--wide-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.cs-closing-col h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 20px;
}

.cs-closing-col ul { list-style: none; padding: 0; margin: 0; }

.cs-closing-col li {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cs-closing-col li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cs-closing-col li strong     { color: var(--white); font-weight: 500; }


/* ── More work / split CTA ─── */
.cs-next { padding: 64px 24px; background: var(--page-accent-50); }
.cs-next-inner { max-width: var(--wide-max); margin: 0 auto; }

.cs-next-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: block;
}

.cs-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cs-next-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.cs-next-card:hover { opacity: 0.6; }

.cs-next-card-tag {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.cs-next-card-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 6px; }
.cs-next-card-desc  { font-size: 18px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.cs-next-card-link  { font-size: var(--text-base); font-weight: 500; color: var(--page-accent-500); margin-top: auto; padding-top: 16px; display: block; }


/* ── Centred block modifier ─── */
.cs-block--centred .cs-body       { text-align: center; }
.cs-block--centred .cs-headline   { text-align: center; }
.cs-block--centred .cs-prose      { text-align: center; }
.cs-block--centred .cs-pills      { justify-content: center; }
.cs-block--centred .cs-pill-label { text-align: center; }

.cs-block--centred .cs-pullquote {
  border-left: none;
  padding-left: 0;
  text-align: center;
  border-top: 2px solid var(--page-accent-400);
  padding-top: 28px;
}


/* ── Image placeholders ─── */
.cs-placeholder {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ─── Case study: full-bleed image ──────────────────────── */
/* Breaks entirely out of the content container to fill 100vw.
   Distinct from container-wide image (cs-placeholder--wide), which stays
   within cs-wide. Uses the 50% - 50vw negative-margin offset technique.
   - aspect-ratio: override per use case via inline style (default 16/9)
   - object-position: override per use case on the <img> via inline style
   - Vertical cropping is expected and acceptable by design.
   Caption (cs-full-bleed-caption) re-applies horizontal padding so it
   stays within the readable measure. */
.cs-block--full-bleed {
  padding-left: 0;
  padding-right: 0;
}

.cs-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.cs-full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Remove side borders/radius on placeholder so it reads as truly edge-to-edge */
.cs-full-bleed.cs-placeholder {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.cs-full-bleed-caption {
  padding: 0 var(--space-6);
}

.cs-placeholder--wide      { width: 100%; aspect-ratio: 16 / 9; }
.cs-placeholder--contained { width: 100%; aspect-ratio: 4  / 3; }
.cs-placeholder--square    { width: 100%; aspect-ratio: 1  / 1; }
.cs-placeholder--half      { width: 100%; aspect-ratio: 4  / 3; }


/* ── Case study responsive ─── */
@media (max-width: 720px) {
  .cs-hero         { padding: 64px 20px 56px; }
  .cs-block        { padding: 56px 20px; }
  .cs-two-col      { grid-template-columns: 1fr; gap: 32px; }
  .cs-three-col    { grid-template-columns: 1fr; gap: 28px; }
  .cs-label-content { grid-template-columns: 1fr; gap: 10px; }
  .cs-image-text   { grid-template-columns: 1fr; }
  .cs-image-text--reverse .cs-image-text__content { order: 0; }
  .cs-next-grid    { grid-template-columns: 1fr; }
  .cs-closing-cols { grid-template-columns: 1fr; gap: 40px; }
  .cs-stats        { grid-template-columns: 1fr 1fr; }
  .cs-timeline     { grid-template-columns: 1fr 1fr; }
  .cs-image-row--3,
  .cs-image-row--4 { grid-template-columns: 1fr 1fr; }
  .cs-meta-item {
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .cs-meta-item:last-child { border-bottom: none; }
}
