:root {
  --ink: #18231e;
  --paper: #f5f6f2;
  --white: #fff;
  --line: #cbd0ca;
  --muted: #5f6964;
  --acid: #d8ff68;
  --blue: #2f5cff;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.case-header { position: sticky; top: 0; z-index: 10; display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 10px clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(245, 246, 242, .96); backdrop-filter: blur(12px); }
.case-header a { font-size: .9rem; font-weight: 700; }
.case-header a:hover, .case-header a:focus-visible { color: var(--blue); }
.case-hero { max-width: var(--max); margin: 0 auto; padding: 95px 30px 70px; }
.eyebrow, .section-label, .snapshot dt { margin: 0; color: var(--blue); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.case-hero h1 { max-width: 900px; margin: 18px 0 28px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .98; }
.case-hero .lead { max-width: 800px; margin: 0; color: var(--muted); font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.45; }
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 30px 70px; }
.snapshot div { min-height: 122px; padding: 22px; border-top: 1px solid var(--ink); border-right: 1px solid var(--line); }
.snapshot div:last-child { border-right: 0; }
.snapshot dd { margin: 18px 0 0; font-weight: 700; line-height: 1.35; }
.case-section { border-top: 1px solid var(--line); }
.case-inner { max-width: var(--max); margin: 0 auto; padding: 72px 30px; }
.case-inner h2 { max-width: 720px; margin: 14px 0 40px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 10vw, 120px); }
.two-col h2 { margin-top: 0; }
.two-col p:first-child { margin-top: 0; }
.two-col p, .two-col li { color: var(--muted); }
.two-col ul { margin: 0; padding-left: 20px; }
.two-col li + li { margin-top: 10px; }
.evidence { background: var(--ink); color: var(--white); }
.evidence .section-label { color: var(--acid); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid #4c5a53; background: #4c5a53; }
.metric { min-height: 190px; padding: 28px; background: #202e28; }
.metric span { color: var(--acid); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.metric strong { display: block; margin: 24px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.metric p { margin: 0; color: #c4cec9; }
.process { counter-reset: step; border-top: 1px solid var(--ink); }
.process li { display: grid; grid-template-columns: 70px .8fr 1.2fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); list-style: none; }
.process li::before { counter-increment: step; content: "0" counter(step); color: var(--blue); font-size: .8rem; font-weight: 700; }
.process strong { font-size: 1.1rem; }
.process span { color: var(--muted); }
.decision-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.decision-table th, .decision-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table th { color: var(--blue); font-size: .75rem; text-transform: uppercase; }
.decision-table td:first-child { font-weight: 700; }
.outcome { background: var(--blue); color: var(--white); }
.outcome .section-label { color: var(--acid); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 10vw, 120px); }
.outcome-grid h2 { margin-top: 14px; }
.outcome-grid p { color: #e8ecff; }
.next-link { display: inline-flex; margin-top: 26px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 700; }
.case-footer { display: flex; justify-content: space-between; padding: 26px clamp(22px, 4vw, 64px); background: var(--ink); color: #c4cec9; font-size: .82rem; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

@media (max-width: 760px) {
  .case-hero { padding-top: 68px; }
  .case-hero h1 { font-size: 2.5rem; overflow-wrap: anywhere; }
  .snapshot, .metric-grid, .two-col, .outcome-grid { grid-template-columns: 1fr; }
  .snapshot div { min-height: auto; border-right: 0; }
  .process { padding: 0; }
  .process li { grid-template-columns: 42px 1fr; gap: 14px; }
  .process li span { grid-column: 2; }
  .decision-table { font-size: .82rem; }
  .decision-table th, .decision-table td { padding: 13px 8px; overflow-wrap: anywhere; }
  .case-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
