/* Case study pages. Builds on styles.css and consultation.css. */

.cs-hero { padding: clamp(32px, 7vh, 88px) var(--gutter) clamp(56px, 9vh, 104px); }
.cs-title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(42px, 5.4vw, 86px);
  line-height: 1.03;
  letter-spacing: -.02em;
}
.cs-hero .lp-lede { max-width: 58ch; }

.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin: clamp(40px, 7vh, 72px) 0 0;
}
.cs-stats div { padding-top: 18px; border-top: 1px solid var(--ink); }
.cs-stats dt { font-size: 14px; color: var(--smoke); }
.cs-stats dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.cs-quote {
  margin: 0;
  padding: clamp(72px, 12vh, 140px) var(--gutter);
  background: var(--stone);
}
.cs-quote blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.16;
  letter-spacing: -.015em;
  text-indent: -.42em;
}
.cs-quote figcaption { max-width: 34ch; margin: 32px auto 0; padding-left: .1em; font-size: 15px; color: var(--smoke); }
.cs-quote figcaption b { display: block; font-weight: 500; color: var(--ink); }
@media (min-width: 900px) { .cs-quote blockquote, .cs-quote figcaption { margin-left: calc(100% / 12 * 2); } }

.cs-section { padding: clamp(80px, 12vh, 140px) var(--gutter) 0; }
.cs-section > .h2 { max-width: 16ch; margin-bottom: clamp(36px, 6vh, 60px); }

.cs-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cs-cols > div { padding-top: 20px; border-top: 1px solid var(--mist); }
.cs-cols h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 26px;
  line-height: 1.2;
}
.cs-cols p { font-size: 16px; line-height: 1.65; color: #4C4842; max-width: 40ch; }

.cs-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.cs-reels figure { margin: 0; min-width: 0; }
.cs-reels .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
/* Before Instagram's script loads (or if it's blocked), the reel shows as a plain link */
.cs-reels blockquote.instagram-media {
  padding: 28px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: #fff;
}
.cs-reels blockquote.instagram-media a { font-size: 15px; }
.cs-reel { aspect-ratio: 9 / 16; border-radius: 6px; }
.cs-reels figcaption { margin-top: 14px; font-size: 15px; color: var(--smoke); }
.cs-reels figcaption a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--mist); white-space: nowrap; }
.cs-reels figcaption a:hover { border-bottom-color: var(--ink); }
.cs-reels figcaption b { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: var(--serif-weight); font-size: 20px; color: var(--ink); }

.cs-reels--two { grid-template-columns: repeat(2, minmax(0, 420px)); }
/* A statement in our own voice, not a client quote: no hanging quotation mark */
.cs-quote--fact blockquote { text-indent: 0; }

.cs-more { padding: 40px var(--gutter) 0; }
.cs-more a { font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(20px, 2vw, 28px); text-decoration: none; border-bottom: 1px solid var(--mist); }
.cs-more a:hover { border-bottom-color: var(--ink); }

.cs-table { padding: 0; }
.cs-section .lp-note { max-width: 70ch; }

.cs-cta { margin-top: clamp(80px, 12vh, 140px); }
.cs-cta .lp-lede { margin-top: -20px; }

@media (max-width: 960px) {
  .cs-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cs-cols, .cs-reels { grid-template-columns: 1fr; }
  .cs-reels figure { max-width: 420px; }
}
