:root {
  --navy: #212932;
  --navy-2: #2c3742;
  --ink: #212932;
  --sky: #38b6ff;
  --sky-2: #00bfff;
  --sky-soft: rgba(56, 182, 255, 0.5);
  --paper: #ffffff;
  --panel: #f5f8fb;
  --white: #ffffff;
  --muted: #5b6672;
  --line: #e3e9ef;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(33, 41, 50, 0.08);
  --shadow-md: 0 20px 40px rgba(56, 182, 255, 0.18);
  --max: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--sky-2); font-weight: 600; margin: 0 0 .6em; }
.section-eyebrow.center, h2.center, .section-sub.center { text-align: center; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { border-color: var(--line); background: rgba(255, 255, 255, 0.95); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 72px; width: auto; display: block; }
.brand-footer .brand-logo { height: 44px; margin: 0 0 12px; filter: brightness(0) invert(1); }
@media (max-width: 720px) { .brand-logo { height: 56px; } }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: .95rem; color: var(--navy); position: relative; padding: 6px 0; }
.nav a:not(.nav-cta):after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sky);
  transition: width .25s var(--ease);
}
.nav a:hover:not(.nav-cta):after { width: 100%; }
.nav a.nav-cta {
  background: var(--navy); color: var(--paper) !important;
  padding: 10px 26px; border-radius: 100px; font-weight: 500;
  transition: background .2s var(--ease);
}
.nav a.nav-cta:hover { background: var(--navy-2); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 500; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--sky); color: var(--navy); }
.btn-primary:hover { background: var(--sky-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* hero */
.hero {
  position: relative; color: var(--paper);
  min-height: 92vh; display: grid; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease);
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; animation: kenBurns 12s linear forwards; }
@keyframes kenBurns { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(33,41,50,.85) 0%, rgba(33,41,50,.7) 60%, rgba(56,182,255,.5) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-inner { padding: 100px 0 80px; max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; color: var(--sky); margin: 0 0 20px; font-weight: 600; }
.hero h1 { color: var(--paper); margin-bottom: 20px; }
.hero .accent { color: var(--sky); font-weight: 500; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(247,245,240,.85); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 60px; }
.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 620px;
}
.hero-stats li { border-top: 1px solid rgba(56,182,255,.35); padding-top: 16px; }
.hero-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2rem; color: var(--sky); line-height: 1; }
.hero-stats span { font-size: .82rem; color: rgba(247,245,240,.75); letter-spacing: .05em; }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px;
  display: grid; place-items: start center; padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px; background: var(--sky); border-radius: 2px;
  animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(10px);opacity:.3} }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.pillars { display: grid; gap: 18px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(56,182,255,.14); color: var(--sky-2);
  display: grid; place-items: center; margin-bottom: 14px;
}
.pillar h3 { margin: 4px 0 6px; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }

/* services */
.services { background: var(--panel); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px;
}
.service {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--sky); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--navy); color: var(--sky);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 800px; margin: 30px auto 0; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; text-align: center; box-shadow: var(--shadow-sm);
}
.member-photo {
  width: 160px; height: 160px; border-radius: 50%;
  margin: 0 auto 18px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(56,182,255,.25);
  border: 3px solid var(--sky);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member .role { color: var(--sky-2); font-weight: 500; margin: 0 0 12px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.member p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }

/* gallery */
.gallery { background: var(--panel); }
.gallery-grid {
  columns: 3; column-gap: 20px; margin-top: 20px;
}
.gallery-item {
  margin: 0 0 20px; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative; cursor: zoom-in;
  background: var(--navy);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); opacity: .85; }
.gallery-item::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(33,41,50,.6));
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(33,41,50,.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lightbox button:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 20px; height: 20px; color: var(--sky-2); flex-shrink: 0; }
.contact-list a:hover { color: var(--sky-2); }
.phones { display: flex; flex-direction: column; gap: 2px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--navy); border-color: var(--navy); color: var(--sky); }

.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; color: var(--navy); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--panel); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--sky); background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.privacy { display: flex !important; flex-direction: row; align-items: center; gap: 10px; font-weight: 400 !important; color: var(--muted) !important; font-size: .88rem; }
.privacy input { width: auto; }
.contact-form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: .9rem; color: var(--sky-2); }
.req { color: #d13a3a; font-weight: 600; }
.req-note { margin: -4px 0 0; font-size: .82rem; color: var(--muted); }
.form-msg.error { color: #b04141; }
.form-msg.success { color: #2f7a3c; }

/* footer */
.footer { background: var(--navy); color: rgba(247,245,240,.75); padding: 70px 0 20px; margin-top: 40px; }
.footer .brand-logo { margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--paper); font-family: 'Montserrat', sans-serif; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding-top: 20px;
  font-size: .82rem; text-align: center;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0 20px; border-bottom: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  }
  .nav.open {
    max-height: 500px; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { align-self: flex-start; margin-top: 10px; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 1.5rem; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
