/**
 * Impactiqa — case-study.css
 * Case study panel page layout.
 * Loaded via $page_css = ['case-study'] in case.php.
 *
 * NOTE: Dynamic CSS variables (--panel-mute, --panel-rule, --panel-accent)
 * are output as an inline <style> block in case.php since they are
 * data-driven per-slug values. --panel-bg and --panel-fg are set by
 * head.php's critical inline style.
 */

/* ── Base ───────────────────────────────────────────────────────────────────── */
html, body { height: 100%; }
body {
  background: var(--panel-bg);
  color: var(--panel-fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main { padding-top: 140px; padding-bottom: 96px; }
.section { padding-left: 8vw; padding-right: 8vw; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding-bottom: 96px; border-bottom: 1px solid var(--panel-rule);
}
.hero-eyebrow { display: flex; align-items: center; gap: 24px; }
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--panel-accent); flex-shrink: 0;
}
.headline {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(64px, 11vw, 168px); line-height: .88;
  letter-spacing: -.03em; text-transform: uppercase;
  color: var(--panel-fg); max-width: 14ch;
}
.blurb {
  max-width: 640px; font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: var(--panel-fg);
}

/* ── Meta strip ─────────────────────────────────────────────────────────────── */
.meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 48px 8vw; border-bottom: 1px solid var(--panel-rule);
}
.meta-item .meta-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--panel-mute); margin-bottom: 10px;
}
.meta-item .meta-value {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 17px; color: var(--panel-fg); line-height: 1.4;
}

/* ── Two-column layout ──────────────────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 96px 8vw; border-bottom: 1px solid var(--panel-rule);
}
.two-col h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--panel-mute); margin-bottom: 24px;
}
.two-col h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  color: var(--panel-fg); margin-bottom: 24px; max-width: 18ch;
}
.two-col p {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 17px; line-height: 1.65; color: var(--panel-fg); max-width: 46ch;
}

/* ── Stats ──────────────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 96px 8vw; border-bottom: 1px solid var(--panel-rule);
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(56px, 7vw, 104px); line-height: .95; letter-spacing: -.02em;
  color: var(--panel-accent);
}
.stat-label {
  font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 14px;
  color: var(--panel-mute); margin-top: 12px; max-width: 24ch; line-height: 1.4;
}

/* ── Quote block ────────────────────────────────────────────────────────────── */
.quote-block { padding: 120px 8vw; border-bottom: 1px solid var(--panel-rule); }
.quote-mark {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 96px;
  line-height: .6; color: var(--panel-accent); margin-bottom: 24px;
}
.quote {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 300;
  font-size: clamp(28px, 3.5vw, 52px); line-height: 1.15; letter-spacing: -.01em;
  color: var(--panel-fg); max-width: 24ch; margin-bottom: 32px;
}
.quote-by {
  font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: .05em; color: var(--panel-mute);
}

/* ── Image grid ─────────────────────────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: 2fr 1fr;
  grid-auto-rows: 280px; gap: 16px; padding: 96px 8vw;
}
.grid > div {
  background: var(--panel-rule); border: 1px solid var(--panel-rule);
  position: relative; overflow: hidden;
}
.grid > div::after {
  content: attr(data-tag); position: absolute; bottom: 16px; left: 16px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--panel-mute);
}
.grid .tall { grid-row: span 2; }
.grid .wide { grid-column: 1 / -1; }

/* ── Next case ──────────────────────────────────────────────────────────────── */
.next { padding: 96px 8vw 0; }
.next-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase; color: var(--panel-mute); margin-bottom: 24px;
}
.next-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(48px, 8vw, 128px); line-height: .9; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--panel-fg);
  cursor: pointer; text-decoration: none; display: block; transition: color .3s;
}
.next-title:hover { color: var(--panel-accent); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .meta, .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col, .grid { grid-template-columns: 1fr; gap: 48px; padding: 64px 8vw; }
  .grid > div { grid-row: auto !important; grid-column: auto !important; }
}
