/* Case stories share the site's palette; evidence gets more space than prose. */
.case-study-page #content{padding-block:clamp(40px,6vw,88px)}
.case-study-page .article{max-width:1120px;margin-inline:auto;font-size:18px;line-height:1.75}
.case-study-page .article > :is(p,ul,ol,h2,h3){max-width:70ch;margin-inline:0}
.case-study-page .article > .svc-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:24px;color:var(--accent)}
.case-study-page .case-hero-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px;font-size:14px;color:var(--fg-muted)}
.case-study-page .article h1{max-width:22ch;margin:0 0 28px;font-family:var(--font-display);font-size:clamp(2rem,4.1vw,3.9rem);font-weight:800;letter-spacing:-.045em;line-height:1.12;text-wrap:balance;overflow-wrap:anywhere}
.case-study-page .article > .lede{max-width:68ch;margin:0 0 40px;color:var(--fg-muted);font-size:clamp(18px,1.6vw,22px);line-height:1.65}
.case-study-page .article h2{margin-top:52px;margin-bottom:20px;font-family:var(--font-body);font-size:clamp(1.55rem,2.6vw,2.2rem);font-weight:800;line-height:1.2;letter-spacing:-.03em}
.case-study-page .article > :is(p,ul,ol){margin-bottom:22px}
.case-study-page .article li + li{margin-top:12px}
.case-study-page .case-visual{width:100%;margin:36px 0 48px;padding:0;aspect-ratio:auto;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface-0);box-shadow:none}
.case-study-page .case-visual img{width:100%;height:auto;object-fit:contain}
.case-study-page .case-result{margin:44px 0;padding:clamp(24px,4vw,48px);border:0;border-radius:8px;background:var(--carbon,#171514);color:#f6eddc;box-shadow:none}
.case-study-page .case-result h3{margin:0 0 16px;color:#fff;font-size:1.6rem}
.case-study-page .case-result p{max-width:70ch;margin:0;color:#e7ded5;font-size:clamp(18px,1.6vw,22px);line-height:1.65}
.case-study-page .case-tech{padding-block:20px;border-block:1px solid var(--border);font-size:14px;color:var(--fg-muted)}
.case-study-page .case-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-block:28px 44px}
.case-study-page .case-related a{display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px 0;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;transition:border-color .15s}
.case-study-page .case-related a:hover{border-color:var(--accent)}
.case-study-page .case-related .r-cat{font-size:13px;color:var(--accent)}
.case-study-page .case-related .r-name{font-size:17px;font-weight:700;line-height:1.5}
.case-study-page .post-cta{margin-top:40px;padding:clamp(24px,4vw,44px);border:1px solid var(--border);border-top:3px solid var(--accent);border-radius:6px;background:var(--surface-0)}
.case-study-page .post-cta p{max-width:62ch;margin-block:16px 24px}
.case-study-page .article .btn{max-width:100%;white-space:normal;text-align:center}
.case-study-page .article a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
@media(max-width:700px){
  .case-study-page .article{font-size:17px}
  .case-study-page .article h1{font-size:clamp(1.8rem,6.8vw,2.6rem)}
  .case-study-page .article h2{margin-top:36px}
  .case-study-page .case-related{grid-template-columns:minmax(0,1fr);gap:12px}
  .case-study-page .case-visual{margin-block:28px 36px}
}
@media(prefers-reduced-motion:reduce){.case-study-page .case-related a{transition:none}}
