/* Shared layout for the three authored project studies. */
.case-page { --page-canvas:var(--bg); }
.case-frame { background:var(--bg); }
.case-hero { padding:32px 58px 64px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); column-gap:60px; align-items:center; }
.case-breadcrumb { grid-column:1/-1; display:flex; align-items:center; gap:12px; font-size:11px; color:var(--muted); padding-bottom:58px; }
.case-breadcrumb a:hover { color:var(--accent); }
.case-client { font-size:15px; font-weight:600; color:var(--accent); margin:20px 0 12px; }
.case-hero h1 { font-size:clamp(34px,4vw,54px); line-height:1.08; letter-spacing:-2px; margin:0 0 24px; }
.case-summary { font-size:14px; line-height:1.9; color:var(--muted); margin-bottom:25px; }
.case-hero .tech-chips { display:flex; flex-wrap:wrap; gap:8px; }
.case-hero .tech-chips span { font-size:10px; }
.case-actions { display:flex; gap:22px; flex-wrap:wrap; align-items:center; margin-top:30px; }
.case-actions .text-link { font-size:11px; line-height:1.7; }
.case-visual { margin:0; min-width:0; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface); box-shadow:var(--shadow); }
.case-window { display:flex; gap:14px; align-items:center; padding:12px 16px; color:var(--muted); background:var(--soft); border-bottom:1px solid var(--border); font-size:9px; }
.case-window > span:first-child { font-size:8px; letter-spacing:2px; opacity:.5; }
.case-visual img { display:block; width:100%; height:360px; object-fit:cover; object-position:top; }
.case-visual figcaption { padding:15px 18px; font-size:10px; line-height:1.8; color:var(--muted); border-top:1px solid var(--border); }
.case-body { display:grid; grid-template-columns:280px minmax(0,1fr); gap:70px; padding:64px 58px 80px; border-top:1px solid var(--border); }
.case-role { align-self:start; position:sticky; top:104px; padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.case-role .eyebrow { font-size:9px; }
.case-role h2 { font-size:21px; line-height:1.3; letter-spacing:-.5px; margin:18px 0; }
.case-role p,.case-role li { font-size:11px; line-height:1.9; color:var(--muted); }
.case-role ul { padding-left:16px; margin:20px 0; }
.case-role li { padding:3px 0; }
.case-credit { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.case-credit > span { font-size:8px; letter-spacing:1px; color:var(--accent); }
.case-credit p { margin-bottom:0; }
.case-chapter { padding:0 0 32px; margin-bottom:32px; border-bottom:1px solid var(--border); }
.case-chapter:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.case-chapter-label { display:flex; align-items:baseline; gap:14px; margin-bottom:16px; }
.case-chapter-label > span { font:10px monospace; color:var(--accent); }
.case-chapter h2 { font-size:26px; letter-spacing:-.7px; margin:0; }
.case-chapter > p { font-size:14px; line-height:1.95; color:var(--muted); margin:0; }
.case-next { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:60px; align-items:center; padding:60px 58px; border-top:1px solid var(--border); background:var(--soft); }
.case-next h2 { font-size:30px; line-height:1.2; letter-spacing:-1px; margin:20px 0 16px; }
.case-next p:not(.eyebrow) { font-size:12px; line-height:1.8; color:var(--muted); }
.case-next .button { margin-top:16px; }
.case-next-link { padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--surface); font-size:10px; color:var(--muted); }
.case-next-link strong { display:flex; justify-content:space-between; font-size:22px; color:var(--text); margin-top:14px; }
.case-next-link:hover { border-color:var(--accent); }
.case-page a:focus-visible,.case-page button:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media(max-width:1050px) {
 .case-hero { padding-inline:35px; gap:35px; }
 .case-body { grid-template-columns:240px minmax(0,1fr); gap:35px; padding-inline:35px; }
 .case-hero h1 { font-size:40px; }
 .case-next { padding-inline:35px; }
}
@media(max-width:768px) {
 .case-hero { grid-template-columns:1fr; padding:24px 24px 40px; gap:30px; }
 .case-breadcrumb { padding-bottom:6px; }
 .case-hero h1 { font-size:38px; letter-spacing:-1.5px; }
 .case-summary { font-size:13px; }
 .case-visual img { height:300px; }
 .case-body { grid-template-columns:1fr; gap:40px; padding:40px 24px; }
 .case-role { position:static; }
 .case-chapter h2 { font-size:23px; }
 .case-chapter > p { font-size:13px; }
 .case-next { grid-template-columns:1fr; gap:30px; padding:40px 24px; }
 .case-next h2 { font-size:27px; }
 .case-next-link { max-width:none; }
}
@media(max-width:420px) { .case-hero h1 { font-size:33px; }.case-actions { gap:18px; }.case-visual img { height:250px; } }
