/* ── Case Study Pages ── */

/* Full-width brand gradient bar (top & bottom of page) */
.cs-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--coral) 0%, var(--orange) 55%, var(--peach) 100%);
}

.case-study {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 48px 80px;
}

/* ── My process callout ── */
.cs-process {
  background: var(--off-white);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 0 0 48px;
}
.cs-process-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.cs-process p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  max-width: 66ch;
}

.cs-back {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 28px;
}
.cs-back:hover { text-decoration: underline; }

/* ── Header ── */
.cs-header { margin-bottom: 0; }

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  padding: 5px 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.cs-header h1 {
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.cs-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 32px;
}

/* ── Jump Nav ── */
.cs-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.cs-jump-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.cs-jump-nav a:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ── TL;DR Card ── */
.cs-tldr {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 48px;
}

.cs-tldr-label {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 12px;
}

.cs-tldr p {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 12px;
}
.cs-tldr p:last-child { margin-bottom: 0; }

.cs-tldr ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-tldr ul li {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.cs-tldr ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

/* ── Meta ── */
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.cs-meta-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.cs-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}

/* ── Sections ── */
.cs-section {
  margin-bottom: 64px;
  scroll-margin-top: 90px;
}

.cs-sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.cs-sec-label::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--orange));
  flex-shrink: 0;
}

.cs-sec-num {
  font-weight: 800;
  font-size: 13px;
  color: var(--coral);
}
.cs-sec-num::after { content: " ·"; }

.cs-section h2 {
  font-family: var(--font);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cs-section p:not(.cs-lead) {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 64ch;
}

/* ── Pull Quote (centred, modern) ── */
.pull-quote {
  margin: 48px auto;
  padding: 30px 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--navy);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--coral), var(--orange)) 1;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 0.5;
  color: var(--coral);
  margin-bottom: 14px;
}

/* Dividers replaced by generous section spacing */
.cs-divider { display: none; }

/* ── Before / After ── */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.ba-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

.ba-label {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.ba-before { background: var(--cream); color: var(--coral); }
.ba-after { background: #e6f0ec; color: #065f46; }

.ba-card ul {
  list-style: none;
  padding: 0;
}

.ba-card ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.ba-card ul li:last-child { border-bottom: none; }

/* ── Skills Table ── */
.skill-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}

.skill-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child { border-bottom: none; }

.skill-row--header {
  background: var(--off-white);
}

.skill-cell {
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}

.skill-cell:last-child { border-right: none; }

.skill-row--header .skill-cell {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skill-cell strong {
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
}

/* ── Decision Cards ── */
.decision-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.decision-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.decision-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Callouts ── */
.callout {
  border-left: 3px solid var(--navy);
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.callout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 0;
}

.callout-src {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Outcome Stats ── */
.outcome-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.outcome-stat {
  flex: 1;
  min-width: 140px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.outcome-big {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--coral);
  line-height: 1;
}

.outcome-label {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Story Block ── */
.story-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}

.story-header {
  padding: 12px 16px;
  background: var(--navy);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-body {
  padding: 20px;
}

.story-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--dark); font-weight: 600; }

/* ── Flow Grid ── */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.flow-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.flow-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 8px;
}

.flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Research Cards ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.research-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

.research-group {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.research-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.research-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Award Block ── */
.award-block {
  background: var(--off-white);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 16px 0;
  display: block;
}
.award-icon { display: none; }

.award-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e1f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.award-block h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.award-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Two Column + Info Cards ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

.info-tag {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--coral);
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Speaking Mini Grid ── */
.speaking-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.speaking-mini {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px;
}

.speaking-mini strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.speaking-mini span {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Dark Box ── */
.dark-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.dark-box h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 14px;
}

.dark-box p {
  font-size: 16px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 10px;
}

.dark-box p:last-child { margin-bottom: 0; }

/* ── Case Study Nav ── */
.cs-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── Tags (reused from original) ── */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cs-tags span {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--coral);
}

/* ── Hero Image ── */
.cs-hero-image {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-hero-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ── Section lead (skim layer) ── */
.cs-lead {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 58ch;
}

/* ── Figure: screenshot in a monitor frame + caption ── */
.cs-figure { margin: 32px 0; }
.cs-figure .build-monitor { margin: 0; }
.cs-figcaption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Fan-out diagram: one skill → many outputs ── */
.cs-diagram {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 26px 24px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cs-diagram-node {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}
.cs-diagram-node span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}
.cs-diagram-arrow {
  color: var(--coral);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.cs-diagram-outputs {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-diagram-chip {
  background: var(--cream);
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Hero stat strip ── */
.cs-stat-strip {
  display: flex;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  padding: 24px 8px;
}
.cs-stat-strip .cs-stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.cs-stat-strip .cs-stat:last-child { border-right: none; }
.cs-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--coral);
  line-height: 1;
}
.cs-stat-lab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ── Challenge / response rows ── */
.cs-rows { margin: 24px 0; border-top: 1px solid var(--border); }
.cs-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cs-row-head { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.cs-row-body { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

/* ── Horizontal process flow ── */
.cs-flow {
  display: flex;
  align-items: stretch;
  margin: 28px 0;
}
.cs-flow-step {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.cs-flow-step .cs-flow-n {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--coral);
  line-height: 1;
}
.cs-flow-step h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 8px 0 6px; }
.cs-flow-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cs-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 22px;
  font-weight: 700;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ── Timeline ── */
.cs-timeline { margin: 28px 0; }
.cs-tl-item { display: grid; grid-template-columns: 68px 22px 1fr; align-items: stretch; }
.cs-tl-time { font-weight: 800; color: var(--coral); font-size: 15px; padding-top: 1px; text-align: right; }
.cs-tl-rail { position: relative; justify-self: center; width: 2px; background: var(--border); }
.cs-tl-rail::before {
  content: "";
  position: absolute; left: 50%; top: 3px; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--white);
}
.cs-tl-item:first-child .cs-tl-rail { margin-top: 5px; }
.cs-tl-body { padding: 0 0 22px 12px; }
.cs-tl-body h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.cs-tl-body p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ── UI mock (e.g. ranked results) ── */
.cs-mock { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 28px 0; background: var(--white); }
.cs-mock-head { background: var(--navy); color: var(--cream); padding: 12px 16px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.cs-mock-head span { color: rgba(255,255,255,0.6); font-weight: 500; }
.cs-mock-row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cs-mock-row:last-child { border-bottom: none; }
.cs-mock-score { font-family: var(--font-serif); font-size: 28px; color: var(--coral); line-height: 1; text-align: center; }
.cs-mock-score.low { color: var(--text-muted); }
.cs-mock-prop { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.cs-mock-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 100px; margin: 2px 4px 2px 0; }
.cs-mock-tag.ok { background: #e6f0ec; color: #065f46; }
.cs-mock-tag.no { background: var(--cream); color: var(--coral); }

/* ── Side-by-side photo pair ── */
.cs-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.cs-photo-pair figure { margin: 0; }
.cs-photo-pair img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.cs-photo-pair figcaption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .cs-photo-pair { grid-template-columns: 1fr; }
  .cs-photo-pair img { height: 260px; }
}

/* ── Embedded presentation / iframe ── */
.cs-embed { margin: 32px 0; }
.cs-embed iframe { border-radius: var(--radius-lg); }
.cs-embed figcaption { font-size: 14px; text-align: center; margin-top: 12px; }
.cs-embed figcaption a { color: var(--coral); font-weight: 600; }

/* ── Photo figure ── */
.cs-photo { margin: 32px 0; }
.cs-photo img,
.cs-photo video { width: 100%; border-radius: var(--radius-lg); display: block; }
.cs-photo figcaption { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ── Ripple (concentric growth) ── */
.cs-ripple { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin: 32px auto; }
.cs-ripple-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid var(--peach);
}
.cs-ripple-ring:nth-child(1) { width: 100%; height: 100%; }
.cs-ripple-ring:nth-child(2) { width: 74%; height: 74%; border-color: var(--orange); }
.cs-ripple-ring:nth-child(3) { width: 50%; height: 50%; border-color: var(--coral); }
.cs-ripple-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26%; height: 26%; border-radius: 50%; background: var(--coral);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); font-weight: 700; font-size: 12px; line-height: 1.2; padding: 8px;
}
.cs-ripple-lbl {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--white); padding: 2px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 700; color: var(--coral); white-space: nowrap;
}
.cs-ripple-lbl.l1 { top: -11px; }
.cs-ripple-lbl.l2 { top: 12%; }
.cs-ripple-lbl.l3 { top: 24%; }

/* ── WCAG contrast panel ── */
.cs-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.cs-contrast-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cs-contrast-swatch { background: var(--white); padding: 26px 18px; text-align: center; font-size: 24px; font-weight: 700; }
.cs-contrast-meta { padding: 12px 16px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
.cs-contrast-meta .ratio { font-family: var(--font-serif); font-size: 18px; }
.cs-contrast-fail .ratio, .cs-contrast-fail .verdict { color: var(--coral); font-weight: 700; }
.cs-contrast-pass .ratio, .cs-contrast-pass .verdict { color: #065f46; font-weight: 700; }

/* ── Annotated code fragment ── */
.cs-code { background: #241f36; border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.cs-code-head { background: rgba(255,255,255,0.06); padding: 9px 16px; font-size: 12px; color: rgba(255,255,255,0.55); font-family: ui-monospace, Menlo, monospace; }
.cs-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.cs-code code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.75; color: #e7e3f5; white-space: pre; }
.cs-code .c-h { color: #b69cff; font-weight: 700; }
.cs-code .c-note { color: #ffcd8a; }
.cs-code .c-muted { color: #8a86a8; }

@media (max-width: 720px) {
  .cs-flow { flex-direction: column; }
  .cs-flow-arrow { transform: rotate(90deg); padding: 8px 0; align-self: center; }
  .cs-contrast { grid-template-columns: 1fr; }
}

/* ── Scroll reveal (only active when JS is on) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .cs-diagram { flex-direction: column; align-items: stretch; text-align: center; }
  .cs-diagram-arrow { transform: rotate(90deg); align-self: center; }
  .cs-lead { font-size: 18px; }
  .cs-stat-strip { flex-direction: column; gap: 20px; }
  .cs-stat-strip .cs-stat { border-right: none; }
  .cs-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 768px) {
  .case-study { padding: 20px 20px 56px; }
  .cs-header h1 { font-size: 28px; }
  .cs-subtitle { font-size: 16px; }
  .cs-meta { gap: 16px; }
  .before-after { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 140px 1fr; }
  .outcome-row { flex-direction: column; }
  .cs-nav { flex-direction: column; }
  .speaking-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .skill-row { grid-template-columns: 1fr; }
  .skill-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .skill-row:last-child .skill-cell:last-child { border-bottom: none; }
}
