/* ============================================================
   PCB Design & Manufacturing Services
   Design System — Deep Blue / Graphite / Copper
   ============================================================ */

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.3rem + 4.6vw, 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-7: 1.75rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem;
  --radius-xl: 1.5rem; --radius-full: 9999px;

  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;
  --content-xwide: 1440px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cabinet Grotesk', 'General Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 88px;

  /* Circuit-trace texture (light traces over dark hero/CTA) */
  --circuit-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.16'%3E%3Cpath d='M20 20h60v60M20 20v40h40M120 0v40h40v40M200 20h20M180 60h60M40 120h60v60M120 120h40v60h60M0 180h40v40M200 160v60M80 200h60'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.22'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3Ccircle cx='160' cy='40' r='3'/%3E%3Ccircle cx='160' cy='80' r='3'/%3E%3Ccircle cx='100' cy='120' r='3'/%3E%3Ccircle cx='160' cy='180' r='3'/%3E%3Ccircle cx='40' cy='160' r='3'/%3E%3Ccircle cx='40' cy='220' r='3'/%3E%3Ccircle cx='220' cy='160' r='3'/%3E%3C/g%3E%3C/svg%3E");

  /* Dotted grid texture (dark dots over light sections) */
  --dot-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23093a74' fill-opacity='0.12'/%3E%3C/svg%3E");

  /* Circuit-trace texture (dark traces over light sections) */
  --circuit-light-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23093a74' stroke-width='1' stroke-opacity='0.10'%3E%3Cpath d='M20 20h60v60M20 20v40h40M120 0v40h40v40M200 20h20M180 60h60M40 120h60v60M120 120h40v60h60M0 180h40v40M200 160v60M80 200h60'/%3E%3C/g%3E%3Cg fill='%23093a74' fill-opacity='0.14'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3Ccircle cx='160' cy='40' r='3'/%3E%3Ccircle cx='160' cy='80' r='3'/%3E%3Ccircle cx='100' cy='120' r='3'/%3E%3Ccircle cx='160' cy='180' r='3'/%3E%3Ccircle cx='40' cy='160' r='3'/%3E%3Ccircle cx='40' cy='220' r='3'/%3E%3Ccircle cx='220' cy='160' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- LIGHT MODE ---------- */
:root, [data-theme='light'] {
  --color-bg: #fbfcfe;
  --color-surface: #ffffff;
  --color-surface-2: #f3f6fb;
  --color-surface-offset: #eef2f9;
  --color-divider: #e7ecf4;
  --color-border: #e2e8f1;
  --color-border-strong: #d3dbe8;

  --color-text: #0c1a30;
  --color-text-muted: #54627b;
  --color-text-faint: #8c99ac;
  --color-text-inverse: #fbfcfe;

  /* Deep blue primary — matched to logo blue */
  --color-primary: #093a74;
  --color-primary-hover: #0c4c91;
  --color-primary-active: #082c57;
  --color-primary-soft: #eaf1fb;
  --color-primary-soft-2: #f1f6fd;

  /* Navy deep (hero / footer) — matched to logo navy */
  --color-navy: #061a35;
  --color-navy-2: #0a2547;
  --color-blue: #093a74;
  --color-blue-bright: #1559a8;

  /* Graphite */
  --color-graphite: #14233c;
  --color-graphite-soft: #475061;

  /* Copper accent */
  --color-copper: #b9682e;
  --color-copper-bright: #d97f3d;
  --color-copper-hover: #a5571f;
  --color-copper-soft: #f8ece1;
  --color-copper-glow: rgba(185, 104, 46, 0.16);

  /* Gradient meshes / textures (light) */
  --mesh-1: rgba(9, 58, 116, 0.06);
  --mesh-2: rgba(185, 104, 46, 0.05);
  --texture-dot: rgba(9, 58, 116, 0.06);
  --texture-line: rgba(9, 58, 116, 0.05);

  --shadow-sm: 0 1px 2px rgba(12, 26, 48, 0.05), 0 2px 6px rgba(12, 26, 48, 0.04);
  --shadow-md: 0 4px 14px rgba(12, 26, 48, 0.07), 0 10px 30px rgba(12, 26, 48, 0.06);
  --shadow-lg: 0 10px 24px rgba(12, 26, 48, 0.08), 0 24px 60px rgba(12, 26, 48, 0.12);
  --shadow-xl: 0 18px 40px rgba(12, 26, 48, 0.10), 0 40px 90px rgba(12, 26, 48, 0.16);
  --shadow-glow: 0 0 0 1px rgba(185, 104, 46, 0.22), 0 10px 34px rgba(185, 104, 46, 0.18);
}

/* ---------- DARK MODE ---------- */
[data-theme='dark'] {
  --color-bg: #060e1b;
  --color-surface: #0b1727;
  --color-surface-2: #0f1e33;
  --color-surface-offset: #132541;
  --color-divider: #1a2c47;
  --color-border: #20354f;
  --color-border-strong: #2b4366;

  --color-text: #e4ebf5;
  --color-text-muted: #9fb0c8;
  --color-text-faint: #65778f;
  --color-text-inverse: #060e1b;

  --color-primary: #4d8fd6;
  --color-primary-hover: #6ba4e2;
  --color-primary-active: #3a7ac0;
  --color-primary-soft: #11233c;
  --color-primary-soft-2: #0e1d31;

  --color-navy: #030912;
  --color-navy-2: #08182f;
  --color-blue: #0c4c91;
  --color-blue-bright: #1559a8;

  --color-graphite: #0c1626;
  --color-graphite-soft: #2c3849;

  --color-copper: #d98a4e;
  --color-copper-bright: #e89a5e;
  --color-copper-hover: #e89a5e;
  --color-copper-soft: #2a1d11;
  --color-copper-glow: rgba(217, 138, 78, 0.22);

  --mesh-1: rgba(77, 143, 214, 0.10);
  --mesh-2: rgba(217, 138, 78, 0.08);
  --texture-dot: rgba(120, 160, 210, 0.07);
  --texture-line: rgba(120, 160, 210, 0.06);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.6);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 0 1px rgba(217, 138, 78, 0.3), 0 8px 30px rgba(217, 138, 78, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #060e1b; --color-surface: #0b1727; --color-surface-2: #0f1e33;
    --color-surface-offset: #132541; --color-divider: #1a2c47; --color-border: #20354f;
    --color-text: #e4ebf5; --color-text-muted: #9fb0c8; --color-text-faint: #65778f;
    --color-text-inverse: #060e1b;
    --color-primary: #4d8fd6; --color-primary-hover: #6ba4e2; --color-primary-active: #3a7ac0;
    --color-primary-soft: #11233c; --color-navy: #030912; --color-navy-2: #08182f;
    --color-graphite: #1a2433; --color-graphite-soft: #2c3849;
    --color-copper: #d98a4e; --color-copper-bright: #e89a5e; --color-copper-hover: #e89a5e;
    --color-copper-soft: #2a1d11; --color-border-strong: #2b4366; --color-primary-soft-2: #0e1d31;
    --color-blue: #0c4c91; --color-blue-bright: #1559a8; --color-graphite: #0c1626;
    --color-copper-glow: rgba(217, 138, 78, 0.22);
    --mesh-1: rgba(77, 143, 214, 0.10); --mesh-2: rgba(217, 138, 78, 0.08);
    --texture-dot: rgba(120, 160, 210, 0.07); --texture-line: rgba(120, 160, 210, 0.06);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.7);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 18px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 0 1px rgba(217, 138, 78, 0.3), 0 8px 30px rgba(217, 138, 78, 0.2);
  }
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 12% -4%, var(--mesh-1), transparent 38%),
    radial-gradient(circle at 92% 6%, var(--mesh-2), transparent 34%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.018em; }
h1 { font-weight: 800; letter-spacing: -0.028em; }
h2 { letter-spacing: -0.022em; }
h3 { font-weight: 700; letter-spacing: -0.012em; }
p, li { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

::selection { background: var(--color-copper); color: #fff; }

:focus-visible { outline: 2px solid var(--color-copper); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.container-narrow { max-width: var(--content-narrow); }
.container-default { max-width: var(--content-default); }
.container-xwide { max-width: var(--content-xwide); }

.section { padding-block: clamp(var(--space-20), 9vw, calc(var(--space-32) + var(--space-8))); position: relative; }
.section-sm { padding-block: clamp(var(--space-16), 6vw, var(--space-24)); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-copper);
}
.eyebrow::before {
  content: ''; width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--color-copper), var(--color-copper-bright));
  display: inline-block; border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

.section-title { font-size: var(--text-2xl); margin-top: var(--space-5); color: var(--color-text); }
.section-lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 62ch; margin-top: var(--space-6); line-height: 1.6; }
.text-center { text-align: center; }
.center-block { margin-inline: auto; }
.mw-60 { max-width: 62ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85em 1.7em; font-size: var(--text-sm); font-weight: 600;
  border-radius: var(--radius-full); letter-spacing: 0.01em; white-space: nowrap;
  border: 1.5px solid transparent; position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-copper-bright), var(--color-copper));
  color: #fff; box-shadow: 0 4px 14px var(--color-copper-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-copper), var(--color-copper-hover));
  transform: translateY(-2px); box-shadow: 0 10px 28px var(--color-copper-glow);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--color-blue-bright), var(--color-primary));
  color: #fff; box-shadow: 0 4px 14px rgba(9,58,116,0.22);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(9,58,116,0.3); }
.btn-ghost { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--color-copper); color: var(--color-copper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.32); backdrop-filter: blur(10px); }
.btn-light:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.btn-lg { padding: 1em 2.1em; font-size: var(--text-base); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-sm); color: var(--color-copper);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--transition-interactive); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid #e6eaf0;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.site-header.scrolled { background: #ffffff; border-bottom-color: #dfe4ec; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-6); }

.brand { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.brand-logo { height: 60px; width: auto; flex-shrink: 0; }
.brand-moto {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  line-height: 1.1; letter-spacing: 0.01em; color: var(--color-copper);
  text-transform: uppercase;
}

/* White header: force dark, readable controls regardless of page theme */
.site-header .nav-link { color: #3a4456; }
.site-header .nav-link:hover, .site-header .nav-link[aria-current="page"] { color: #0a3a73; background: #eef2f8; }
.site-header .theme-toggle { color: #3a4456; border-color: #d8deea; }
.site-header .menu-toggle { color: #1f2a3d; }
.site-header .dropdown-menu { background: #ffffff; border-color: #e6eaf0; }
.site-header .dropdown-menu a { color: #3a4456; }
.site-header .dropdown-menu a:hover { background: #eef2f8; color: var(--color-copper); }

.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 0.5em 0.7em;
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text); background: var(--color-surface-2); }
.nav-link svg { width: 14px; height: 14px; opacity: 0.6; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition-interactive);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 0.6em 0.8em; font-size: var(--text-sm); color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover { background: var(--color-surface-2); color: var(--color-copper); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full);
  color: var(--color-text-muted); border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-copper); border-color: var(--color-copper); }

.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--color-text); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--color-bg); padding: var(--space-6); overflow-y: auto;
  transform: translateX(100%); transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { padding: 0.9em 0.5em; font-size: var(--text-lg); font-weight: 500; border-bottom: 1px solid var(--color-divider); }
.mobile-nav .group-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-copper); padding: var(--space-4) 0.5em var(--space-1); font-weight: 700; }
.mobile-nav .sub { padding-left: var(--space-5); font-size: var(--text-base); color: var(--color-text-muted); }

@media (max-width: 1080px) {
  .nav-links, .nav .btn-primary { display: none; }
  .menu-toggle { display: grid; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--color-navy); color: #fff; overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .hero-video,
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
/* fallback image hidden when video is present/playing */
.hero-bg .hero-fallback-img { opacity: 0; }
.hero-bg .hero-video { opacity: 0.42; }
/* reduced motion or no video support: show poster image, hide video */
@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero-video { display: none; }
  .hero-bg .hero-fallback-img { opacity: 0.42; }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(110deg, var(--color-navy) 22%, rgba(6,26,54,0.86) 52%, rgba(6,26,54,0.42) 100%),
    linear-gradient(0deg, var(--color-navy) 2%, transparent 30%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 78% 64%, rgba(185,104,46,0.28), transparent 52%),
    radial-gradient(ellipse at 18% 12%, rgba(21,89,168,0.42), transparent 50%);
}
/* circuit-trace texture overlay */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: var(--circuit-svg);
  background-size: 480px 480px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
/* floating accent orbs */
.hero::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,127,61,0.20), transparent 68%);
  animation: heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px,40px) scale(1.08); } }
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero .eyebrow {
  color: var(--color-copper-bright); background: rgba(217,127,61,0.10);
  border: 1px solid rgba(217,127,61,0.28); padding: 0.5em 1em; border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}
.hero .eyebrow::before { background: var(--color-copper-bright); }
.hero h1 {
  font-size: var(--text-3xl); color: #fff; margin-top: var(--space-6);
  letter-spacing: -0.032em; line-height: 1.04; font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--color-copper-bright), #f0a868);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--color-copper-bright);
}
.hero-sub { font-size: var(--text-lg); color: rgba(228,235,245,0.84); margin-top: var(--space-6); max-width: 56ch; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.14); }
.hero-stat { padding-inline: var(--space-8); position: relative; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 64%; background: rgba(255,255,255,0.16);
}
.hero-stat .num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--color-copper-bright); letter-spacing: -0.02em; line-height: 1; }
.hero-stat .lbl { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: rgba(228,235,245,0.62); margin-top: var(--space-2); max-width: 16ch; }
@media (max-width: 640px) {
  .hero-stat { padding-inline: var(--space-5); }
  .hero-stat:nth-child(odd) { padding-left: 0; }
  .hero-stats { gap: var(--space-6) 0; }
}

/* Page hero (interior) */
.page-hero {
  position: relative; background: var(--color-navy); color: #fff;
  padding-top: calc(var(--header-h) + var(--space-20)); padding-bottom: var(--space-20);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 82% -10%, rgba(185,104,46,0.26), transparent 48%),
    radial-gradient(ellipse at 4% 110%, rgba(21,89,168,0.5), transparent 52%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: var(--circuit-svg); background-size: 460px 460px;
  mask-image: radial-gradient(ellipse at 85% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  color: var(--color-copper-bright); background: rgba(217,127,61,0.10);
  border: 1px solid rgba(217,127,61,0.28); padding: 0.45em 0.95em; border-radius: var(--radius-full);
}
.page-hero h1 { font-size: var(--text-2xl); color: #fff; margin-top: var(--space-5); letter-spacing: -0.026em; }
.page-hero p { font-size: var(--text-lg); color: rgba(228,235,245,0.82); margin-top: var(--space-5); max-width: 64ch; line-height: 1.6; }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--text-xs); color: rgba(228,235,245,0.55); letter-spacing: 0.04em; margin-bottom: var(--space-5); }
.breadcrumb a:hover { color: var(--color-copper-bright); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--space-7, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
/* faint corner circuit texture inside cards */
.card::after {
  content: ''; position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px;
  background-image: var(--circuit-light-svg); background-size: 150px 150px;
  opacity: 0.5; pointer-events: none;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--color-copper) 45%, var(--color-border));
}
.card:hover::after { opacity: 0.85; transform: translate(-6px,-6px); }
.card .icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-primary-soft-2));
  color: var(--color-primary); margin-bottom: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  transition: transform var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive);
}
.card:hover .icon { transform: translateY(-2px) scale(1.04); background: linear-gradient(135deg, var(--color-copper-soft), color-mix(in srgb, var(--color-copper-soft) 60%, transparent)); color: var(--color-copper); }
.card .icon svg { width: 27px; height: 27px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.65; }
.card .top-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-copper-bright), var(--color-copper)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-interactive); z-index: 2; }
.card:hover .top-accent { transform: scaleX(1); }

/* Solution card with number */
.card-num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-copper); opacity: 0.5; }

/* ============================================================
   FEATURE / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.split-img {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl);
  position: relative; isolation: isolate;
  border: 1px solid var(--color-border);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.16,1,0.3,1); }
.split-img:hover img { transform: scale(1.04); }
/* gradient overlay for integration */
.split-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, transparent 45%, rgba(6,26,54,0.32) 100%);
}
/* thin copper accent frame */
.split-img::after {
  content: ''; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.28); border-radius: calc(var(--radius-xl) - 8px);
}
/* floating stat badge over images */
.img-badge {
  position: absolute; z-index: 3; bottom: var(--space-5); left: var(--space-5);
  background: rgba(11,23,39,0.78); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-3); max-width: calc(100% - var(--space-10));
}
.img-badge .bn { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--color-copper-bright); line-height: 1; letter-spacing: -0.02em; }
.img-badge .bl { font-size: var(--text-xs); color: rgba(228,235,245,0.82); line-height: 1.25; text-transform: uppercase; letter-spacing: 0.08em; }
.img-badge.top-right { bottom: auto; left: auto; top: var(--space-5); right: var(--space-5); }

.check-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-base); }
.check-list .ci { flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--color-copper-soft); color: var(--color-copper); display: grid; place-items: center; margin-top: 2px; }
.check-list .ci svg { width: 14px; height: 14px; }
.check-list strong { display: block; color: var(--color-text); }
.check-list span.d { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(21,89,168,0.55), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(185,104,46,0.28), transparent 50%),
    linear-gradient(135deg, var(--color-navy), var(--color-navy-2) 60%, #0c2f5e 100%);
}
.stats-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: var(--circuit-svg); background-size: 440px 440px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 78%);
}
.stats-band .container { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-10) var(--space-8); } }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: calc(var(--space-8) / -2); top: 12%; height: 76%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.16), transparent);
}
@media (max-width: 760px) { .stat-item::after { display: none; } }
.stat-item .num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--color-copper-bright); letter-spacing: -0.02em; line-height: 1; }
.stat-item .lbl { font-size: var(--text-sm); color: rgba(255,255,255,0.74); margin-top: var(--space-3); line-height: 1.45; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative; color: #fff; border-radius: var(--radius-xl);
  padding: clamp(var(--space-16), 6vw, calc(var(--space-24) + var(--space-4))); overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(21,89,168,0.6), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(185,104,46,0.32), transparent 52%),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 55%, #0c3056 100%);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: var(--circuit-svg); background-size: 420px 420px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 80%);
}
/* top copper hairline */
.cta-banner::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--color-copper-bright), transparent);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .eyebrow { color: var(--color-copper-bright); }
.cta-banner h2 { font-size: var(--text-2xl); color: #fff; margin-top: var(--space-4); letter-spacing: -0.024em; }
.cta-banner p { color: rgba(228,235,245,0.84); margin-top: var(--space-5); font-size: var(--text-lg); max-width: 56ch; margin-inline: auto; line-height: 1.6; }
.cta-banner .hero-cta { justify-content: center; margin-top: var(--space-8); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; color: rgba(228,235,245,0.72); padding-top: var(--space-24); overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(21,89,168,0.35), transparent 50%),
    radial-gradient(ellipse at 95% 5%, rgba(185,104,46,0.14), transparent 45%),
    linear-gradient(180deg, var(--color-navy-2), var(--color-navy) 45%);
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: var(--circuit-svg); background-size: 460px 460px;
  mask-image: linear-gradient(180deg, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: var(--space-12) var(--space-10); padding-bottom: var(--space-16); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text .b1 { color: #fff; }
.brand-footer { display: inline-flex; }
.brand-footer-logo { height: auto; width: clamp(190px, 18vw, 240px); display: block; }
/* Refined typographic footer wordmark */
.footer-wordmark {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.1;
  letter-spacing: -0.02em; display: inline-block; max-width: 18ch;
}
.footer-wordmark .amp { color: var(--color-copper-bright); font-weight: 700; font-style: italic; padding-inline: 0.04em; }
.footer-about { font-size: var(--text-sm); line-height: 1.65; margin-top: var(--space-5); max-width: 40ch; color: rgba(228,235,245,0.68); }
.footer-col h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: var(--space-5); font-family: var(--font-body); font-weight: 700; }
.footer-col a { display: block; font-size: var(--text-sm); padding: var(--space-2) 0; color: rgba(228,235,245,0.65); }
.footer-col a:hover { color: var(--color-copper-bright); }
.footer-contact-item { display: flex; gap: var(--space-3); font-size: var(--text-sm); margin-bottom: var(--space-4); align-items: flex-start; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-copper-bright); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-6) 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); color: rgba(228,235,245,0.5); }
.footer-bottom .keywords { max-width: 60ch; line-height: 1.6; }

/* ============================================================
   MISC
   ============================================================ */
.pill { display: inline-block; padding: 0.4em 0.95em; font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); letter-spacing: 0.05em; text-transform: uppercase; }
.pill-copper { background: var(--color-copper-soft); color: var(--color-copper); }

.bg-surface-2 { background: var(--color-surface-2); position: relative; }
/* faint dotted texture on alternating sections */
.bg-surface-2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--dot-svg); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
}
.bg-surface-2 > .container { position: relative; z-index: 1; }
/* circuit texture variant for richer sections */
.section-circuit { position: relative; }
.section-circuit::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--circuit-light-svg); background-size: 320px 320px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 80% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 100%, #000, transparent 70%);
}
.section-circuit > .container { position: relative; z-index: 1; }
.divider-top { border-top: 1px solid var(--color-divider); }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }
[data-reveal-delay="4"] { transition-delay: 0.36s; }
[data-reveal-delay="5"] { transition-delay: 0.45s; }
/* auto-stagger cards within a grid */
.grid [data-reveal]:nth-child(2) { transition-delay: 0.07s; }
.grid [data-reveal]:nth-child(3) { transition-delay: 0.14s; }
.grid [data-reveal]:nth-child(4) { transition-delay: 0.21s; }
.grid [data-reveal]:nth-child(5) { transition-delay: 0.28s; }
.grid [data-reveal]:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::after { animation: none !important; }
}

/* Prose for knowledge / content */
.prose h2 { font-size: var(--text-xl); margin: var(--space-10) 0 var(--space-4); }
.prose h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }
.prose p { margin-bottom: var(--space-5); color: var(--color-text-muted); line-height: 1.75; max-width: 70ch; }
.prose ul { margin: 0 0 var(--space-5) var(--space-5); color: var(--color-text-muted); }
.prose li { margin-bottom: var(--space-2); }
