/* Portfolio uses the main site's shared Inter typography. */
.portfolio-edited .case-study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:32px}
.portfolio-edited .case-study-grid .work-card{display:flex;flex-direction:column;min-width:0;height:100%;text-decoration:none;border:1px solid var(--line-2);background:#fff}
.portfolio-edited .case-study-grid .work-card.is-hidden{display:none}
.portfolio-edited .case-study-grid .work-card .img{width:100%;aspect-ratio:3/2;height:auto!important;background:var(--steel);overflow:hidden;flex:none}
.portfolio-edited .case-study-grid .work-card .img img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;aspect-ratio:auto!important}
.portfolio-edited .case-study-grid .work-card .body{display:flex;flex-direction:column;flex:1;min-height:160px;padding:28px;background:#fff;color:var(--ink)}
.portfolio-edited .case-study-grid .work-card h3{font-family:var(--display)!important;font-weight:700;font-size:1.85rem;line-height:1.04;letter-spacing:.012em;text-transform:uppercase;color:var(--ink);margin:0 0 24px}
.portfolio-edited .project-link{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;margin-top:auto;color:var(--ink)}
.portfolio-edited .filter-btn{font-family:var(--display)!important;font-size:1.15rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.portfolio-edited .work-count{font-family:var(--mono);font-size:.75rem}
.portfolio-detail .portfolio-detail-image{margin:32px 0}.portfolio-detail-image img{display:block;width:100%;max-height:800px;object-fit:contain;background:var(--steel)}
.portfolio-detail-image figcaption{font-family:var(--mono);font-size:.8rem;margin-top:16px}
.portfolio-detail .faq-item p{padding:20px 0}.portfolio-detail .btn-row{margin-top:32px}
@media(max-width:1100px){.portfolio-edited .case-study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.portfolio-edited .case-study-grid{grid-template-columns:1fr;gap:28px}.portfolio-edited .case-study-grid .work-card .body{min-height:150px;padding:24px}.portfolio-edited .case-study-grid .work-card h3{font-size:1.75rem}}

/* Restore the original portfolio introduction without oversized empty bands. */
body.portfolio-edited .client-hero{min-height:0!important;padding:148px 0 48px!important}
body.portfolio-edited .client-hero h1{font-size:clamp(2.5rem,4vw,4rem)!important;line-height:1.08!important;margin:0}
body.portfolio-edited .client-intro{padding:48px 0 20px!important;min-height:0}
body.portfolio-edited .client-intro-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;margin-bottom:32px}
body.portfolio-edited .client-intro h2{font-size:clamp(2rem,3vw,3rem);margin:0 0 24px}
body.portfolio-edited .client-intro p{font-size:18px;line-height:1.6;margin:0 0 16px}
body.portfolio-edited .client-filter{margin:0;padding:20px 0 0}
body.portfolio-edited .client-intro .work-count{font-size:13px;margin:12px 0 0}
body.portfolio-edited .case-study-section{padding-top:24px!important}
@media(max-width:760px){body.portfolio-edited .client-hero{padding:120px 0 36px!important}body.portfolio-edited .client-intro{padding-top:32px!important}body.portfolio-edited .client-intro-grid{grid-template-columns:1fr;gap:28px;margin-bottom:20px}body.portfolio-edited .client-intro p{font-size:16px}}
body.portfolio-edited .work-card .project-platform{color:#bdbbb5;font-size:13px;margin:-8px 0 24px;line-height:1.4}
