/* ==========================================================================
   TALYX BRAND DESIGN SYSTEM - CSS IMPLEMENTATION
   Document ID: BVS-TALYX-2026-001
   Version: 3.0 | January 2026
   Premium Visual Hardening — McKinsey/Palantir/Bloomberg tier
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* Primary Palette */
  --color-midnight: #0F2744;
  --color-ivory: #F8F6F3;
  --color-evergreen: #1A7F64;
  --color-evergreen-hover: #15684F;
  --color-evergreen-active: #115A45;

  /* Evergreen Family (expanded) */
  --color-evergreen-50:  #F0F9F7;
  --color-evergreen-100: #D9F0EB;
  --color-evergreen-200: #AEE4D6;
  --color-evergreen-300: #7ECFBB;
  --color-evergreen-400: #4DBAA0;
  --color-evergreen-500: #1A7F64;
  --color-evergreen-700: #156B56;
  --color-evergreen-800: #0F5445;

  /* Midnight Family (expanded) */
  --color-midnight-50:  #EBEEF3;
  --color-midnight-100: #C4CAD9;
  --color-midnight-300: #5A6978;
  --color-midnight-500: #2D3E50;
  --color-midnight-700: #0F2744;
  --color-midnight-900: #070F1A;

  /* Secondary Palette */
  --color-slate: #2D3E50;
  --color-graphite: #5A6978;
  --color-pewter: #8B95A1;
  --color-silver: #C4CAD1;
  --color-mist: #E8EAED;
  --color-white: #FFFFFF;

  /* Surface Tokens */
  --color-surface-1: #FFFFFF;
  --color-surface-2: #FAFBFC;
  --color-surface-3: #F5F7F9;
  --color-surface-4: #EEF1F5;

  /* Text Hierarchy Tokens */
  --color-text-primary:            #0F2744;
  --color-text-secondary:          #5A6978;
  --color-text-tertiary:           #8B95A1;
  --color-text-disabled:           #C4CAD1;
  --color-text-inverse:            #FFFFFF;
  --color-text-inverse-secondary:  rgba(255,255,255,0.85);
  --color-text-inverse-tertiary:   rgba(255,255,255,0.65);

  /* Border Progression */
  --color-border-light:   #E8EAED;
  --color-border-default: #D4D9E0;
  --color-border-strong:  #C4CAD1;

  /* Accent Palette */
  --color-brass: #C9A227;
  --color-cardinal: #C53030;
  --color-azure: #2B6CB0;

  /* Typography Font Stacks */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* Type Scale - Desktop (Phase 4: increased for premium scale) */
  --text-display-1: 80px;
  --text-display-2: 64px;
  --text-heading-1: 48px;
  --text-heading-2: 36px;
  --text-heading-3: 24px;
  --text-heading-4: 20px;
  --text-stat: 96px;
  --text-overline: 12px;
  --text-body-large: 20px;
  --text-body: 17px;
  --text-body-small: 15px;
  --text-caption: 13px;

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0.005em;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.15em;

  /* Spacing Scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Section Spacing Tokens */
  --space-section: 96px;
  --space-section-lg: 120px;
  --space-section-sm: 72px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows (Elevation System) */
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, 0.04), 0 1px 3px rgba(15, 39, 68, 0.08);
  --shadow-md: 0 1px 3px rgba(15, 39, 68, 0.12);
  --shadow-lg: 0 4px 6px rgba(15, 39, 68, 0.08), 0 10px 20px rgba(15, 39, 68, 0.12);
  --shadow-xl: 0 8px 24px rgba(15, 39, 68, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --content-max: 780px;
  --nav-height-desktop: 112px;
  --nav-height-mobile: 80px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-loose);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-secondary);
  background-color: var(--color-ivory);
}

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  font-weight: 600;
}

h1 {
  font-size: var(--text-display-2);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tighter);
  font-weight: 800;
}

h2 {
  font-size: var(--text-heading-1);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
}

h3 {
  font-size: var(--text-heading-2);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-heading-3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-heading-4);
  line-height: 1.35;
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-azure);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Body text links: refined underline treatment */
p a,
li a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-azure);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

p a:hover,
li a:hover {
  text-decoration: none;
  color: var(--color-text-primary);
  border-bottom-color: var(--color-text-primary);
}

strong, b {
  font-weight: 700;
  color: var(--color-text-primary);
}

.overline {
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-evergreen);
}

.lead {
  font-size: var(--text-body-large);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.005em;
  max-width: 620px;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--color-surface-3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-midnight);
  color: var(--color-ivory);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Text utility classes */
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-muted { color: var(--color-text-disabled); }

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

/* Section divider: subtle gradient line between sections */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-light) 10%, var(--color-border-light) 90%, transparent);
  opacity: 0.5;
}

/* No divider on last section before footer or CTA */
.section:last-of-type::after,
.cta-section::after,
.section + .cta-section ~ .section::after {
  display: none;
}

/* First section after hero */
.hero + .section,
.hero + .scale-bar + .section {
  padding-top: var(--space-section-sm);
}

.section-dark {
  background: linear-gradient(180deg, #0F2744 0%, #0B1D35 50%, #0F2744 100%);
  color: var(--color-ivory);
  position: relative;
}

/* Noise texture overlay for dark sections */
.section-dark::before,
.section-darker::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

/* Dark section dividers use evergreen tint */
.section-dark::after {
  background: linear-gradient(90deg, transparent, rgba(26, 127, 100, 0.2) 10%, rgba(26, 127, 100, 0.2) 90%, transparent);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-text-inverse);
}

.section-dark p {
  color: var(--color-text-inverse-secondary);
}

.section-dark .overline {
  color: var(--color-evergreen);
}

.section-darker {
  background: linear-gradient(180deg, #070F1A 0%, #0A1628 50%, #0C1A2E 100%);
  color: var(--color-ivory);
  position: relative;
}

.section-darker > * {
  position: relative;
  z-index: 1;
}

.section-darker::after {
  background: linear-gradient(90deg, transparent, rgba(26, 127, 100, 0.15) 10%, rgba(26, 127, 100, 0.15) 90%, transparent);
}

.section-darker h1,
.section-darker h2,
.section-darker h3,
.section-darker h4,
.section-darker h5,
.section-darker h6 {
  color: var(--color-text-inverse);
}

.section-darker p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-desktop);
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
}

.nav.scrolled {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav .logo {
  display: flex;
  align-items: center;
}

.nav .logo img {
  height: 125px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-normal);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

/* Nav link animated underline via ::after */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-evergreen);
  transition: width 250ms ease-out;
}

.nav-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1002;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: transform var(--transition-normal), opacity var(--transition-fast), background-color var(--transition-normal);
  border-radius: 2px;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(7, 15, 26, 0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
}

@media (max-width: 767px) {
  .nav {
    height: var(--nav-height-mobile);
  }

  .nav .logo img {
    height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  /* Full-screen menu overlay (replaces side-drawer) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    background-color: var(--color-midnight);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-3) 0;
    font-size: var(--text-heading-3);
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
  }

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

  .nav-link::after {
    display: none;
  }

  /* Hide dropdown arrow on mobile — Services links directly to /services.html */
  .nav-arrow {
    display: none;
  }

  .nav-links .btn {
    margin-top: var(--space-6);
    text-align: center;
    padding: 14px 36px;
    font-size: 16px;
  }

  /* Hide dropdown on mobile — direct link only */
  .nav-dropdown {
    display: none;
  }

  /* Hide separate overlay backdrop (full-screen menu replaces it) */
  .nav-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 100ms ease, box-shadow 250ms ease, transform 100ms ease;
  min-height: 48px;
  min-width: 140px;
}

.btn-primary {
  background-color: var(--color-evergreen);
  color: var(--color-white);
  padding: 14px 28px;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-evergreen-hover);
  box-shadow: 0 12px 24px rgba(26, 127, 100, 0.35), 0 4px 8px rgba(26, 127, 100, 0.25);
  transform: translateY(-3px);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary:active {
  background-color: var(--color-evergreen-active);
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  background-color: var(--color-silver);
  color: var(--color-pewter);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background-color: rgba(15, 39, 68, 0.02);
  color: var(--color-text-primary);
  padding: 12px 26px;
  border: 2px solid var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-text-primary);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
  background-color: var(--color-text-primary);
  color: var(--color-white);
}

.btn-secondary:disabled {
  border-color: var(--color-silver);
  color: var(--color-pewter);
  cursor: not-allowed;
}

/* Light variant for dark backgrounds */
.section-dark .btn-secondary,
.section-darker .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.03);
}

.section-dark .btn-secondary:hover,
.section-darker .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-text-primary);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--color-midnight);
  background-size: cover;
  background-position: center;
  padding: var(--space-24) var(--space-6);
  padding-left: clamp(2rem, 10vw, 8rem);
  padding-top: calc(var(--nav-height-desktop) + var(--space-24));
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.40) 0%, rgba(15, 39, 68, 0.25) 100%);
}

/* Hero radial accent for subtle teal warmth */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(26, 127, 100, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 127, 100, 0.06) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

/* Hero bottom vignette */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-home {
  background-image: url('/hero-home.jpg');
}

.hero-about {
  background-image: url('/hero-about.jpg');
}

.hero-services {
  background-image: url('/hero-services.jpg');
}

.hero-healthcare {
  background-image: url('/hero-healthcare.jpg');
}

.hero-wealth {
  background-image: url('/hero-wealth.jpg');
}

.hero-ai {
  background-image: url('/hero-ai.jpg');
}

.hero-faq {
  background-image: url('/hero-faq.jpg');
}

.hero-contact {
  background-image: url('/hero-contact.jpg');
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 900px;
  margin: 0;
}

.hero-overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-evergreen-300);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero p {
  font-size: var(--text-body-large);
  line-height: 1.6;
  color: var(--color-text-inverse-secondary);
  max-width: 35ch;
  margin: 0 0 var(--space-10);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-scroll {
  display: none;
}

/* Hero text fade-in animation — disabled (content visibility > motion) */

/* ==========================================================================
   8. CARDS
   ========================================================================== */

.card {
  background: linear-gradient(135deg, var(--color-surface-1) 0%, rgba(248, 246, 243, 0.3) 100%);
  border: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Card accent line (top) — revealed on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-evergreen-400));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(15, 39, 68, 0.08), 0 20px 40px rgba(15, 39, 68, 0.12);
  transform: translateY(-4px);
}

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

.card h3 {
  margin-bottom: var(--space-4);
}

.card p {
  color: var(--color-text-secondary);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  perspective: 1000px;
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

/* Service card accent line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-evergreen-400));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 127, 100, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(26, 127, 100, 0.1), 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.service-card h3 {
  font-size: var(--text-heading-3);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--color-text-inverse-secondary);
  margin-bottom: var(--space-6);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-evergreen);
  text-decoration: none;
}

.service-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

.service-link span {
  transition: transform var(--transition-fast);
}

.service-link:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   9. SCALE/STATS BAR
   ========================================================================== */

.scale-bar {
  background: linear-gradient(180deg, #0B1D35 0%, var(--color-midnight) 100%);
  padding: var(--space-section-sm) 0;
}

.scale-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.scale-item {
  color: var(--color-white);
  flex: 1;
  padding: 0 var(--space-8);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

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

@media (max-width: 767px) {
  .scale-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .scale-item {
    border-right: none;
    padding: var(--space-4);
  }

  .scale-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.scale-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, var(--text-stat));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.scale-label {
  font-size: var(--text-body-small);
  color: var(--color-text-inverse-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}

/* ==========================================================================
   10. FEATURE STATEMENT
   ========================================================================== */

.feature-statement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.feature-statement .overline {
  margin-bottom: var(--space-4);
}

.feature-statement h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: var(--space-6);
}

.feature-statement p {
  font-size: var(--text-body-large);
  color: var(--color-text-inverse-secondary);
}

.section:not(.section-dark):not(.section-darker) .feature-statement p {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   11. SECTION HEADERS
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .overline {
  display: block;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-5);
}

.section-header p {
  font-size: var(--text-body-large);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   12. TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), rgba(26, 127, 100, 0.3));
  box-shadow: 0 1px 3px rgba(26, 127, 100, 0.3);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

@media (max-width: 767px) {
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--color-evergreen), rgba(26, 127, 100, 0.3));
  }

  .timeline-item {
    padding-left: var(--space-12);
  }
}

.timeline-item {
  text-align: center;
}

@media (max-width: 767px) {
  .timeline-item {
    text-align: left;
  }
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--color-evergreen);
  border: 3px solid var(--color-midnight);
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  position: relative;
  box-shadow: 0 0 0 4px rgba(26, 127, 100, 0.2);
  transition: box-shadow var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 8px rgba(26, 127, 100, 0.3);
}

@media (max-width: 767px) {
  .timeline-dot {
    position: absolute;
    left: 12px;
    top: 4px;
    margin: 0;
  }
}

.timeline-label {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-evergreen);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-heading-4);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-body-small);
  color: var(--color-text-inverse-tertiary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   13. HIGHLIGHT BOX
   ========================================================================== */

.highlight-box {
  background: linear-gradient(135deg, rgba(26, 127, 100, 0.1) 0%, rgba(26, 127, 100, 0.04) 100%);
  border: 1px solid rgba(26, 127, 100, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Corner accent on hover */
.highlight-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(26, 127, 100, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.highlight-box:hover::before {
  opacity: 1;
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.highlight-box strong {
  color: var(--color-evergreen);
}

/* ==========================================================================
   14. CTA SECTION
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-evergreen) 0%, #0F7B5F 50%, var(--color-evergreen-hover) 100%);
  text-align: center;
  padding: var(--space-section-sm) var(--space-6);
  position: relative;
  overflow: hidden;
}

/* Floating radial accent glows */
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-body-large);
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto var(--space-8);
}

.cta-section .btn-primary {
  background-color: var(--color-white);
  color: var(--color-evergreen);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-ivory);
  color: var(--color-evergreen-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-midnight);
  padding: var(--space-section-sm) 0 var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-brand .logo img {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--color-text-inverse-secondary);
  font-size: var(--text-body-small);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-inverse-tertiary);
  margin-bottom: var(--space-4);
}

.footer-link {
  display: block;
  font-size: var(--text-body-small);
  color: var(--color-text-inverse-secondary);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text-inverse);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-body-small);
  color: var(--color-text-inverse-tertiary);
}

/* ==========================================================================
   16. FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-cardinal);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-slate);
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  padding: 14px var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--color-border-strong);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-azure);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-cardinal);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-body-small);
  color: var(--color-cardinal);
  margin-top: var(--space-2);
}

/* ==========================================================================
   17. TABLES (Bloomberg-quality)
   ========================================================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-midnight);
}

th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 18px;
  text-align: left;
  border-bottom: none;
}

td {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-light);
}

/* Zebra striping */
tbody tr:nth-child(even) {
  background-color: var(--color-surface-2);
}

/* Row hover */
tbody tr:hover td {
  background-color: var(--color-surface-3);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}

.table-responsive table {
  min-width: 500px;
}

/* ==========================================================================
   18. LISTS
   ========================================================================== */

ul, ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-3);
}

li::marker {
  color: var(--color-evergreen);
}

/* ==========================================================================
   19. BLOCKQUOTE (Enhanced)
   ========================================================================== */

blockquote {
  border-left: 4px solid var(--color-evergreen);
  background: rgba(26, 127, 100, 0.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  font-size: var(--text-body-large);
  color: var(--color-slate);
  position: relative;
}

/* Decorative large quotation mark */
blockquote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: rgba(26, 127, 100, 0.1);
  line-height: 1;
  pointer-events: none;
}

blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: var(--text-body-small);
  color: var(--color-text-tertiary);
}

blockquote cite::before {
  content: '\2014\00a0';
}

/* ==========================================================================
   20. FADE-IN ANIMATIONS (disabled — classes kept in HTML as no-ops)
   ========================================================================== */

/* ==========================================================================
   21. UTILITIES
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-midnight {
  color: var(--color-text-primary);
}

.text-evergreen {
  color: var(--color-evergreen);
}

.bg-ivory {
  background-color: var(--color-ivory);
}

.bg-midnight {
  background-color: var(--color-midnight);
}

.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;
}

/* ==========================================================================
   22. FOCUS STATES (Accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-color: var(--color-white);
}

.section-dark :focus-visible,
.section-darker :focus-visible,
.footer :focus-visible {
  outline-color: var(--color-white);
}

/* ==========================================================================
   23. CONTENT PAGES (Generated from Markdown)
   ========================================================================== */

.section > .container > h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
}

.section > .container > h2:first-child {
  margin-top: 0;
}

.section > .container > h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.section > .container > h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.section > .container > p {
  max-width: var(--content-max);
}

/* FAQ Styling */
.section > .container > h3 + p {
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   24. RESPONSIVE TYPOGRAPHY
   ========================================================================== */

@media (max-width: 1023px) {
  :root {
    --text-display-1: 56px;
    --text-display-2: 48px;
    --text-heading-1: 36px;
    --text-heading-2: 28px;
    --text-heading-3: 22px;
    --text-stat: 72px;
    --space-section: 80px;
    --space-section-lg: 96px;
    --space-section-sm: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --text-display-1: 40px;
    --text-display-2: 36px;
    --text-heading-1: 28px;
    --text-heading-2: 24px;
    --text-heading-3: 20px;
    --text-body-large: 18px;
    --text-body: 16px;
    --text-stat: 56px;
    --space-section: 64px;
    --space-section-lg: 80px;
    --space-section-sm: 48px;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

/* Small phone breakpoint */
@media (max-width: 425px) {
  :root {
    --text-display-1: 32px;
    --text-display-2: 28px;
    --text-stat: 48px;
    --space-section: 48px;
    --space-section-sm: 36px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 40px);
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  :root {
    --container-max: 1280px;
  }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 56px;
  }

  .nav-link {
    padding: var(--space-3) 0;
  }
}

/* ==========================================================================
   25. HERO COMPACT (Content Pages)
   ========================================================================== */

.hero-compact {
  min-height: 50vh;
}

.hero-compact .hero-content {
  text-align: left;
  max-width: 800px;
  margin: 0;
}

/* ==========================================================================
   26. NARROW CONTAINER (Content Pages, FAQ)
   ========================================================================== */

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================================
   27. FAQ STYLING (Accordion with details/summary)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

/* details/summary accordion */
details.faq-item {
  padding: 0;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::marker {
  display: none;
  content: '';
}

/* Chevron icon */
details.faq-item summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-inverse-secondary);
  border-bottom: 2px solid var(--color-text-inverse-secondary);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

details[open].faq-item summary::after {
  transform: rotate(-135deg);
}

details.faq-item .faq-answer {
  padding: 0 0 var(--space-8);
  overflow: hidden;
}

details[open].faq-item .faq-question {
  color: var(--color-evergreen);
}

/* Fallback for non-details FAQ items (legacy) */
.faq-item:not(details) {
  padding: var(--space-8) 0;
}

.faq-item:not(details):first-child {
  padding-top: 0;
}

.faq-question {
  font-family: var(--font-display);
  font-size: var(--text-heading-3);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
  line-height: 1.3;
}

.faq-answer {
  color: var(--color-text-inverse-secondary);
  line-height: var(--leading-loose);
  max-width: 680px;
  margin-bottom: 0;
}

/* Light section FAQ overrides */
.section:not(.section-dark):not(.section-darker) .faq-item {
  border-bottom-color: var(--color-border-light);
}

.section:not(.section-dark):not(.section-darker) .faq-question {
  color: var(--color-text-primary);
}

.section:not(.section-dark):not(.section-darker) .faq-answer {
  color: var(--color-text-secondary);
}

.section:not(.section-dark):not(.section-darker) details.faq-item summary::after {
  border-color: var(--color-text-secondary);
}

.section:not(.section-dark):not(.section-darker) details[open].faq-item .faq-question {
  color: var(--color-evergreen);
}

/* ==========================================================================
   28. CAPABILITY CARDS (4-Column Grid)
   ========================================================================== */

.capability-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  perspective: 1000px;
}

@media (max-width: 1023px) {
  .capability-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .capability-grid-4 {
    grid-template-columns: 1fr;
  }
}

.capability-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-evergreen-400));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.capability-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 127, 100, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(26, 127, 100, 0.1), 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.capability-card h3 {
  font-size: var(--text-heading-4);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}

.capability-card p {
  color: var(--color-text-inverse-secondary);
  font-size: var(--text-body-small);
  line-height: var(--leading-relaxed);
}

.capability-icon {
  margin-bottom: var(--space-4);
}

.capability-icon img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

/* Numbered card labels (replaces broken SVG icons) */
.card-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-evergreen);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

/* Light section capability card overrides */
.section:not(.section-dark):not(.section-darker) .capability-card {
  background: linear-gradient(135deg, var(--color-surface-1) 0%, rgba(248, 246, 243, 0.3) 100%);
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.section:not(.section-dark):not(.section-darker) .capability-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-default);
}

.section:not(.section-dark):not(.section-darker) .capability-card h3 {
  color: var(--color-text-primary);
}

.section:not(.section-dark):not(.section-darker) .capability-card p {
  color: var(--color-text-secondary);
}

.section:not(.section-dark):not(.section-darker) .capability-icon img {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   29. FEATURE CARDS (3-Column Grid)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  perspective: 1000px;
}

@media (max-width: 1023px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-evergreen-400));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 127, 100, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(26, 127, 100, 0.1), 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.feature-card h3 {
  font-size: var(--text-heading-3);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.feature-card p {
  color: var(--color-text-inverse-secondary);
  line-height: var(--leading-relaxed);
}

.feature-card strong {
  color: var(--color-ivory);
}

.section:not(.section-dark):not(.section-darker) .feature-card strong {
  color: var(--color-text-primary);
}

/* Light section feature card overrides */
.section:not(.section-dark):not(.section-darker) .feature-card {
  background: linear-gradient(135deg, var(--color-surface-1) 0%, rgba(248, 246, 243, 0.3) 100%);
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.section:not(.section-dark):not(.section-darker) .feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-default);
}

.section:not(.section-dark):not(.section-darker) .feature-card h3 {
  color: var(--color-text-primary);
}

.section:not(.section-dark):not(.section-darker) .feature-card p {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   30. COMPARISON GRID & DATA TABLE
   ========================================================================== */

.comparison-grid {
  margin-bottom: var(--space-12);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background-color: rgba(26, 127, 100, 0.2);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 2px solid rgba(26, 127, 100, 0.4);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-inverse-secondary);
}

.data-table tbody tr:nth-child(even) td {
  background-color: rgba(26, 127, 100, 0.04);
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.04);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Light section data table overrides */
.section:not(.section-dark):not(.section-darker) .data-table th {
  background-color: var(--color-midnight);
  color: var(--color-text-inverse);
  border-bottom-color: var(--color-midnight-500);
}

.section:not(.section-dark):not(.section-darker) .data-table td {
  color: var(--color-text-secondary);
  border-bottom-color: var(--color-border-light);
}

.section:not(.section-dark):not(.section-darker) .data-table tbody tr:nth-child(even) td {
  background-color: var(--color-surface-2);
}

.section:not(.section-dark):not(.section-darker) .data-table tr:hover td {
  background-color: var(--color-surface-3);
}

/* ==========================================================================
   31. ARCHETYPE RANGE
   ========================================================================== */

.archetype-range {
  font-family: var(--font-display);
  font-size: var(--text-heading-4);
  font-weight: 700;
  color: var(--color-evergreen);
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   32. CONTACT GRID
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ==========================================================================
   33. SECTION LIGHT
   ========================================================================== */

.section-light {
  background-color: var(--color-ivory);
}

/* ==========================================================================
   34. NAVIGATION DROPDOWNS
   ========================================================================== */

.nav-item {
  position: relative;
}

.nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link .nav-arrow {
  font-size: 8px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.nav-links .btn.btn-primary {
  border-radius: 24px;
  padding: 10px 24px;
  min-height: 40px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background-color: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
  margin-top: var(--space-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-body-small);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: var(--space-2) 0;
}

.nav-dropdown .dropdown-label {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}

/* Mobile nav-dropdown handled in Section 5 mobile block */

/* ==========================================================================
   35. CONTENT PAGE SPACING ADJUSTMENTS
   ========================================================================== */

/* Generated content pages: narrower body text */
.section > .container > p,
.section > .container > ul,
.section > .container > ol,
.section > .container > blockquote {
  max-width: var(--content-max);
}

/* Generated content pages: smaller H2 for article context */
.hero-compact ~ .section h2 {
  font-size: var(--text-heading-2);
}

/* Content section spacing for pages with hero-compact */
.hero-compact ~ .section {
  padding: var(--space-section-sm) 0;
}

/* Phase 11: Content page rhythm */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-default) 20%, var(--color-border-default) 80%, transparent);
  margin: 64px 0;
}

.section-dark hr,
.section-darker hr {
  background: linear-gradient(90deg, transparent, rgba(26, 127, 100, 0.3) 20%, rgba(26, 127, 100, 0.3) 80%, transparent);
}

.pullquote {
  font-family: var(--font-display);
  font-size: var(--text-heading-2);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-evergreen);
  padding-left: var(--space-6);
  margin: var(--space-12) 0;
  max-width: 720px;
}

.section-dark .pullquote,
.section-darker .pullquote {
  color: var(--color-text-inverse);
}


/* ==========================================================================
   37. INLINE CTA BANNER (Mid-page CTAs for service pages)
   ========================================================================== */

.cta-inline {
  background: var(--color-surface-3);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  margin: var(--space-10) 0;
  border: 1px solid var(--color-border-light);
}

.cta-inline p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  font-weight: 500;
  flex: 1;
}

.cta-inline .btn {
  flex-shrink: 0;
}

/* Dark section variant */
.section-dark .cta-inline,
.section-darker .cta-inline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .cta-inline p,
.section-darker .cta-inline p {
  color: var(--color-text-inverse);
}

@media (max-width: 767px) {
  .cta-inline {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   38. DATA PROOF BAR (First-party data callouts)
   ========================================================================== */

.proof-bar {
  background: var(--color-surface-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.proof-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.proof-stat strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

.proof-divider {
  width: 1px;
  height: 24px;
  background-color: var(--color-border-default);
}

@media (max-width: 767px) {
  .proof-bar .container {
    flex-direction: column;
    gap: var(--space-3);
  }

  .proof-divider {
    display: none;
  }
}

/* ==========================================================================
   39. ARTICLE META (Author, Date, Reading Time)
   ========================================================================== */

.article-meta {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-8);
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 767px) {
  .article-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ==========================================================================
   40. RELATED CONTENT SECTION
   ========================================================================== */

.related-content {
  border-top: 1px solid var(--color-border-light);
}

.related-content h3 {
  margin-bottom: var(--space-6);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: block;
  background: linear-gradient(135deg, var(--color-surface-1) 0%, rgba(248, 246, 243, 0.3) 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-evergreen-400));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.related-card:hover {
  box-shadow: 0 8px 16px rgba(15, 39, 68, 0.08), 0 20px 40px rgba(15, 39, 68, 0.12);
  transform: translateY(-4px);
  text-decoration: none;
}

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

.related-card .related-overline {
  font-size: var(--text-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-evergreen);
  margin-bottom: var(--space-2);
}

.related-card .related-title {
  font-family: var(--font-display);
  font-size: var(--text-heading-4);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.related-card .related-excerpt {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   41. REASSURANCE BADGES (Contact page)
   ========================================================================== */

.reassurance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-text-tertiary);
  padding: var(--space-3) 0;
}

.reassurance-badge svg,
.reassurance-badge .badge-icon {
  width: 16px;
  height: 16px;
  color: var(--color-evergreen);
  flex-shrink: 0;
}

.reassurance-badge-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   42. MOBILE TABLE HANDLING
   ========================================================================== */

.table-responsive {
  position: relative;
}

@media (max-width: 767px) {
  .table-responsive {
    margin: var(--space-4) calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
  }

  .table-responsive table {
    font-size: 14px;
  }

  /* Scroll hint gradient shadows */
  .table-responsive::before,
  .table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 1;
  }

  .table-responsive::before {
    left: 0;
    background: linear-gradient(to right, var(--color-ivory), transparent);
  }

  .table-responsive::after {
    right: 0;
    background: linear-gradient(to left, var(--color-ivory), transparent);
  }
}

/* ==========================================================================
   43. HERO UTILITY (Compact hero for FAQ/Contact pages)
   ========================================================================== */

.hero-utility {
  min-height: 35vh;
}

/* ==========================================================================
   44. FOUNDER SECTION (About page)
   ========================================================================== */

.founder-section {
  overflow: hidden; /* contain the float */
}

.founder-image {
  float: left;
  margin: 0 var(--space-6) var(--space-4) 0;
}

.founder-image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(26, 127, 100, 0.3);
  display: block;
  filter: grayscale(20%);
}

.founder-bio {
  overflow: visible; /* allow text to wrap around float */
}

.founder-bio p {
  color: var(--color-text-inverse-secondary);
  line-height: var(--leading-relaxed);
}

.founder-bio p:first-child {
  font-size: var(--text-body-large);
  color: var(--color-evergreen-300);
  margin-bottom: var(--space-6);
}

.founder-bio strong {
  color: var(--color-text-inverse);
}

@media (max-width: 767px) {
  .founder-image {
    float: none;
    display: flex;
    justify-content: center;
    margin: 0 0 var(--space-6) 0;
  }

  .founder-image img {
    width: 220px;
    height: 220px;
  }
}

/* ==========================================================================
   45. CONTACT FORM CLASSES
   ========================================================================== */

.contact-card {
  background: var(--color-white);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-info-box {
  background: var(--color-midnight);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.contact-info-box h3 {
  color: var(--color-text-inverse);
  margin-top: 0;
}

.contact-info-box p {
  color: var(--color-pewter);
}

.contact-info-box strong {
  color: var(--color-text-inverse);
}

.contact-info-box a {
  color: var(--color-evergreen);
  border-bottom: none;
}

/* ==========================================================================
   46. LIGHT-SECTION SCALE-GRID OVERRIDES
   ========================================================================== */

.section:not(.section-dark):not(.section-darker):not(.scale-bar) .scale-number {
  color: var(--color-text-primary);
}

.section:not(.section-dark):not(.section-darker):not(.scale-bar) .scale-label {
  color: var(--color-text-secondary);
}

.section:not(.section-dark):not(.section-darker):not(.scale-bar) .scale-item {
  border-right-color: var(--color-border-default);
}

/* ==========================================================================
   47. SCORECARD TOOL
   ========================================================================== */

.scorecard-tool {
  max-width: 800px;
  margin: 0 auto;
}

.scorecard-question {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--color-mist);
  transition: border-color var(--transition-normal);
}

.scorecard-question.answered {
  border-color: var(--color-evergreen);
}

.scorecard-question h3 {
  color: var(--color-midnight);
  margin: 0 0 6px 0;
  font-size: 16px;
}

.scorecard-question .dimension-number {
  color: var(--color-evergreen);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.scorecard-options {
  margin-top: 16px;
}

.scorecard-option {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}

.scorecard-option:hover {
  background: var(--color-surface-3);
}

.scorecard-option.selected {
  background: var(--color-evergreen-50);
  border-color: var(--color-evergreen);
}

.scorecard-option input[type="radio"] {
  margin-right: 12px;
  margin-top: 3px;
  accent-color: var(--color-evergreen);
}

.scorecard-option label {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-slate);
}

.scorecard-option .score-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.scorecard-option.selected .score-badge {
  background: var(--color-evergreen);
  color: var(--color-white);
}

.scorecard-progress {
  background: var(--color-mist);
  border-radius: 999px;
  height: 8px;
  margin: 30px 0;
  overflow: hidden;
}

.scorecard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-evergreen), var(--color-midnight));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.scorecard-progress-text {
  text-align: center;
  font-size: 14px;
  color: var(--color-pewter);
  margin-bottom: 10px;
}

.scorecard-submit {
  text-align: center;
  margin: 40px 0;
}

.scorecard-submit button {
  background: linear-gradient(135deg, var(--color-midnight), var(--color-midnight-500));
  color: var(--color-white);
  border: none;
  padding: 16px 48px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.scorecard-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.3);
}

.scorecard-submit button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.scorecard-results {
  display: none;
  background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-midnight-500) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--color-white);
  margin: 40px 0;
  text-align: center;
}

.scorecard-results.visible {
  display: block;
}

.results-score {
  font-size: 72px;
  font-weight: 800;
  margin: 20px 0 10px;
}

.results-tier {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.results-description {
  font-size: 15px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.results-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}

.results-dimension {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
}

.results-dimension .dim-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.results-dimension .dim-score {
  font-size: 24px;
  font-weight: 700;
}

.results-dimension .dim-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-top: 8px;
}

.results-dimension .dim-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.results-cta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.results-cta a {
  display: inline-block;
  background: var(--color-evergreen);
  color: var(--color-white);
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-normal);
}

.results-cta a:hover {
  background: var(--color-evergreen-hover);
  text-decoration: none;
  color: var(--color-white);
}

/* Scorecard page sections */
.scorecard-intro-text {
  max-width: 800px;
  margin: 0 auto 40px;
}

.scorecard-intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-graphite);
  margin-bottom: 20px;
}

.scorecard-intro-text p:first-child {
  font-size: 17px;
}

.scorecard-accelerate-section {
  max-width: 800px;
  margin: 60px auto 0;
}

.scorecard-accelerate-section h2 {
  color: var(--color-midnight);
  font-size: 28px;
  margin-bottom: 30px;
}

.tier-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.tier-card h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  color: var(--color-midnight);
}

.tier-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-graphite);
}

.tier-foundation { border-left-color: var(--color-cardinal); }
.tier-developing { border-left-color: #dd6b20; }
.tier-advanced { border-left-color: var(--color-evergreen); }
.tier-leading { border-left-color: var(--color-evergreen-700); }

.scorecard-faq-section {
  max-width: 800px;
  margin: 60px auto 0;
}

.scorecard-faq-section h2 {
  color: var(--color-midnight);
  font-size: 28px;
  margin-bottom: 30px;
}

.scorecard-faq-section .faq-item {
  margin-bottom: 28px;
}

.scorecard-faq-section .faq-item h3 {
  color: var(--color-midnight);
  font-size: 17px;
  margin: 0 0 10px 0;
}

.scorecard-faq-section .faq-item p {
  color: var(--color-graphite);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Scorecard breadcrumb override */
.scorecard-breadcrumb {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 13px;
}

.scorecard-breadcrumb a {
  color: var(--color-evergreen);
  text-decoration: none;
}

.scorecard-breadcrumb a:hover {
  text-decoration: underline;
}

.scorecard-breadcrumb span {
  color: var(--color-pewter);
  margin: 0 6px;
}

.scorecard-breadcrumb .current {
  color: var(--color-pewter);
}

@media (max-width: 640px) {
  .scorecard-question {
    padding: 20px;
  }

  .scorecard-option {
    padding: 8px 10px;
  }

  .scorecard-option label {
    font-size: 13px;
  }

  .scorecard-results {
    padding: 28px 20px;
  }

  .results-score {
    font-size: 52px;
  }

  .results-tier {
    font-size: 20px;
  }

  .results-dimensions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STICKY CTA BAR — Service pages only
   ========================================================================== */

.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(to bottom, rgba(18, 45, 77, 0.90), rgba(15, 39, 68, 0.92));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 -8px 32px rgba(0,0,0,0.28),
    0 -2px 8px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.sticky-cta-bar-text {
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sticky CTA label system: full (desktop), short (mobile), sub (subtitle) */
.sticky-label-short {
  display: none !important;
}

.sticky-label-sub {
  color: var(--color-text-inverse-tertiary);
  font-weight: 400;
  font-size: 13px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.01em;
}

.sticky-cta-bar .btn {
  flex-shrink: 0;
  padding: 10px 28px;
  font-size: 14px;
  border-radius: 24px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(26,127,100,0.25),
              0 2px 8px rgba(26,127,100,0.15);
}

.sticky-cta-bar .btn:hover {
  box-shadow: 0 0 0 1px rgba(26,127,100,0.35),
              0 4px 16px rgba(26,127,100,0.25);
  transform: translateY(-2px);
}

.sticky-cta-bar .btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 0 1px rgba(26,127,100,0.25),
              0 1px 4px rgba(26,127,100,0.15);
}

.sticky-cta-bar-close {
  background: none;
  border: none;
  color: var(--color-text-inverse-tertiary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  opacity: 0.5;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}

.sticky-cta-bar-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
  color: var(--color-text-inverse);
}

@media (max-width: 767px) {
  /* --- Bar surface: frosted glass + bottom-sheet radius + layered depth --- */
  .sticky-cta-bar {
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(18, 45, 77, 0.90), rgba(15, 39, 68, 0.92));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px 14px 0 0;
    box-shadow:
      0 -8px 32px rgba(0,0,0,0.28),
      0 -2px 8px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.06);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .sticky-label-full {
    display: none;
  }
  .sticky-label-short {
    display: block !important;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }
  .sticky-label-sub {
    display: none;
  }
  .sticky-action {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .sticky-cta-bar-text {
    text-align: left;
    white-space: normal;
    overflow: visible;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.2;
    padding-right: 14px;
    border-right: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
  }
  /* --- Button: pill shape + evergreen glow ring --- */
  .sticky-cta-bar .btn {
    white-space: normal;
    max-width: 136px;
    text-align: center;
    line-height: 1.3;
    padding: 10px 22px;
    font-size: 13px;
    min-width: auto;
    flex-shrink: 0;
    border-radius: 24px;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 1px rgba(26, 127, 100, 0.25), 0 2px 8px rgba(26, 127, 100, 0.15);
  }
  .sticky-cta-bar .btn:active {
    transform: scale(0.97);
  }
  /* --- Layout: 14px gap, center-aligned --- */
  .sticky-cta-bar-inner {
    gap: 14px;
    align-items: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  /* --- Close: de-emphasized (small, dim), prominent only on interaction --- */
  .sticky-cta-bar-close {
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    border-radius: 50%;
    opacity: 0.4;
    margin-left: -4px;
  }
  .sticky-cta-bar-close:hover,
  .sticky-cta-bar-close:active {
    opacity: 1;
    background: rgba(255,255,255,0.08);
  }
}

@media (max-width: 425px) {
  .sticky-cta-bar {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }
  .sticky-cta-bar-inner {
    gap: 10px;
  }
  .sticky-cta-bar-text {
    padding-right: 10px;
  }
  .sticky-label-short {
    font-size: 16px;
  }
  .sticky-action {
    font-size: 10px;
    margin-bottom: 1px;
  }
  .sticky-cta-bar .btn {
    max-width: 116px;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 20px;
  }
  .sticky-cta-bar-close {
    min-width: 26px;
    min-height: 26px;
    font-size: 16px;
    margin-left: -2px;
  }
}

/* ==========================================================================
   MOBILE POLISH — Tier 2 & 3 optimizations
   ========================================================================== */

/* --- Contact form name grid (replaces inline style) --- */
.form-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 767px) {
  .form-name-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Hero section mobile padding --- */
@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--nav-height-mobile) + 48px);
  }
}

/* --- Hero CTAs stack on small phones --- */
@media (max-width: 425px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* --- FAQ accordion padding reduction --- */
@media (max-width: 767px) {
  details.faq-item summary {
    padding: 16px 0;
  }
}

@media (max-width: 425px) {
  details.faq-item summary {
    padding: 12px 0;
  }
}

/* --- Table cell padding + min-width reduction --- */
@media (max-width: 767px) {
  .table-responsive table {
    min-width: 380px;
  }

  th {
    padding: 10px 12px;
  }

  td {
    padding: 10px 12px;
  }
}

/* --- Footer logo reduction --- */
@media (max-width: 767px) {
  .footer-brand .logo img {
    height: 70px;
  }
}

/* --- Contact card padding reduction --- */
@media (max-width: 767px) {
  .contact-card {
    padding: var(--space-6);
  }
}

/* --- Scale bar number tightening --- */
@media (max-width: 425px) {
  .scale-number {
    font-size: 42px;
  }
}

/* --- Timeline left padding --- */
@media (max-width: 425px) {
  .timeline-item {
    padding-left: 40px;
  }
}

/* --- Card padding reduction --- */
@media (max-width: 425px) {
  .feature-card,
  .capability-card,
  .service-card {
    padding: 20px;
  }
}

/* --- Overline font size --- */
@media (max-width: 425px) {
  .overline,
  .hero-overline {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}
