/* Interior photographs are static; cover photographs are the only photo motion. */
body main img:not(.operation-world-map img):not(.ag-cover-photo):not([class*="logo"]):not([class*="icon"]){animation:none!important;transition:none!important;transform:none!important;translate:none!important;clip-path:none!important;opacity:1!important}
body main :is(.home-capability-media,.home-sectors-media,.quality-focus-visual,.assigned-photo,.corporate-feature-media,.split-visual,.contextual-photo){animation:none!important;transition:none!important;transform:none!important;translate:none!important;clip-path:none!important;opacity:1!important}
body main :is(.home-capability,.home-sectors-story,.service-pillar-detail,.industry-showcase)>*{min-width:0;box-sizing:border-box}

/* Each service has one shared image/text row and one full-width capability row. */
body.page-services main .service-pillar-detail:nth-child(n){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"visual heading" "groups groups";grid-template-rows:minmax(400px,auto) auto;gap:0;position:relative;inset:auto;min-height:0;height:auto;margin:0 0 clamp(40px,5vw,72px);align-items:stretch;isolation:isolate}
body.page-services main .service-pillar-detail:nth-child(even){grid-template-areas:"visual heading" "groups groups"}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-heading{grid-area:heading;position:relative;inset:auto;z-index:auto;min-width:0;min-height:0;max-height:none;width:auto;max-width:none;margin:0;padding:clamp(28px,3.2vw,48px);display:flex;flex-direction:column;justify-content:center;align-self:stretch;border:0;box-shadow:none}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-heading h2{font-size:clamp(30px,3vw,44px);line-height:1.14;max-width:100%;margin:0 0 24px;word-break:normal;overflow-wrap:break-word;hyphens:auto}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-heading p{margin:0;font-size:17px;line-height:1.7}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual{grid-area:visual;position:relative;inset:auto;align-self:stretch;min-width:0;min-height:400px;width:auto;max-width:none;height:auto;max-height:none;aspect-ratio:auto;margin:0;overflow:hidden;z-index:auto}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover}
body.page-services main .service-pillar-detail:nth-child(n)>.service-capability-groups{grid-area:groups;position:relative;inset:auto;z-index:auto;width:100%;max-width:100%;margin:0;padding:0;gap:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;align-items:stretch;box-shadow:none}
body.page-services main .service-capability-groups:has(>article:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
body.page-services main .service-capability-groups:has(>article:only-child){grid-template-columns:minmax(0,1fr)}
body.page-services main .service-capability-groups>article:nth-child(n){min-width:0;min-height:0;margin:0;padding:28px 32px;display:flex;flex-direction:column;align-items:stretch;gap:20px;grid-column:auto;grid-row:auto;border:0;border-inline-end:1px solid var(--line);box-shadow:none}
body.page-services main .service-capability-groups>article:last-child{border-inline-end:0}
body.page-services main #industrial-operations .service-capability-groups>article:nth-child(n){padding-top:28px}
body.page-services main .service-capability-groups>article>h3{margin:0;min-height:2.7em;font-size:21px;line-height:1.35;word-break:normal;overflow-wrap:break-word;hyphens:auto}
body.page-services main .service-capability-groups>article>ul{display:block;min-width:0;margin:0;padding:0;list-style:none}
body.page-services main .service-capability-groups>article>ul>li{margin:0;padding:12px 0;font-size:16px;line-height:1.65;min-width:0;overflow-wrap:break-word}
body.page-services main .service-capability-groups>article:only-child>ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px}
@supports(grid-template-rows:subgrid){
 body.page-services main .service-capability-groups>article:nth-child(n){display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:20px}
 body.page-services main .service-capability-groups>article>h3{grid-row:1;min-height:0}
 body.page-services main .service-capability-groups>article>ul{grid-row:2}
 body.page-services main .service-capability-groups:has(>article:only-child){grid-template-rows:auto}
 body.page-services main .service-capability-groups>article:only-child{display:block;grid-row:auto}
 body.page-services main .service-capability-groups>article:only-child>h3{margin-bottom:20px}
}
@media(min-width:801px){
 body.page-services main .service-editorial{padding-block:48px}
 body.page-services main .service-editorial>.container{width:min(1280px,calc(100% - 64px));max-width:none;padding-inline:0;margin-inline:auto}
 body.page-home main .home-capabilities .home-capability:nth-child(n){min-height:0;max-width:100%;margin-inline:0;align-items:stretch}
 body.page-home main .home-capabilities .home-capability:nth-child(n)>.home-capability-copy{width:50%;max-width:50%;min-width:0;margin:0;padding:clamp(28px,3vw,48px)}
 body.page-home main .home-capabilities .home-capability:nth-child(n)>.home-capability-media{min-width:0;width:50%;max-width:50%;min-height:380px;margin:0}
 body.page-home main .home-capabilities .home-capability:nth-child(n) h3{font-size:clamp(28px,2.8vw,44px);line-height:1.15;max-width:100%;overflow-wrap:break-word}
 body.page-home main .home-sectors-story>.home-sectors-copy{padding:clamp(28px,3vw,48px);min-width:0}
 body.page-home main .home-sectors-story>.home-sectors-copy h2{font-size:clamp(32px,3vw,48px);line-height:1.14;max-width:100%;overflow-wrap:break-word}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-copy{min-width:0;min-height:380px;padding:clamp(28px,3vw,48px)}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-media{min-width:0;min-height:380px;max-height:none;height:auto;margin:0}
 body.page-industries main .industry-showcase:nth-child(n) h2{font-size:clamp(30px,3vw,44px);line-height:1.14;max-width:100%;overflow-wrap:break-word}
}
@media(min-width:801px) and (max-width:1099px){
 body.page-services main .service-capability-groups:has(>article:nth-child(3):last-child){grid-template-columns:minmax(0,1fr);grid-template-rows:none}
 body.page-services main .service-capability-groups:has(>article:nth-child(3):last-child)>article:nth-child(n){display:block;grid-row:auto;border-inline-end:0;border-bottom:1px solid var(--line)}
 body.page-services main .service-capability-groups:has(>article:nth-child(3):last-child)>article>h3{margin-bottom:20px}
 body.page-services main .service-capability-groups>article:nth-child(n){padding:24px}
 body.page-services main #industrial-operations .service-capability-groups>article:nth-child(n){padding-top:24px}
 body.page-home main .process-blueprint .flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 body.page-services main .service-pillar-detail:nth-child(n){grid-template-columns:minmax(0,1fr);grid-template-areas:"visual" "heading" "groups";grid-template-rows:auto auto auto;margin-bottom:36px}
 body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual{min-height:0;height:auto;aspect-ratio:3/2}
 body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-heading{min-height:0;padding:28px 24px}
 body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-heading h2{font-size:clamp(28px,7.5vw,38px);line-height:1.14}
 body.page-services main .service-pillar-detail:nth-child(n)>.service-capability-groups{display:block;grid-template-rows:none}
 body.page-services main .service-capability-groups>article:nth-child(n){display:block;padding:24px;grid-row:auto;border:0;border-bottom:1px solid var(--line)}
 body.page-services main #industrial-operations .service-capability-groups>article:nth-child(n){padding-top:24px}
 body.page-services main .service-capability-groups>article>h3{margin-bottom:20px;min-height:0;font-size:20px}
 body.page-services main .service-capability-groups>article:only-child>ul{display:block}
}

/* Shared outer frame and content insets for navigation and footer. */
body{--assel-frame-inset:24px;--assel-frame-padding:32px}
body .site-header:is(.site-header,.is-scrolled,.is-solid){left:var(--assel-frame-inset);right:var(--assel-frame-inset);width:auto;max-width:none;margin-inline:0;box-sizing:border-box}
body .site-header .nav-wrap{width:calc(100% - var(--assel-frame-padding)*2);max-width:none;padding-inline:0;margin-inline:auto;box-sizing:border-box}
body .site-header .brand{margin-left:0;margin-right:0;justify-self:start;flex-shrink:0}
body .site-footer{width:calc(100% - var(--assel-frame-inset)*2);max-width:none;margin-inline:auto;box-sizing:border-box}
body .site-footer .footer-main,body .site-footer .footer-bottom{width:calc(100% - var(--assel-frame-padding)*2);max-width:none;margin-inline:auto;padding-inline:0;box-sizing:border-box}
@media(min-width:801px) and (max-width:1399px){body{--assel-frame-padding:20px}}
@media(max-width:800px){body{--assel-frame-inset:14px;--assel-frame-padding:14px}}


/* Keep the original service photographs in normal flow, including small screens. */
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual{display:grid;visibility:visible;opacity:1;content-visibility:visible}
body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual>img{position:relative;inset:auto;display:block;width:100%;height:100%;aspect-ratio:3/2;object-fit:cover;visibility:visible;opacity:1}
/* Operations photographs form full-width rectangular section breaks. */
body.page-operations main .operations-restored-photo{display:block;width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;aspect-ratio:16/7;overflow:hidden;box-sizing:border-box}
body.page-operations main .operations-restored-photo>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0}
@media(max-width:800px){
 body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual{height:auto;min-height:0;aspect-ratio:auto}
 body.page-services main .service-pillar-detail:nth-child(n)>.service-pillar-visual>img{height:auto;aspect-ratio:auto;object-fit:contain}
 body.page-operations main .operations-restored-photo{aspect-ratio:3/2}
}

/* Preserve the alternating sector narrative independently of legacy flex orders. */
@media(min-width:801px){
 body.page-industries main .industry-showcase:nth-child(n){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"visual copy";gap:0;align-items:stretch;margin-inline:0}
 body.page-industries main .industry-showcase:nth-child(even){grid-template-areas:"copy visual"}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-media{grid-area:visual;order:initial;width:100%;max-width:none;min-height:400px;align-self:stretch}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-copy{grid-area:copy;order:initial;width:100%;max-width:none;min-height:400px}
 body.page-services main .service-capability-groups>article>ul:has(>li:nth-child(6):last-child){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-content:start}
 body.page-services main .service-capability-groups>article:only-child>ul:has(>li:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
 body.page-services main .service-capability-groups>article>ul>li{align-content:start}
}
@media(max-width:800px){
 body.page-industries main .industry-showcase:nth-child(n){display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"visual" "copy"}
 body.page-industries main .industry-showcase:nth-child(n)>:is(.industry-showcase-media,.industry-showcase-copy){width:100%;max-width:none;order:initial}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-media{grid-area:visual}
 body.page-industries main .industry-showcase:nth-child(n)>.industry-showcase-copy{grid-area:copy}
}
