/* Shared work-detail shell; content and project-specific media stay intact. */
.case-page .browser-frame{overflow:clip}
.case-page .case-body{grid-template-columns:minmax(160px,200px) minmax(0,1fr);gap:clamp(28px,4vw,64px);align-items:start}
.case-page .case-body>aside{position:sticky;top:28px;max-height:calc(100dvh - 56px);overflow-y:auto;align-self:start}
.case-page .case-body>aside nav{margin:12px 0 0}
.case-page .case-body>aside nav a{border-left:2px solid transparent;padding:12px 10px;font-size:12px;line-height:1.6}
.case-page .case-body>aside nav a[aria-current]{border-left-color:#db702a;color:#2d302c;background:#eee8da;font-weight:600}
.case-page .case-body>aside nav a:hover{background:#f0ebdf}
.case-page .case-article{min-width:0}
.case-page .case-article section[id]{scroll-margin-top:28px}
.case-page .next-case{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 24px;margin:0 8% 64px;padding:28px 0;text-decoration:none}
.case-page .next-case>.eyebrow{grid-column:1;grid-row:1;font-size:12px;letter-spacing:.08em}
.case-page .next-case>strong{grid-column:1;grid-row:2;font-family:inherit;font-size:clamp(22px,2.4vw,32px);line-height:1.55;letter-spacing:0;font-weight:600;overflow-wrap:anywhere}
.case-page .next-case>span:last-child{grid-column:2;grid-row:1 / 3;font-size:26px}
.case-page .next-case:hover>strong{color:#915021}
.case-page .daily-contact{padding:56px 8% 44px;text-align:center}
.case-page .daily-contact h2{font-size:clamp(24px,3vw,32px);line-height:1.5;margin:0 0 20px}
.case-page .daily-contact>p{max-width:640px;margin:12px auto;font-size:15px;line-height:1.9}
.case-page .daily-contact .contact-actions{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:12px;margin:24px auto 16px}
.case-page .daily-contact .button-primary,.case-page .daily-contact .button-secondary{font:inherit;font-size:14px;line-height:1.5;min-height:48px;padding:12px 20px;justify-content:center}
.case-page .daily-contact .email-row{display:flex;justify-content:center;max-width:100%}
.case-page .daily-contact .email-text{font-size:14px;max-width:100%;overflow-wrap:anywhere}
.case-page .daily-contact .contact-hint{max-width:560px;font-size:12px!important;line-height:1.8}
.case-page .daily-contact .copy-status{min-height:24px;font-size:13px;margin:4px auto}
.case-page .case-back-top{position:fixed;right:max(18px,calc((100vw - 1450px)/2 + 22px));bottom:24px;z-index:20;padding:12px 18px;min-height:44px;display:inline-flex;align-items:center;gap:8px;border:1px solid #756f61;border-radius:5px;background:#fffaf0;box-shadow:0 3px 10px #352e2412;font-size:13px;color:#303a34;text-decoration:none}
.case-page .case-back-top[hidden]{display:none}
.case-page a:focus-visible,.case-page button:focus-visible{outline:3px solid #295d7a;outline-offset:4px}
@media(max-width:800px){
 .case-page .case-body{display:block;padding:0 7%}
 .case-page .case-body>aside{position:static;max-height:none;overflow:visible;margin-bottom:36px}
 .case-page .case-body>aside nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
 .case-page .next-case{margin:0 7% 40px}
 .case-page .daily-contact{padding:40px 7% 36px}
 .case-page .daily-contact .contact-actions{display:grid;grid-template-columns:minmax(0,1fr);max-width:360px}
 .case-page .case-back-top{right:18px;bottom:16px;padding:10px 14px;font-size:12px}
 .case-page footer{padding-bottom:80px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.case-page .daily-contact .contact-hint{margin:18px auto 0}
.case-page footer{padding-bottom:76px}

/* Shared image stage aligned to the title's content column. */
.case-page #case-main > .case-hero,
.case-page #case-main > .case-hero.podcast{
 margin:0 8%;max-width:none;width:84%;height:auto;aspect-ratio:16 / 9;
 padding:0;box-sizing:border-box;border-radius:0;overflow:hidden;
 background:var(--paper,#fff8eb);
}
.case-page #case-main > .case-hero img{
 display:block;width:100%;height:100%;max-width:none;max-height:none;
 object-fit:cover;object-position:center;
}
@media(max-width:800px){
 .case-page #case-main > .case-hero,
 .case-page #case-main > .case-hero.podcast{margin-inline:7%;width:86%}
}
/* Keep orientation and project name visible before the image. */
.case-page #case-main > .case-lead:not(.case-meta){padding-top:24px;padding-bottom:20px}
.case-page #case-main > .case-lead:not(.case-meta) h1{margin-bottom:0}
.case-page #case-main > .case-meta{padding-top:32px}

/* Keep the app header and complete main navigation in this screen capture. */
.case-page #case-main > .case-hero-ui img{object-position:center top}

/* Preserve the book title on the right edge of the landscape artwork. */
.case-page #case-main > .case-hero-right img{object-position:right center}
