:root {
  --accent: #6B3FA0;
  --accent-light: #9B6FD0;
  --accent-dim: rgba(107, 63, 160, 0.12);
  --bg: #F4F3F7;
  --bg-card: #FFFFFF;
  --bg-card2: #F0EEF5;
  --text: #1A1625;
  --text-muted: #6B6478;
  --text-light: #9E97AA;
  --border: rgba(107, 63, 160, 0.15);
  --shadow: 0 2px 20px rgba(107, 63, 160, 0.08);
  --shadow-hover: 0 8px 40px rgba(107, 63, 160, 0.18);
  --nav-bg: rgba(247, 246, 243, 0.88);
}

[data-theme="dark"] {
  --bg: #100E16;
  --bg-card: #1C1828;
  --bg-card2: #221E30;
  --text: #EDE9F5;
  --text-muted: #A89DBF;
  --text-light: #8A84A0;
  --border: rgba(107, 63, 160, 0.25);
  --shadow: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(107, 63, 160, 0.25);
  --nav-bg: rgba(16, 14, 22, 0.92);
  /* accent — lightened for dark-bg contrast */
  --accent: #9B6FD0;
  --accent-light: #B899E8;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ── Nav ── neutral override so border & btn match other case study pages */
nav                       { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="dark"] nav   { border-bottom-color: rgba(255,255,255,0.08); }
.theme-btn                { border-color: rgba(0,0,0,0.10); }
[data-theme="dark"] .theme-btn { border-color: rgba(255,255,255,0.10); }

/* ── Layout ── */
.container { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }

/* ── Hero ── */
.hero {
  padding: 9rem 2rem 5rem;
  max-width: 760px; margin: 0 auto;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero-label::before {
  content: '';
  display: block; width: 20px; height: 2px; background: var(--accent);
}
.hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); font-weight: 400;
  max-width: 540px; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.meta-label {
  font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light);
}
.meta-value { font-size: 0.9rem; font-weight: 500; color: var(--text); }

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--accent-dim); color: var(--accent);
  border-radius: 3px;
  font-size: 0.75rem; font-weight: 600; font-family: 'Syne', sans-serif;
  letter-spacing: 0.06em;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── Sections ── */
section { padding: 3.5rem 0; }

.section-eyebrow {
  font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.section-eyebrow::after {
  content: ''; flex: 1; height: 1px; background: var(--border); max-width: 40px;
}

h2 {
  font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 1.2rem; line-height: 1.3;
}
h3 {
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.975rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

/* ── Problem Cards ── */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
}
@media (max-width: 600px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }.problem-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.problem-card p { font-size: 0.88rem; margin: 0; }

/* ── Quote Block ── */
.quote-block {
  background: var(--accent-dim); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.quote-block p {
  font-style: italic; color: var(--text); font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.quote-source {
  font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase;
  display: block;
}

/* ── Before / After ── */
.before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem;
}
@media (max-width: 600px) { .before-after { grid-template-columns: 1fr; } }

.ba-card {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.ba-label {
  padding: 0.5rem 1rem;
  font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}
.ba-label.before { background: #F5F0FF; color: #9B6FD0; }
.ba-label.after { background: var(--accent); color: #fff; }
.ba-body {
  background: var(--bg-card); padding: 1.2rem;
}
.ba-body ul {
  list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
}
.ba-body li {
  font-size: 0.87rem; color: var(--text-muted); padding-left: 1.2rem; position: relative;
}
.ba-body li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
}
.ba-label.before + .ba-body li::before { background: #C4A8E8; }
.ba-label.after + .ba-body li::before { background: var(--accent); }

/* ── Outcome chips ── */
.outcome-list {
  display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem;
  list-style: none; padding: 0;
}
.outcome-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
}
.outcome-num {
  font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800;
  color: var(--accent-light); line-height: 1; flex-shrink: 0; width: 28px;
}
.outcome-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.outcome-text strong { color: var(--text); }

/* ── Case nav links ── reset nav rule overrides ── */
.case-links {
  position: static;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none;
  padding: 0 0 4rem;
  justify-content: flex-start;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

/* ── Link Button ── */
.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent); color: #fff; border-radius: 6px;
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 1.5rem;
}
.btn-link:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-link.ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-link svg { width: 14px; height: 14px; }

/* ── Reflection ── */
.reflection-box {
  background: var(--bg-card2); border-radius: 14px; padding: 2rem;
  border: 1px solid var(--border);
}

/* ── Compact Principle List ── */
.principle-compact {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-top: 1.5rem;
}
.pc-row {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 1rem; padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--border); align-items: baseline;
}
.pc-row:last-child { border-bottom: none; }
.pc-name {
  font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.pc-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 500px) { .pc-row { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ── Stat Strip ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin: 1.5rem 0;
  background: var(--bg-card);
}
.stat-item {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 600px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); grid-column: 1 / -1; }
}


