/* ===== DESIGN TOKENS ===== */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette — sourced from CEI logo */
  --navy-900: #0a1e40;
  --navy-800: #112c5b;
  --navy-700: #1c3d75;
  --navy-600: #275393;
  --blue-500: #399ad1;
  --blue-400: #5fb0dd;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(10,30,64,.06), 0 1px 4px rgba(10,30,64,.04);
  --shadow-md: 0 4px 12px rgba(10,30,64,.08), 0 2px 4px rgba(10,30,64,.04);
  --shadow-lg: 0 20px 40px rgba(10,30,64,.12), 0 6px 12px rgba(10,30,64,.06);

  --container: 1240px;
  --gradient-brand: linear-gradient(90deg, #112c5b 0%, #399ad1 50%, #112d59 100%);
}

/* ===== LIGHT MODE (default) ===== */
:root, [data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-surface-2: #eef2f8;
  --color-surface-offset: #e6ecf4;
  --color-border: #d9e1ec;
  --color-divider: #eaeef4;

  --color-text: #0a1e40;
  --color-text-muted: #4a5878;
  --color-text-faint: #8a95ac;
  --color-text-inverse: #ffffff;

  --color-primary: #112c5b;
  --color-primary-hover: #0a1e40;
  --color-primary-active: #071630;
  --color-accent: #399ad1;
  --color-accent-hover: #2887bd;

  --header-bg: rgba(255,255,255,0.85);
  --header-border: rgba(10,30,64,.08);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg: #08152e;
  --color-surface: #0d1f3f;
  --color-surface-2: #142a52;
  --color-surface-offset: #1a3363;
  --color-border: #24427a;
  --color-divider: #1a3363;

  --color-text: #eef2f8;
  --color-text-muted: #a8b5d0;
  --color-text-faint: #6c7d9e;
  --color-text-inverse: #0a1e40;

  --color-primary: #399ad1;
  --color-primary-hover: #5fb0dd;
  --color-primary-active: #7ec2e5;
  --color-accent: #5fb0dd;
  --color-accent-hover: #7ec2e5;

  --header-bg: rgba(8,21,46,.85);
  --header-border: rgba(255,255,255,.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.5);
}

/* ===== FONTS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=satoshi@500,700,900&display=swap');

html {
  background: var(--color-bg);
  transition: background-color .3s ease;
}
body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  transition: color .3s ease;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
}

/* ===== LAYOUT PRIMITIVES ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-10); }
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section-tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-16));
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--color-accent);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--header-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  max-width: 260px;
}
@media (min-width: 640px) {
  .brand-logo { height: 52px; max-width: 320px; }
}
[data-theme="dark"] .brand-logo.light-only { display: none; }
[data-theme="light"] .brand-logo.dark-only { display: none; }
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-lockup strong {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--color-text);
}
.brand-lockup span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 960px) {
  .nav { display: flex; }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s ease;
  position: relative;
  padding: var(--space-2) 0;
}
.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
  color: var(--color-text);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
}
.nav-caret {
  transition: transform .25s ease;
  opacity: .7;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* ===== Mega-menu ===== */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(720px, calc(100vw - 48px));
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(17, 44, 91, 0.18), 0 8px 24px -8px rgba(17, 44, 91, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  z-index: 100;
  overflow: hidden;
}
.nav-item.has-menu:hover .mega-menu,
.nav-item.has-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s;
}
/* invisible hover-bridge so gap between trigger and panel doesn't close it */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.mega-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 260px;
}
.mega-links {
  padding: var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mega-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
}
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text) !important;
  transition: background-color .18s ease, transform .18s ease;
}
.mega-link:hover,
.mega-link:focus-visible {
  background: var(--color-surface);
  outline: none;
}
.mega-link-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.mega-link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
  color: var(--color-accent);
  font-weight: 700;
}
.mega-link:hover .mega-link-arrow,
.mega-link:focus-visible .mega-link-arrow {
  opacity: 1;
  transform: translateX(0);
}
.mega-link-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.mega-feature {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-surface);
  color: #fff !important;
  min-height: 220px;
}
.mega-feature img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(17,44,91,0) 30%, rgba(17,44,91,.55) 65%, rgba(17,44,91,.85) 100%);
}
.mega-feature-tagline {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.mega-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  align-self: flex-start;
  transition: border-color .2s ease, gap .2s ease;
}
.mega-feature:hover .mega-feature-cta {
  border-color: #fff;
  gap: 10px;
}

/* Dark mode tweaks for mega-menu */
[data-theme="dark"] .mega-menu {
  background: var(--color-bg);
  border-color: var(--color-divider);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.55), 0 8px 24px -8px rgba(0,0,0,0.35);
}

/* Hide mega-menu on small screens — mobile-nav handles it */
@media (max-width: 959px) {
  .mega-menu { display: none; }
}

/* Mobile nav sub-lists */
.mobile-nav-group { border-bottom: 1px solid var(--color-divider); }
.mobile-nav-group:last-of-type { border-bottom: none; }
.mobile-nav-link {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--space-3) var(--space-4);
  gap: 4px;
}
.mobile-nav-sub a {
  padding: 6px 0 !important;
  font-size: var(--text-sm);
  color: var(--color-text-muted) !important;
  border-bottom: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--color-surface); color: var(--color-text); }
[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

.mobile-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--color-text);
  border-radius: var(--radius-md);
}
@media (min-width: 960px) {
  .mobile-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--header-border);
  background: var(--color-bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a:last-of-type { border-bottom: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn-primary { color: #06122a; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--color-accent);
  color: #06122a;
}
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

.btn-ghost {
  color: var(--color-text);
  border-color: var(--color-border);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-surface); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.hero-inner {
  display: grid;
  gap: var(--space-10);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}
.hero-title {
  font-size: var(--text-2xl);
  line-height: 1.02;
  margin-bottom: var(--space-6);
}
@media (min-width: 960px) {
  .hero-title { font-size: clamp(2.5rem, 1rem + 4.5vw, 4.5rem); }
}
.hero-title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero-badge svg { color: var(--color-accent); flex-shrink: 0; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,44,91,.15) 0%, rgba(0,0,0,0) 40%, rgba(57,154,209,.12) 100%);
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: rgba(10, 30, 64, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(57,154,209,.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}

/* Sub-page hero (compact) */
.subhero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-20)) clamp(var(--space-12), 6vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.subhero-title {
  font-size: var(--text-2xl);
  max-width: 20ch;
  margin-bottom: var(--space-5);
}
.subhero-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.5;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--color-text-faint); }

/* ===== SECTION HEADER ===== */
.section-head {
  max-width: 780px;
  margin-bottom: var(--space-16);
}
.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
@media (min-width: 768px) {
  .section-title { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.5;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.service-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-2);
}
.service-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
}
.service-card-link .arrow { transition: transform .2s ease; }
.service-card:hover .arrow { transform: translateX(4px); }

/* ===== METRICS ===== */
.metrics {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .metrics {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(57,154,209,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(57,154,209,.15), transparent 45%);
  pointer-events: none;
}
.metrics .container { position: relative; }
.metrics-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.metrics-head h2 { color: #fff; margin-bottom: var(--space-4); }
.metrics-head p { color: rgba(255,255,255,.75); font-size: var(--text-lg); }
.metrics-head .eyebrow { color: var(--blue-400); }
.metrics-head .eyebrow::before { background: var(--blue-400); }

.metrics-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  text-align: center;
  padding: var(--space-4);
}
.metric-value {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #9dc9e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}
.metric-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  letter-spacing: 0.02em;
}

/* ===== FEATURE SPLIT ===== */
.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-20); }
  .split.reverse .split-media { order: 2; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: var(--space-6); }
.split p { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); }
.split ul {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}
.split ul li {
  padding: var(--space-3) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: var(--text-base);
}
.split ul li:last-child { border-bottom: none; }
.split ul li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/></svg>") center/contain no-repeat;
}

/* ===== PROCESS / STEPS ===== */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* ===== CAPABILITIES CHIPS ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.chip {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  display: grid;
  gap: var(--space-6);
  align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 720px) {
  .cta-band {
    grid-template-columns: 1.5fr auto;
    gap: var(--space-10);
  }
}
.cta-band h2 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--text-base); }
.cta-band .btn-accent { color: #06122a; }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-16);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-12);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 32ch;
  line-height: 1.55;
}
.footer h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: var(--space-3); }
.footer ul a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color .2s ease;
}
.footer ul a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-16); }
}
.info-block { margin-bottom: var(--space-8); }
.info-block h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.info-block p, .info-block a {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.4;
}
.info-block a { color: var(--color-accent); }
.info-block a:hover { text-decoration: underline; }

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.form-row { margin-bottom: var(--space-5); }
.form-row.split-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row.split-row { grid-template-columns: 1fr 1fr; }
}
.form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(57,154,209,.2);
}
.form textarea { resize: vertical; min-height: 140px; }
.form-submit {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
}
.form-success {
  padding: var(--space-6);
  background: var(--color-primary-highlight, rgba(57,154,209,.12));
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  display: none;
}
.form-success.show { display: block; }

/* ===== ABOUT / VALUES ===== */
.values-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
.value {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-6);
}
.value h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.value p { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.55; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
.project {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: var(--space-6) var(--space-8) var(--space-8); }
.project-meta {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.project h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.project p { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.5; margin-bottom: var(--space-5); }
.project-stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.project-stat strong {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.project-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SIDE-BY-SIDE INFO ===== */
.info-columns {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .info-columns { grid-template-columns: repeat(2, 1fr); }
}
.info-columns h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.info-columns p { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.6; }

/* ===== CERTS ===== */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.cert-badge {
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 220px;
  flex: 1 1 220px;
}
.cert-badge svg { color: var(--color-accent); flex-shrink: 0; }
.cert-badge strong { display: block; font-size: var(--text-sm); color: var(--color-text); }
.cert-badge span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-5) 0;
}
.faq summary {
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform .3s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 68ch;
}

/* ===== STATEMENT BAND (full-bleed hero image) ===== */
.statement-band {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #0a1730;
}
@media (min-width: 768px) {
  .statement-band { min-height: 620px; }
}
.statement-band .statement-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.statement-band .statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.statement-band .statement-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,17,40,0.05) 0%, rgba(6,17,40,0.20) 45%, rgba(6,17,40,0.75) 100%);
}
.statement-band .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  width: 100%;
}
.statement-band .eyebrow {
  color: var(--color-accent);
  opacity: 0.9;
}
.statement-band .statement-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: var(--space-3) 0 var(--space-4);
}
@media (min-width: 768px) {
  .statement-band .statement-title { font-size: var(--text-4xl); }
}
.statement-band .statement-lede {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 58ch;
  margin: 0;
}

/* ===== BEFORE / AFTER ===== */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .before-after { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
.ba-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  aspect-ratio: 3 / 4;
}
.ba-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ba-tag.before { background: rgba(120, 30, 30, 0.85); }
.ba-tag.after  { background: rgba(17, 44, 91, 0.9); }
.ba-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ===== UTILITIES ===== */
.mt-auto { margin-top: auto; }

/* ===== FIXED BACKGROUND WATERMARK ===== */
/* 3D CEI lockup pinned to the viewport, sitting behind all page content.
   Sections with their own opaque backgrounds (color-surface, hero panels, cards)
   will naturally cover it — it shows through wherever the body background is visible. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('./assets/bg-3d-lockup.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(60vw, 720px) auto;
  opacity: 0.10;
  mix-blend-mode: multiply;
  transition: opacity .3s ease;
}

[data-theme="dark"] body::before {
  opacity: 0.14;
  mix-blend-mode: screen;
}

@media (max-width: 640px) {
  body::before {
    background-size: 78vw auto;
    opacity: 0.07;
  }
  [data-theme="dark"] body::before {
    opacity: 0.10;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* No motion applied — watermark is intentionally static/fixed. */
}
