/* Case study page-specific styles */
.cs-page { background: var(--paper); }
.cs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.cs-narrow { max-width: 760px; }
.cs-back {
  display: inline-flex;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.cs-back:hover { color: var(--ink); }

.cs-hero {
  padding: 130px 0 80px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cs-hero-ig {
  background:
    radial-gradient(circle at 90% 20%, rgba(107,70,193,0.16) 0%, transparent 55%),
    var(--paper);
}
.cs-hero-ao {
  background:
    radial-gradient(circle at 90% 20%, rgba(44,82,130,0.16) 0%, transparent 55%),
    var(--paper);
}
.cs-hero-default {
  background:
    radial-gradient(circle at 90% 20%, rgba(56,178,172,0.14) 0%, transparent 55%),
    var(--paper);
}
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.cs-hero-art { display: flex; justify-content: center; }
.cs-hero-art svg { width: 100%; max-width: 260px; height: auto; }

.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px 0;
}
.cs-title em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.cs-hero-ig .cs-title em { color: var(--ig-purple); }
.cs-hero-ao .cs-title em { color: var(--ao-navy); }
.cs-hero-default .cs-title em { color: var(--teal); }
.cs-hero-art img { width: 100%; max-width: 240px; height: auto; }

.cs-lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 28px 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.cs-meta-item {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}
.cs-meta-key {
  display: inline-block;
  width: 70px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 8px;
}

.cs-section {
  padding: 80px 0 100px;
  background: var(--paper);
}
.cs-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 18px 0;
}
.cs-h2:first-child { margin-top: 0; }
.cs-section p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px 0;
  text-wrap: pretty;
}
.cs-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-bullets li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.cs-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.cs-bullets li strong { color: var(--ink); font-weight: 600; }

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  margin: 24px 0 32px;
  overflow: hidden;
}
.cs-metric {
  padding: 26px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-metric:nth-child(2n) { border-right: none; }
.cs-metric:nth-last-child(-n+2) { border-bottom: none; }
.cs-mv {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 8px;
}
.cs-mv-ig { color: var(--ig-purple); }
.cs-mv-ao { color: var(--ao-navy); }
.cs-mv-default { color: var(--teal-deep); }
.btn-product-default {
  background: var(--teal);
  color: #fff;
}
.btn-product-default:hover {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(44,122,123,0.45);
}
.btn-link-default { color: var(--teal-deep); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.btn-link-default:hover { text-decoration: underline; }
.cs-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px 0;
}
.cs-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56,178,172,0.10);
  color: var(--teal-deep);
  padding: 5px 11px;
  border-radius: 999px;
}
.cs-ml {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.cs-foot {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 820px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-hero-art { order: -1; max-width: 180px; margin: 0 auto; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-metric { border-right: none !important; border-bottom: 1px solid var(--rule); }
  .cs-metric:last-child { border-bottom: none; }
}
