:root{
  --sp-ink:#071923;
  --sp-ink-2:#0b2733;
  --sp-cyan:#2bb9e8;
  --sp-cyan-2:#6ad6ed;
  --sp-line:#d8e5e9;
  --sp-paper:#f7fafb;
  --sp-copy:#10242d;
  --sp-muted:#667b85;
}
.sp-global-header{
  position:sticky;
  top:0;
  z-index:65;
  width:100%;
  background:rgba(6,22,31,.97);
  color:#fff;
  border-bottom:1px solid rgba(122,180,201,.24);
  box-shadow:0 8px 30px rgba(0,18,27,.12);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.sp-global-inner{
  max-width:1460px;
  min-height:72px;
  margin:0 auto;
  padding:0 28px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:26px;
  align-items:center;
}
.sp-global-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}
.sp-global-mark{
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#087fa8,#25bde5);
  color:#fff;
  font-weight:950;
  font-size:19px;
  line-height:1;
  box-shadow:0 8px 20px rgba(25,174,221,.22);
}
.sp-global-brand-words{
  display:flex;
  align-items:baseline;
  gap:6px;
  letter-spacing:.09em;
  font-size:13px;
  font-weight:900;
}
.sp-global-brand-words em{
  font-style:normal;
  color:var(--sp-cyan-2);
}
.sp-global-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  gap:6px;
  padding:6px 0;
}
.sp-global-nav a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:79.2px;
  padding:0 11px;
  box-sizing:border-box;
  border:1px solid rgba(106,214,237,.28);
  border-radius:10px;
  background:linear-gradient(155deg,#153644,#0a222e);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 4px 10px rgba(0,10,18,.22);
  color:#dcebf1;
  text-decoration:none;
  font-size:11px;
  font-weight:800;
  letter-spacing:.035em;
  white-space:nowrap;
  transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.sp-global-nav a:hover,
.sp-global-nav a:focus-visible{
  color:#fff;
  border-color:rgba(106,214,237,.72);
  background:linear-gradient(155deg,#1b4658,#0d2d3b);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,10,18,.3);
}
.sp-global-nav a:focus-visible,
.sp-service-rail a:focus-visible{
  outline:2px solid var(--sp-cyan-2);
  outline-offset:2px;
}
.sp-global-nav a[aria-current="page"]{
  color:#fff;
  border-color:var(--sp-cyan);
  background:linear-gradient(145deg,#18556b,#0c3546);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 14px rgba(43,185,232,.15);
}
.sp-global-nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:5px;
  height:3px;
  border-radius:999px;
  background:var(--sp-cyan);
}
.sp-global-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.sp-global-cta{
  min-height:42px;
  padding:0 17px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--sp-cyan);
  color:#04151d;
  text-decoration:none;
  font-size:10px;
  font-weight:950;
  letter-spacing:.025em;
  white-space:nowrap;
  box-shadow:0 9px 22px rgba(27,178,224,.18);
}
.sp-service-rail{
  display:none;
}
body.sp-public-v2 .top{
  display:none;
}
body.sp-public-v2 > nav[aria-label="Engineering services"]{
  display:none;
}
.sp-page-service-rail{
  max-width:1180px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
  background:#fff;
  border-bottom:1px solid var(--sp-line);
}
.sp-page-service-rail::-webkit-scrollbar{display:none}
.sp-page-service-rail a{
  flex:0 0 auto;
  padding:9px 12px;
  border:1px solid var(--sp-line);
  border-radius:999px;
  color:#31505d;
  background:#fff;
  text-decoration:none;
  font-size:9px;
  font-weight:850;
  letter-spacing:.02em;
}
.sp-page-service-rail a[aria-current="page"]{
  color:#06202b;
  border-color:#6ecce4;
  background:#eaf8fc;
}
.sp-footer-services{
  margin-top:30px;
  background:#061923;
  color:#d7e5ea;
  border-top:1px solid #173846;
}
.sp-footer-services-inner{
  max-width:1180px;
  margin:0 auto;
  padding:28px 24px 32px;
  display:grid;
  grid-template-columns:1.2fr 2fr;
  gap:34px;
}
.sp-footer-services strong{
  display:block;
  color:#fff;
  font-size:14px;
  letter-spacing:.06em;
}
.sp-footer-services p{
  margin:7px 0 0;
  max-width:420px;
  color:#849da8;
  font-size:10px;
  line-height:1.6;
}
.sp-footer-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.sp-footer-links a{
  color:#c9d9df;
  text-decoration:none;
  padding:9px 0;
  border-bottom:1px solid #173744;
  font-size:10px;
  font-weight:750;
}
.sp-footer-links a:hover{color:#fff}
@media(max-width:1180px){
  .sp-global-inner{gap:12px;padding:0 18px}
  .sp-global-nav a{padding:0 7.7px;font-size:9.9px}
  .sp-global-brand-words{font-size:11px}
  .sp-global-cta{padding:0 13px}
}
@media(max-width:900px){
  .sp-global-header{position:sticky}
  .sp-global-inner{
    min-height:64px;
    padding:0 12px;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  .sp-global-nav{display:none}
  .sp-global-actions{gap:6px}
    .sp-global-cta{min-height:38px;padding:0 11px;font-size:9px}
  .sp-global-mark{width:29px;height:29px;font-size:17px}
  .sp-global-brand-words{font-size:10px;gap:4px}
  .sp-service-rail{
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding:4px 12px 10px;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }
  .sp-service-rail::-webkit-scrollbar{display:none}
  .sp-service-rail a{
    flex:0 0 auto;
    scroll-snap-align:start;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    box-sizing:border-box;
    color:#dcebf1;
    text-decoration:none;
    border:1px solid rgba(106,214,237,.28);
    background:linear-gradient(155deg,#153644,#0a222e);
    border-radius:10px;
    padding:8.8px 12.1px;
    font-size:8.8px;
    font-weight:850;
    white-space:nowrap;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 3px 8px rgba(0,10,18,.22);
    transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
  }
  .sp-service-rail a:hover,
  .sp-service-rail a:focus-visible{
    color:#fff;
    border-color:rgba(106,214,237,.72);
    background:linear-gradient(155deg,#1b4658,#0d2d3b);
  }
  .sp-service-rail a[aria-current="page"]{
    color:#061923;
    background:linear-gradient(145deg,#8ae3f2,#42bddf);
    border-color:#8ae3f2;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 12px rgba(43,185,232,.2);
  }
  .sp-page-service-rail{display:none}
  .sp-footer-services-inner{grid-template-columns:1fr}
  .sp-footer-links{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .sp-global-inner{padding:0 9px}
  .sp-global-brand-words strong{letter-spacing:.055em}
  .sp-global-cta{padding:0 9px;font-size:8px}
  }

/* Public UX v2.1 — first-screen service discovery + controlled visual system */
body.sp-public-v2 .refHero{
  min-height:640px;
  background:#04151f;
}
body.sp-public-v2 .refHeroMedia{inset:0 0 0 34%}
body.sp-public-v2 .refHeroMedia img{
  object-position:center;
  filter:saturate(1.02) contrast(1.05);
}
body.sp-public-v2 .refHeroShade{
  background:
    radial-gradient(780px 440px at 72% 42%,rgba(30,180,224,.12),transparent 64%),
    linear-gradient(90deg,#04151f 0%,#04151ff7 32%,#04151fcf 52%,#04151f36 100%);
}
.sp-home-service-launcher{
  position:relative;
  z-index:8;
  max-width:1320px;
  margin:-46px auto 26px;
  padding:0 22px;
}
.sp-home-service-launcher-inner{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  background:#fff;
  border:1px solid #d7e4e8;
  border-radius:16px;
  box-shadow:0 26px 70px rgba(5,28,39,.18);
  overflow:hidden;
}
.sp-launch-card{
  position:relative;
  min-height:172px;
  padding:18px 16px 16px;
  color:#102630;
  text-decoration:none;
  border-right:1px solid #dbe6ea;
  background:linear-gradient(180deg,#fff,#f8fbfc);
  overflow:hidden;
  transition:transform .18s ease,background .18s ease;
}
.sp-launch-card:last-child{border-right:0}
.sp-launch-card:hover{
  background:#f0f9fc;
  transform:translateY(-2px);
}
.sp-launch-card small{
  display:block;
  color:#188db6;
  font-size:7px;
  font-weight:950;
  letter-spacing:1.3px;
}
.sp-launch-card b{
  display:block;
  margin:12px 0 7px;
  font-size:13px;
  line-height:1.2;
}
.sp-launch-card span{
  display:block;
  color:#6c818b;
  font-size:9px;
  line-height:1.45;
}
.sp-launch-card em{
  position:absolute;
  right:13px;
  bottom:12px;
  font-style:normal;
  color:#0b93c2;
  font-size:13px;
}
.sp-launch-icon{
  width:46px;
  height:46px;
  margin-top:15px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:20px;
  font-weight:900;
  background:linear-gradient(145deg,#092e3e,#19aeda);
  box-shadow:0 10px 22px rgba(11,134,178,.18);
}
.sp-launch-card:nth-child(2) .sp-launch-icon{background:linear-gradient(145deg,#0b2532,#29b7e4)}
.sp-launch-card:nth-child(3) .sp-launch-icon{background:linear-gradient(145deg,#18313a,#47a8bf)}
.sp-launch-card:nth-child(4) .sp-launch-icon{background:linear-gradient(145deg,#112b37,#45c27b)}
.sp-launch-card:nth-child(5) .sp-launch-icon{background:linear-gradient(145deg,#17313b,#f2b44d)}
.sp-launch-card:nth-child(6) .sp-launch-icon{background:linear-gradient(145deg,#152c35,#e5574f)}

body.sp-public-v2 .refServices{
  padding-top:42px;
}
body.sp-public-v2 .refServiceGrid>a{
  border-radius:12px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body.sp-public-v2 .refServiceGrid>a:hover{
  transform:translateY(-4px);
  border-color:#a8d4df;
  box-shadow:0 18px 36px rgba(13,56,73,.12);
}
body.sp-public-v2 .svcImg{
  height:160px;
  background-size:cover;
  background-position:center;
}
body.sp-public-v2 .svcImg.elec{background-image:url('/assets/visuals/electrical.svg')}
body.sp-public-v2 .svcImg.mech{background-image:url('/assets/visuals/mechanical.svg')}
body.sp-public-v2 .svcImg.bim{background-image:url('/assets/visuals/bim.svg')}
body.sp-public-v2 .svcImg.boq{background-image:url('/assets/visuals/boq.svg')}
body.sp-public-v2 .svcImg.site{background-image:url('/assets/visuals/supervision.svg')}
body.sp-public-v2 .svcImg.boq:after{display:none}
body.sp-public-v2 .visionMedia{
  background-image:url('/assets/visuals/consultancy.svg');
  background-size:cover;
  background-position:center;
}
.sp-controlled-hero{
  background-size:cover;
  background-position:center;
}
.sp-local-scene{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
body.sp-public-v2 .nHero.sp-controlled-hero{
  background-image:
    linear-gradient(90deg,#031923f8 0,#031923e8 42%,#03192372 70%,#03192325 100%),
    var(--sp-controlled-visual);
}
body.sp-public-v2 .nVisual.sp-controlled-hero,
body.sp-public-v2 .nPair article.sp-controlled-hero{
  background-image:
    linear-gradient(180deg,transparent 20%,#031923c7 100%),
    var(--sp-controlled-visual);
}
body.sp-public-v2 .hero.sp-controlled-hero{
  background-image:
    linear-gradient(90deg,#071923f6 0%,#071923e8 43%,#07192366 72%),
    var(--sp-controlled-visual);
}
@media(max-width:1050px){
  .sp-home-service-launcher-inner{grid-template-columns:repeat(3,1fr)}
  .sp-launch-card:nth-child(3){border-right:0}
  .sp-launch-card:nth-child(-n+3){border-bottom:1px solid #dbe6ea}
}
@media(max-width:900px){
  body.sp-public-v2 .refHero{min-height:735px}
  body.sp-public-v2 .refHeroMedia{inset:42% -18% 0 0}
  body.sp-public-v2 .refHeroShade{
    background:linear-gradient(180deg,#04151fff 0%,#04151ff2 42%,#04151f73 100%);
  }
  .sp-home-service-launcher{
    margin:-24px auto 20px;
    padding:0 12px;
  }
  .sp-home-service-launcher-inner{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    border-radius:14px;
    scrollbar-width:none;
  }
  .sp-home-service-launcher-inner::-webkit-scrollbar{display:none}
  .sp-launch-card{
    flex:0 0 47%;
    min-height:158px;
    scroll-snap-align:start;
    border-bottom:0;
  }
}
@media(max-width:520px){
  .sp-launch-card{flex-basis:72%}
  body.sp-public-v2 .refHeroCopy{padding-left:18px;padding-right:18px}
  body.sp-public-v2 .refHero h1{font-size:42px}
}


/* Audit 2026-09-25: constrain grid items rather than hiding page overflow. */
body.sp-public-v2 .app { grid-template-columns:minmax(0,1fr); }
body.sp-public-v2 .main { min-width:0; max-width:1600px; width:100%; }
body.sp-public-v2 .portfolioRecord::after { content:none; }
body.sp-public-v2 .clientPortal input, body.sp-public-v2 .clientPortal select,
body.sp-public-v2 .clientPortal textarea { max-width:100%; min-width:0; }
body.sp-public-v2 button:disabled { cursor:not-allowed; opacity:.55; }
@media(max-width:900px) {
  }

/* Keep intake text readable after the light surface theme is applied. */
body.sp-public-v2 .clientPortal .portalFlow div,
body.sp-public-v2 .clientPortal .fileIntake,
body.sp-public-v2 .clientPortal .filePick { background:#eef4f7; border-color:#c6d6df; }
body.sp-public-v2 .clientPortal .portalFlow span,
body.sp-public-v2 .clientPortal .filePick label { color:#435f6d; }
body.sp-public-v2 .clientPortal .serviceSelectGrid { display:block; }
body.sp-public-v2 .clientPortal .serviceChoice { margin-bottom:8px; }


/* Navigation coordination: progressive same-origin page transitions. */
@view-transition { navigation: auto; }
.sp-global-header { view-transition-name: sp-global-header; }
.sp-global-brand { view-transition-name: sp-global-brand; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(*) { animation-duration: .01ms; }
}


/* Superseded logo experiments removed. The approved final lockup below is the sole logo sizing authority. */
/* Final mobile/desktop logo fit correction 2026-09-27.
   The approved lockup now defines the panel size itself: no oversized white frame,
   no padding halo, and no artificial logo stretching. */
.sp-global-inner{
  min-height:76px;
}
.sp-global-brand{
  min-width:0;
  width:210px;
  height:auto;
  aspect-ratio:570 / 210;
  padding:0;
  border:1px solid rgba(196,219,227,.88);
  border-radius:10px;
  overflow:hidden;
  background:transparent;
  box-shadow:
    0 7px 18px rgba(0,12,22,.20),
    0 0 0 1px rgba(106,214,237,.10);
}
.sp-global-brand-logo{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  image-rendering:auto;
  transform:none;
  backface-visibility:visible;
  filter:contrast(1.09) saturate(1.035) brightness(1.01);
}
@media(max-width:1180px){
  .sp-global-inner{min-height:70px}
  .sp-global-brand{min-width:0;width:194px;height:auto;padding:0}
  .sp-global-brand-logo{width:100%;height:100%}
}
@media(max-width:900px){
  .sp-global-inner{min-height:62px;padding-top:4px;padding-bottom:4px}
  .sp-global-brand{min-width:0;width:168px;height:auto;padding:0;border-radius:8px}
  .sp-global-brand-logo{width:100%;height:100%}
}
@media(max-width:420px){
  .sp-global-inner{min-height:58px}
  .sp-global-brand{min-width:0;width:158px;height:auto;padding:0;border-radius:8px}
  .sp-global-brand-logo{width:100%;height:100%}
}

/* Stability pass: at compact widths, give brand and locale/CTA controls dedicated rows.
   This prevents a three-language selector competing with the approved logo width. */
@media(max-width:620px){
  body.sp-public-v2 .sp-global-inner{grid-template-columns:minmax(0,1fr);row-gap:5px;padding-top:5px;padding-bottom:8px}
  body.sp-public-v2 .sp-global-actions{width:100%;min-width:0;justify-content:space-between;flex-wrap:nowrap;gap:7px}
  body.sp-public-v2 .sp-global-cta{flex:0 0 auto;min-height:35px;font-size:9px;padding:0 9px}
}
@media(max-width:360px){
  body.sp-public-v2 .sp-locale-switch{gap:2px;padding:2px}
  body.sp-public-v2 .sp-locale-button{font-size:9px;padding:6px 5px}
}
