
:root {
  --bg: #020813;
  --bg-2: #071427;
  --bg-3: #0b1f39;
  --panel: rgba(7, 20, 39, 0.72);
  --panel-strong: rgba(8, 19, 35, 0.92);
  --text: #eff7ff;
  --muted: #9cb7d4;
  --line: rgba(66, 171, 255, 0.16);
  --line-strong: rgba(79, 198, 255, 0.30);
  --accent: #25ccff;
  --accent-2: #4b7dff;
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
  --radius: 26px;
  --max: 1200px;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(2,7,16,0.58), rgba(2,8,16,0.76)),
    url('assets/site-bg.png') center center / cover fixed no-repeat;
  color: var(--text);
  line-height: 1.6;
}
.site-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 204, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(75, 125, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(1,6,12,0.18), rgba(1,6,12,0.42));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
main, section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.section { padding: 6rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(8, 19, 35, 0.50), rgba(4, 12, 22, 0.22));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(2px);
}
.bg-grid { display: none; }
.glass {
  background: linear-gradient(180deg, rgba(10, 23, 43, 0.78), rgba(6, 17, 31, 0.90));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 10, 19, 0.80);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  flex: 0 0 auto;
}
.brand img {
  width: clamp(150px, 15vw, 220px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.10));
}

.brand-tagline {
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(239, 247, 255, 0.9);
  font-weight: 600;
  margin-left: 0.15rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.08);
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a { color: var(--muted); font-weight: 700; font-size: 0.98rem; }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text) !important;
  background: rgba(37, 204, 255, 0.08);
}
.menu-toggle { display: none; background: transparent; border: 0; padding: 0; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .77rem;
  color: var(--accent);
  font-weight: 800;
}
.section-heading { max-width: 860px; margin-bottom: 2.5rem; }
.section-heading h2,
.hero-copy h1,
.pillar h3,
.project-copy h3,
.card-copy h3,
.snapshot-copy h3,
.system-card h3,
.quote p,
.contact-panel h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 900;
  max-width: 11.5ch;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  max-width: 19ch;
}
p { color: var(--muted); }
.hero {
  padding-top: 3.5rem;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1, .section-heading h2 { text-wrap: balance; }
.hero-copy h1 { text-shadow: 0 10px 35px rgba(0,0,0,.28); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1,7,13,.72), rgba(1,7,13,.46)),
    radial-gradient(circle at 82% 18%, rgba(37,204,255,0.10), transparent 24%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 2rem;
  align-items: center;
}
.hero-text { max-width: 64ch; font-size: 1.05rem; }
.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin: 1.7rem 0 1rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #04111b;
  background: linear-gradient(135deg, var(--accent), #9ae5ff);
  box-shadow: 0 0 28px rgba(37, 204, 255, 0.28);
}
.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(37, 204, 255, 0.08);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 14, 25, 0.62);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: .8rem;
}
.hero-points li {
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .68rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(37, 204, 255, .45);
}
.hero-panel {
  padding: 1rem;
  border-radius: var(--radius);
}
.hero-image-frame {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  background: rgba(5, 16, 29, 0.72);
  margin-bottom: 1rem;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stack { display: grid; gap: 1rem; }
.metric-card {
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(5, 16, 29, 0.78);
  border: 1px solid var(--line);
}
.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}
.metric-card strong { font-size: 1.14rem; }
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .9rem;
}
.hero-mini-grid div,
.point,
.quote,
.pillar,
.gallery-card,
.service-card,
.project-feature,
.snapshot-card,
.contact-panel,
.system-card,
.project-brief {
  border-radius: var(--radius);
}
.hero-mini-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(5, 16, 29, 0.68);
}
.hero-mini-grid b { display: block; margin-bottom: .35rem; }
.hero-mini-grid small { color: var(--muted); }

.service-grid,
.testimonial-grid,
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.service-card,
.snapshot-card,
.project-feature { overflow: hidden; }
.service-card img,
.snapshot-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card img { filter: saturate(0.98) contrast(1.03); }
.card-copy,
.snapshot-copy { padding: 1.2rem 1.2rem 1.4rem; }
.card-kicker {
  margin-bottom: .7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 800;
}
.snapshot-copy h3,
.card-copy h3,
.project-copy h3,
.pillar h3,
.point strong,
.system-card h3,
.project-brief h3 { color: var(--text); }

.service-grid-4,
.pillars-grid-4,
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.system-card { padding: 1.35rem; }
.system-card ul,
.pillar ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.system-card li + li,
.pillar li + li { margin-top: 0.55rem; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.pillar { padding: 1.4rem; }

.projects-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.2rem; align-items: start; }
.projects-grid-wide { grid-template-columns: 1.05fr 0.95fr; }
.project-feature img { aspect-ratio: 4 / 5; object-fit: contain; object-position: center; width: 100%; background: rgba(4,14,25,.7); }
.project-copy { padding: 1.3rem; }
.project-card-stack { display: grid; gap: 1rem; }
.project-brief { padding: 1.3rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.gallery-grid-projects { margin-top: 1rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
.gallery-card { overflow: hidden; }
.gallery-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.gallery-card:hover img,
.service-card:hover img,
.project-feature:hover img,
.snapshot-card:hover img,
.about-stack:hover > img:first-child,
.hero-image-frame:hover img { transform: scale(1.03); }

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 1.4rem;
  align-items: center;
}
.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.point { padding: 1.15rem; }
.point strong { display: block; margin-bottom: .45rem; }
.about-stack {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.about-stack > img:first-child {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: contain;
  object-position: center;
  background: rgba(4,14,25,.7);
  transition: transform .35s ease;
}

.quote { padding: 1.4rem; }
.quote p {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.45;
}
.quote span { color: var(--muted); font-weight: 600; }

.contact-section { padding-top: 2rem; padding-bottom: 4.5rem; }
.contact-panel {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1rem;
  align-items: center;
}
.contact-meta {
  display: grid;
  gap: .8rem;
  justify-items: start;
}
.contact-meta a,
.contact-meta span {
  padding: .9rem 1rem;
  width: 100%;
  border-radius: 18px;
  background: rgba(4, 14, 25, 0.75);
  border: 1px solid var(--line);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  background: rgba(2,10,19,0.55);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer a { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1100px) {
  .site-nav { gap: 0.75rem; }
  .site-nav a { font-size: 0.9rem; }
  .service-grid-4, .pillars-grid-4, .system-grid, .gallery-grid-projects { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 52px; }
  .hero-grid,
  .projects-grid,
  .about-grid,
  .contact-panel,
  .service-grid,
  .service-grid-4,
  .system-grid,
  .pillars-grid,
  .pillars-grid-4,
  .testimonial-grid,
  .about-points,
  .snapshot-grid,
  .gallery-grid-projects,
  .project-card-stack {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-copy h1 { max-width: 14ch; }
  .about-stack,
  .about-stack > img:first-child { min-height: 420px; }
}

@media (max-width: 760px) {
  :root { --header-h: 54px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(2, 10, 19, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .site-nav.open { display: flex; }
  .hero-mini-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 4.75rem 0; }
  .brand img {
    width: 126px;
    height: auto;
    flex-basis: auto;
  }
  .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }
  .hero { padding-top: 3.5rem; }
}

@media (max-width: 520px) {
  :root { --header-h: 56px; }
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .nav-wrap { padding: 0.2rem 0; }
  .hero-copy h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 720px) {
  .brand img { width: 118px; }
  .brand-tagline { font-size: 0.56rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
}
