/* Protocol 1 V6 - approved secondary hero system; no screenshot backgrounds. */
body.p1-secondary .site-header{background:transparent!important;box-shadow:none!important;border-bottom:1px solid rgba(170,237,235,.1)}
body.p1-secondary .site-header .brand img,body.p1-secondary .p1-footer__brand img{filter:none!important}
body.p1-secondary .site-header .brand img{width:190px;height:60px;object-fit:contain;object-position:left center}
body.p1-secondary .site-header .header-inner{height:84px}
body.p1-secondary .site-header .header-cta{box-shadow:0 10px 26px #00162233}
body.p1-secondary .subhero,body.p1-secondary section.dark:first-of-type{position:relative;isolation:isolate;overflow:hidden;background:#061d30!important;color:#fff}
body.p1-secondary .subhero:before,body.p1-secondary section.dark:first-of-type:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 86% 80%,rgba(13,146,153,.24),transparent 65%),linear-gradient(105deg,#04162b 15%,#06263e 100%)}
body.p1-secondary .subhero:after,body.p1-secondary section.dark:first-of-type:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:no-repeat;opacity:.67}
body.p1-secondary .subhero .wrap,body.p1-secondary section.dark:first-of-type>.wrap{position:relative;z-index:1}
body.p1-secondary .subintro{padding:78px 0 88px!important;max-width:900px;min-height:315px;position:relative;z-index:2}
body.p1-secondary .subintro h1{max-width:900px}
body.p1-secondary .intro{position:relative;z-index:2;padding:85px 0 100px!important;min-height:345px}
body.p1-secondary .subintro p,body.p1-secondary .intro p{max-width:770px}
body.hero-industrial .subhero:after{background-image:linear-gradient(90deg,#04172b 0%,rgba(4,23,43,.94) 37%,rgba(4,23,43,.12) 100%),url('assets/hero-industrial.jpg');background-size:cover,48% 100%;background-position:center,right center;opacity:.72}
body.hero-waves .subhero:after{background-image:url('assets/hero-waves.svg');background-size:85% auto;background-position:right bottom;opacity:.8}
body.hero-data .subhero:after{background-image:radial-gradient(ellipse at 80% 50%,rgba(19,161,164,.24),transparent 60%),repeating-linear-gradient(0deg,transparent 0 35px,rgba(65,237,212,.035) 36px 37px),repeating-linear-gradient(90deg,transparent 0 59px,rgba(65,237,212,.035) 60px 61px);opacity:.8}
body.hero-data .subhero:before{background:radial-gradient(ellipse at 84% 75%,rgba(11,136,157,.35),transparent 65%),linear-gradient(105deg,#04162b,#06263e)}
body.hero-about section.dark:first-of-type:after{background-image:linear-gradient(90deg,#04172b 0%,rgba(4,23,43,.94) 40%,rgba(4,23,43,.2) 100%),url('assets/hero-about.jpg');background-size:cover,48% 100%;background-position:center,right center;opacity:.64}
body.hero-contact section.dark:first-of-type:after{background-image:url('assets/hero-waves.svg');background-size:78% auto;background-position:105% 90%;opacity:.35}
body.p1-secondary .p1-footer__brand img{content:url('assets/protocol1-logo-white.png')}
@media(max-width:800px){body.p1-secondary .site-header .header-inner{height:72px}body.p1-secondary .subintro{padding:55px 0 62px!important;min-height:auto}body.p1-secondary .intro{padding:60px 0 72px!important;min-height:auto}body.hero-industrial .subhero:after,body.hero-about section.dark:first-of-type:after{background-size:cover,75% 100%;opacity:.4}body.hero-waves .subhero:after{background-size:140% auto;opacity:.3}}
@media(prefers-reduced-motion:reduce){body.p1-secondary .subhero:after{transition:none}}

/* V7 FIX: proportion-preserving, full-width visual fields; no stretched photo strips. */
body.p1-secondary .subhero,body.p1-secondary section.dark:first-of-type{background:#041629!important}
body.p1-secondary .subhero:before,body.p1-secondary section.dark:first-of-type:before{
 background:radial-gradient(ellipse at 88% 72%,rgba(13,118,131,.17),transparent 65%),linear-gradient(110deg,#041629,#06283e)!important;
}
body.p1-secondary .subhero:after,body.p1-secondary section.dark:first-of-type:after{
 background-size:cover!important;background-position:center center!important;opacity:1!important;
}
body.hero-industrial .subhero:after{background-image:url('assets/hero-industrial-v7.jpg')!important}
body.hero-about section.dark:first-of-type:after{background-image:url('assets/hero-about-v7.jpg')!important}
body.hero-waves .subhero:after{background-image:url('assets/hero-waves-v7.svg')!important;opacity:.9!important}
body.hero-contact section.dark:first-of-type:after{background-image:url('assets/hero-waves-v7.svg')!important;opacity:.46!important}
body.hero-data .subhero:after{background-image:radial-gradient(ellipse at 80% 54%,rgba(9,139,145,.10),transparent 56%),repeating-linear-gradient(0deg,transparent 0 79px,rgba(65,237,212,.018) 80px 81px),repeating-linear-gradient(90deg,transparent 0 99px,rgba(65,237,212,.018) 100px 101px)!important;opacity:.7!important}
body.p1-secondary .site-header{background:#041629!important;border-bottom:1px solid rgba(149,227,218,.08)!important}
@media(max-width:800px){body.hero-industrial .subhero:after,body.hero-about section.dark:first-of-type:after{opacity:.42!important;background-position:66% center!important}body.hero-waves .subhero:after{opacity:.45!important}}

/* V8: match the approved low-right flowing wave instead of the upward cropped wave. */
body.hero-waves .subhero:before{background:#031629!important}
body.hero-waves .subhero:after{background-image:url('assets/hero-waves-v8.svg')!important;background-size:100% 100%!important;background-position:center center!important;background-repeat:no-repeat!important;opacity:1!important}
@media(max-width:800px){body.hero-waves .subhero:after{background-size:auto 100%!important;background-position:57% center!important;opacity:.72!important}}

/* V9: image layer must sit ABOVE the solid section background and BELOW content.
   Previous z-index:-1 caused the hero art to disappear behind the section fill. */
body.p1-secondary .subhero,
body.p1-secondary section.dark:first-of-type { isolation:isolate!important; position:relative!important; overflow:hidden!important; }
body.p1-secondary .subhero::before,
body.p1-secondary section.dark:first-of-type::before { z-index:0!important; }
body.p1-secondary .subhero::after,
body.p1-secondary section.dark:first-of-type::after {
  z-index:0!important; inset:0!important; width:auto!important; height:auto!important;
  right:0!important; bottom:0!important; filter:none!important;
  pointer-events:none!important; opacity:1!important;
}
body.p1-secondary .subhero > .wrap,
body.p1-secondary section.dark:first-of-type > .wrap {position:relative!important; z-index:1!important;}
body.hero-about section.dark:first-of-type::after {
  background-image:url('assets/hero-about-v7.jpg')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
body.hero-industrial .subhero::after {
  background-image:url('assets/hero-industrial-v7.jpg')!important;
  background-size:cover!important;
  background-position:center center!important;
}
/* Restore the approved background artwork's native proportions for waves. */
body.hero-waves .subhero::after {
  background-image:url('assets/hero-waves-v8.svg')!important;
  background-size:100% 100%!important;
  background-position:center bottom!important;
}
body.hero-contact section.dark:first-of-type::after {
  background-image:url('assets/hero-waves-v8.svg')!important;
  background-size:100% 100%!important;
  background-position:center bottom!important;
  opacity:.50!important;
}
@media(max-width:800px){
 body.hero-about section.dark:first-of-type::after,
 body.hero-industrial .subhero::after {background-position:58% center!important;opacity:.72!important;}
 body.hero-waves .subhero::after {background-size:auto 100%!important;background-position:56% bottom!important;}
}

/* V10 — artwork-scale correction: apply the actual backgrounds in a single layer,
   preserve their viewBox composition, and remove older pseudo-element overrides. */
body.p1-secondary .subhero::after,
body.p1-secondary section.dark:first-of-type::after {
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  opacity:1!important;
}
body.hero-waves .subhero::after,
body.hero-contact section.dark:first-of-type::after {
  background-image:url('assets/hero-waves-v10.svg')!important;
  background-position:center center!important;
  background-size:cover!important;
}
body.hero-data .subhero::after {
  background-image:url('assets/hero-data-v10.svg')!important;
  background-position:center center!important;
  background-size:cover!important;
}
body.hero-contact section.dark:first-of-type::after{opacity:.7!important}
body.hero-waves .subhero::before,
body.hero-data .subhero::before { background:#04192d!important; }
@media(max-width:800px){
 body.hero-waves .subhero::after,
 body.hero-data .subhero::after,
 body.hero-contact section.dark:first-of-type::after {
   background-size:auto 100%!important;
   background-position:60% center!important;
 }
}
