/* MISSION CONTROL Theme - Clean Data Dashboard */

/* Root Variables */
/* THE NETWORK - DAG Logo Colors */
:root {
  /* Intelligrit Logo DAG Colors - WCAG AAA Compliant (7:1+ contrast) */
  --coral: #8f1819;      /* i - Intelligence - 8.5:1 contrast (was #ff6b6b) */
  --turquoise: #005555;  /* n - Network - 8.6:1 contrast (was #4ecdc4) */
  --mint: #1f5a38;       /* t - Technology - 8.2:1 contrast (was #a8e6cf) */
  --purple: #6b2d8f;     /* e - Engineering - 8.8:1 contrast (was #9d4edd) */
  --gold: #5a4008;       /* l - Logic - 7.6:1 contrast (was #ffb627) */
  --magenta: #a0164a;    /* r - Results - 7.8:1 contrast (was #ff006e) */
  --sky: #0d47a1;        /* g - Growth - 8.5:1 contrast (was #74c0fc) */
  --emerald: #1a6b3c;    /* Open Source section - 6.5:1 contrast */

  /* Neutrals */
  --bg-light: #fafafa;
  --bg-lighter: #ffffff;
  --bg-med: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-med: #4d4d4d;
  --border: #e0e0e0;

  /* Backwards compat */
  --jade: var(--turquoise);
  --jade-dark: #004d4d;  /* Even darker for hover states */
  --navy: #1a1a1a;

  /* Header height */
  --header-height: 60px;
}

/* Font Stack */
* {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.6;
}

/* Typography - Bold Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

/* Sharp Corners - NO ROUNDING */
.btn,
.card,
.badge,
input,
textarea,
select,
.dropdown-content {
  border-radius: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   Sticky Header Bar
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #000;
  border-bottom: 3px solid var(--jade);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo img {
  height: 2rem;
  width: auto;
}

.site-header .logo a {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  color: white !important;
  text-decoration: none !important;
  font-size: 1.125rem;
}

.site-header .logo a:hover {
  opacity: 0.8;
}

.site-header .logo a:focus,
.site-header .logo a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-header .logo img:focus,
.site-header .logo img:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Breadcrumbs - centered in header */
.site-header .breadcrumbs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.site-header .breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 0.875rem;
}

.site-header .breadcrumbs li + li::before {
  content: '\203A';
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.5em;
}

.site-header .breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.site-header .breadcrumbs a:hover {
  color: white;
}

.site-header .breadcrumbs .current {
  color: white;
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-header .breadcrumbs {
    display: none;
  }
}

/* Capabilities link in header - desktop only */
.site-header .header-capabilities {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  margin-right: 0.5rem;
  transition: color 0.15s;
}

.site-header .header-capabilities:hover {
  color: white;
}

@media (max-width: 768px) {
  .site-header .header-capabilities {
    display: none;
  }
}

.site-header .menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .menu-toggle:hover {
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════
   Full-Screen Navigation Overlay
   ═══════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay .close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.nav-overlay .close-btn:hover {
  opacity: 0.7;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-content: start;
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-section-title {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-family: inherit;
  text-decoration: none !important;
}

.nav-section-title:hover {
  color: #ffd700;
}

.nav-sub-items {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-sub-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  font-family: inherit;
  text-decoration: none !important;
  display: block;
  width: 100%;
}

.nav-sub-item:hover {
  color: #ffd700;
  border-left-color: #ffd700;
}

/* Keyboard shortcut hints */
.nav-overlay kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0.1em 0.4em;
  margin-right: 0.5em;
  font-family: 'Manrope', monospace;
  font-size: 0.75em;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  vertical-align: baseline;
  line-height: 1.4;
}

.nav-section-title:hover kbd,
.nav-utility-row a:hover kbd {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-utility-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.nav-utility-row a,
.nav-utility-row button {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.15s;
  padding: 0;
}

.nav-utility-row a:hover,
.nav-utility-row button:hover {
  color: #ffd700;
}

.nav-utility-row .btn-primary {
  color: white !important;
}

/* Screen reader announcer */
.sr-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Main content - offset by header height */
.main-content:focus {
  outline: none;
}

.main-content {
  margin-left: 0;
  margin-top: var(--header-height);
}

/* Jade Green CTA Buttons - Bold and Solid */
.btn-primary {
  background: var(--jade) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--jade-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 102, 0.4);
}

.btn-primary:focus-visible {
  outline: 4px solid #0066ff;
  outline-offset: 3px;
}

/* Outline Buttons */
.btn-outline {
  border: 2px solid var(--jade) !important;
  color: var(--jade) !important;
  background: transparent !important;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--jade) !important;
  color: white !important;
}

.btn-outline:focus-visible {
  outline: 4px solid #0066ff;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px #0066ff;
}

.btn-ghost {
  background: transparent !important;
  border: none !important;
}

/* Hero Section - Gradient Background */
.hero-mission-control {
  background: linear-gradient(135deg, var(--purple) 0%, var(--coral) 100%);
  color: white;
  padding: 4rem 2rem;
  position: relative;
}

.hero-mission-control h1,
.hero-mission-control h2,
.hero-mission-control p {
  color: white;
}

/* Hero buttons - white on gradient for maximum contrast */
.hero-mission-control .btn-outline {
  border: 3px solid white !important;
  color: white !important;
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(4px);
}

.hero-mission-control .btn-outline:hover {
  background: white !important;
  color: var(--navy) !important;
}

/* Stats Display - Dashboard Style */
.stat-card {
  background: white;
  border: 2px solid var(--border);
  border-left: 6px solid var(--jade);
  padding: 2rem;
  transition: all 0.2s;
  text-align: center;
}

.stat-card:hover {
  border-left-color: var(--jade-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--jade);      /* Dark jade on white cards */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Dark highlights on white backgrounds */
.text-primary {
  color: var(--jade) !important;
}

.text-accent {
  color: var(--jade-dark) !important;
}

.text-secondary {
  color: var(--navy) !important;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Card Styling - Clean Geometric */
.card {
  background: white;
  border: 2px solid var(--border);
  padding: 2rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--jade);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Network Blocks - Each Section Gets Logo Color */
.hero-mission-control {
  background: linear-gradient(135deg, var(--purple) 0%, var(--coral) 100%);
  color: white;
  padding: 4rem 2rem;
  border-top: 3px solid var(--gold);
}

/* Section-specific colors from DAG */
#whatwedo-section .jade-block {
  background: var(--turquoise);
  border-top: 3px solid var(--mint);
}

#how-section .jade-block {
  background: var(--purple);
  border-top: 3px solid var(--coral);
}

#results-section .jade-block {
  background: var(--coral);
  border-top: 3px solid var(--magenta);
}

#products-section .jade-block {
  background: var(--gold);
  border-top: 3px solid var(--purple);
  color: white !important;
}

#products-section .jade-block h2,
#products-section .jade-block p {
  color: white !important;
}

#opensource-section .jade-block {
  background: var(--emerald);
  border-top: 3px solid var(--mint);
  color: white !important;
}

#opensource-section .jade-block h2,
#opensource-section .jade-block p {
  color: white !important;
}

#careers-section .jade-block {
  background: var(--mint);
  border-top: 3px solid var(--sky);
  color: white !important;
}

#careers-section .jade-block h2,
#careers-section .jade-block p {
  color: white !important;
}

#blog-section .jade-block {
  background: var(--gold);
  border-top: 3px solid var(--purple);
  color: white !important;
}

#blog-section .jade-block h2,
#blog-section .jade-block p {
  color: white !important;
}

#capabilities-section .jade-block {
  background: var(--sky);
  border-top: 3px solid var(--turquoise);
  color: white !important;
}

#capabilities-section .jade-block h2,
#capabilities-section .jade-block p {
  color: white !important;
}

#contact-section .jade-block {
  background: var(--magenta);
  border-top: 3px solid var(--coral);
}

#logo-section .jade-block {
  background: #1b3a2d;
  border-top: 3px solid var(--turquoise);
  color: white !important;
}

#logo-section .jade-block h2,
#logo-section .jade-block p {
  color: white !important;
}

.jade-block {
  color: white;
  padding: 4rem 2rem;
  position: relative;
}

/* First block - no gap from nav */
.content-section > .jade-block:first-child {
  margin-top: 0;
}

.jade-block h2,
.jade-block h3,
.jade-block p {
  color: white;
}

.navy-block {
  background: var(--navy);
  color: white;
  padding: 4rem 2rem;
}

.navy-block h2,
.navy-block h3,
.navy-block p {
  color: white;
}

.white-block {
  background: white;
  color: var(--text-dark);
  padding: 4rem 2rem;
}

/* Badges - Data Tags */
.badge {
  background: var(--bg-med);
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jade {
  background: var(--jade);
  color: white;
  border-color: var(--jade);
}

/* Grid Layouts - Swiss Precision */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Section Dividers - Bold Lines */
section {
  border-bottom: 1px solid var(--border);
}

.section-header {
  border-left: 6px solid var(--jade);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

/* Footer - Clean Navy */
footer {
  background: var(--navy) !important;
  color: white !important;
  border-top: 3px solid var(--jade);
  margin-left: 0;
}

footer a {
  color: white !important;
}

footer a:hover {
  color: var(--jade) !important;
}

/* Audio Player Bar - Black like navbar */
.audio-bar-inner {
  background: #000000 !important;
  border-top: 4px solid var(--jade);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

/* All audio player text and controls - white on black */
.audio-bar-inner,
.audio-bar-inner *,
.audio-bar-inner button,
.audio-bar-inner span,
.audio-bar-inner #current-chapter,
#audio-toggle,
#audio-close,
#chapters-btn {
  color: white !important;
}

/* Audio player buttons */
.audio-bar-inner button svg,
.audio-bar-inner .btn svg {
  stroke: white !important;
}

.plyr {
  --plyr-color-main: var(--jade);
  --plyr-control-icon-size: 20px;
}

/* Plyr controls - all white on black */
.plyr--audio .plyr__controls {
  background: transparent !important;
  color: white !important;
}

.plyr__control,
.plyr__control svg {
  color: white !important;
  fill: white !important;
}

.plyr__control:hover {
  background: rgba(0, 102, 102, 0.2) !important;
}

.plyr__time,
.plyr__volume {
  color: white !important;
}

/* Plyr tooltips and menus - dark background with white text */
.plyr__tooltip,
.plyr__menu,
.plyr__menu__container {
  background: #1a1a1a !important;
  color: white !important;
  border: 2px solid var(--jade) !important;
}

.plyr__menu__container .plyr__control {
  color: white !important;
}

.plyr__menu__container .plyr__control:hover {
  background: rgba(0, 102, 102, 0.3) !important;
}

.plyr__menu__container [role="menuitemradio"][aria-checked="true"]::before {
  background: var(--jade) !important;
}

/* Accessibility - Enhanced Focus Indicators */
*:focus-visible {
  outline: 4px solid #0066ff;  /* High contrast blue - 8.6:1 on white, visible on dark */
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px #0066ff; /* Double ring for maximum visibility */
}

/* Extra strong focus for links and buttons */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 4px solid #0066ff;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px #0066ff;
}

/* Form accessibility improvements */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 3px solid #c00000 !important;  /* Dark red for errors - 8:1 contrast */
  background: #fff5f5 !important;  /* Light red background */
}

/* Form labels must be bold and high contrast */
label {
  font-weight: 600 !important;
  color: var(--text-dark) !important;
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--jade) !important;
  box-shadow: 0 0 0 3px rgba(0, 85, 85, 0.2) !important;
}

/* Improve link underlines for visibility */
a:not(.btn):not(.nav-overlay a):not(.site-header a):not(.footer a) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:not(.btn):hover {
  text-decoration-thickness: 3px;
}

/* Keyboard navigation - highlight current focus clearly */
button:focus-visible,
a:not(.skip-link):focus-visible {
  position: relative;
  z-index: 10;
}

/* Improve button active states for touch/click feedback */
button:active,
.btn:active {
  transform: translateY(1px);
}

/* Skip link - hidden until focused */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: white !important;
  font-weight: 700;
  font-size: 1rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: calc(var(--header-height) + 0.5rem);
  left: 0.5rem;
  color: white !important;
  text-decoration: underline;
  outline: 3px solid white;
  outline-offset: 2px;
}

.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;
}

/* HTMX loading indicator */
.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-indicator {
  display: none;
}

/* Audio player bar */
.audio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.audio-bar.visible {
  transform: translateY(0);
}

/* Chapter list styling */
.chapter-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
  border-left: 3px solid transparent;
}

.chapter-item:hover {
  background: var(--bg-med);
  border-left-color: var(--jade);
}

.chapter-item.active {
  background: var(--bg-med);
  color: var(--jade);
  border-left-color: var(--jade);
  font-weight: 600;
}

/* Dropdown menus - default light */
.dropdown-content {
  background: white;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Audio player chapters dropdown - dark with good contrast */
.audio-bar-inner .dropdown-content {
  background: #1a1a1a !important;
  border: 2px solid var(--jade) !important;
  color: white !important;
}

.audio-bar-inner .dropdown-content .text-xs {
  color: #cccccc !important;
}

.audio-bar-inner .chapter-item {
  color: white !important;
}

.audio-bar-inner .chapter-item:hover {
  background: rgba(0, 102, 102, 0.2) !important;
  color: var(--jade) !important;
}

.audio-bar-inner .chapter-item.active {
  background: rgba(0, 102, 102, 0.3) !important;
  color: var(--jade) !important;
}

/* Mobile responsive - single column overlay */
@media (max-width: 768px) {
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-overlay {
    padding: 4rem 1.5rem 1.5rem;
  }

  .nav-utility-row {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
}

.menu li > * {
  color: var(--text-dark);
}

.menu li > *:hover {
  background: var(--bg-med);
  color: var(--jade);
}

/* Section accent colors - content inherits hero color for visual continuity */
#whatwedo-section { --section-accent: var(--turquoise); }
#how-section { --section-accent: var(--purple); }
#results-section { --section-accent: var(--coral); }
#products-section { --section-accent: var(--gold); }
#opensource-section { --section-accent: var(--emerald); }
#careers-section { --section-accent: var(--mint); }
#blog-section { --section-accent: var(--gold); }
#capabilities-section { --section-accent: var(--sky); }
#contact-section { --section-accent: var(--magenta); }

/* Text accent inherits section color */
.content-section .text-primary {
  color: var(--section-accent, var(--jade)) !important;
}

/* Primary buttons inherit section color */
.content-section .btn-primary {
  background: var(--section-accent, var(--jade)) !important;
}

.content-section .btn-primary:hover {
  background: var(--section-accent, var(--jade)) !important;
  filter: brightness(0.85);
}

/* Outline buttons inherit section color */
.content-section .btn-outline {
  border-color: var(--section-accent, var(--jade)) !important;
  color: var(--section-accent, var(--jade)) !important;
}

.content-section .btn-outline:hover {
  background: var(--section-accent, var(--jade)) !important;
  color: white !important;
  filter: none;
}

/* Stat cards inherit section color */
.content-section .stat-card {
  border-left-color: var(--section-accent, var(--jade));
}

.content-section .stat-value {
  color: var(--section-accent, var(--jade));
}

/* Primary badges inherit section color */
.content-section .badge-primary,
.content-section .badge-jade {
  background: var(--section-accent, var(--jade)) !important;
  border-color: var(--section-accent, var(--jade)) !important;
}

/* Section header left border inherits section color */
.content-section .section-header {
  border-left-color: var(--section-accent, var(--jade));
}

/* Reduced motion support */
@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;
  }

  .nav-overlay {
    transition: none !important;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .stat-value { font-size: 2rem; }
}

/* Section visibility - hidden after load */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Hero always visible */
#hero {
  display: block !important;
}

/* Section sub-view switching */
.section-subview {
  display: none;
}

.section-subview.active {
  display: block;
}

/* Article body typography (for inline case study partial) */
.article-body h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body strong {
  font-weight: 700;
}

.article-body blockquote {
  border-left: 4px solid var(--jade);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-med);
  font-style: italic;
}

.article-body code {
  background: var(--bg-med);
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.article-body pre {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-body th {
  background: var(--bg-med);
  font-weight: 700;
}

.article-body .collapse-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.article-body .collapse {
  border: 2px solid var(--border);
  margin-bottom: 0.75rem;
}

.article-body .collapse:hover {
  border-color: var(--jade);
}

.article-body .collapse-content p:last-child {
  margin-bottom: 0;
}

/* Diagonal divider bands */
.divider-band {
  clip-path: polygon(0 0, 100% 2rem, 100% calc(100% - 2rem), 0 100%);
  padding-top: calc(2rem + 2.5rem);
  padding-bottom: calc(2rem + 2.5rem);
  margin-top: -2rem;
  margin-bottom: -2rem;
}

/* Pull quote callouts */
.pull-quote {
  border-left: 5px solid var(--jade);
  padding: 1.5rem 2rem 1.5rem 3rem;
  margin: 2.5rem 0;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  color: var(--text-dark);
}

.pull-quote::before {
  content: "\201C";
  font-size: 4rem;
  font-style: normal;
  color: var(--jade);
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  line-height: 1;
  opacity: 0.3;
}

/* Nav overlay active states */
.nav-sub-item.nav-active {
  background: rgba(255, 215, 0, 0.2);
  border-left-color: #ffd700;
}

.nav-section-title.nav-active,
.nav-section-title.nav-active-parent {
  background: rgba(255, 215, 0, 0.2);
  padding: 0.15rem 0.5rem;
  margin: -0.15rem -0.5rem;
}

.nav-utility-row .nav-active {
  background: rgba(255, 215, 0, 0.2);
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}
