/* Shared PC hero dimensions. The preview budget mirrors the existing homepage
   service heading row (2.7rem), padding, borders and reveal gap. Home still measures
   its actual headings to accommodate customized text. */
:root{--hero-preview-budget:calc(68px + 2.7rem);--hero-photo-width:54%;--hero-wrap-width:min(var(--max),calc(100% - 80px))}
@media(min-width:1101px) and (max-width:1343px){:root{--hero-wrap-width:calc(100% - 144px)}}
@media(min-width:1440px){:root{--hero-photo-width:58%}}
@media(min-width:1024px) and (max-width:1150px){:root{--hero-photo-width:53%}}
@media(min-width:1024px) and (max-width:1100px){:root{--hero-preview-budget:calc(62px + 2.7rem);--hero-wrap-width:calc(100% - 48px)}}
@media(min-width:1024px) and (max-height:680px){:root{--hero-preview-budget:calc(48px + 2.7rem)}}
@media(min-width:1024px) and (max-height:560px){:root{--hero-preview-budget:calc(36px + 2.7rem)}}
@media(min-width:1024px) and (max-height:440px){:root{--hero-preview-budget:calc(26px + 2.7rem)}}

/* Approved homepage portrait and first-viewport layout. Same PC portrait treatment as the About preview.
   The original grid columns and left copy keep their dimensions and alignment. */
@media(min-width:1024px){
 .home-hero{background:linear-gradient(108deg,var(--brand-surface) 0%,var(--brand-surface) 58%,var(--brand-soft) 100%)}
 .home-hero .hero-grid{position:relative;isolation:isolate;align-content:start;min-height:clamp(620px,calc(100svh - 110px),820px)}
 .home-hero .hero-copy{position:relative;z-index:2}
 /* Retain the original photo column's intrinsic height so left-side content does not shift. */
 .home-hero .hero-portrait{position:static;overflow:visible;border:0;background:transparent;box-shadow:none}
 .home-hero .hero-portrait picture{display:block;height:420px}
 .home-hero .hero-portrait img{position:absolute;inset:0 0 0 auto;width:var(--hero-photo-width);height:100%;max-height:none;object-fit:contain;object-position:100% 100%;mask-image:none;-webkit-mask-image:none;transform:translateX(0px) scale(1.16);transform-origin:100% 0%;z-index:0}
 .home-hero .hero-portrait::before,.home-hero .hero-portrait::after{display:none}
}

/* Reserve only the measured service-card headings in the first PC viewport. */
@media(min-width:1024px){
 .home-hero .hero-grid{height:calc(100svh - var(--hero-header-stack,var(--navigation-height,76px)) - var(--hero-preview-budget) - 1px);min-height:0;grid-template-rows:minmax(0,1fr);align-content:stretch;padding-top:clamp(12px,2.6svh,28px);padding-bottom:clamp(12px,2.6svh,28px)}
 .home-hero .hero-copy{align-self:center;min-height:0}
 .home-hero .hero-copy>.eyebrow{font-size:clamp(11px,1.9svh,14px);line-height:1.65;margin-bottom:clamp(8px,1.8svh,18px)}
 .home-hero .hero-copy h1{font-size:clamp(28px,6.5svh,48px);line-height:1.25;margin-bottom:clamp(10px,2svh,18px)}
 .home-hero .hero-lead-desktop{font-size:clamp(14px,2.4svh,18px);line-height:1.7;margin-bottom:14px}
 .home-hero .hero-copy .btn{min-height:46px;padding:10px 20px}
 .home-hero .hero-portrait picture{height:0}
 #services{--home-service-reveal-gap:12px}
 #services .entry-heading{min-height:var(--home-entry-heading-height,32px)}
 #services .entry-card>p{min-height:var(--home-entry-description-height,64px)}
}
@media(min-width:1024px) and (max-height:680px){
 .home-hero .hero-grid{padding-top:14px;padding-bottom:14px}
 .home-hero .hero-copy>.eyebrow{font-size:12px;line-height:1.5;margin-bottom:8px}
 .home-hero .hero-copy h1{font-size:34px;line-height:1.2;margin-bottom:10px}
 .home-hero .hero-lead-desktop{font-size:14px;line-height:1.6;margin-bottom:12px}
 .home-hero .hero-copy .btn{min-height:40px;padding:7px 14px;font-size:13px}
 #services{padding-top:16px;--home-service-reveal-gap:10px}
 #services .entry-card{padding-top:18px;padding-left:20px;padding-right:20px}
 #services .entry-heading{margin-bottom:10px;grid-template-columns:24px minmax(0,1fr) auto;gap:8px}
 #services .service-icon svg{width:24px;height:24px}
 #services .entry-heading h2{font-size:18px;line-height:1.5}
 #services .entry-card>p{font-size:14px;line-height:1.65}
}
@media(min-width:1024px) and (max-height:560px){
 .home-hero .hero-grid{padding-top:10px;padding-bottom:10px}
 .home-hero .hero-copy>.eyebrow{font-size:11px;line-height:1.4;margin-bottom:6px}
 .home-hero .hero-copy h1{font-size:28px;line-height:1.2;margin-bottom:8px}
 .home-hero .hero-lead-desktop{font-size:13px;line-height:1.5;margin-bottom:8px}
 .home-hero .hero-copy .actions{gap:10px}
 .home-hero .hero-copy .btn{min-height:36px;padding:5px 12px;font-size:12px;gap:8px}
 #services{padding-top:12px;--home-service-reveal-gap:8px}
 #services .entry-card{padding-top:12px;padding-left:16px;padding-right:16px}
 #services .entry-heading{margin-bottom:8px}
 #services .entry-heading h2{font-size:16px;line-height:1.45}
 #services .entry-card>p{font-size:12px;line-height:1.55}
}
@media(min-width:1024px) and (max-height:440px){
 .home-hero .hero-grid{padding-top:6px;padding-bottom:6px}
 .home-hero .hero-copy>.eyebrow{font-size:10px;line-height:1.4;margin-bottom:4px}
 .home-hero .hero-copy h1{font-size:22px;line-height:1.2;margin-bottom:4px}
 .home-hero .hero-lead-desktop{font-size:11px;line-height:1.45;margin-bottom:6px}
 .home-hero .hero-copy .btn{min-height:32px;padding:4px 10px;font-size:11px}
 #services{padding-top:8px;--home-service-reveal-gap:6px}
 #services .entry-card{padding-top:8px;padding-left:12px;padding-right:12px}
 #services .entry-heading{grid-template-columns:18px minmax(0,1fr) auto;gap:6px;margin-bottom:6px}
 #services .service-icon svg{width:18px;height:18px}
 #services .entry-heading h2{font-size:13px;line-height:1.4}
 #services .entry-card>p{font-size:11px;line-height:1.4}
}

