/* Case studies: shared portfolio tokens, spacious editorial reading layouts. */
.project-theme { --theme-bg:var(--paper); --theme-text:var(--ink); --theme-subtle:var(--quiet); --theme-accent:var(--focus); --theme-surface:var(--surface); }
.project-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; padding:24px 0 40px; color:var(--quiet); font-size:10px; }
.project-breadcrumb a { border-bottom:1px solid var(--rule); }
.project-breadcrumb [aria-current] { overflow-wrap:anywhere; border:0; }
.case-study { min-width:0; }
.case-study .container { width:100%; max-width:none; margin:0 auto; padding:0; }
.case-study .row { display:flex; flex-wrap:wrap; gap:24px; margin:0; }
.case-study [class*="col-"] { display:block; width:100%; max-width:100%; min-width:0; padding:0; }
.case-study .highlight,.case-study .pictory-section,.case-study section { margin-block:48px; }
.case-study h1 { max-width:1000px; margin:32px 0; font:400 clamp(38px,6vw,78px)/1.1 var(--serif); letter-spacing:-.035em; text-wrap:balance; }
.case-study h2,.case-study .h2 { max-width:900px; font:400 clamp(28px,4vw,44px)/1.2 var(--serif); letter-spacing:-.02em; text-transform:none; margin:48px 0 24px; }
.case-study h3,.case-study h4,.case-study .h4 { font:400 clamp(23px,3vw,30px)/1.3 var(--serif); margin:32px 0 16px; }
.case-study h1 b,.case-study h2 b { font-weight:400; }
.case-study p,.case-study .lead,.case-study li { max-width:78ch; font:400 13px/1.95 var(--mono); color:var(--ink); overflow-wrap:anywhere; }
.case-study p { margin-block:0 24px; }
.case-study .lead { font-size:14px; }
.case-study .h6,.case-study .pictory-section__label,.case-study .decision-number { font:11px/1.7 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--quiet); margin-top:24px; }
.case-study p a,.case-study li a,.case-study .case-toc a { text-decoration:underline; text-decoration-color:var(--rule); text-underline-offset:4px; }
.case-study img { max-width:100%; height:auto; margin:24px auto; object-fit:contain; }
.case-study figure { margin:32px 0; }
.case-study figcaption { font:11px/1.8 var(--mono); color:var(--quiet); margin-top:12px; }
.case-study .project-embed { width:100%; max-width:100%; aspect-ratio:16/9; height:auto; border:0; }
.case-study .case-study-meta,.case-study .decision-grid { display:grid; gap:24px; margin-block:32px; }
.case-study .decision-card,.case-study .case-study-prompt { background:var(--surface); padding:24px; border:1px solid var(--rule); }
.case-study .case-study-prompt__title { font-size:11px; color:var(--quiet); text-transform:uppercase; }
.case-study .case-toc { border-block:1px solid var(--rule); padding:24px 0; margin:24px 0; }
.case-study .kinsta-beta-banner { display:block; max-height:65vh; overflow:hidden; border:1px solid var(--rule); }
.case-study .kinsta-beta-banner img { margin:0; }
.case-study .kinsta-media-grid,.case-study .iteration-grid { display:grid; gap:24px; }
.case-study table { display:block; max-width:100%; overflow-x:auto; }
.case-study pre { max-width:100%; overflow:auto; }
.project-return { display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px; border-top:1px solid var(--rule); padding-top:40px; margin-top:80px; }
.project-return a { font:32px/1.3 var(--serif); }
.project-return span { display:block; font:10px/1.8 var(--mono); color:var(--quiet); letter-spacing:.1em; margin-bottom:12px; }
@media(min-width:768px) {
 .case-study .highlight,.case-study .pictory-section,.case-study section { margin-block:72px; }
 .case-study .case-study-meta,.case-study .decision-grid,.case-study .kinsta-media-grid,.case-study .iteration-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .case-study .row>.col-lg-6 { width:calc(50% - 12px); }
 .case-study .row>.col-lg-4 { width:calc(33.333% - 16px); }
}
@media(prefers-reduced-motion:no-preference) { .project-return a { transition:color 180ms ease; } .project-return a:hover { color:var(--focus); } }

/* Section navigation: collapsible on phones, a quiet sticky rail on desktop. */
.project-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
.project-section-panel { min-width:0; border-block:1px solid var(--rule); padding:16px 0; }
.project-section-menu summary { cursor:pointer; font:11px/1.8 var(--mono); color:var(--quiet); }
.project-section-menu nav { display:grid; gap:12px; padding-top:20px; }
.project-section-menu a { font:11px/1.7 var(--mono); color:var(--quiet); overflow-wrap:anywhere; }
.project-section-menu a[aria-current] { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.project-panel-actions { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:20px; font:11px/1.8 var(--mono); }
.case-study h2 { scroll-margin-top:32px; }
@media(min-width:1000px) {
 .project-layout { grid-template-columns:180px minmax(0,1fr); gap:clamp(32px,4vw,64px); margin-top:36px; }
 .project-section-panel { position:sticky; top:24px; align-self:start; max-height:calc(100vh - var(--footer-height) - 60px); overflow:auto; padding-right:10px; }
 .project-panel-actions { display:grid; }
}

/* Approved two-column case-study layout, shared by every project. */
.project-theme .shell { max-width:1480px; padding-inline:clamp(24px,5vw,80px); }
.project-theme .project-layout { margin-top:56px; }
.project-theme .case-study h1 { margin-top:16px; font-size:clamp(38px,5vw,72px); max-width:850px; }
.project-theme .case-study>.container:empty { display:none; }
.project-theme .project-section-panel { border-top:0; border-bottom:0; }
.project-theme .project-section-menu summary { font-size:10px; letter-spacing:.1em; }
.project-theme .project-section-menu nav { gap:15px; }
.project-theme .project-panel-actions { border-top:1px solid var(--rule); padding-top:22px; margin-top:28px; }
.project-theme .project-main-content>.pictory-section__label { margin-top:0; font-size:10px; }
.project-theme .project-main-content>.lead { max-width:66ch; font-size:14px; margin-top:24px; }
.project-theme .project-main-content>.row { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:32px 0; padding-block:24px; border-block:1px solid var(--rule); }
.project-theme .project-main-content>.row>div { width:auto; }
.project-theme .project-main-content>.row h4 { margin:0 0 12px; font:10px var(--mono); text-transform:uppercase; letter-spacing:.08em; color:var(--quiet); }
.project-theme .project-main-content>.row p { font-size:12px; margin:0; }
.project-theme .project-cover { margin-top:32px; }
@media(min-width:700px) {
 .project-theme .project-layout { grid-template-columns:170px minmax(0,1fr); gap:clamp(32px,5vw,80px); }
 .project-theme .project-section-panel { position:sticky; top:30px; align-self:start; max-height:calc(100vh - var(--footer-height) - 70px); overflow:auto; border-right:1px solid var(--rule); padding:0 24px 0 0; }
 .project-theme .project-section-menu summary { list-style:none; }
 .project-theme .project-panel-actions { display:grid; }
}
@media(max-width:699px) { .project-theme .project-layout { margin-top:28px; } .project-theme .project-section-panel { border-block:1px solid var(--rule); } }

/* Book List: original product screens, shown without cropping. */
.book-list-case .book-list-mark { width:80px; height:auto; margin:0 0 24px; }
.book-list-case .case-study-meta h2 { font:11px/1.6 var(--mono); text-transform:uppercase; letter-spacing:.06em; }
.book-list-screens { display:grid; grid-template-columns:minmax(0,1fr); gap:32px; padding:clamp(16px,3vw,40px); background:#fff3cc; border-radius:8px; margin:40px 0; }
.book-list-screens figure { min-width:0; margin:0; align-self:start; }
.book-list-case .book-list-screens img { display:block; width:100%; max-width:340px; margin:0 auto 16px; border-radius:8px; }
.book-list-single { max-width:420px; }
.book-list-case .book-list-single img { display:block; width:100%; border:1px solid var(--rule); border-radius:8px; }
.book-list-case section { scroll-margin-top:32px; }
@media(min-width:600px) { .book-list-screens { grid-template-columns:repeat(2,minmax(0,1fr)); } }
