/* Project case studies — presentation only; content lives in projects.js. */
.hero { min-height:0; padding-block:72px; }
.bonfire-panel {min-height: 560px;}
.project-content .project-summary { font-size:1rem; line-height:1.65; margin-bottom:12px; }
.project-content .project-context { color:var(--muted); font-size:.74rem; margin-bottom:16px; }
.project-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); width:100%; gap:12px; border-block:1px solid var(--line); padding:16px 0; margin:0 0 22px; }
.project-metric { display:flex; flex-direction:column; gap:3px; min-width:0; }
.project-metric dt { order:2; color:var(--muted); font-size:.72rem; line-height:1.4; }
.project-metric dd { order:1; margin:0; color:var(--accent); font:600 clamp(1.25rem,2.4vw,1.85rem)/1.2 var(--font-body); font-variant-numeric:tabular-nums; }
/* Native disclosure: the entire summary is a keyboard-accessible control. */
#project-list { align-items:start; }
#other-project-list { align-items:stretch; }
#other-project-list:has(.case-study[open]) { align-items:start; }
.case-study { width:100%; margin-top:20px; }
.case-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; width:100%; padding:12px 16px; border:1px solid var(--accent); border-radius:var(--radius); background:var(--surface-raised); color:var(--accent); font:600 .86rem/1.45 var(--font-body); cursor:pointer; list-style:none; transition:background-color .15s,color .15s; }
.case-toggle::-webkit-details-marker { display:none; }
.case-toggle::marker { content:""; }
.case-toggle:hover { background:var(--accent); color:var(--bg); }
.case-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.case-chevron { flex:none; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:0 3px 4px 0; }
.case-hide, .case-study[open] .case-show { display:none; }
.case-study[open] .case-hide { display:inline; }
.case-study[open] .case-chevron { transform:rotate(225deg); margin-bottom:0; }
.case-body { display:grid; gap:14px; padding:18px 2px 0; }
@media(prefers-reduced-motion:reduce) { .case-toggle { transition:none; } }
.case-part h4 { font:600 .78rem/1.4 var(--font-body); color:var(--text); margin:0 0 4px; }
.project-content .case-part p { margin:0; font-size:.84rem; line-height:1.65; }
.project-featured .project-visual { justify-content:center; }
.project-featured .state-flow { flex:0 1 auto; margin:36px 0; }
.project-featured .visual-header { position:absolute; top:23px; left:23px; right:23px; }
.project-featured .visual-foot { margin-top:0; text-align:center; }
.illustration-label { display:block; color:#d1b99f; font:.65rem/1.4 var(--font-mono); margin-top:12px; }
.project-featured .illustration-label { position:absolute; bottom:23px; left:23px; }
.more-projects { margin-top:76px; }
.more-projects h2 { font-size:clamp(1.8rem,3vw,2.7rem); margin-bottom:10px; }
.more-projects .section-intro { margin-bottom:24px; }
.project-compact .project-visual { min-height:180px; }
.project-compact .project-content { padding:26px; }
.about-section { border-top:1px solid var(--line); padding-block:64px; }
.about-grid { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
@media(max-width:980px) { .hero {padding-block:55px;} }
@media(max-width:700px) { .hero {padding-block:48px;} .bonfire-panel {min-height:400px;} .project-featured .project-visual {min-height:240px;} .project-featured .visual-header {position:static;} .project-featured .state-flow {margin:30px 0;} .project-featured .illustration-label {position:static;} .about-grid {grid-template-columns:1fr;} .more-projects {margin-top:50px;} }
@media(max-width:385px) { .state-flow {gap:4px;} .state-flow div {font-size:.48rem;padding:10px 5px;} .project-metrics {gap:8px;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));} .project-metric dd {font-size:1.15rem;} }
.booking-example { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; max-width:360px; width:100%; margin:28px auto 0; padding:16px; border:1px solid #71513b; background:#201710a8; border-radius:4px; color:#f0dfcc; }
.booking-example span { font:.62rem/1.4 var(--font-mono); color:#c6a381; }
.booking-example strong { font:500 .76rem/1.5 var(--font-body); }
@media(max-width:700px) { .booking-example {margin:16px auto 0;} .project-featured .illustration-label {margin-top:16px;} }
#hero-title {
    white-space: pre-line;
}