/* Mecopol engineered experience layer — additive, no content dependencies */
:root{
  --mx-electric:#19a8ee;
  --mx-electric-soft:#73d7ff;
  --mx-ink:#041b2f;
  --mx-panel:#082a46;
  --mx-grid:rgba(30,168,238,.105);
}

body{position:relative;isolation:isolate}
body::before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.72;
  background-image:
    linear-gradient(var(--mx-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--mx-grid) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.52),transparent 54%);
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.52),transparent 54%);
}

.site-header{transition:box-shadow .28s ease,background .28s ease,transform .28s ease}
.site-header.mx-scrolled{box-shadow:0 18px 42px rgba(3,30,51,.09);background:rgba(255,255,255,.95)}
.brand-logo img{transition:transform .3s ease,filter .3s ease}.brand-logo:hover img{transform:translateY(-2px) scale(1.015);filter:drop-shadow(0 9px 12px rgba(17,136,201,.15))}

.hero{min-height:min(780px,calc(100vh - 156px));display:flex;align-items:center;isolation:isolate}
.hero::after{
  content:"";position:absolute;width:54vw;height:54vw;min-width:520px;min-height:520px;right:-24vw;top:-22vw;z-index:0;pointer-events:none;
  border:1px solid rgba(25,168,238,.12);border-radius:50%;
  box-shadow:0 0 0 80px rgba(25,168,238,.025),0 0 0 160px rgba(25,168,238,.018),0 0 110px rgba(25,168,238,.10);
}
.hero-grid{perspective:1400px}
.hero .reveal:first-child{position:relative}
.hero .reveal:first-child::after{
  content:"";position:absolute;left:-42px;top:7%;bottom:7%;width:2px;border-radius:99px;
  background:linear-gradient(to bottom,transparent,var(--mx-electric),rgba(25,168,238,.15),transparent);
  box-shadow:0 0 20px rgba(25,168,238,.5);opacity:.6;
}
.eyebrow{position:relative;overflow:hidden}.eyebrow::after{content:"";position:absolute;inset:-1px auto -1px -45%;width:34%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:mxSweep 6.5s ease-in-out infinite}
@keyframes mxSweep{0%,66%,100%{left:-45%}78%{left:120%}}

.hero h1{position:relative;text-wrap:balance;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.hero h1::selection{background:#0d87c5;color:white}
.hero .lead{max-width:760px}

.hero-card{position:relative;min-height:490px;transform-style:preserve-3d;will-change:transform;transition:transform .18s ease-out}
.hero-card::before{
  content:"";position:absolute;inset:3% 4%;border:1px solid rgba(47,185,244,.25);border-radius:34px;transform:translateZ(-35px) rotate(-4deg);
  background:linear-gradient(145deg,rgba(12,74,112,.06),rgba(255,255,255,.02));box-shadow:0 35px 90px rgba(6,35,61,.14);z-index:0;
}
.hero-card::after{
  content:"";position:absolute;inset:10% -2% -2% 14%;border-radius:50%;background:radial-gradient(circle,rgba(25,168,238,.2),rgba(25,168,238,.025) 44%,transparent 68%);filter:blur(12px);z-index:0;pointer-events:none;
}
.hero-card-panel{position:absolute;left:8%;right:8%;bottom:6%;z-index:5;transform:translateZ(62px);backdrop-filter:blur(18px);box-shadow:0 28px 80px rgba(3,28,49,.22)!important}

.mx-power-stage{position:absolute;inset:0;z-index:2;transform-style:preserve-3d;pointer-events:none}
.mx-schematic{position:absolute;inset:3% 0 21%;width:100%;height:auto;overflow:visible;transform:translateZ(20px)}
.mx-schematic .grid-line{stroke:rgba(30,161,219,.13);stroke-width:.8}
.mx-schematic .wire{fill:none;stroke:rgba(19,133,190,.34);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mx-schematic .wire-hot{fill:none;stroke:url(#mxPulseGradient);stroke-width:3;stroke-linecap:round;stroke-dasharray:6 13;filter:url(#mxGlow);animation:mxCircuit 3.1s linear infinite}
.mx-schematic .node{fill:#fff;stroke:#1188c9;stroke-width:3;filter:url(#mxGlow)}
.mx-schematic .node-core{fill:#1188c9;animation:mxNodePulse 2.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.mx-schematic .tower{fill:none;stroke:rgba(5,55,91,.64);stroke-width:2.15;stroke-linejoin:round}
.mx-schematic .tower-hot{fill:none;stroke:#23b9f3;stroke-width:1.25;stroke-dasharray:4 8;animation:mxCircuit 2.2s linear infinite}
.mx-schematic .label{fill:rgba(5,47,79,.58);font:700 10px Inter,Segoe UI,sans-serif;letter-spacing:.12em}
@keyframes mxCircuit{to{stroke-dashoffset:-38}}
@keyframes mxNodePulse{0%,100%{transform:scale(.82);opacity:.55}50%{transform:scale(1.22);opacity:1}}

.mx-voltage-badge{position:absolute;right:3%;top:8%;z-index:4;min-width:92px;padding:12px 15px;border-radius:16px;border:1px solid rgba(17,136,201,.22);background:rgba(255,255,255,.78);backdrop-filter:blur(14px);box-shadow:0 16px 36px rgba(6,35,61,.12);transform:translateZ(56px)}
.mx-voltage-badge strong{display:block;color:#087db8;font-size:13px;letter-spacing:.1em}.mx-voltage-badge span{display:block;color:#668095;font-size:10px;font-weight:800;letter-spacing:.13em;margin-top:4px;text-transform:uppercase}
.mx-live-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#29c986;box-shadow:0 0 0 5px rgba(41,201,134,.12),0 0 15px rgba(41,201,134,.45);animation:mxNodePulse 2s ease-in-out infinite}

/* Make existing sections feel engineered without redesigning their content */
section:not(.hero){position:relative}
section:not(.hero)::before{content:"";position:absolute;left:max(20px,calc((100vw - 1260px)/2));right:max(20px,calc((100vw - 1260px)/2));top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(17,136,201,.16),transparent);pointer-events:none}
.card,.service-card,.value-card,.gallery-card,.contact-card,.director-card,.feature-card,.info-card,.process-card{transform:translateZ(0);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease,border-color .3s ease!important}
.card:hover,.service-card:hover,.value-card:hover,.gallery-card:hover,.contact-card:hover,.director-card:hover,.feature-card:hover,.info-card:hover,.process-card:hover{transform:translateY(-7px);box-shadow:0 26px 62px rgba(7,47,79,.15)!important;border-color:rgba(17,136,201,.22)!important}

.btn{position:relative;overflow:hidden;isolation:isolate}.btn::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.23) 48%,transparent 72%);transform:translateX(-130%);transition:transform .65s ease}.btn:hover::after{transform:translateX(130%)}

.mx-reveal{opacity:0;transform:translateY(24px);transition:opacity .75s ease,transform .75s cubic-bezier(.16,1,.3,1)}.mx-reveal.mx-visible{opacity:1;transform:none}

@media (max-width:900px){
  .hero{min-height:auto}.hero-card{min-height:390px;margin-top:8px}.hero .reveal:first-child::after{display:none}.mx-voltage-badge{right:6%;top:5%}.hero-card-panel{left:5%;right:5%;bottom:2%}
}
@media (max-width:620px){
  body::before{background-size:42px 42px}.hero-card{min-height:335px}.mx-schematic{inset:1% -8% 24%;width:116%}.mx-voltage-badge{transform:none;right:2%;top:2%;padding:10px 12px}.hero-card-panel{transform:none}.hero::after{min-width:400px;min-height:400px}.eyebrow{letter-spacing:.12em}
}
@media (prefers-reduced-motion:reduce){
  .eyebrow::after,.mx-schematic .wire-hot,.mx-schematic .tower-hot,.mx-schematic .node-core,.mx-live-dot{animation:none!important}.hero-card{transform:none!important}.mx-reveal{opacity:1;transform:none;transition:none}
}

/* Gallery resilience + restrained portfolio spice */
.mx-page-gallery .hero .reveal{
  opacity:1;
  transform:none;
}
.mx-page-gallery .hero{
  min-height:auto;
  padding-top:76px;
  padding-bottom:72px;
}
.mx-page-gallery .hero-grid{
  min-height:520px;
}
.mx-page-gallery .hero-card{
  min-height:500px;
}
.mx-page-gallery #gallery{
  overflow:clip;
}
.mx-page-gallery .filter-bar{
  position:sticky;
  top:112px;
  z-index:12;
  padding:12px;
  margin-inline:-12px;
  border:1px solid rgba(17,136,201,.12);
  border-radius:22px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
  box-shadow:0 14px 34px rgba(7,47,79,.08);
}
.mx-page-gallery .gallery-grid{
  position:relative;
}
.mx-page-gallery .gallery-item{
  isolation:isolate;
  box-shadow:0 16px 38px rgba(4,38,64,.10);
  border:1px solid rgba(255,255,255,.72);
}
.mx-page-gallery .gallery-item::before{
  content:"";
  position:absolute;
  inset:12px;
  z-index:3;
  pointer-events:none;
  border:1px solid rgba(111,218,255,0);
  border-radius:18px;
  background:
    linear-gradient(#69d6ff,#69d6ff) left top/0 1px no-repeat,
    linear-gradient(#69d6ff,#69d6ff) left top/1px 0 no-repeat,
    linear-gradient(#69d6ff,#69d6ff) right bottom/0 1px no-repeat,
    linear-gradient(#69d6ff,#69d6ff) right bottom/1px 0 no-repeat;
  transition:background-size .42s ease,border-color .42s ease;
}
.mx-page-gallery .gallery-item:hover::before{
  border-color:rgba(111,218,255,.16);
  background-size:58px 1px,1px 58px,58px 1px,1px 58px;
}
.mx-page-gallery .gallery-item::after{
  background:linear-gradient(180deg,rgba(3,24,40,.02) 34%,rgba(3,28,48,.84) 100%);
}
.mx-page-gallery .gallery-caption{
  z-index:4;
  transform:translateY(4px);
  transition:transform .3s ease;
}
.mx-page-gallery .gallery-item:hover .gallery-caption{
  transform:translateY(-3px);
}
.mx-page-gallery .gallery-caption span::before{
  content:"↗";
  display:inline-block;
  margin-right:7px;
  color:#70d9ff;
  transition:transform .25s ease;
}
.mx-page-gallery .gallery-item:hover .gallery-caption span::before{
  transform:translate(2px,-2px);
}
.mx-gallery-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 26px;
  color:#5b7589;
  font-size:12px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.mx-gallery-status::after{
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg,rgba(17,136,201,.32),transparent);
}
.mx-gallery-status strong{color:#087db8}
.mx-lightbox-control{
  position:absolute;
  top:50%;
  z-index:8;
  width:52px;
  height:52px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(4,31,52,.60);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(12px);
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.mx-lightbox-control:hover{background:rgba(17,136,201,.82);border-color:rgba(255,255,255,.55)}
.mx-lightbox-prev{left:24px}.mx-lightbox-next{right:24px}
.mx-lightbox-prev:hover{transform:translate(-2px,-50%)}
.mx-lightbox-next:hover{transform:translate(2px,-50%)}
.mx-lightbox-count{
  position:absolute;
  left:50%;
  bottom:22px;
  z-index:8;
  transform:translateX(-50%);
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(4,31,52,.58);
  color:rgba(255,255,255,.88);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
  backdrop-filter:blur(12px);
}
@media(max-width:900px){
  .mx-page-gallery .hero-grid{min-height:auto}.mx-page-gallery .hero{padding-top:48px;padding-bottom:52px}
  .mx-page-gallery .filter-bar{position:relative;top:auto}
}
@media(max-width:620px){
  .mx-lightbox-control{width:44px;height:44px;font-size:23px}.mx-lightbox-prev{left:10px}.mx-lightbox-next{right:10px}
  .mx-gallery-status{letter-spacing:.08em}
}
