/* Case study storytelling patterns. Shared by every case study. Load after case.css and case-nav.css.

   Hero subtitle         .hero-sub
   Executive summary     .exec, .exec-row
   Chapters              .chapter, .chapter-lead, .chapter-body
   Key decision          .kd > .kd-row (insight, decision, evidence, outcome)
   Outcomes in 3 groups  .outcomes > .out-col, tagged .tag-measured | .tag-initiative | .tag-observed | .tag-learning
   Evidence visuals      .figure-wide, .annotated (.pins + .legend), .before-after                         */

.hero-sub { margin: 14px 0 0; max-width: 24ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.005em; color: var(--rust-strong); }

/* ---------- Executive summary ---------- */
.exec { margin-top: clamp(44px, 7vw, 80px); border-top: 1px solid var(--line); }
.exec-title { margin: 0; padding: clamp(22px, 3vw, 30px) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.01em; }
.exec-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 28px) 0; border-bottom: 1px solid var(--line); }
.exec-row:last-child { border-bottom: 0; }
.exec-label { margin: 3px 0 0; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.exec-body { min-width: 0; }
.exec .role-lead { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); max-width: 64ch; }
.exec .role-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.exec .stats { margin: 0; gap: clamp(14px, 2vw, 28px); }
.exec .stats .num { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.exec .stats .cap { font-size: 0.88rem; }
.exec .glance { margin: 0; padding: 0; border: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .exec .role-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .exec .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .exec-row { grid-template-columns: 1fr; row-gap: 10px; } }
@media (max-width: 560px) { .exec .role-cols { grid-template-columns: 1fr; } }

/* ---------- Chapters ---------- */
.case-layout { margin-top: clamp(44px, 7vw, 80px); }
.chapter { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.chapter:first-child { margin-top: 0; }
.chapter > h2 { margin: 0; max-width: 22ch; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); line-height: 1.06; letter-spacing: -0.02em; }
.chapter-lead { margin: 18px 0 0; max-width: 58ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--ink-soft); }
.chapter-lead b { color: var(--ink); font-weight: 600; }
.chapter-body { margin-top: 22px; max-width: 68ch; }
.chapter-body p { margin: 0 0 14px; }
.chapter-body p:last-child { margin-bottom: 0; }
.chapter > .question { margin-top: 28px; max-width: 62ch; }
.chapter .figure, .chapter .table-wrap, .chapter .figure-2up, .chapter .points, .chapter .before-after { margin-top: clamp(26px, 3.5vw, 36px); }
.chapter .points { max-width: 68ch; }
.chapter .table-wrap { max-width: none; }

/* ---------- Key decision: insight, decision, evidence, outcome ---------- */
.kd { margin-top: clamp(30px, 4vw, 44px); border-top: 2px solid var(--ink); }
.kd-title { margin: 0; padding: 14px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); letter-spacing: -0.01em; }
.kd-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 28px; padding: 14px 0; border-top: 1px solid var(--line); }
.kd-title + .kd-row { border-top: 0; }
.kd-row p { margin: 0; max-width: 64ch; }
.kd-label { align-self: start; padding-top: 4px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.kd-decision .kd-label { color: var(--rust-strong); }
.kd-decision p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.35; }
.kd-insight p, .kd-evidence p { color: var(--ink-soft); }
.kd-outcome .kd-label { color: var(--ink); }
.kd-outcome { border-top-color: var(--ink); }
@media (max-width: 600px) { .kd-row { grid-template-columns: 1fr; } }

/* ---------- Outcomes in three dimensions ---------- */
.outcomes { margin-top: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.out-col { border-top: 2px solid var(--ink); padding-top: 14px; }
.out-col h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }
.out-col ul { margin: 0; padding: 0; list-style: none; }
.out-col li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.out-col h3 + ul li:first-child { border-top: 0; }
.out-col .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--rust); }
.out-col .txt { font-size: 0.95rem; line-height: 1.5; }
.tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.tag-measured { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag-initiative { border-color: var(--rust); color: var(--rust-strong); }
.tag-observed { border-style: dashed; }
.tag-learning { border-color: transparent; background: var(--rust-wash); color: var(--rust-strong); }
@media (max-width: 980px) { .outcomes { grid-template-columns: 1fr; } }

/* ---------- Evidence visuals ---------- */
.figure-wide { max-width: none; }
.annotated .frame { position: relative; }
.pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pins li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); color: #fff; border: 2px solid #fff; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; box-shadow: 0 2px 8px rgba(23, 22, 15, 0.3); }
.legend { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; counter-reset: pin; }
.legend li { position: relative; padding-left: 34px; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); counter-increment: pin; }
.legend li::before { content: counter(pin); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); color: #fff; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; }
.legend b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .legend { grid-template-columns: 1fr; } }

.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba { border: 1px solid var(--line-strong); border-radius: 8px; padding: 18px 20px; }
.ba h4 { margin: 0 0 10px; font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.ba .ba-num { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.ba p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.ba.is-after { background: var(--rust-wash); border-color: var(--rust-light); }
.ba.is-after h4 { color: var(--rust-strong); }
.ba.is-after p { color: var(--ink); }
@media (max-width: 600px) { .before-after { grid-template-columns: 1fr; } }

.chapter .reflection { margin-top: clamp(44px, 6vw, 64px); }
