/* ==========================================================================
   CLARK MISSION DYNAMICS - CORE DESIGN SYSTEM & STYLESHEET
   Concept 7: "Blend of your references" (Selected Chosen Concept)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  /* Brand Palette */
  --brand-primary: #51E007;
  --brand-primary-rgb: 81, 224, 7;
  --brand-primary-hover: #43c204;
  --brand-accent-cyan: #19D3C5;
  --brand-accent-amber: #F59E0B;

  /* Dark Theme Surfaces */
  --bg-deep: #050806;
  --bg-surface: #090E0A;
  --bg-card: #0D140F;
  --bg-card-hover: #121C15;
  --bg-card-border: rgba(81, 224, 7, 0.16);
  --bg-card-border-hover: rgba(81, 224, 7, 0.45);
  
  /* Text */
  --text-main: #F3F7F4;
  --text-dim: #9EB0A4;
  --text-muted: #677A6D;
  --text-highlight: #51E007;

  /* Typography */
  --font-heading: 'Share Tech Mono', monospace;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --max-width: 1320px;
  --header-height: 76px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Shadows & Glows */
  --glow-primary: 0 0 24px rgba(81, 224, 7, 0.28);
  --glow-primary-subtle: 0 0 16px rgba(81, 224, 7, 0.12);
  --glow-primary-strong: 0 0 35px rgba(81, 224, 7, 0.45);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(81, 224, 7, 0.05) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(5, 8, 6, 0.95), var(--bg-deep));
  overflow-x: hidden;
  position: relative;
}

/* Subtle Technical Grid Lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 80px 80px;
  background-image: 
    linear-gradient(to right, rgba(81, 224, 7, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(81, 224, 7, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}

/* Section Header Meta (01 ── WHO WE ARE) */
.section-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.section-num {
  color: var(--brand-primary);
  font-weight: 700;
}

.section-dash {
  width: 32px;
  height: 1px;
  background-color: var(--brand-primary);
  opacity: 0.6;
}

.section-label {
  color: var(--brand-primary);
  text-transform: uppercase;
  font-weight: 600;
}

/* On inverted/green boxes (Section 02, 08) */
.inverted-meta .section-num,
.inverted-meta .section-label {
  color: #050806;
}

.inverted-meta .section-dash {
  background-color: #050806;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #050806;
  border: 1px solid var(--brand-primary);
  box-shadow: 0 0 16px rgba(81, 224, 7, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 0 24px rgba(81, 224, 7, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(13, 20, 15, 0.6);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(81, 224, 7, 0.12);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 16px rgba(81, 224, 7, 0.2);
  transform: translateY(-1px);
}

.btn-dark {
  background: #050806;
  color: var(--brand-primary);
  border: 1px solid #050806;
}

.btn-dark:hover {
  background: #111814;
  color: #FFFFFF;
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-normal);
}

.link-action:hover {
  color: #FFFFFF;
}

.link-action:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 8, 6, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(81, 224, 7, 0.15);
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1;
  color: var(--brand-primary);
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary);
}

.nav-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Nav Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 260px;
  background: rgba(9, 14, 10, 0.96);
  border: 1px solid rgba(81, 224, 7, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(81, 224, 7, 0.08);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: 105;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1.25rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(81, 224, 7, 0.08);
  padding-left: 1.5rem;
}

.dropdown-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #FFFFFF;
}

.dropdown-link:hover .dropdown-title {
  color: var(--brand-primary);
}

.dropdown-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-trigger {
  color: var(--text-dim);
  font-size: 1.1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-trigger:hover {
  color: var(--brand-primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  transition: all var(--transition-normal);
}

/* --------------------------------------------------------------------------
   HERO SECTION & RADAR / ORBITAL CANVAS
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Canvas background */
.hero-canvas-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

#heroRadarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Coordinate telemetry indicators in Hero */
.telemetry-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(81, 224, 7, 0.7);
  letter-spacing: 0.12em;
  pointer-events: none;
  z-index: 1;
}

.telemetry-x {
  top: 15%;
  right: 28%;
}

.telemetry-y {
  top: 50%;
  right: 42%;
}

.crosshair-center {
  position: absolute;
  top: 20%;
  left: 36%;
  color: rgba(81, 224, 7, 0.35);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  line-height: 0.95;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  width: 60px;
  height: 4px;
  background-color: var(--brand-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(81, 224, 7, 0.5);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   TRUST STRIP (DoD Partners, Clearance, Proven Results)
   -------------------------------------------------------------------------- */
.trust-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  border-top: 1px solid rgba(81, 224, 7, 0.18);
  border-bottom: 1px solid rgba(81, 224, 7, 0.18);
  background: rgba(9, 14, 10, 0.85);
  backdrop-filter: blur(8px);
  margin-top: 2rem;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  divide-x: 1px solid rgba(81, 224, 7, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid rgba(81, 224, 7, 0.12);
  text-align: left;
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   SECTION 01, 02, 03: BENTO GRID (WHO WE ARE, OUR IMPACT, HUNTSVILLE HQ)
   -------------------------------------------------------------------------- */
.bento-overview-section {
  padding: 5rem 0;
}

.bento-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.bento-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

/* Bento Tile 01: Who We Are */
.bento-who {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
}

.bento-who:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--glow-primary-subtle);
}

.bento-title {
  font-size: 2.2rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.bento-text {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Bento Tile 02: Our Impact (Vivid Green Box) */
.bento-impact {
  background: var(--brand-primary);
  color: #050806;
  border: 1px solid var(--brand-primary);
  box-shadow: 0 0 30px rgba(81, 224, 7, 0.2);
}

.stat-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  margin-top: 1rem;
}

.stat-block {
  padding: 0.75rem 0;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 0.95;
  font-weight: 700;
  color: #050806;
}

.stat-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #050806;
  margin-top: 0.4rem;
}

.stat-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(5, 8, 6, 0.2);
  margin: 0.75rem 0;
}

/* Bento Tile 03: Huntsville HQ Map */
.bento-map {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  align-items: center;
  text-align: center;
}

.bento-map:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--glow-primary-subtle);
}

.alabama-map-wrap {
  width: 100%;
  max-width: 220px;
  margin: 1.5rem auto;
  position: relative;
}

.alabama-svg {
  width: 100%;
  height: auto;
}

.map-caption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   SECTION 04: WHAT WE DO (CAPABILITIES GRID)
   -------------------------------------------------------------------------- */
.capabilities-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(81, 224, 7, 0.1);
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: #FFFFFF;
  margin-top: 0.5rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.cap-card:hover {
  border-color: var(--bg-card-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-primary-subtle);
}

.cap-card:hover::before {
  opacity: 1;
}

.cap-icon {
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
  margin-bottom: 2rem;
}

.cap-card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.cap-card-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   SECTION 05: LATEST INSIGHTS
   -------------------------------------------------------------------------- */
.insights-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(81, 224, 7, 0.1);
}

.insights-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2.5rem;
  align-items: start;
}

.insights-intro-title {
  font-size: 2.5rem;
  line-height: 1.05;
  color: #FFFFFF;
  margin-top: 0.5rem;
}

.insights-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-primary-subtle);
}

.insight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #060A07;
  overflow: hidden;
  border-bottom: 1px solid rgba(81, 224, 7, 0.15);
}

.insight-svg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.insight-card:hover .insight-svg-art {
  transform: scale(1.05);
}

.insight-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.insight-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.insight-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #FFFFFF;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.insight-title .btn-arrow {
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 06: OUR DIFFERENCE
   -------------------------------------------------------------------------- */
.difference-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(81, 224, 7, 0.1);
}

.difference-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.difference-heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.difference-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary-subtle);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 07: CASE STUDIES
   -------------------------------------------------------------------------- */
.case-studies-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(81, 224, 7, 0.1);
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: start;
}

.case-intro-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.case-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.case-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary-subtle);
}

.case-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #040805;
  border-bottom: 1px solid rgba(81, 224, 7, 0.15);
  overflow: hidden;
}

.case-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(5, 8, 6, 0.8);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(81, 224, 7, 0.3);
  z-index: 2;
}

.case-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.case-card-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.case-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.case-card-link {
  align-self: flex-end;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   SECTION 08: TRUSTED BY THOSE WHO DEFEND (FULL VIVID GREEN BANNER)
   -------------------------------------------------------------------------- */
.defense-trust-banner {
  background-color: var(--brand-primary);
  color: #050806;
  padding: 3rem 0;
  box-shadow: 0 0 40px rgba(81, 224, 7, 0.2);
}

.defense-banner-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.defense-banner-title-wrap {
  min-width: 280px;
}

.defense-banner-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #050806;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.defense-logos-strip {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.defense-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) brightness(0);
  opacity: 0.92;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.defense-logo-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.defense-seal-svg {
  width: 58px;
  height: 58px;
}

.defense-brand-svg {
  height: 28px;
  width: auto;
}

/* --------------------------------------------------------------------------
   SECTION 09 & 10: CAREERS & GET IN TOUCH
   -------------------------------------------------------------------------- */
.careers-contact-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(81, 224, 7, 0.1);
}

.careers-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Careers Column */
.careers-col {
  display: flex;
  flex-direction: column;
}

.careers-title {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.careers-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Open Positions Middle Column */
.positions-col {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2rem;
  border-radius: var(--radius-sm);
}

.positions-header {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(81, 224, 7, 0.15);
}

.positions-list {
  display: flex;
  flex-direction: column;
}

.position-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.position-row:hover {
  color: var(--brand-primary);
  padding-left: 0.5rem;
}

.position-row .btn-arrow {
  color: var(--brand-primary);
}

.positions-footer-link {
  margin-top: 1.5rem;
  display: block;
}

/* Get In Touch Column */
.contact-callout-col {
  display: flex;
  flex-direction: column;
}

.contact-callout-title {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.contact-callout-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #030504;
  border-top: 1px solid rgba(81, 224, 7, 0.18);
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col {
  max-width: 320px;
}

.footer-mission-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(81, 224, 7, 0.08);
  border: 1px solid rgba(81, 224, 7, 0.2);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--brand-primary);
  color: #050806;
  box-shadow: 0 0 14px rgba(81, 224, 7, 0.35);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--brand-primary);
}

.footer-nav-link::before {
  content: '+';
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(81, 224, 7, 0.15);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
}

.footer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-crosshair {
  color: var(--brand-primary);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   MODAL DIALOGS (INSIGHTS, CASE STUDIES, APPLICATION, SEARCH)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 4, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--brand-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-primary-strong);
  border-radius: var(--radius-sm);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(81, 224, 7, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-header-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-primary);
  letter-spacing: 0.08em;
}

.modal-close-btn {
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--brand-primary);
}

.modal-body {
  padding: 2rem;
}

/* Interactive Search Command Palette */
.search-palette {
  max-width: 600px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(81, 224, 7, 0.2);
}

.search-icon-input {
  color: var(--brand-primary);
  font-size: 1.2rem;
}

.search-input-field {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.search-results-list {
  padding: 1rem 0;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 0.85rem 1.5rem;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(81, 224, 7, 0.1);
  color: var(--brand-primary);
  padding-left: 1.85rem;
}

/* --------------------------------------------------------------------------
   PAGE-SPECIFIC STYLES (CAPABILITIES, MISSION APPS, COMPANY, CONTACT)
   -------------------------------------------------------------------------- */
.subpage-hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(81, 224, 7, 0.15);
  position: relative;
  overflow: hidden;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.subpage-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: #FFFFFF;
  line-height: 1.05;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.subpage-lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 620px;
}

.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.spec-tile {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.spec-tile:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--glow-primary-subtle);
}

.spec-tile-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
}

.spec-tile-title {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.spec-tile-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Contact Form Specifics */
.contact-layout-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  padding: 5rem 0;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2.5rem;
  border-radius: var(--radius-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #060907;
  border: 1px solid rgba(81, 224, 7, 0.25);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 10px rgba(81, 224, 7, 0.25);
}

.contracting-info-card {
  background: #090E0B;
  border: 1px solid rgba(81, 224, 7, 0.2);
  padding: 2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}

.meta-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.meta-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.meta-table td:first-child {
  font-family: var(--font-mono);
  color: var(--brand-primary);
  font-weight: 600;
  width: 40%;
}

.meta-table td:last-child {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bento-overview-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-layout,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .insights-cards,
  .case-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .careers-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .subpage-hero-grid,
  .contact-layout-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none; /* Controlled by mobile menu toggle */
  }

  .mobile-toggle {
    display: flex;
  }

  .trust-strip-inner {
    grid-template-columns: 1fr;
    divide-x: none;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(81, 224, 7, 0.12);
    justify-content: flex-start;
    padding: 1rem 1.5rem;
  }

  .difference-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .defense-banner-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-canvas-wrap {
    width: 100%;
    opacity: 0.35;
  }
}

@media (max-width: 640px) {
  .capabilities-grid,
  .insights-cards,
  .case-cards-grid,
  .tech-spec-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(5, 8, 6, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 99;
  border-top: 1px solid rgba(81, 224, 7, 0.2);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #FFFFFF;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--brand-primary);
}
