/* BSI launch QA: Projects uses exactly the hero .shell.wide container. */
body[data-website="bsi"] .bsi-project-gallery{padding:clamp(40px,6vw,80px) 0;background:var(--brand-white)}
body[data-website="bsi"] .bsi-project-gallery .company-gallery-grid{padding:0;gap:12px}
body[data-website="bsi"] .bsi-project-gallery .company-gallery-heading{max-width:none;padding:0}
body[data-website="bsi"] .bsi-project-gallery button{transition:opacity .45s ease,transform .45s ease}
body[data-website="bsi"] .bsi-project-gallery .bsi-reveal-pending{opacity:0;transform:translateY(14px)}
body[data-website="bsi"] .bsi-confirmation-icon{display:block;width:80px;height:80px;object-fit:contain;margin:0 auto 28px}
body[data-website="bsi"] .bsi-confirmation .confirmation-layout .rich-content{text-align:center;width:100%;max-width:560px;margin:28px auto}
body[data-website="bsi"] .career-body-with-image{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,64px);align-items:center}
@media(min-width:681px) and (max-width:1050px){body[data-website="bsi"] [data-section="global_services"] .section-head{row-gap:20px}body[data-website="bsi"] [data-section="global_services"] .section-head>.intro{max-width:none;width:100%}body[data-website="bsi"] [data-section="global_services"] .section-head>.display-heading{margin-bottom:0}body[data-website="bsi"] .value-grid .value:nth-child(odd),body[data-website="bsi"] .process-grid .step:nth-child(odd){padding-left:0}body[data-website="bsi"] .value-grid .value:nth-child(even),body[data-website="bsi"] .process-grid .step:nth-child(even){border-right:0}}
@media(max-width:680px){body[data-website="bsi"] .career-body-with-image{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-website="bsi"] .bsi-project-gallery button{transition:none}body[data-website="bsi"] .bsi-project-gallery .bsi-reveal-pending{opacity:1;transform:none}}

/* Mobile BSI Home keeps its media behind the complete content, without a second photo block. */
@media(max-width:760px){
 body[data-website="bsi"] .hero--bsi{position:relative;display:block;min-height:0;padding:0;isolation:isolate}
 body[data-website="bsi"] .hero--bsi .hero-photo{position:absolute;inset:0!important;width:100%;height:100%;aspect-ratio:auto;opacity:1;clip-path:none!important;z-index:0}
 body[data-website="bsi"] .hero--bsi .hero-photo img{object-position:58% center}
 body[data-website="bsi"] .hero--bsi .hero-photo:after{background:linear-gradient(180deg,rgba(17,19,19,.91),rgba(17,19,19,.94) 45%,rgba(17,19,19,.94) 68%,rgba(17,19,19,.93))!important}
 body[data-website="bsi"] .hero--bsi .hero-inner,body[data-website="bsi"] .hero--bsi .hero-photo--video+.hero-inner{position:relative;z-index:1;padding-top:48px;padding-bottom:52px}
}

@media(min-width:701px){body[data-website="bsi"] .bsi-service-industry-hero .interior-hero-visual{align-self:center}}

/* Visual-only mobile reorder: copy remains first in the document. */
@media(max-width:700px){body[data-website="bsi"] .bsi-service-industry-hero .interior-hero-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}body[data-website="bsi"] .bsi-service-industry-hero .interior-hero-visual{order:-1;margin-top:0;width:calc(100% - 18px)}}

/* Tablet Body 1/2: full-width copy below a shallow image. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"] :is([data-section="page_body_1"],[data-section="page_body_2"])>.split{grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}
 body[data-website="bsi"] :is([data-section="page_body_1"],[data-section="page_body_2"])>.split>.visual{align-self:start;min-width:0;width:100%;height:clamp(280px,34vw,320px)!important;aspect-ratio:auto}
 body[data-website="bsi"] :is([data-section="page_body_1"],[data-section="page_body_2"])>.split>.copy{min-width:0}
}

/* BSI tablet shared sections follow the approved Services and Body 1/2 spacing. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"] [data-section="global_value_props"] .section-head{row-gap:20px}
 body[data-website="bsi"] [data-section="global_value_props"] .section-head>.display-heading{margin-bottom:0}
 body[data-website="bsi"] [data-section="global_value_props"] .section-head>.intro{max-width:none;width:100%}
 body[data-website="bsi"] [data-section="global_about_us"]>.about{grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}
 body[data-website="bsi"] [data-section="global_about_us"]>.about>.visual{width:100%;height:clamp(280px,34vw,320px)!important;min-height:0!important;aspect-ratio:auto;align-self:start}
}

/* Tablet Body 3 milestone aligns with the reading column below it. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"] [data-section="page_body_3"] .body3-editorial>.editorial-aside{justify-self:start!important;text-align:left;margin-left:0;padding-left:0}
}

/* Shared How It Works tablet heading spacing matches the other BSI sections. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"] [data-section="global_process"] .section-head{row-gap:20px}
 body[data-website="bsi"] [data-section="global_process"] .section-head>.display-heading{margin-bottom:0}
 body[data-website="bsi"] [data-section="global_process"] .section-head>.intro{max-width:none;width:100%}
}

/* Tablet listing heroes use the same close heading-to-intro rhythm. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"]:is([data-page="bsi-services"],[data-page="bsi-industries"],[data-page="bsi-service-area"],[data-page="bsi-blog"]) .minimal-hero-grid{row-gap:20px}
 body[data-website="bsi"]:is([data-page="bsi-services"],[data-page="bsi-industries"],[data-page="bsi-service-area"],[data-page="bsi-blog"]) .minimal-hero-heading>.display-heading{margin-bottom:0}
 body[data-website="bsi"]:is([data-page="bsi-services"],[data-page="bsi-industries"],[data-page="bsi-service-area"],[data-page="bsi-blog"]) .minimal-hero-intro{max-width:none;width:100%}
}

/* Center the complete shared map/address card beside its coverage column. */
@media(min-width:701px){
 body[data-website="bsi"] [data-section="global_service_area"] .area-grid>.area-map{align-self:center}
}

/* Shared review copy and carousel align vertically on desktop and tablet. */
@media(min-width:701px){
 body[data-website="bsi"] [data-section="global_reviews"] .reviews-layout{align-items:center}
 body[data-website="bsi"] [data-section="global_reviews"] .reviews-layout>.reviews-copy,
 body[data-website="bsi"] [data-section="global_reviews"] .reviews-layout>.bsi-review-single-wrap{align-self:center}
}

/* Mobile shared About: keep its image and copy visibly connected. */
@media(max-width:700px){
 body[data-website="bsi"] [data-section="global_about_us"]>.about{grid-template-columns:minmax(0,1fr);row-gap:28px}
}

/* Service Area tablet: avoid a second rule above the first county. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"][data-page="bsi-service-area"] .county-directory>.county-directory-row:first-child{border-top:0}
}

/* Contact phone text and icon use the editable brand primary yellow. */
body[data-website="bsi"] .contact-hero-phone a{background:transparent;color:var(--brand-primary);border:0;padding:0;min-height:48px}
body[data-website="bsi"] .contact-hero-phone a:hover{color:var(--brand-white)}
body[data-website="bsi"] .contact-hero-phone a:focus-visible{outline:2px solid var(--brand-primary);outline-offset:4px}

/* Projects tablet hero: move 50px of internal gap to its outer padding, retaining height. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"][data-page="bsi-projects"] .minimal-hero{padding-block:calc(clamp(52px,6vw,90px) + 25px)}
 body[data-website="bsi"][data-page="bsi-projects"] .minimal-hero-grid{row-gap:20px}
}

/* About culture uses its original reading width, centered on tablet. */
@media(min-width:701px) and (max-width:1050px){
 body[data-website="bsi"] .company-culture>.shell{max-width:520px;margin-inline:auto;text-align:left}
 body[data-website="bsi"] .company-culture .company-culture-grid{grid-template-columns:minmax(0,1fr);row-gap:20px}
 body[data-website="bsi"] .company-culture .company-culture-grid>.display-heading{max-width:none;margin-bottom:0}
 body[data-website="bsi"] .company-culture .company-culture-grid>.intro{max-width:none;width:100%}
}

/* Error heading has explicit near-black contrast on the light gray surface. */
body[data-website="bsi"] .bsi-not-found .display-heading{color:var(--black);color:color-mix(in srgb,var(--black) 45%,black)}

@media(max-width:700px){body[data-website="bsi"] .bsi-confirmation .confirmation-layout .rich-content{width:calc(100% - 16px)}}

body[data-website="bsi"] .bsi-confirmation .rich-content h2{font-size:20px;line-height:1.3;font-weight:800;margin:28px 0 20px;text-align:center}
body[data-website="bsi"] .bsi-confirmation .rich-content :is(ul,ol){padding-left:0;list-style-position:inside}
