:root{
  --g1:#014388;
  --g2:#000f53;
  --g3:#020414;
  --accent:#4ab3de;

  --bg:#070b13;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --text:#eaf1ff;
  --muted:rgba(234,241,255,.75);
  --border:rgba(255,255,255,.14);

  --radius:18px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --max: 1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: linear-gradient(160deg, var(--g1), var(--g2) 40%, var(--g3) 100%);
  color:var(--text);
  line-height:1.55;
}

img{max-width:100%;display:block}
a{color:inherit}
p{margin:0 0 1rem}
h1,h2,h3,h4{line-height:1.12;margin:0 0 .8rem}
h1{font-size: clamp(2rem, 2.6vw + 1.4rem, 3.4rem)}
h2{font-size: clamp(1.5rem, 1.4vw + 1.2rem, 2.2rem)}
h3{font-size: 1.18rem}
h4{font-size: 1.02rem}
.lead{font-size:1.08rem; color:var(--text)}
.small{font-size:.92rem}
.muted{color:var(--muted)}
.container{max-width:var(--max); padding: 0 20px; margin:0 auto}
.narrow{max-width: 820px}
.section{padding: 72px 0;   background: linear-gradient(160deg, var(--g1), var(--g2) 40%, var(--g3) 100%);
}
.section-alt{ background: linear-gradient(340deg, var(--g1), var(--g2) 40%, var(--g3) 100%);}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px}
.section-head p{margin:0}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:#fff; color:#000; padding:10px 14px; border-radius:10px;
}
.skip-link:focus{left:14px; top:14px; z-index:10000}

.topbar{
  background: rgba(0,0,0,.32);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px;
  gap:14px;
}
.topbar a{color:var(--muted); text-decoration:none}
.topbar a:hover{color:var(--text)}
.dot{opacity:.7; margin:0 10px}
.topbar-right{display:flex; gap:12px}
.social{font-size:.92rem}

.navwrap{
  position:sticky; top:0; z-index:1000;
  background: rgba(0,0,0,.28);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 14px; gap:16px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.brand__logo{
  width:44px;
  height:44px;
  object-fit:contain;   /* keeps the square box */
  display:block;
}

.brand__text{
  font-weight:700;
  letter-spacing:.2px;
  line-height:1;
  color:inherit;
}
.nav{display:flex; align-items:center; gap:18px}
.nav-link{text-decoration:none; color:var(--muted); font-weight:600}
.nav-link.active,.nav-link:hover{color:var(--text)}
.nav-toggle{
  display:none;
  background:transparent; border:1px solid var(--border); color:var(--text);
  width:44px; height:44px; border-radius:12px;
}
.nav-toggle-lines{
  display:block;
  width:18px;height:2px;background:var(--text);position:relative;margin:0 auto;
}
.nav-toggle-lines::before,.nav-toggle-lines::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text);
}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}
.sr-only{position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(74,179,222), rgba(1,65,134,.98));
  color:#07101f;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration:none;
  font-weight:700;
  border: none;
  box-shadow: var(--shadow);
}
.btn:hover{transform: translateY(-1px); border:1px solid var(--accent);}
.btn:active{transform: translateY(0)}
.btn-small{padding:10px 12px; font-size:.95rem; border-radius:12px}
.btn-ghost{
  background: rgba(255,255,255,.06);
  color:var(--text);
  box-shadow:none;
}
.text-link{color:var(--accent); text-decoration:none; font-weight:600}
.text-link:hover{text-decoration:underline}
.inline-cta{display:flex; gap:14px; align-items:center; flex-wrap:wrap}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.highlight{
  background: linear-gradient(160deg, rgba(74,179,222,.12), rgba(255,255,255,.06));
}
.card-icon{
  width:46px;height:46px;border-radius:14px;
  display:grid; place-items:center;
  background: rgba(74,179,222,.12);
  border:1px solid rgba(74,179,222,.26);
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(74,179,222,.28);
  background: rgba(74,179,222,.10);
  font-size:.9rem;
  color:var(--text);
  margin:0 0 12px;
  font-weight:600;
}

.grid{display:grid; gap:18px}
.grid-2{grid-template-columns: repeat(2, minmax(0, 1fr))}
.grid-3{grid-template-columns: repeat(3, minmax(0, 1fr))}
.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:start;
}

.list-plain{list-style:none; padding:0; margin:0}
.list-plain li{margin:0 0 10px}

.hero{
  position:relative;
  min-height: 30vh;
  display:flex;
  align-items:center;
  padding: 86px 0 54px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.hero-overlay{
  position:absolute; inset:0;
  background: radial-gradient(900px 400px at 20% 25%, rgba(74,179,222,.18), transparent 65%),
              linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.68));
}
.hero-inner{position:relative; display:flex; align-items:center; text-align: center;
  justify-content:space-between; gap:26px}
.hero-content{max-width: 720px}
.kicker{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
  margin:0 0 14px;
  font-weight:600;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px; align-items: center; text-align: center; justify-content: center;}
.hero-badge{
  min-width: 220px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.service-card h3, .project-card h3{margin-top:0}
.service-card h3 a, .project-card h3 a{color:var(--text); text-decoration:none}
.service-card h3 a:hover, .project-card h3 a:hover{text-decoration:underline}

.service-card{
  position:relative;
  overflow:hidden;
  padding:0;
  border-radius:18px;
  transform:translateZ(0);
  background:linear-gradient(180deg, rgba(1,65,134,.10), rgba(1,2,11,.02)); /* clean base when image hides */
}

.service-card__link{
  position:relative;
  display:block;
  height:100%;
  padding:22px;
  text-decoration:none;
  color:inherit;
  min-height:350px;
}

/* Background photo layer: VISIBLE by default */
.service-card__media{
  position:absolute;
  inset:0;
  background-image:var(--card-bg);
  background-size:cover;
  background-position:center;
  opacity:1;
  transform:scale(1.03);
  transition:opacity .35s ease, transform .5s ease;
  z-index:0;
}

/* Readability layer: STRONG when image is visible, subtle when image hides */
.service-card__link::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(1, 2, 11, .72) 0%,
      rgba(1, 2, 11, .60) 45%,
      rgba(1, 2, 11, .78) 100%);
  opacity:.92;
  transition:opacity .35s ease;
  z-index:1;
}

/* Content above */
.service-card__content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:42ch;
}

.service-card__title{
  margin:0;
  font-size:1.2rem;
  letter-spacing:.2px;
}

.service-card__summary{
  margin:0;
  opacity:.88;
  line-height:1.55;
}

/* CTA hidden until hover/focus (desktop) */
.service-card__cta{
  margin-top:100px;
  display:inline-flex;
  align-items:flex-end;
  gap:8px;
  font-weight:700;
  transform:translateY(8px);
  opacity:0;
  transition:opacity .25s ease, transform .25s ease;
  color: var(--accent);
}

/* Desktop hover: HIDE image, reduce overlay, show CTA, grow card */
@media (hover:hover) and (pointer:fine){
  .service-card{
    transition:transform .25s ease, box-shadow .25s ease;
  }

  .service-card:hover{
    transform:translateY(-4px) scale(1.02);
  }

  .service-card:hover .service-card__media{
    opacity:0.1;
    transform:scale(1.06);
  }

  .service-card:hover .service-card__link::before{
    opacity:.18; /* makes the clean base background show */
  }

  .service-card:hover .service-card__cta{
    opacity:1;
    transform:translateY(0);
  }
}

/* Keyboard focus: same as hover */
.service-card:focus-within{
  outline:2px solid rgba(74,179,222,.75);
  outline-offset:3px;
  transform:translateY(-3px) scale(1.02);
}
.service-card:focus-within .service-card__media{ opacity:0; transform:scale(1.06); }
.service-card:focus-within .service-card__link::before{ opacity:.18; }
.service-card:focus-within .service-card__cta{ opacity:1; transform:none; }

/* Mobile: no hover → keep image visible and CTA visible so it's not "hidden" */
@media (hover:none), (pointer:coarse){
  .service-card__media{ opacity:1; }
  .service-card__link::before{ opacity:.92; }
  .service-card__cta{ opacity:1; transform:none; }
  .service-card__link{ min-height:200px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .service-card,
  .service-card__media,
  .service-card__cta,
  .service-card__link::before{
    transition:none !important;
  }
}


.project-card{display:grid; grid-template-columns: 1fr; overflow:hidden; padding:0}
.project-thumb{display:block}
.project-thumb img{width:100%; height: 240px; object-fit:cover}
.project-body{padding:18px}

.parallax{
  position:relative;
  background-image: var(--bg);
  background-size: cover;
  background-position:center;
  background-attachment: fixed; /* desktop */
  padding: 86px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Mobile/touch: turn off "fixed" (best compatibility + performance) */
@media (hover: none), (pointer: coarse){
  .parallax{
    background-position:contain;
    background-attachment: scroll;
    background-position: center top; /* often looks better on tall screens */
    padding: 64px 0;                /* a bit tighter for mobile */
  }
}

/* Reduced motion: also turn off */
@media (prefers-reduced-motion: reduce){
  .parallax{
    background-attachment: scroll;
  }
}

.parallax-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.60), rgba(0,0,0,.30));
}

/* On small screens, increase overlay so text stays readable */
@media (max-width: 720px){
  .parallax-overlay{
    background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.45));
  }
}

.parallax-inner{
  position:relative;
  max-width: 820px;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin: 0 auto;     /* ensure centering */
  padding: 0 16px;    /* prevent edge-to-edge text */
}

.parallax h2{ margin-bottom: 10px; }
.parallax .lead{ margin:0 0 16px; }


.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery-item{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  grid-column: span 4;
  box-shadow: var(--shadow);
}
.gallery-item img{width:100%; height: 220px; object-fit:cover}

.content-block{margin: 0 0 36px}
.content-block:last-child{margin-bottom:0}

.form-card{padding:22px}
.field{margin: 0 0 14px}
label{display:block; font-weight:600; margin: 0 0 8px}
input,textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}
input:focus,textarea:focus{border-color: rgba(74,179,222,.60); box-shadow: 0 0 0 4px rgba(74,179,222,.12)}
.field-error{margin:8px 0 0; color: #ffd6d6}
.alert{padding: 14px; border-radius: 14px; margin: 0 0 16px; border:1px solid rgba(255,255,255,.14)}
.alert.success{background: rgba(74,179,222,.12); border-color: rgba(74,179,222,.30)}
.hp{position:absolute; left:-9999px; height:1px; width:1px; overflow:hidden}

.map{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.map iframe{width:100%; height: 320px; border:0}

.before-after{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding-bottom: 14px;
}
.before-after-img{
  position:relative;
  width:100%;
  height: 320px;
}
.before-after-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.before-after-img.after{
  position:absolute;
  inset:0;
  width: var(--reveal, 50%);
  overflow:hidden;
}
.before-after-range{
  width: calc(100% - 24px);
  margin: 12px 12px 8px;
}
.before-after .label{
  position:absolute;
  top:12px; left:12px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:700;
}
.before-after p{padding: 0 12px; margin:0}

.site-footer{
  padding: 54px 0 26px;
  background: var(--g3);
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}
.footer-grid a{text-decoration:none; color:var(--muted)}
.footer-grid a:hover{color:var(--text)}
.footer-social{display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px}
.footer-bottom{margin-top: 26px; 
  border-top:1px solid rgba(255,255,255,.10); 
  padding-top: 16px; 
  text-align: center; 
  justify-content: center; 
  align-items: center;
}

@media (max-width: 980px){
  .grid-3{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .split{grid-template-columns: 1fr; }
  .hero{min-height: 70vh}
  .hero-inner{flex-direction:column; align-items:flex-start}
  .footer-grid{grid-template-columns: 1fr; align-items: center; justify-content: center; text-align: center;}
  .footer-social{align-items: center; justify-content: center; text-align: center;}
}
@media (max-width: 640px){
  .grid-2{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .gallery-item{grid-column: span 12}
  .project-thumb img{height: 220px}
  .nav{position:absolute; right:20px; top:72px; flex-direction:column; align-items:flex-start; gap:12px;
    padding:16px; border-radius: var(--radius);
    background: rgba(0,0,0,.8);
    border:1px solid rgba(255,255,255,.16);
    box-shadow: var(--shadow);
    display:none;
    width: min(320px, calc(100vw - 40px));
  }
  .nav.open{display:flex}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
}


.hero--video{
  position:relative;
  overflow:hidden;
  min-height:60vh; /* adjust as you like */
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:scale(1.02); /* removes thin edge gaps on some browsers */
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  /* keep your existing overlay; example: */
  background:linear-gradient(90deg, rgba(1,65,134,.72), rgba(1,2,11,.55));
}

.hero-inner{
  position:relative;
  z-index:2;
}

.fa-solid , .fa-brands, .fa-regular{
  color: var(--accent);
}