/* =============================================================================
   Case study creative layouts - chapter-based, mosaic, zigzag, bento
   ============================================================================= */

.cs-rail {
  width: min(100% - (var(--cs-gutter, 24px) * 2), 1400px);
  margin-inline: auto;
}

.cs-rail-n {
  width: min(100% - (var(--cs-gutter, 24px) * 2), 1100px);
  margin-inline: auto;
}

/* ---- Hero: mega type + side rail + full cover ---- */
.cs-hero-v2 {
  background: #090909;
  color: #f4f1ea;
  padding: calc(var(--nav-h, 72px) + 40px) 0 0;
  position: relative;
  overflow: hidden;
}

.cs-hero-v2::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  right: -15vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(224, 122, 69, 0.14), transparent 65%);
  pointer-events: none;
}

.cs-hero-v2 .cs-hero-grid {
  width: min(100% - (var(--cs-gutter, 24px) * 2), 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.cs-hero-v2 .cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}

.cs-hero-v2 .cs-back:hover {
  color: #fff;
  gap: 12px;
}

.cs-hero-v2 .cs-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e07a45;
  margin-bottom: 18px;
}

.cs-hero-v2 .cs-title {
  font-family: "DT Nightingale", "Instrument Serif", "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.cs-hero-v2 .cs-subtitle {
  font-size: clamp(16px, 1.8vw, 22px);
  color: rgba(244, 241, 234, 0.72);
  max-width: 28ch;
  line-height: 1.4;
}

.cs-hero-v2 .cs-hero-aside {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-hero-v2 .cs-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-hero-v2 .cs-meta-stack strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.4);
  margin-bottom: 4px;
  font-weight: 500;
}

.cs-hero-v2 .cs-meta-stack span {
  font-size: 16px;
  font-weight: 500;
}

.cs-hero-v2 .cs-site-link {
  font-size: 13px;
  color: rgba(244, 241, 234, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s;
}

.cs-hero-v2 .cs-site-link:hover {
  color: #fff;
}

.cs-hero-v2 .cs-apps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.cs-hero-v2 .cs-apps h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin-bottom: 10px;
}

.cs-hero-v2 .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-hero-v2 .badges img {
  height: 40px;
  width: auto;
}

.cs-hero-v2 .cs-cover-wrap {
  width: min(100% - (var(--cs-gutter, 24px) * 2), 1400px);
  margin: 0 auto;
  padding-bottom: clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.cs-hero-v2 .cs-cover,
.cs-hero-v2 .cs-cover.cs-media {
  border-radius: 24px;
  overflow: visible;
  border: none;
  background: transparent !important;
  cursor: zoom-in;
}

/* Full image, natural aspect — no crop, no light box behind media */
.cs-hero-v2 .cs-cover img,
.cs-hero-v2 .cs-cover.cs-media img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
  border-radius: 24px;
}

/* Disable hover scale on hero cover so overflow never clips edges */
.cs-hero-v2 .cs-cover:hover img,
.cs-hero-v2 .cs-cover.cs-media:hover img {
  transform: none;
}

/* ---- Chapter band (light) ---- */
.cs-chapter {
  background: #f3f1ec;
  color: #121212;
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cs-chapter + .cs-chapter {
  /* avoid stacked double visual weight */
  border-top: none;
}

.cs-chapter.dark {
  background: #0e0e0e;
  color: #f4f1ea;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.cs-chapter.dark p,
.cs-chapter.dark li {
  color: rgba(244, 241, 234, 0.68);
}

.cs-chapter.dark h2,
.cs-chapter.dark h3,
.cs-chapter.dark h4 {
  color: #f4f1ea;
}

/* Intro chapter: split with giant index */
.cs-ch-intro {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px 36px;
  align-items: start;
}

.cs-ch-intro .idx {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(18, 18, 18, 0.18);
  line-height: 1;
  letter-spacing: -0.04em;
  position: sticky;
  top: 100px;
}

.cs-chapter.dark .cs-ch-intro .idx {
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.18);
}

.cs-ch-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e07a45;
  margin-bottom: 12px;
}

.cs-ch-intro h2,
.cs-ch-head h2 {
  font-family: "DT Nightingale", "Instrument Serif", "Playfair Display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #121212;
}

.cs-chapter.dark .cs-ch-intro h2,
.cs-chapter.dark .cs-ch-head h2 {
  color: #f4f1ea;
}

.cs-ch-intro p,
.cs-ch-body p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(18, 18, 18, 0.65);
  max-width: 62ch;
  margin-bottom: 14px;
}

.cs-ch-intro p em,
.cs-ch-body p em {
  color: #121212;
  font-style: italic;
}

.cs-chapter.dark .cs-ch-intro p,
.cs-chapter.dark .cs-ch-body p,
.cs-chapter.dark .cs-ch-head p.lede {
  color: rgba(244, 241, 234, 0.68);
}

.cs-chapter.dark .cs-ch-intro p em,
.cs-chapter.dark .cs-ch-body p em {
  color: #f4f1ea;
}

.cs-chapter.dark .cs-exec-zig h3,
.cs-chapter.dark .cs-exec-zig h4 {
  color: #f4f1ea;
}

.cs-chapter.dark .cs-exec-zig p {
  color: rgba(244, 241, 234, 0.68);
}

.cs-chapter.dark .cs-exec-zig {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.cs-ch-intro ul,
.cs-ch-body ul {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.cs-ch-intro ul li,
.cs-ch-body ul li {
  position: relative;
  padding-left: 18px;
  color: rgba(18, 18, 18, 0.65);
  font-size: 15px;
  line-height: 1.5;
}

.cs-ch-intro ul li::before,
.cs-ch-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e07a45;
  opacity: 0.75;
}

/* Chapter head bar */
.cs-ch-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: end;
  margin-bottom: 24px;
}

.cs-ch-head p.lede {
  color: rgba(18, 18, 18, 0.62);
  font-size: 15px;
  line-height: 1.6;
  max-width: 40ch;
  justify-self: end;
  text-align: right;
}

/* Dual persona mosaic */
.cs-persona-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
  align-items: start;
}

.cs-persona-mosaic figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #eef0f2;
  cursor: zoom-in;
}

.cs-persona-mosaic figure:first-child {
  transform: none;
}

.cs-persona-mosaic img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #eef0f2;
}

.cs-persona-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.cs-persona-pills .pp {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.cs-persona-pills h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-persona-pills .q {
  font-family: "DT Nightingale", "Instrument Serif", Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 14px;
}

.cs-persona-pills .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-persona-pills .tags span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(18, 18, 18, 0.55);
}

/* Principle bento */
.cs-principle-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin: 24px 0 0;
}

.cs-principle-bento .pb {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.cs-principle-bento .pb-lg {
  grid-row: 1 / 3;
  background: linear-gradient(165deg, rgba(224, 122, 69, 0.1), #fff 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.cs-principle-bento .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #e07a45;
  margin-bottom: 16px;
}

.cs-principle-bento h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cs-principle-bento p {
  font-size: 14px;
  color: rgba(18, 18, 18, 0.62);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

/* Media: 2-col masonry / full / zigzag - light frames for dark (black) annotation text */
.cs-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 0;
  align-items: start;
}

/* Three images in one row (e.g. Homepage Exploration) */
.cs-media-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  margin: 24px 0 0;
  align-items: start;
}

.cs-media-trio figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #eef0f2;
  cursor: zoom-in;
  min-width: 0;
}

.cs-media-trio img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #eef0f2;
}

.cs-chapter.dark .cs-media-trio figure {
  border-color: rgba(255, 255, 255, 0.12);
  background: #eef0f2;
}

.cs-media-duo figure,
.cs-media-full figure,
.cs-media-zig .zig-media figure,
.cs-media-stack-v figure,
.cs-exec-zig .zig-media figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #eef0f2;
  cursor: zoom-in;
}

.cs-chapter.dark .cs-media-duo figure,
.cs-chapter.dark .cs-media-full figure,
.cs-chapter.dark .cs-media-zig .zig-media figure,
.cs-chapter.dark .cs-media-stack-v figure,
.cs-chapter.dark .cs-exec-zig .zig-media figure {
  border-color: rgba(255, 255, 255, 0.12);
  background: #eef0f2;
}

.cs-media-duo img,
.cs-media-full img,
.cs-media-zig img,
.cs-media-stack-v img,
.cs-exec-zig .zig-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #eef0f2;
}

/*
 * Annotation label color variants
 * dark-label  = black callout text → mid-light canvas
 * white-label = white callout text → near-black canvas (admin pickups / eco recycler)
 * light-canvas = pure diagram strips
 */
.cs-media.media-annot-dark-label,
.cs-exec-zig .zig-media figure.media-annot-dark-label,
.cs-media-stack-v figure.media-annot-dark-label {
  background: #d8dde2 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.cs-media.media-annot-dark-label img,
.cs-exec-zig .zig-media figure.media-annot-dark-label img {
  background: #d8dde2 !important;
}

.cs-media.media-annot-white-label,
.cs-exec-zig .zig-media figure.media-annot-white-label,
.cs-media-stack-v figure.media-annot-white-label {
  background: #0d0d0d !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.cs-media.media-annot-white-label img,
.cs-exec-zig .zig-media figure.media-annot-white-label img {
  background: #0d0d0d !important;
}

.cs-media.media-annot-light-canvas,
.cs-exec-zig .zig-media figure.media-annot-light-canvas {
  background: #f5f5f5 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.cs-media.media-annot-light-canvas img,
.cs-exec-zig .zig-media figure.media-annot-light-canvas img {
  background: #f5f5f5 !important;
}

.cs-media-full {
  margin: 24px 0 0;
}

.cs-media-full figure {
  border-radius: 20px;
}

.cs-media-stack-v {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 0;
}

/* Execution zig chapters */
.cs-exec-zig {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  margin: 0;
  padding: 36px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-exec-zig:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.cs-exec-zig + .cs-exec-zig {
  margin-top: 36px;
  padding-top: 36px;
}

.cs-exec-zig.flip {
  grid-template-columns: 1.1fr 0.9fr;
}

.cs-exec-zig.flip .zig-copy {
  order: 2;
}

.cs-exec-zig.flip .zig-media {
  order: 1;
}

.cs-exec-zig h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #121212;
}

.cs-exec-zig h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #121212;
}

.cs-exec-zig p {
  font-size: 15px;
  color: rgba(18, 18, 18, 0.65);
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 48ch;
}

.cs-exec-zig .zig-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cs-exec-zig .zig-copy {
  min-width: 0;
  position: sticky;
  top: 96px;
}

/* Metrics impact */
.cs-impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
}

.cs-impact .mi {
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.cs-impact .mi::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -20px;
  top: -20px;
  background: radial-gradient(circle, rgba(224, 122, 69, 0.15), transparent 70%);
}

.cs-impact .big {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  color: #121212;
}

.cs-impact .title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cs-impact p {
  font-size: 14px;
  color: rgba(18, 18, 18, 0.6);
  margin: 0;
  max-width: none;
  position: relative;
}

/* Structure trio */
.cs-struct-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.cs-struct-trio .st {
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  text-align: left;
}

.cs-struct-trio h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cs-struct-trio p {
  font-size: 14px;
  color: rgba(18, 18, 18, 0.6);
  margin: 0;
  max-width: none;
}

/* Before / after strip (labels only) */
.cs-ba-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
}

.cs-ba-strip .ba {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-ba-strip .ba.before {
  background: #fff5f4;
}

.cs-ba-strip .ba.after {
  background: #f3faf5;
}

.cs-chapter.dark .cs-ba-strip .ba {
  border-color: rgba(255, 255, 255, 0.1);
}

.cs-chapter.dark .cs-ba-strip .ba.before {
  background: rgba(255, 80, 80, 0.08);
}

.cs-chapter.dark .cs-ba-strip .ba.after {
  background: rgba(80, 200, 120, 0.08);
}

.cs-ba-strip h5 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.45);
  margin-bottom: 8px;
}

.cs-chapter.dark .cs-ba-strip h5 {
  color: rgba(244, 241, 234, 0.45);
}

.cs-ba-strip p {
  margin: 0;
  font-size: 14px;
  color: #121212;
  max-width: none;
}

.cs-chapter.dark .cs-ba-strip p {
  color: #f4f1ea;
}

/* Before / after compare — images side by side */
.cs-ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  margin: 28px 0 0;
  align-items: start;
}

.cs-ba-compare-follow {
  margin-top: 32px;
}

.cs-synthesis {
  margin-top: 36px;
  max-width: 62ch;
}

.cs-synthesis h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #121212;
}

.cs-ba-compare .ba-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cs-ba-compare .ba-label {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-ba-compare .ba-col.before .ba-label {
  background: #fff5f4;
}

.cs-ba-compare .ba-col.after .ba-label {
  background: #f3faf5;
}

.cs-ba-compare .ba-label h5 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.45);
  margin: 0 0 6px;
}

.cs-ba-compare .ba-label p {
  margin: 0;
  font-size: 14px;
  color: #121212;
  max-width: none;
}

.cs-ba-compare .cs-media {
  margin: 0;
  width: 100%;
}

.cs-ba-compare .cs-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #eef0f2;
}

.cs-chapter.dark .cs-ba-compare .ba-label {
  border-color: rgba(255, 255, 255, 0.1);
}

.cs-chapter.dark .cs-ba-compare .ba-col.before .ba-label {
  background: rgba(255, 80, 80, 0.08);
}

.cs-chapter.dark .cs-ba-compare .ba-col.after .ba-label {
  background: rgba(80, 200, 120, 0.08);
}

.cs-chapter.dark .cs-ba-compare .ba-label h5 {
  color: rgba(244, 241, 234, 0.45);
}

.cs-chapter.dark .cs-ba-compare .ba-label p {
  color: #f4f1ea;
}

/* Decision board (TAG) */
.cs-decision-board {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
  border-top: none;
}

.cs-chapter .cs-decision-board + .cs-media-stack-v,
.cs-chapter .cs-decision-board + .cs-media-duo,
.cs-chapter .cs-decision-board + .cs-media-full,
.cs-chapter .cs-decision-board + .cs-media-trio,
.cs-chapter .cs-decision-board + .cs-ch-head,
.cs-chapter .cs-media-duo + .cs-ch-head,
.cs-chapter .cs-media-full + .cs-ch-head,
.cs-chapter .cs-ba-compare + .cs-block-gap {
  margin-top: 28px;
}

.cs-decision-board .db-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #e07a45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 160px;
  position: sticky;
  top: 100px;
}

.cs-decision-board h2 {
  font-family: "DT Nightingale", "Instrument Serif", Georgia, serif;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 8px 0 16px;
  color: #f4f1ea;
}

.cs-decision-board h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #f4f1ea;
}

.cs-decision-board p {
  font-size: 15px;
  color: rgba(244, 241, 234, 0.68);
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 62ch;
}

.cs-decision-board p em {
  color: #f4f1ea;
}

/* Outcomes grid */
.cs-out-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 0;
}

/* Three equal cards in one row (e.g. TAG Context pain points) */
.cs-out-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
}

.cs-out-grid .og {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.cs-out-grid h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #f4f1ea;
}

.cs-out-grid p {
  font-size: 14px;
  color: rgba(244, 241, 234, 0.6);
  margin: 0;
  max-width: none;
}

/* CTA reuse split */
.cs-cta-v2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #090909;
  color: #f4f1ea;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-cta-v2 .left {
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 64px);
}

.cs-cta-v2 .left h2 {
  font-family: "DT Nightingale", "Instrument Serif", Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.cs-cta-v2 .left p {
  color: rgba(244, 241, 234, 0.65);
  margin-bottom: 24px;
  font-size: 16px;
}

.cs-cta-v2 .right {
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 64px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.cs-cta-v2 .right a {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 234, 0.7);
  font-size: 15px;
  transition: color 0.2s, padding-left 0.25s;
}

.cs-cta-v2 .right a:hover {
  color: #fff;
  padding-left: 6px;
}

.cs-cta-v2 .right a span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.4);
}

.cs-footer-v2 {
  background: #090909;
  color: rgba(244, 241, 234, 0.4);
  text-align: center;
  font-size: 12px;
  padding: 0 24px 40px;
}

/* h3 in light chapters */
.cs-chapter h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #121212;
}

/* Spacing utilities used by case pages */
.cs-ch-head-gap {
  margin-top: 36px !important;
}

.cs-block-gap {
  margin-top: 28px;
}

.cs-closing-note {
  margin-top: 24px;
  color: rgba(18, 18, 18, 0.65);
  max-width: 62ch;
  line-height: 1.65;
  font-size: 16px;
}

.cs-chapter.dark .cs-closing-note {
  color: rgba(244, 241, 234, 0.68);
}

.cs-subhead {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #121212;
  letter-spacing: -0.02em;
}

.cs-chapter.dark .cs-subhead {
  color: #f4f1ea;
}

.cs-prose {
  color: rgba(18, 18, 18, 0.65);
  max-width: 62ch;
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 20px;
}

.cs-chapter.dark .cs-prose {
  color: rgba(244, 241, 234, 0.68);
}

/* Lightbox: keep light canvas so annotation screenshots stay readable */
.cs-lightbox {
  background: rgba(12, 12, 12, 0.92);
}

.cs-lightbox img {
  background: #eef0f2;
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
}

/* ========== Tablet ========== */
@media (max-width: 980px) {
  .cs-hero-v2 .cs-hero-grid,
  .cs-ch-intro,
  .cs-ch-head,
  .cs-persona-mosaic,
  .cs-persona-pills,
  .cs-principle-bento,
  .cs-media-duo,
  .cs-media-trio,
  .cs-exec-zig,
  .cs-exec-zig.flip,
  .cs-impact,
  .cs-struct-trio,
  .cs-ba-compare,
  .cs-ba-strip,
  .cs-decision-board,
  .cs-out-grid,
  .cs-out-grid-3,
  .cs-cta-v2 {
    grid-template-columns: 1fr;
  }

  .cs-hero-v2 {
    padding-top: calc(var(--nav-h, 72px) + 28px);
  }

  .cs-hero-v2 .cs-hero-grid {
    gap: 24px;
    padding-bottom: 28px;
  }

  .cs-hero-v2 .cs-hero-aside {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 20px;
    gap: 16px;
  }

  .cs-hero-v2 .cs-title {
    font-size: clamp(40px, 12vw, 64px);
    margin-bottom: 14px;
  }

  .cs-hero-v2 .cs-subtitle {
    max-width: none;
  }

  .cs-hero-v2 .cs-back {
    margin-bottom: 20px;
  }

  .cs-hero-v2 .cs-cover-wrap {
    padding-bottom: 32px;
  }

  .cs-hero-v2 .cs-cover img,
  .cs-hero-v2 .cs-cover.cs-media img {
    border-radius: 16px;
  }

  .cs-chapter {
    padding: 48px 0;
  }

  .cs-ch-intro {
    gap: 12px 0;
  }

  .cs-ch-intro .idx {
    position: static;
    font-size: 36px;
    margin-bottom: 4px;
  }

  .cs-ch-intro h2,
  .cs-ch-head h2 {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 14px;
  }

  .cs-ch-head {
    gap: 16px;
  }

  .cs-ch-head p.lede {
    text-align: left;
    justify-self: start;
    max-width: none;
  }

  .cs-principle-bento {
    gap: 12px;
  }

  .cs-principle-bento .pb-lg {
    grid-row: auto;
    min-height: auto;
  }

  .cs-principle-bento .pb {
    padding: 20px;
  }

  .cs-media-duo,
  .cs-media-trio,
  .cs-media-stack-v,
  .cs-media-full {
    margin-top: 20px;
    gap: 12px;
  }

  .cs-media-duo figure,
  .cs-media-trio figure,
  .cs-media-stack-v figure,
  .cs-media-full figure {
    border-radius: 14px;
  }

  .cs-exec-zig {
    gap: 20px;
    padding-top: 24px;
  }

  .cs-exec-zig .zig-copy {
    position: static;
  }

  .cs-exec-zig.flip .zig-copy,
  .cs-exec-zig.flip .zig-media {
    order: unset;
  }

  .cs-exec-zig + .cs-exec-zig {
    margin-top: 24px;
    padding-top: 24px;
  }

  .cs-decision-board {
    gap: 16px;
  }

  .cs-decision-board .db-idx {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
    position: static;
    margin-bottom: 4px;
  }

  .cs-decision-board h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .cs-ba-strip,
  .cs-ba-compare {
    gap: 12px;
    margin-top: 20px;
  }

  .cs-ba-compare .ba-label,
  .cs-ba-strip .ba {
    padding: 14px 16px;
  }

  .cs-struct-trio {
    gap: 12px;
  }

  .cs-out-grid,
  .cs-out-grid-3 {
    gap: 12px;
    margin-top: 20px;
  }

  .cs-out-grid .og {
    padding: 18px;
  }

  .cs-ch-head-gap {
    margin-top: 28px !important;
  }

  .cs-block-gap {
    margin-top: 24px;
  }

  .cs-cta-v2 .left,
  .cs-cta-v2 .right {
    padding: 40px 24px;
  }

  .cs-cta-v2 .right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cs-footer-v2 {
    padding: 0 16px 32px;
  }
}

/* ========== Phone ========== */
@media (max-width: 560px) {
  :root {
    --cs-gutter: 16px;
  }

  .cs-rail,
  .cs-rail-n,
  .cs-hero-v2 .cs-hero-grid,
  .cs-hero-v2 .cs-cover-wrap {
    width: min(100% - 32px, 1400px);
  }

  .cs-hero-v2 {
    padding-top: calc(var(--nav-h, 64px) + 20px);
  }

  .cs-hero-v2 .cs-hero-grid {
    gap: 20px;
    padding-bottom: 20px;
  }

  .cs-hero-v2 .cs-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .cs-hero-v2 .cs-cover-wrap {
    padding-bottom: 28px;
  }

  .cs-hero-v2 .cs-meta-stack {
    gap: 12px;
  }

  .cs-chapter {
    padding: 36px 0;
  }

  .cs-ch-intro p,
  .cs-ch-body p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  .cs-ch-intro h2,
  .cs-ch-head h2 {
    margin-bottom: 12px;
  }

  .cs-ch-intro h3 {
    margin: 18px 0 8px;
  }

  .cs-principle-bento .pb {
    padding: 16px;
  }

  .cs-ba-strip .ba,
  .cs-ba-compare .ba-label {
    padding: 12px 14px;
  }

  .cs-ba-compare-follow {
    margin-top: 20px;
  }

  .cs-ch-head-gap {
    margin-top: 24px !important;
  }

  .cs-block-gap {
    margin-top: 20px;
  }

  .cs-synthesis {
    margin-top: 24px;
  }

  .cs-closing-note {
    margin-top: 20px;
    font-size: 15px;
  }

  .cs-prose {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .cs-subhead {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .cs-cta-v2 .left,
  .cs-cta-v2 .right {
    padding: 32px 16px;
  }

  .cs-cta-v2 .left h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .cs-cta-v2 .right a {
    padding: 14px 0;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .cs-media-duo,
  .cs-media-trio,
  .cs-media-stack-v,
  .cs-media-full {
    margin-top: 16px;
    gap: 10px;
  }

  .cs-exec-zig + .cs-exec-zig {
    margin-top: 20px;
    padding-top: 20px;
  }

  .cs-out-grid .og {
    padding: 16px;
  }

  .cs-out-grid h4 {
    font-size: 15px;
  }

  .cs-out-grid p {
    font-size: 13px;
  }
}
