:root {
  --bg: #0b1a2e;
  --bg-elevated: #12253d;
  --bg-soft: #163052;
  --text: #e8eef5;
  --text-muted: #b8c5d4;
  --accent: #31e2a2;
  --accent-dim: rgba(49, 226, 162, 0.35);
  --accent-btn: #31e2a2;
  --accent-btn-text: #062218;
  --border: rgba(200, 220, 240, 0.12);
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --navy-deep: #0b2a4a;
  --sky-mid: #50759f;
  --sky-light: #89b1d7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header / nav */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 1.25rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
}
.nav-links a:hover { color: var(--accent); opacity: 1; text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img { display: none; }
.hero-media video + img { display: none; }
@supports not (display: grid) {
  .hero-media img { display: block; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.55) 0%, rgba(8,10,12,0.35) 40%, rgba(8,10,12,0.85) 100%),
    linear-gradient(90deg, rgba(8,10,12,0.7) 0%, rgba(8,10,12,0.25) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 5.5rem;
  max-width: 42rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero .lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}
.section.alt { background: var(--bg-elevated); }
.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.section-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.section-intro p { color: var(--text-muted); margin: 0; }

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1fr 1.05fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-body h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.feature-body p {
  color: var(--text-muted);
  margin: 0;
}

.stack { display: grid; gap: 4.5rem; }

/* Quote */
.quote {
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
}
.quote-bg {
  position: absolute;
  inset: 0;
}
.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.quote-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,0.92), rgba(10,12,16,0.75));
}
.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.quote blockquote {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  font-weight: 500;
}
.quote cite {
  display: block;
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.quote .role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.card .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.6rem; }

/* CTA / contact band */
.cta {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #0d2744, #12253d 55%, #0b1a2e);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.cta p { margin: 0; color: var(--text-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-btn);
  color: var(--accent-btn-text);
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: center;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 0 3rem;
  background:
    radial-gradient(ellipse at top left, rgba(49,226,162,0.12), transparent 50%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}
.page-hero p { margin: 0; color: var(--text-muted); max-width: 40rem; }
.prose { padding: 3.5rem 0 5rem; max-width: 44rem; }
.prose p { color: var(--text-muted); }
.prose h2 { margin-top: 2rem; }
.prose ul { color: var(--text-muted); padding-left: 1.25rem; }
.prose li { margin: 0.45rem 0; }

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #071526;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}
.site-footer h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.site-footer p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.25rem;
}
.not-found h1 { font-size: 3rem; margin: 0 0 0.5rem; }

@media (max-width: 860px) {
  .feature, .feature.reverse {
    grid-template-columns: 1fr;
  }
  .feature.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: #0b1a2e;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    display: none;
    z-index: 30;
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 85vh; }
  .hero-content { padding-bottom: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
  .hero-media img { display: block; }
}

/* Hero actions / CTA row */
.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-actions { margin-top: 1.75rem; }

/* Nav CTA: same element as mobile menu item — hidden on desktop, shown in hamburger */
.nav-links .nav-cta {
  display: none;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.nav-links .nav-cta:hover {
  background: rgba(49, 226, 162, 0.12);
  text-decoration: none;
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--accent-dim);
  text-decoration: none;
  transform: translateY(-2px);
}
.service-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--text);
}
.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Lists */
.check-list {
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.check-list li { margin: 0.45rem 0; }
.lifecycle {
  padding-left: 1.25rem;
  color: var(--text-muted);
}
.lifecycle li { margin: 0.85rem 0; }
.lifecycle strong { color: var(--text); }

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.card a { color: var(--text); text-decoration: none; }
.card a:hover { color: var(--accent); }

/* Footer expansions */
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-loc { margin-top: 0.75rem !important; font-size: 0.9rem !important; }
.footer-legal { margin-top: 0.85rem !important; }
.footer-legal a { color: var(--text-muted); }

.snapshot li { color: var(--text-muted); }
.snapshot strong { color: var(--text); }

/* Inner pages: header needs solid backdrop when no full-bleed hero video */
body:not(:has(.hero)) .site-header {
  position: relative;
  background: rgba(11, 26, 46, 0.92);
  border-bottom: 1px solid var(--border);
}
body:not(:has(.hero)) .page-hero {
  padding-top: 4.5rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links .nav-cta {
    display: inline-block;
    width: fit-content;
  }
}

/* ---- Visual refresh: engineering illustration system ---- */
body { font-size: 1.1rem; line-height: 1.7; }
:root { --text-muted: #b8c5d4; }
.hero {
  min-height: auto;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background:
    linear-gradient(105deg, rgba(7,21,38,0.92) 0%, rgba(11,26,46,0.78) 42%, rgba(11,42,74,0.55) 100%),
    linear-gradient(180deg, rgba(7,21,38,0.55) 0%, rgba(11,26,46,0.75) 100%),
    url("assets/hero-tower.jpg") center 35% / cover no-repeat,
    linear-gradient(180deg, #071526 0%, var(--bg) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
}
.hero-grid .hero-content { padding: 0; max-width: none; }
.hero .lede { font-size: 1.2rem; max-width: 36rem; }
.hero-actions { margin-top: 2rem; }
.hero-visual { margin: 0; }
.hero-visual img, .feature-media img[src$=".svg"], .lifecycle-strip {
  width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-visual figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: #8a929c; }
.section { padding: 4.75rem 0; }
.feature-body p, .section-intro p, .page-hero p, .service-card p, .card p { color: var(--text-muted); font-size: 1.05rem; }
.lifecycle-strip { max-width: 760px; aspect-ratio: 640 / 300; object-fit: cover; margin: 0 0 2rem; }
.quote { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.service-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
.page-hero {
  background:
    linear-gradient(90deg, rgba(11,26,46,0.96) 40%, rgba(11,26,46,0.78)),
    url("assets/visuals/hero-topology.svg") right center / auto 140% no-repeat, var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero p { font-size: 1.15rem; }
@media (max-width: 900px) {
  .hero { padding: 7rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 560px; }
  .page-hero { background: var(--bg); }
}


/* LinkedIn / social icons */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(49, 226, 162, 0.12);
  text-decoration: none;
}
.social-link svg { width: 18px; height: 18px; display: block; }
.nav-social { margin-left: 0.25rem; }
.footer-social { margin-top: 1rem; display: flex; gap: 0.65rem; }
.contact-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.contact-social span { color: var(--text-muted); font-size: 0.95rem; }
.btn:not(.btn-ghost) { background: var(--accent-btn); color: var(--accent-btn-text); }
.btn.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.btn-ghost:hover {
  background: rgba(49, 226, 162, 0.12);
  filter: none;
  text-decoration: none;
}
.hero .lede { color: #d5e0ec; }
.hero-visual img {
  background: rgba(13, 31, 53, 0.55);
  backdrop-filter: blur(2px);
}
