/* Portfolio refinement layer – keep existing stylesheetPD.css intact */
:root { --portfolio-rule: var(--border); }
.case-study .section-space { padding-top: clamp(2.75rem,5vw,4.5rem); padding-bottom: clamp(2.75rem,5vw,4.5rem); }
.case-study .hero-product.section-space { padding-top: clamp(3.5rem,6vw,5rem); padding-bottom: clamp(2.5rem,4vw,3.75rem); }
.case-study .section-title { max-width: 23ch; text-wrap: balance; }
.case-study .section-copy { max-width: 64ch; }
.case-study .case-compact-section { padding-top: 1.75rem; padding-bottom: 2.75rem; }
.case-study .case-visual { margin-top: 0; margin-bottom: 0; }
.case-study .case-visual-body { min-height: 290px; }
/* Structural blocks already used by the case HTML but undefined in the base stylesheet */
.case-summary-section { padding: 2rem 0; background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.case-summary-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 3rem; align-items: center; }
.case-summary-grid h2 { max-width: 22ch; }
.case-facts { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:1rem 1.5rem; margin:0; }
.case-facts div { padding-top:.8rem; border-top:1px solid var(--border); }
.case-facts dt { font:600 .74rem/1.4 var(--font-secondary); color:var(--text-soft); margin-bottom:.4rem; }
.case-facts dd { font:500 .9rem/1.5 var(--font-secondary); margin:0; }
.insight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.insight-card { padding:1.5rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); }
.insight-card>span,.design-process article>span { font:700 .8rem/1.5 var(--font-secondary); color:var(--text-soft); display:block; margin-bottom:1.25rem; }
.insight-card h3 { margin-bottom:.75rem; }
.problem-statement { border-left:3px solid var(--primary); padding:1rem 1.5rem; background:var(--surface); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.problem-statement-label { display:block; margin-bottom:.5rem; color:var(--text-soft); font:700 .75rem var(--font-secondary); text-transform:uppercase; letter-spacing:.07em; }
.problem-statement p { font:600 clamp(1.1rem,1.8vw,1.5rem)/1.5 var(--font-secondary); margin:0; max-width:65ch; }
.design-process { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-top:2rem; }
.design-process article { border-top:2px solid var(--primary); padding:1.25rem .5rem 0 0; }
.design-process article h3 { margin-bottom:.75rem; }
.design-process article p { color:var(--text-soft); line-height:1.7; }
.case-flow { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:1.5rem; }
.case-flow-step { flex:1 1 140px; min-width:0; background:var(--surface-soft); border:1px solid var(--border); border-radius:var(--radius-md); padding:1rem; font:600 .875rem/1.5 var(--font-secondary); text-align:center; }
.journey-explainer { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; margin-top:1.2rem; }
.journey-cell { padding-top:1rem; border-top:1px solid var(--border); }
.journey-number { font:700 .72rem var(--font-secondary); color:var(--text-soft); }
.journey-cell h3 { font-size:.9rem; font-weight:700; margin:.5rem 0; }
.journey-cell p { color:var(--text-soft); font-size:.83rem; line-height:1.6; margin:0; }
.case-visual-story { background:var(--surface-soft); border-block:1px solid var(--border); }
.case-story-header { max-width:46rem; }
.case-story-header h2 { margin-bottom:1rem; }
.story-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:2.5rem; }
.story-node { min-width:0; position:relative; padding:1.5rem; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-xl); }
.story-node:not(:last-child):after { content:'→'; position:absolute; right:-.75rem; top:40%; z-index:1; display:grid; place-items:center; width:1.5rem; height:1.5rem; border:1px solid var(--border); border-radius:50%; background:var(--surface); font:700 .85rem var(--font-secondary); }
.story-node-index { font:700 .75rem var(--font-secondary); color:var(--text-soft); display:block; margin-bottom:1.25rem; }
.story-node h3 { margin-bottom:.75rem; }
.case-screens { align-items:start; }
.case-screen-frame { overflow:hidden; background:var(--surface-soft); }
.case-screen-frame img { display:block; width:100%; height:100%; object-fit:contain; object-position:center top; cursor:zoom-in; }
.case-screen-caption { text-align:center; margin:.85rem 0 .15rem; font:600 .83rem var(--font-secondary); color:var(--text-soft); }
.case-placeholder { overflow:hidden; }
.case-placeholder img { width:100%; height:100%; object-fit:contain; object-position:center; cursor:zoom-in; }
.case-next { padding:3rem 0 4rem; }
.case-next-inner { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; padding-top:1.75rem; border-top:1px solid var(--border); }
.case-next-inner h2 { margin-top:.75rem; }
.editorial-kicker { font:700 .73rem/1.5 var(--font-secondary); letter-spacing:.075em; color:var(--text-soft); }
.editorial-muted { font:.8rem var(--font-secondary); color:var(--text-soft); }
.editorial-strip { margin-top:3rem; border-top:1px solid var(--border); padding:1.5rem 0 0; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; }
.editorial-strip p { font:600 clamp(.9rem,1.5vw,1.15rem)/1.6 var(--font-secondary); margin:0; }
.editorial-strip p span { color:#9ca3af; padding:0 .5rem; }
.featured-proof { margin:1.5rem 0 2rem; padding:1.25rem 0; border-block:1px solid var(--border); }
.featured-proof-heading { display:flex; gap:1rem; justify-content:space-between; align-items:center; margin-bottom:1.25rem; }
.featured-proof-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.2rem; }
.featured-proof-grid>div { padding-right:1rem; border-right:1px solid var(--border); }
.featured-proof-grid>div:last-child { border-right:0; }
.featured-proof-index { display:block; font:700 .75rem var(--font-secondary); color:var(--text-soft); margin-bottom:.5rem; }
.featured-proof-grid strong { display:block; font:700 .96rem var(--font-secondary); margin-bottom:.4rem; }
.featured-proof-grid p { font-size:.84rem; line-height:1.6; color:var(--text-soft); margin:0; }
.js-image-zoom:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
@media(max-width:991.98px){ .case-summary-grid { grid-template-columns:1fr; gap:1.5rem; } .design-process{grid-template-columns:repeat(2,minmax(0,1fr));} .journey-explainer { grid-template-columns:repeat(3,minmax(0,1fr));} .case-screens{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:767.98px){ .case-study .section-space{padding-block:3rem;} .insight-grid,.story-grid,.featured-proof-grid{grid-template-columns:1fr;} .story-node:not(:last-child):after{content:'↓'; top:auto; right:calc(50% - .75rem); bottom:-.75rem;} .case-screens{grid-template-columns:1fr;} .case-screen-frame{height:auto; min-height:220px; aspect-ratio:16/10;} .case-facts{grid-template-columns:1fr 1fr;} .journey-explainer{grid-template-columns:repeat(2,minmax(0,1fr));} .featured-proof-grid>div{padding:0 0 .75rem; border:0; border-bottom:1px solid var(--border);} .featured-proof-grid>div:last-child{border:0;} .editorial-strip,.case-next-inner{align-items:flex-start;flex-direction:column;} .case-next-inner .btn-secondary-soft{width:100%;} .featured-proof-heading{align-items:flex-start;flex-direction:column;} }
@media(max-width:440px){.case-facts,.journey-explainer,.design-process{grid-template-columns:1fr;} .case-flow-step{flex-basis:100%;} }
@media(prefers-reduced-motion:reduce){.js-image-zoom,.case-screen-frame img {transition:none!important;} }
