/* ========== Case study shared styles ========== */
.case-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
}
.case-hero .meta-row {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.case-hero .meta {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 130px;
}
.case-hero .meta .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-4);}
.case-hero .meta .val { font-size: 15px; color: var(--ink-2);}

.case-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(56px, 8vw, 96px);
}

/* ========== Section blocks ========== */
.section {
  padding: clamp(40px, 6vw, 80px) 0;
}
.section + .section { border-top: 1px solid var(--rule); }

.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px;} }

.two-col .head .num {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-4);
  display: block; margin-bottom: 8px;
}
.two-col .head h3 {
  font-size: clamp(20px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  font-weight: 500;
  position: sticky; top: 96px;
}
.two-col .body p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 62ch;
}
.two-col .body p.muted { color: var(--ink-2); }
.two-col .body ul {
  list-style: none; padding: 0; margin: 24px 0; max-width: 62ch;
}
.two-col .body ul li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 16px;
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
}
.two-col .body ul li:last-child { border-bottom: 1px solid var(--rule); }
.two-col .body ul li .key { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); padding-top: 2px;}

.callout {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 62ch;
}
.callout .by { display: block; margin-top: 14px; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;}

.pull-quote {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 420;
  max-width: 22ch;
  padding: clamp(40px, 6vw, 64px) 0;
}
.pull-quote .ital { font-style: italic; font-weight: 350; color: var(--ink-2); }

/* ========== Image / mock frames ========== */
.frame {
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  margin: 24px 0 32px;
}
.frame.full {
  width: 100%;
}
.frame .caption {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  text-transform: uppercase;
}

.split-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 32px;
}
@media (max-width: 720px) { .split-frames { grid-template-columns: 1fr; } }

/* ========== Stats row ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 48px 0;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 460;
}
.stat .lab {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 22ch;
}

/* ========== Step list ========== */
.steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 32px 0;
}
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .n {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-3); padding-top: 4px;
}
.step .title { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 8px; font-weight: 500; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 60ch; }

/* ========== Next case ========== */
.next-case {
  border-top: 1px solid var(--rule);
  margin-top: clamp(80px, 10vw, 120px);
  padding: clamp(60px, 8vw, 100px) 0;
}
.next-case a {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  transition: transform .6s var(--ease);
}
.next-case a:hover { transform: translateY(-3px); }
.next-case .label {
  position: absolute; left: 32px; top: 28px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.next-case .title {
  position: absolute; left: 32px; bottom: 28px; right: 32px;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em;
  font-weight: 460;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.next-case .title svg { flex-shrink: 0; }
