/* Native Gutenberg pilot: scoped to the two unpublished sample documents. */
.autom8-native-hero{overflow:hidden;background:radial-gradient(ellipse at 100% 100%,rgba(104,105,102,.23) 0%,rgba(140,141,138,.105) 40%,transparent 76%),#e7e7e7;color:#2c2e31;padding:30px 0 32px;font-family:'DM Sans',Arial,sans-serif}
.autom8-native-hero .autom8-native-hero__inner{width:min(1352px,calc(100% - 96px));max-width:1352px;margin:0 auto!important;padding:0}
.autom8-native-hero .autom8-native-hero__columns{gap:24px;align-items:flex-start;margin:0;min-height:520px}
.autom8-native-hero .autom8-native-hero__copy{flex-basis:43%!important;position:relative;z-index:2;padding-top:12px}
.autom8-native-hero .autom8-native-hero__visual{flex-basis:57%!important;position:relative;padding-top:20px;min-width:0;isolation:isolate}
.autom8-native-hero__visual:before,.autom8-native-hero__visual:after{content:'';position:absolute;width:90%;height:74%;left:2%;top:9%;border:1px solid rgba(110,114,109,.1);border-radius:50%;transform:rotate(-22deg);z-index:-1;pointer-events:none}
.autom8-native-hero__visual:after{width:72%;height:51%;left:12%;top:20%}
.autom8-native-hero .autom8-native-hero__label{font:700 11px/1.5 Manrope,Arial,sans-serif;letter-spacing:.12em;color:#d0824c;margin:0 0 30px}
.autom8-native-hero h1.autom8-native-hero__title{font:800 clamp(42px,4.9vw,76px)/1.09 Manrope,Arial,sans-serif;letter-spacing:-.075em;margin:0 0 28px}
.autom8-native-hero .autom8-native-hero__description{font-size:16px;line-height:1.75;color:#6d736d;max-width:480px;margin:0 0 32px}
.autom8-native-hero .autom8-native-hero__buttons{gap:16px;margin:0 0 34px;display:flex}
.autom8-native-hero .autom8-native-hero__primary .wp-block-button__link{font:700 13px/1.4 Manrope,Arial,sans-serif;background:#2c2e31;color:#fff;padding:17px 20px;border-radius:12px;box-shadow:none;text-decoration:none}
.autom8-native-hero .autom8-native-hero__arrow .wp-block-button__link{display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #c3c6c1;border-radius:50%;color:#2c2e31;background:transparent;font-size:24px;box-shadow:none;text-decoration:none}
.autom8-native-hero .autom8-native-hero__image{margin:0;width:113%;max-width:none;transform:translateX(-9%);position:relative;z-index:1}
.autom8-native-hero .autom8-native-hero__image img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block}
.autom8-native-hero .autom8-native-hero__bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #d0d1cd;padding-top:22px;margin-top:12px}
.autom8-native-hero .autom8-native-hero__bottom p{font:400 10px/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.1em;color:#868c84;margin:0}
.autom8-native-article{width:min(1080px,calc(100% - 80px));margin:60px auto 90px;color:#2c2e31;font-family:'DM Sans',Arial,sans-serif}
.autom8-native-article h1{font:700 clamp(36px,4.2vw,64px)/1.12 Manrope,Arial,sans-serif;letter-spacing:-.055em;margin:16px 0 26px}
.autom8-native-article__excerpt{font-size:20px;line-height:1.6;color:#697164;margin:0 0 32px}
.autom8-native-article__cover{margin:0 0 48px}
.autom8-native-article__cover img{width:100%;height:auto;display:block;border-radius:20px}
.autom8-native-article__body{max-width:820px;margin:auto;font-size:17px;line-height:1.8}
.autom8-native-article__body p{margin:0 0 24px}
.autom8-native-article__body h2{font:700 32px/1.25 Manrope,Arial,sans-serif;letter-spacing:-.045em;margin:40px 0 16px}
.autom8-native-article__body figure{margin:28px 0}
.autom8-native-article__body img{max-width:100%;height:auto}
.autom8-native-article__body .wp-block-gallery{gap:16px}
@media(max-width:950px){.autom8-native-hero .autom8-native-hero__columns{flex-direction:column;min-height:0;gap:0}.autom8-native-hero .autom8-native-hero__copy,.autom8-native-hero .autom8-native-hero__visual{flex-basis:auto!important;width:100%}.autom8-native-hero .autom8-native-hero__image{width:100%;transform:none;max-width:700px;margin:auto}.autom8-native-hero h1.autom8-native-hero__title{font-size:clamp(42px,7vw,66px)}.autom8-native-hero .autom8-native-hero__bottom{margin-top:24px}}
@media(max-width:600px){.autom8-native-hero .autom8-native-hero__inner{width:calc(100% - 40px)}.autom8-native-hero h1.autom8-native-hero__title{font-size:clamp(36px,9.5vw,54px)}.autom8-native-hero .autom8-native-hero__bottom{flex-direction:column;gap:8px}.autom8-native-article{width:calc(100% - 40px);margin-top:40px}}

/* Native blocks retain the approved layout; extra block wrappers are neutral. */
.wp-block-group :where(.wp-block-group,.wp-block-image){margin-block-start:0;margin-block-end:0}
.wp-block-group :where(p.tag,p.eyebrow-label){margin:0}
.autom8-native-link{width:fit-content}
.autom8-native-link a{color:inherit;text-decoration:none;display:inline-block}
.autom8-native-link.cta-btn a,.autom8-native-link.circle-button a{display:block}
.autom8-native-link.cta-btn,.autom8-native-link.arrow-link{margin-bottom:0}
.autom8-native-card h3 a{color:inherit;text-decoration:none}
.autom8-native-card .wp-block-image{width:100%;height:100%;margin:0}
.activity-image .wp-block-image img{display:block;width:100%!important;height:100%;max-height:none;object-fit:cover}
.team-photo>.wp-block-image{width:100%;height:100%;margin:0}
.team-photo>.wp-block-image img{width:100%;height:100%;object-fit:cover}
.team-photo .team-caption{position:absolute;bottom:20px;left:20px;margin:0}
.gallery-frame>.wp-block-image{display:block;width:100%;margin:0}
.gallery-frame>.wp-block-image img{display:block;width:100%;height:auto}
.gallery-tile>p{font:700 clamp(15px,1.35vw,20px)/1.35 Manrope,Arial,sans-serif;text-align:center;text-transform:uppercase;margin:0}
.team-portrait>.wp-block-image,.team-portrait img{display:block;width:100%;height:100%;object-fit:cover}
.linkedin-mark{display:inline-flex!important;align-items:center;justify-content:center;background:#2c2e31;color:#fff!important;font:700 16px/1 Arial;border-radius:3px;width:24px;height:24px;margin:4px auto 0!important}
.linkedin-mark a{color:#fff!important}
.contact-details .contact-row>p:first-child{font-size:10px;letter-spacing:.11em;color:#858b81;text-transform:uppercase;margin:0 0 10px}
.contact-details .contact-row>p:last-child{font-size:17px;line-height:1.5;margin:0}
.related-image .wp-block-image{height:100%;width:100%;margin:0}
.related-image img{height:100%;width:100%;object-fit:cover}
.related-caption p{font:inherit;margin:0}
.related-caption p:last-child{font-size:18px;color:#69756e}
.autom8-native-card.activity .activity-body{flex:1}
.autom8-native-card.activity .activity-arrow{font-size:25px;margin:0}
.focus-item p.index{color:#d0824c;margin:0 0 14px}
.autom8-native-news .news-two{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:45px 24px;padding:0;margin:0}
.autom8-native-news .news-card{background:transparent;min-width:0}
.autom8-native-news .news-pic{margin:0;aspect-ratio:1.93;height:auto;overflow:hidden;border-radius:20px}
.autom8-native-news .news-pic img{width:100%;height:100%;object-fit:cover}
.autom8-native-news h3{font:700 27px/1.28 Manrope,Arial,sans-serif;letter-spacing:-.045em;margin:25px 0 14px}
.autom8-native-news h3 a{color:inherit;text-decoration:none}
.autom8-native-news .wp-block-post-excerpt p{color:#777f73;font-size:15px;line-height:1.7;margin:0 0 24px}
.autom8-native-news .news-more{display:inline-block;font:700 13px/1.5 Manrope,Arial,sans-serif;border-bottom:1px solid;padding-bottom:8px;margin-top:8px}
.autom8-native-news .wp-block-query-pagination{display:flex;gap:20px;padding:40px 0}
.autom8-native-news .wp-block-query-pagination-numbers{display:flex;gap:12px}
.autom8-gallery-section{padding-bottom:80px}
.autom8-gallery-filters{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.autom8-gallery-filter .wp-block-button__link{background:transparent;color:#2c2e31;border:1px solid #d9dcd5;border-radius:999px;padding:11px 18px;font:600 13px/1.5 Manrope,Arial,sans-serif;box-shadow:none}
.autom8-gallery-filter a[aria-pressed=true]{background:#2c2e31;color:#fff;border-color:#2c2e31}
.autom8-gallery-count{display:block;margin:0 0 26px;font-size:11px}
.autom8-gallery-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.autom8-gallery-category,.autom8-gallery-category>.wp-block-gallery{display:contents}
.autom8-gallery-category[hidden]{display:none!important}
.autom8-gallery-category-title{display:none}
.autom8-gallery-section .wp-block-gallery .wp-block-image{width:100%!important;height:auto!important;display:flex;flex-direction:column;align-self:start;margin:0!important;overflow:hidden;border-radius:14px;background:#e7e8e2}
.autom8-gallery-section .wp-block-gallery .wp-block-image img{aspect-ratio:1.25;width:100%;height:auto;object-fit:cover;flex:0 0 auto}
.autom8-gallery-section .wp-block-gallery .wp-block-image figcaption{position:static!important;background:none!important;color:#2c2e31!important;text-shadow:none;padding:16px!important;margin:0;max-height:none!important;font:600 16px/1.5 Manrope,Arial,sans-serif;text-align:left;box-sizing:border-box}
.autom8-gallery-section figcaption small{display:block;font:400 12px/1.5 'DM Sans',Arial,sans-serif;color:#777f73;margin-top:6px}
.autom8-gallery-section .wp-block-image button{z-index:2}
.autom8-native-article .wp-block-post-excerpt{margin-bottom:30px}
.autom8-native-article .wp-block-post-excerpt p{font-size:20px;line-height:1.6;color:#697164}
.autom8-native-article .wp-block-post-featured-image{margin:0 0 48px}
.autom8-native-article .wp-block-post-featured-image img{border-radius:20px;height:auto;width:100%}
.autom8-native-article .article-meta{font-size:12px;color:#7b8177;margin-bottom:32px}
.autom8-native-article .source-note{font-size:12px;color:#82877d;border-top:1px solid #d9dcd6;padding-top:20px}
@media(max-width:950px){.autom8-native-news .news-two{grid-template-columns:1fr}.autom8-gallery-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.autom8-gallery-collection{grid-template-columns:1fr}.autom8-native-news h3{font-size:23px}.autom8-gallery-filter .wp-block-button__link{font-size:11px;padding:9px 12px}}

/* Replacement uploads keep the homepage gallery silhouettes. */
.shape-square .wp-block-image img:not([src$=".svg"]){aspect-ratio:1;object-fit:cover;border-radius:8%}
.shape-triangle .wp-block-image img:not([src$=".svg"]){aspect-ratio:433/390;object-fit:cover;clip-path:polygon(50% 0,100% 100%,0 100%)}
.shape-circle .wp-block-image img:not([src$=".svg"]){aspect-ratio:1;object-fit:cover;border-radius:50%}

/* 2.0.1: prevent core Gallery flex sizing from collapsing lazy images. */
.autom8-gallery-section .wp-block-gallery.has-nested-images figure.wp-block-image{display:block!important;align-self:start;}
.autom8-gallery-section .wp-block-gallery.has-nested-images figure.wp-block-image img{display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:1px;aspect-ratio:1.25!important;object-fit:cover;contain:none!important;}

/* 2.0.2: mobile header composition and touch targets. */
@media(max-width:600px){
 .top .top-inner{width:calc(100% - 32px);height:76px;min-height:76px;gap:8px;}
 .top .top-inner .brand{display:flex;align-items:center;flex:0 1 145px;min-width:100px;}
 .top .top-inner .brand img{display:block;width:100%;max-width:145px;height:auto;max-height:52px;}
 .top .top-right{flex:0 0 auto;gap:8px;align-items:center;}
 .top .lang-switch{font-size:12px;line-height:1.2;gap:4px;margin:0;}
 .top .lang-switch a,.top .lang-switch strong{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:44px;padding:0;}
 .top .lang-switch>span{font-size:13px;color:#8a8e88;}
 .top .top-right .cta-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;font-size:11px;line-height:1.3;padding:8px 11px;border-radius:11px;white-space:nowrap;}
 .top .top-right .cta-btn:before{content:"";position:absolute;inset:-7px 0;}
 .top .menu-toggle{position:relative;display:flex;width:36px;height:40px;min-width:36px;padding:0;border-radius:10px;font-size:0;line-height:0;}
 .top .menu-toggle:before{content:"";display:block;width:20px;height:2.5px;border-radius:0;background:currentColor;box-shadow:0 -6.5px 0 currentColor,0 6.5px 0 currentColor;}
 .top .menu-toggle:after{content:"";position:absolute;inset:-2px 0;}
}
@media(max-width:359px){
 .top .top-inner{width:calc(100% - 24px);gap:6px;}
 .top .top-inner .brand{min-width:96px;}
 .top .top-right{gap:6px;}
 .top .lang-switch{font-size:11px;gap:3px;}
 .top .lang-switch a,.top .lang-switch strong{min-width:24px;}
 .top .top-right .cta-btn{font-size:10px;padding:8px;}
 .top .menu-toggle{width:34px;min-width:34px;}
}
