/* Portfolio page layout and visibility: independent of homepage animations. */
body.projects-page main{padding-top:100px}
body.projects-page .projects-hero{max-width:1200px;margin:0 auto;padding:52px 24px 28px;text-align:center}
.projects-hero h1{font-size:clamp(2rem,5vw,3.7rem);line-height:1.12;margin:12px 0 18px}
.projects-hero p{max-width:700px;margin:0 auto;color:var(--muted);line-height:1.7}
body.projects-page .projects-content{max-width:1200px;margin:0 auto;padding:10px 24px 60px}
.projects-page .filters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:26px}
.projects-page .work-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;overflow:visible!important;width:100%!important;margin:0!important;padding:0!important}
.projects-page .work-grid>.work-card{display:block;width:100%!important;max-width:100%!important;min-width:0;opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important;clip-path:none!important;animation:none!important;margin:0!important;text-decoration:none}
.projects-page .work-grid>.work-card.hide{display:none!important}
.projects-page .thumb{aspect-ratio:16/11;background:#eef2fa;overflow:hidden}
.projects-page .thumb img{display:block;width:100%;height:100%;object-fit:cover}
.projects-page .work-card .meta{padding:18px}
@media(max-width:1024px){.projects-page .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.projects-page main{padding-top:76px}body.projects-page .projects-hero{padding:28px 18px 20px!important}body.projects-page .projects-content{padding:0 18px 35px!important}.projects-page .work-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.projects-page .filters{gap:7px;margin-bottom:18px}.projects-page .filter{padding:9px 12px;font-size:.75rem}}

/* Compact heading-to-project rhythm, without changing the homepage. */
body.projects-page main > section.projects-hero{padding-top:28px!important;padding-bottom:12px!important;margin-bottom:0!important;min-height:0!important;}
body.projects-page main > section.projects-content{padding-top:0!important;margin-top:0!important;min-height:0!important;}
.projects-page .projects-hero h1{margin-top:8px!important;margin-bottom:10px!important;}
.projects-page .projects-hero p{margin-bottom:0!important;}
.projects-page .filters{margin-top:0!important;margin-bottom:16px!important;}
/* Preserve the supplied website screenshots without cropping their edges. */
.projects-page .thumb{aspect-ratio:1505/847!important;}
.projects-page .thumb img{object-fit:contain!important;}
@media(max-width:600px){
 body.projects-page main > section.projects-hero{padding-top:18px!important;padding-bottom:12px!important;}
 body.projects-page main > section.projects-content{padding-top:0!important;}
 .projects-page .filters{margin-bottom:14px!important;}
}
