/* ==========================================================================
   ADNAN KABIR — case-studies.css
   Loaded ONLY by case-studies.html. Every selector here is new or duplicated
   from about.css/free-audit.css/work-with-me.css (never imported directly,
   per the page-isolation rule), so no other page can be affected.

   Reuses existing components — .hero, .steps-list, .case (+ .case__top,
   .case__meta, .case__body, .case__block, .brackets), .cases__grid,
   .finale, .footer, .kicker, .chip, .link-arrow — plus a small number of
   page-specific pieces (the archive hero stat line, the featured-card
   treatment) with no equivalent elsewhere on the site.
   ========================================================================== */

/* ---------- Generic section wrapper --------------------------------------
   Duplicated from about.css / contact.css / free-audit.css / work-with-me.css
   rather than shared, to keep each page's stylesheet independent. */

.page-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .h2 { margin-bottom: .2em; }

/* ---------- Archive hero ----------------------------------------------------
   Single column below 1024px, 60/40 with a sample card above it — the same
   shape as free-audit.html / contact.html's hero--plain, duplicated here
   under its own name since this hero reads left-aligned like a standard
   archive header rather than work-with-me's centered CTA hero. */

.hero--archive {
  min-height: 0;
  padding: clamp(9rem, 20vh, 12rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero--archive .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--archive .hero__copy { max-width: 46rem; }
.hero--archive .hero__lede { max-width: 58ch; }

@media (min-width: 1024px) {
  .hero--archive .hero__inner {
    grid-template-columns: 60% 40%;
    column-gap: 0;
  }
  .hero--archive .hero__copy {
    max-width: none;
    padding-right: clamp(2rem, 4vw, 4rem);
  }
  .hero--archive .hero__visual { place-items: center stretch; }
}

/* ---------- Sample case-file plate ------------------------------------------
   Sits in the hero's right column, the same slot and visual language as
   free-audit.html's sample report card — an elevated card rather than
   accent-tinted, so it reads as a literal document. Duplicated from
   free-audit.css. */

.report-card {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.report-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
}
.report-card__title {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}
.report-card .redact-lines { margin-bottom: 1.75rem; }
.report-card__foot {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
}

.hero__stat {
  display: flex; align-items: center; gap: .5rem;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero__stat-num { color: var(--accent-text); }

/* ---------- § The Framework — phase labels & pivot/outcome steps ----------- */

.steps-list__meta {
  color: var(--ink-3);
  margin-bottom: .3rem;
}

/* Same accent-soft + left-rule treatment as .case__block--result, scoped to
   the "Hidden Constraint" step. Duplicated from free-audit.css. */
.steps-list li.is-pivot {
  padding-left: 1.1rem;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-bottom-color: transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- § Case Files ---------------------------------------------------
   .case, .case__top, .case__meta, .case__body, .case__block(--result) and
   .brackets are all shared/frozen (sections.css) — reused as-is, the same
   markup as the homepage's Case File 001. Only the featured-card treatment
   and its two-up row are new. */

.case-files__feat {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 760px) {
  .case-files__feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.case--feat { background: var(--accent-soft); border-color: var(--accent-line); }

.case__banner {
  color: var(--accent-text);
  margin-bottom: 1.15rem;
  padding-bottom: .85rem;
  border-bottom: 1px dashed var(--accent-line);
}

/* ---------- Final CTA ------------------------------------------------------
   .finale is shared/frozen; the eyebrow, pre-title note and the link inside
   .finale__note are page-scoped. Duplicated from work-with-me.css /
   free-audit.css. */

.finale__pre {
  color: var(--ink-3);
  font-size: .9375rem;
  max-width: 52ch;
  text-wrap: pretty;
}
.finale__pre b { color: var(--ink-2); font-weight: 600; }
.finale__note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finale__note a:hover { color: var(--ink); }
