:root{
  --bg:#020617;
  --bg-soft:#0f172a;
  --surface:rgba(255,255,255,0.07);
  --surface-strong:rgba(255,255,255,0.11);
  --border:rgba(255,255,255,0.14);
  --text:#ffffff;
  --text-soft:rgba(255,255,255,0.78);
  --text-muted:rgba(255,255,255,0.62);

  --primary:#0ea5e9;
  --primary-strong:#2563eb;
  --primary-soft:rgba(14,165,233,0.14);

  --light-bg:#ffffff;
  --light-card:#f8fafc;
  --light-border:#e2e8f0;
  --dark-text:#0f172a;
  --dark-muted:#475569;

  --radius-sm:16px;
  --radius-md:22px;
  --radius-lg:28px;
  --radius-xl:34px;

  --shadow-soft:0 16px 36px rgba(0,0,0,0.18);
  --shadow-card:0 20px 44px rgba(0,0,0,0.22);
  --shadow-modal:0 30px 70px rgba(0,0,0,0.35);

  --container:1200px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

body.modal-open,
body.menu-open{
  overflow:hidden;
}

img,
video{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
}

button,
input,
select,
textarea{
  font:inherit;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:12px 14px;
  border-radius:12px;
  background:#fff;
  color:#000;
  z-index:999;
}

.site{
  position:relative;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  height:980px;
  overflow:hidden;
  z-index:0;
}

.bg-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.03);
  transition:opacity 1s ease, transform 1s ease;
}

.bg-slide.active{
  opacity:0.52;
  transform:scale(1);
}

.bg-slide.image{
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.bg-slide.video{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.20;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.05), transparent 35%),
    radial-gradient(circle at bottom right, rgba(37,99,235,0.05), transparent 32%),
    linear-gradient(180deg, rgba(2,6,23,0.28) 0%, rgba(2,6,23,0.48) 55%, rgba(2,6,23,0.84) 100%);
}

.container{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.header{
  position:relative;
  z-index:10;
  padding:22px 0;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}

.logo{
  height:54px;
  width:auto;
  object-fit:contain;
  flex-shrink:0;
}

.brand-title{
  font-size:30px;
  font-weight:700;
  line-height:1;
}

.brand-subtitle{
  margin-top:4px;
  font-size:11px;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:rgba(186,230,253,0.82);
}

.nav{
  display:flex;
  align-items:center;
  gap:24px;
  padding:12px 20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.10);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-soft);
}

.nav a{
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  transition:color .2s ease, opacity .2s ease;
}

.nav a:hover{
  color:#bae6fd;
}

.phone-pill{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(14,165,233,0.18);
  border:1px solid rgba(125,211,252,0.24);
}

.menu-toggle{
  display:none;
  width:48px;
  height:48px;
  border:none;
  border-radius:14px;
  padding:0;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-soft);
}

.menu-toggle span{
  width:22px;
  height:2px;
  border-radius:999px;
  background:#fff;
  transition:transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.section{
  position:relative;
  z-index:1;
  padding:78px 0;
}

.section-dark{
  color:var(--text);
}

.section-light{
  background:var(--light-bg);
  color:var(--dark-text);
}

.hero{
  padding-top:18px;
  padding-bottom:86px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap:42px;
  align-items:center;
}

.hero-copy{
  max-width:720px;
}

.hero-spacer{
  min-height:380px;
}

.badge,
.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:10px 16px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
}

.badge{
  color:#e0f2fe;
  background:rgba(56,189,248,0.11);
  border:1px solid rgba(125,211,252,0.20);
}

.eyebrow{
  color:#7dd3fc;
}

.eyebrow-dark{
  color:#0369a1;
}

.hero h1{
  font-size:68px;
  line-height:0.95;
  margin:18px 0 18px;
  letter-spacing:-0.03em;
}

.hero p,
.section-head p,
.contact-grid p,
.two-col > div > p{
  font-size:18px;
  line-height:1.75;
  color:var(--text-soft);
  margin:0;
}

.two-col > div > p + p{
  margin-top:16px;
}

.section-light p{
  color:var(--dark-muted);
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:30px;
}

.btn{
  border:none;
  text-decoration:none;
  cursor:pointer;
  padding:15px 24px;
  border-radius:16px;
  font-size:15px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(90deg, var(--primary), var(--primary-strong));
  box-shadow:0 16px 36px rgba(14,165,233,0.28);
}

.btn-secondary{
  color:#fff;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.btn-light{
  background:#fff;
  color:var(--dark-text);
  box-shadow:0 14px 28px rgba(15,23,42,0.08);
}

.btn-dark{
  background:var(--dark-text);
  color:#fff;
}

.btn-outline-dark{
  background:transparent;
  color:var(--dark-text);
  border:1px solid #cbd5e1;
}

.section-head{
  margin-bottom:30px;
}

.section-head.center{
  text-align:center;
}

.section-head h2,
.two-col h2,
.contact-grid h2{
  font-size:48px;
  line-height:1.05;
  margin:16px 0 16px;
  letter-spacing:-0.03em;
}

.card-grid{
  display:grid;
  gap:22px;
}

.services-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.project-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.card{
  border-radius:var(--radius-lg);
  overflow:hidden;
}

.glass{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-card);
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.card-body{
  padding:22px;
}

.card h3{
  font-size:26px;
  line-height:1.12;
  margin:0 0 14px;
}

.card ul{
  margin:0;
  padding-left:18px;
  color:#cbd5e1;
  display:grid;
  gap:8px;
}

.card p{
  margin:0;
  line-height:1.65;
}

.two-col,
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:42px;
  align-items:start;
}

.mini-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.mini-card{
  border-radius:22px;
  padding:22px;
}

.light-grid .mini-card{
  background:var(--light-card);
  border:1px solid var(--light-border);
  box-shadow:0 12px 26px rgba(15,23,42,0.05);
}

.light-grid .mini-card h3,
.light-grid .mini-card p{
  color:var(--dark-text);
}

.light-grid .mini-card p{
  color:var(--dark-muted);
}

.dark-card{
  background:rgba(2,6,23,0.78);
  border:1px solid rgba(125,211,252,0.16);
  box-shadow:0 18px 36px rgba(0,0,0,0.22);
}

.dark-card h3{
  color:#fff;
  margin-bottom:10px;
}

.dark-card p{
  color:rgba(255,255,255,0.84);
  margin:0;
  line-height:1.6;
}

.icon{
  font-size:22px;
  line-height:1;
  margin-bottom:12px;
}

.hero-image-card{
  border-radius:var(--radius-xl);
  overflow:hidden;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 44px rgba(0,0,0,0.26);
}

.hero-image-card img{
  width:100%;
  height:340px;
  object-fit:cover;
  object-position:center;
}

.project-card{
  transition:transform .25s ease, box-shadow .25s ease;
}

.project-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 48px rgba(0,0,0,0.28);
}

.project-media{
  position:relative;
}

.project-media video{
  width:100%;
  height:240px;
  object-fit:cover;
}

.media-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.46), rgba(0,0,0,0.10), rgba(0,0,0,0));
  pointer-events:none;
}

.project-tag{
  display:inline-flex;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#bae6fd;
  background:rgba(15,23,42,0.76);
}

.contact-card{
  background:var(--light-card);
  border:1px solid var(--light-border);
  border-radius:var(--radius-xl);
  padding:30px;
  box-shadow:0 18px 36px rgba(15,23,42,0.08);
}

.contact-list{
  display:grid;
  gap:14px;
  font-size:18px;
  color:var(--dark-text);
}

.modal.hidden{
  display:none;
}

.modal{
  position:fixed;
  inset:0;
  z-index:30;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,0.72);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

.modal-panel{
  position:relative;
  width:min(800px, calc(100% - 32px));
  max-height:90vh;
  overflow:auto;
  margin:34px auto;
  padding:30px;
  border-radius:30px;
  background:var(--light-bg);
  color:var(--dark-text);
  box-shadow:var(--shadow-modal);
}

.modal-panel.large{
  width:min(980px, calc(100% - 32px));
}

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

.modal-head h3{
  font-size:36px;
  line-height:1.05;
  margin:10px 0 0;
}

.close-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

.form{
  margin-top:24px;
  display:grid;
  gap:18px;
}

.form-grid.two{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

label{
  display:grid;
  gap:8px;
  font-weight:700;
  color:#334155;
}

input,
select,
textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:16px;
  padding:15px 16px;
  color:var(--dark-text);
  background:#fff;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 3px rgba(56,189,248,0.15);
}

@media (max-width:1100px){
  .services-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .hero-grid,
  .two-col,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:58px;
  }

  .hero-spacer{
    min-height:80px;
  }

  .hero-image-card img{
    height:300px;
  }
}

@media (max-width:820px){
  .container{
    width:min(var(--container), calc(100% - 30px));
  }

  .header{
    padding:18px 0;
  }

  .header-inner{
    position:relative;
    gap:14px;
  }

  .logo{
    height:48px;
  }

  .brand-title{
    font-size:24px;
  }

  .brand-subtitle{
    font-size:10px;
    letter-spacing:0.24em;
  }

  .menu-toggle{
    display:flex;
    flex-shrink:0;
  }

  .nav{
    display:none;
    position:absolute;
    top:100%;
    right:0;
    left:0;
    margin-top:12px;
    padding:18px;
    border-radius:24px;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    background:rgba(2,6,23,0.95);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 24px 56px rgba(0,0,0,0.34);
  }

  .nav.nav-open{
    display:flex;
  }

  .nav a{
    width:100%;
    padding:8px 0;
    font-size:15px;
  }

  .phone-pill{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .hero-bg{
    height:1060px;
  }

  .hero{
    padding-top:10px;
    padding-bottom:70px;
  }

  .hero h1{
    font-size:48px;
  }

  .hero p,
  .section-head p,
  .contact-grid p,
  .two-col > div > p{
    font-size:17px;
    line-height:1.7;
  }

  .section{
    padding:64px 0;
  }

  .section-head h2,
  .two-col h2,
  .contact-grid h2{
    font-size:38px;
  }

  .services-grid,
  .project-grid,
  .mini-grid,
  .form-grid.two{
    grid-template-columns:1fr;
  }

  .card img{
    height:210px;
  }

  .project-media video{
    height:220px;
  }

  .hero-image-card img{
    height:260px;
  }

  .contact-card{
    padding:24px;
  }

  .contact-list{
    font-size:17px;
  }

  .modal-panel,
  .modal-panel.large{
    width:min(100% - 20px, 980px);
    margin:20px auto;
    padding:22px;
    border-radius:24px;
  }

  .modal-head{
    flex-direction:column;
    gap:14px;
  }

  .modal-head h3{
    font-size:28px;
  }

  .cta-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:520px){
  .hero-bg{
    height:980px;
  }

  .hero h1{
    font-size:40px;
    line-height:1.02;
  }

  .section-head h2,
  .two-col h2,
  .contact-grid h2{
    font-size:31px;
  }

  .badge,
  .eyebrow{
    font-size:10px;
    padding:9px 13px;
  }

  .btn{
    width:100%;
  }

  .card-body{
    padding:20px;
  }

  .card h3{
    font-size:23px;
  }

  .project-media video{
    height:200px;
  }

  .hero-image-card img{
    height:220px;
  }

  .contact-card{
    padding:20px;
  }
}