/* V38 — scoped to the two edited Portfolio sections only. */
body.portfolio-page .portfolio-handyman-v38 .case-image {background:#0b101b;}
body.portfolio-page .portfolio-handyman-v38 .case-image > img {object-fit:contain!important;object-position:center!important;}
/* A single visual scale across all five brand tiles, without stretching logos. */
body.portfolio-page .portfolio-identities-v25 .brand-tiles {grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;}
body.portfolio-page .portfolio-identities-v25 .brand-tile {height:188px!important;padding:20px 13px 35px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden;}
body.portfolio-page .portfolio-identities-v25 .brand-tile > img,
body.portfolio-page .portfolio-identities-v25 .brand-tile .logo-pair {width:100%!important;max-width:168px!important;height:95px!important;max-height:95px!important;object-fit:contain!important;position:relative;}
body.portfolio-page .portfolio-identities-v25 .brand-tile .logo-pair {display:flex;align-items:center;justify-content:center;}
body.portfolio-page .portfolio-identities-v25 .brand-tile .logo-pair img {width:100%!important;height:100%!important;object-fit:contain!important;}
body.portfolio-page .portfolio-identities-v25 .brand-tile .portfolio-revline-logo-v25 {height:95px!important;max-height:95px!important;object-fit:contain!important;}
body.portfolio-page .portfolio-identities-v25 .brand-tile-handyman-v38 {background:linear-gradient(145deg,#0a1420,#20160e)!important;}
body.portfolio-page .portfolio-identities-v25 .brand-tile-handyman-v38 img {max-width:185px!important;}
/* Creative work lives inside Identity Work, not in a new top-level website section. */
body.portfolio-page .portfolio-creative-v38{margin-top:94px;}
body.portfolio-page .portfolio-creative-heading-v38{text-align:center;max-width:850px;margin:0 auto 34px;}
body.portfolio-page .portfolio-creative-heading-v38 .kicker{justify-content:center;color:#62a5ff;margin-bottom:18px;}
body.portfolio-page .portfolio-creative-heading-v38 h2{font-size:clamp(34px,4.2vw,58px);letter-spacing:-.046em;line-height:1.13;margin:0 auto 16px;}
body.portfolio-page .portfolio-creative-heading-v38 h2 em{font-style:normal;color:#66a5ff;}
body.portfolio-page .portfolio-creative-heading-v38 p{font-size:15px;max-width:695px;margin:auto;color:#b5c3db;line-height:1.7;}
body.portfolio-page .portfolio-creative-grid-v38{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;}
body.portfolio-page .portfolio-creative-card-v38{position:relative;aspect-ratio:1.26;background:#0a1426;border:1px solid rgba(112,148,207,.32);border-radius:19px;overflow:hidden;isolation:isolate;transition:transform .46s cubic-bezier(.2,.75,.24,1),border-color .46s,box-shadow .46s;box-shadow:0 14px 35px rgba(0,0,0,.21);}
body.portfolio-page .portfolio-creative-card-v38:hover{transform:translateY(-7px);border-color:#5b9cff;box-shadow:0 20px 43px rgba(16,84,206,.22);}
body.portfolio-page .portfolio-creative-card-v38>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.75,.24,1);}
body.portfolio-page .portfolio-creative-card-v38:hover>img{transform:scale(1.035);}
body.portfolio-page .portfolio-creative-card-v38:after{content:'';position:absolute;z-index:0;inset:37% 0 0;background:linear-gradient(0deg,rgba(2,7,17,.94),rgba(3,10,26,.64) 37%,transparent);pointer-events:none;}
body.portfolio-page .portfolio-creative-meta-v38{position:absolute;z-index:1;left:17px;right:17px;bottom:16px;display:flex;align-items:center;gap:12px;color:#fff;}
body.portfolio-page .portfolio-creative-meta-v38 h3{margin:0 0 4px;font-size:clamp(16px,1.65vw,22px);letter-spacing:-.025em;line-height:1.1;}
body.portfolio-page .portfolio-creative-meta-v38 p{margin:0;font-size:11px;color:#c1d0e9;line-height:1.4;}
body.portfolio-page .portfolio-creative-card-icon-v38{flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(137,177,248,.48);background:rgba(6,22,50,.72);border-radius:10px;display:grid;place-items:center;color:#91c3ff;font-size:22px;}
body.portfolio-page .portfolio-creative-disclaimer-v38{text-align:center;color:#8d9bb3;margin:20px 0 0;font-size:11px;line-height:1.7;}
@media(max-width:1120px){body.portfolio-page .portfolio-identities-v25 .brand-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:800px){body.portfolio-page .portfolio-identities-v25 .brand-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.portfolio-page .portfolio-creative-grid-v38{grid-template-columns:repeat(2,minmax(0,1fr));}body.portfolio-page .portfolio-creative-v38{margin-top:64px;}}
@media(max-width:600px){body.portfolio-page .portfolio-identities-v25 .brand-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;}body.portfolio-page .portfolio-identities-v25 .brand-tile{height:150px!important;padding:14px 10px 28px!important;}body.portfolio-page .portfolio-identities-v25 .brand-tile > img,body.portfolio-page .portfolio-identities-v25 .brand-tile .logo-pair{max-width:133px!important;height:76px!important;max-height:76px!important;}body.portfolio-page .portfolio-identities-v25 .brand-tile .portfolio-revline-logo-v25{height:76px!important;max-height:76px!important;}body.portfolio-page .portfolio-creative-grid-v38{grid-template-columns:1fr;gap:14px;}body.portfolio-page .portfolio-creative-card-v38{aspect-ratio:1.4;}body.portfolio-page .portfolio-creative-heading-v38 p{font-size:13px;}body.portfolio-page .portfolio-creative-v38{margin-top:50px;}body.portfolio-page .portfolio-creative-meta-v38 h3{font-size:19px;}}
@media(prefers-reduced-motion:reduce){body.portfolio-page .portfolio-creative-card-v38,body.portfolio-page .portfolio-creative-card-v38>img{transition:none;}}

/* V39: recognizable category symbols; all other portfolio styles unchanged. */
body.portfolio-page .portfolio-creative-card-icon-v38 svg {width:23px;height:23px;display:block;flex:none;filter:drop-shadow(0 0 4px rgba(45,135,255,.3));}
