/* ═══════════════════════════════════════
   CASE STUDY SHARED STYLES
   ═══════════════════════════════════════ */

/* ── HERO ── */
.cs-hero {
  min-height: 72vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-top: 5rem;
}
@media (max-width: 860px) { .cs-hero { min-height: 62vh; } }
.cs-hero-bg { position: absolute; inset: 0; }
.cs-hero-grad, .cs-hero-texture { position: absolute; inset: 0; }
.cs-hero-content {
  position: relative; z-index: 2;
  padding: 4rem 3rem 2rem;
}
.cs-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none; margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.cs-back:hover { color: rgba(255,255,255,0.9); }
.cs-meta-row {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 1.75rem;
}
.cs-meta-pill {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  padding: 0.3rem 0.7rem; border-radius: 2px;
}
.cs-meta-year {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}
.cs-headline {
  font-family: var(--bio);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  color: var(--white); line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 28px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.cs-tagline {
  font-size: 1.1rem; font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 520px; line-height: 1.7;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.cs-meta-pill { text-shadow: none; }
.cs-hero-swatch {
  position: relative; z-index: 2;
  display: flex; height: 6px;
}
.cs-swatch-block { flex: 1; }

/* ── OVERVIEW ── */
.cs-overview {
  background: var(--surface-dark);
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cs-overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cs-kv { display: flex; flex-direction: column; gap: 0.3rem; }
.cs-kv-label {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.cs-kv-val {
  font-size: 0.9rem; font-weight: 400;
  color: rgba(255,255,255,0.78);
}

/* ── BODY ── */
.cs-body {
  background: var(--page-bg);
}

/* ── SECTION ── */
.cs-section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--hairline);
}
.cs-section-label {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2.5rem;
}
.cs-section-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 5rem; align-items: start;
}
.cs-section-headline {
  font-family: var(--bio);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--fg); line-height: 1.08;
  letter-spacing: -0.015em;
  position: sticky; top: 7rem;
}
.cs-section-copy {
  font-size: 1rem; font-weight: 300;
  color: var(--fg-muted); line-height: 1.9;
  max-width: 58ch;
}
.cs-section-copy p + p { margin-top: 1.25rem; }

/* ── VISUAL BREAK ── */
.cs-visual-break {
  width: 100%;
}

/* ── PULL QUOTE ── */
.cs-pull-quote {
  padding: 5rem 3rem;
  background: var(--page-bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.25rem;
  max-width: none;
}
.cs-pull-quote blockquote {
  font-family: var(--bio);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--fg); line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 820px;
  border-left: 3px solid var(--orange);
  padding-left: 2rem;
}
.cs-pull-quote cite {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  padding-left: 2rem;
}

/* ── PROCESS STEPS ── */
.cs-process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-step {
  background: var(--page-bg);
  padding: 2.5rem 2rem;
}
.cs-step-num {
  font-family: var(--bio);
  font-size: 3rem; color: var(--hairline);
  line-height: 1; margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
html[data-theme="dark"] .cs-step-num { color: rgba(255,255,255,0.08); }
.cs-step-title {
  font-family: var(--bio);
  font-size: 1.15rem; color: var(--fg);
  margin-bottom: 0.65rem;
}
.cs-step-desc {
  font-size: 0.85rem; font-weight: 300;
  color: var(--fg-muted); line-height: 1.75;
}

/* ── VISUAL GRID ── */
.cs-visual-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2px; background: var(--hairline);
  border-top: 2px solid var(--hairline);
}

/* ── RESULTS ── */
.cs-results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--hairline);
  border-top: 1px solid var(--hairline);
}
.cs-result {
  background: var(--page-bg);
  padding: 3rem 2.5rem;
}
.cs-result-num {
  font-family: var(--bio);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cs-result-label {
  font-size: 0.9rem; font-weight: 300;
  color: var(--fg-muted); line-height: 1.7;
  max-width: 260px;
}

/* ── NEXT CASE ── */
.cs-next {
  border-top: 1px solid var(--hairline);
}
.cs-next-inner {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 3rem;
  min-height: 320px;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: opacity 0.25s;
}
.cs-next-bg, .cs-next-texture {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.cs-next-inner:hover .cs-next-bg,
.cs-next-inner:hover .cs-next-texture { transform: scale(1.03); }
.cs-next-label {
  position: relative; z-index: 2;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem; display: block;
}
.cs-next-title {
  position: relative; z-index: 2;
  font-family: var(--bio);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white); line-height: 0.95;
  letter-spacing: -0.02em;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  .cs-hero-content { padding: 3rem 1.5rem 2rem; }
  .cs-overview { padding: 2rem 1.5rem; }
  .cs-overview-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cs-section { padding: 4rem 1.5rem; }
  .cs-section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cs-section-headline { position: static; }
  .cs-pull-quote { padding: 3.5rem 1.5rem; }
  .cs-process-steps { grid-template-columns: 1fr 1fr; }
  .cs-visual-grid { grid-template-columns: 1fr; }
  .cs-results { grid-template-columns: 1fr; }
  .cs-next-inner { padding: 3.5rem 1.5rem; min-height: 240px; }
}
