/* ============================================================
   M-and-E — Stitch design system layer (canonical tokens)
   Source of truth: docs/DESIGN.md (Nexus Material-3 Celestial Sapphire)
   Stitch Project: projects/6240076440119874024
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces — wider tonal range for visible hierarchy */
  --color-bg: #080f1e;
  --color-bg-subtle: #0e1729;
  --color-surface: #162038;
  --color-surface-elevated: #1e2d4a;
  --color-surface-hover: #283a5c;

  /* Brand & Telemetry Palette (Nexus Sapphire + Aurora) */
  --color-primary: #6366f1;
  --nexus-primary: #6366f1;
  --nexus-primary-container: #a3a6ff;
  --nexus-primary-dim: #494bd6;
  --nexus-on-primary: #ffffff;
  --nexus-secondary: #7bd0ff;
  --nexus-tertiary: #4edea3;
  --nexus-error: #f87171;
  --color-orange: #a3a6ff;
  --color-orange-hover: #b9bbff;
  --color-orange-dark: #6063ee;
  --color-orange-glow: rgba(99, 102, 241, 0.35);
  --color-sky: #7bd0ff;
  --color-sky-bright: #38bdf8;
  --color-sky-light: #bae6fd;
  --color-sky-glow: rgba(123, 208, 255, 0.22);
  --color-success: #4edea3;

  /* Text */
  --color-text: #dee5ff;
  --color-text-secondary: #a3aac4;
  --color-text-muted: #94a3b8;

  /* Ghost Hairlines & Airy Frosted Crystal Glass */
  --border-subtle: rgba(163, 166, 255, 0.18);
  --border-default: rgba(163, 166, 255, 0.28);
  --border-focus: #a3a6ff;
  --surface-glass: rgba(22, 32, 56, 0.75);
  --nexus-glass-blur: 24px;
  --nexus-glass-border: rgba(163, 166, 255, 0.20);
  --nexus-hud-bg: rgba(22, 32, 56, 0.75);
  --nexus-hud-bg-strong: rgba(14, 23, 41, 0.92);

  /* Type + radii + 4K fluid container */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --container-max: min(94vw, 2400px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Fluid typography — sane scale (overrides base.css) */
  --fluid-4xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --fluid-3xl: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  --fluid-2xl: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem);

  /* Section spacing variety */
  --section-pad-tight: clamp(2rem, 4vw, 3rem);
  --section-pad-normal: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --section-pad-loose: clamp(3.5rem, 3rem + 4vw, 5rem);
  --space-fluid-6: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

/* ---------- Section rhythm & visual variety ---------- */
.section, section { padding: var(--section-pad-normal) 0 !important; }
.hero { padding: var(--section-pad-loose) 0 var(--section-pad-normal) !important; }
.proof-band { padding: var(--section-pad-tight) 0 !important; }
.mne-stats { padding: var(--section-pad-tight) 0 !important; }
.nominated-strip { padding: var(--section-pad-normal) 0 !important; }
.footer { padding: var(--section-pad-normal) 0 var(--section-pad-tight) !important; }

/* Alternate section surfaces for visual rhythm */
.mne-visual { background: var(--color-surface) !important; }
.mne-systems { background: var(--color-bg-subtle) !important; }
.estimator-section { background: var(--color-surface) !important; }
.comparison-section { background: var(--color-bg-subtle) !important; }
.about-section { background: var(--color-surface) !important; }
.cta { background: var(--color-surface-elevated) !important; }
.testimonials { background: var(--color-bg-subtle) !important; }
.services-section { background: var(--color-bg) !important; }

/* Section separators — subtle borders between sections */
.section + .section,
section + section {
  border-top: 1px solid rgba(163, 166, 255, 0.08) !important;
}
.nominated-strip,
.mne-stats {
  border-top: 1px solid rgba(163, 166, 255, 0.08) !important;
  border-bottom: 1px solid rgba(163, 166, 255, 0.08) !important;
}

/* Ensure all sections have explicit backgrounds (no transparency) */
.section { background: var(--color-bg) !important; }
.section:nth-child(even) { background: var(--color-bg-subtle) !important; }
.proof-band { background: var(--color-bg) !important; }
.hero-evidence { background: var(--color-bg-subtle) !important; }

/* ---------- base ---------- */
html {
  background: var(--color-bg);
  color-scheme: dark;
  accent-color: var(--nexus-primary);
}
body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .hero h1, .section-title {
  font-family: var(--font-heading) !important;
  color: var(--color-text) !important;
  letter-spacing: -0.02em;
}
h1 { font-weight: 700; line-height: 1.06; }
h2, .section-title { font-weight: 650; }
p, li, td, th, label, span, .hero-description, .section-subtitle { color: var(--color-text-secondary); }
a { color: var(--nexus-secondary); text-decoration-color: rgba(123, 208, 255, .4); }
a:hover { color: var(--color-text); }

/* ---------- chrome ---------- */
.header, .site-header, header.header {
  background: var(--surface-glass) !important;
  -webkit-backdrop-filter: blur(var(--nexus-glass-blur));
  backdrop-filter: blur(var(--nexus-glass-blur));
  border-bottom: 1px solid var(--border-subtle) !important;
}
.nav-link, .nav-menu a { color: var(--color-text-secondary) !important; font-weight: 500; }
.nav-link:hover, .nav-menu a:hover { color: var(--nexus-primary-container) !important; }
.nav-link.active, .nav-menu a.active { color: var(--nexus-secondary) !important; }
.logo-text, .logo { color: var(--color-text) !important; font-family: var(--font-heading); font-weight: 700; }
.footer { background: var(--color-bg-subtle) !important; border-top: 1px solid var(--border-subtle) !important; }
.footer h3, .footer h4 { color: var(--color-text) !important; }
.footer a, .footer p, .footer li { color: var(--color-text-muted) !important; }
.footer a:hover { color: var(--nexus-secondary) !important; }

/* ---------- cert bar: tonal, not a hard strip ---------- */
.cert-bar {
  background: var(--color-bg-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--color-text-muted) !important;
  font-family: var(--font-body);
  letter-spacing: .02em;
}
.cert-bar span { color: var(--color-text-muted) !important; }
.cert-bar a { color: var(--nexus-secondary) !important; }

/* ---------- hero ---------- */
.hero {
  background-color: var(--color-bg-subtle) !important;
  background-image:
    radial-gradient(1200px 620px at 8% -20%, rgba(99, 102, 241, .22), transparent 62%),
    radial-gradient(900px 520px at 95% 0%, rgba(123, 208, 255, .12), transparent 58%) !important;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-eyebrow, .mne-kicker {
  color: var(--nexus-secondary) !important;
  font-family: var(--font-body) !important;
  letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px;
}
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) !important; line-height: 1.1 !important; }
.hero-subtitle { color: var(--color-text) !important; font-weight: 600; }
.hero-description { color: var(--color-text-secondary) !important; max-width: 60ch; }
.hero-proof-pill {
  background: var(--color-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--color-text-secondary) !important;
  border-radius: var(--radius-md);
}
.hero-proof-icon { color: var(--nexus-tertiary) !important; }

/* ---------- buttons ---------- */
.btn-primary, .btn.btn-primary {
  background: var(--nexus-primary) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-heading); font-weight: 600;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .22);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover, .btn.btn-primary:hover { background: var(--nexus-primary-container) !important; transform: translateY(-1px); }
.btn-secondary, .btn.btn-secondary {
  background: transparent !important;
  color: var(--color-text) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--nexus-primary-container) !important; color: var(--nexus-primary-container) !important; }

/* ---------- cards: tonal surfaces, no hard borders, 12px radius ---------- */
.service-card, .card, .feature-box, .value-card, .process-step-card,
.nominated-item, .pricing-table-wrapper, .faq-item, .cta-section,
.estimator-card, .hero-estimator-card, .calc-panel, .calc-form, .calc-results {
  background: var(--color-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.service-card:hover, .feature-box:hover, .value-card:hover, .process-step-card:hover {
  background: var(--color-surface-elevated) !important;
  transform: translateY(-2px);
  transition: background .18s ease, transform .18s ease;
}
.service-icon, .value-icon { color: var(--nexus-secondary) !important; filter: saturate(.9); }
.card-price-pill, .price-pill, .price-from, .price-tag { color: var(--nexus-tertiary) !important; font-weight: 600; }
.section { background: var(--color-bg); }
.section:nth-of-type(even), .mne-systems, .mne-gallery { background: var(--color-bg-subtle) !important; }
.section-title { color: var(--color-text) !important; }
.section-subtitle { color: var(--color-text-muted) !important; }

/* ---------- stats + schematics ---------- */
.mne-stats { background: var(--color-bg-subtle); border-color: var(--border-subtle); }
.mne-stat-num { color: var(--color-text); }
.mne-stat-num span { color: var(--nexus-secondary) !important; }
.mne-stat-label { color: var(--color-text-muted) !important; }
.mne-system { background: var(--color-surface) !important; border-color: var(--border-subtle) !important; border-radius: var(--radius-lg); }
.mne-system figcaption strong { color: var(--color-text) !important; }
.mne-system figcaption span { color: var(--color-text-muted) !important; }

/* ---------- tables ---------- */
table, .pricing-table, .comparison-table, .calc-table { border-collapse: collapse; }
th { background: var(--color-surface-elevated) !important; color: var(--color-text) !important; font-family: var(--font-heading); font-weight: 600; }
td, th { border-color: var(--border-subtle) !important; }
tr:nth-child(even) td { background: rgba(28, 31, 41, .45); }
td { color: var(--color-text-secondary) !important; }
.pricing-table td:first-child, .comparison-table td:first-child { color: var(--color-text) !important; }

/* ---------- forms ---------- */
input, select, textarea, .form-input, .form-select {
  background: var(--color-surface-elevated) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 14px;
  font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px rgba(128, 131, 255, .22);
}
label, .form-label { color: var(--color-text-secondary) !important; font-weight: 500; }

/* ---------- alerts / notes ---------- */
.deadline-box, .alert, .notice, .pricing-note, .calc-note, .disclaimer {
  background: var(--color-surface) !important;
  border-left: 3px solid var(--nexus-primary) !important;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary) !important;
}
.disclaimer, .pricing-note, .calc-note { color: var(--color-text-muted) !important; font-size: 13px; }

/* ---------- misc legacy HUD remnants ---------- */
[class*="orange"], [class*="hud"] { --local-accent: var(--nexus-primary); }
.estimator-badge, .badge { background: rgba(99, 102, 241, .16) !important; color: var(--nexus-primary-container) !important; border: 1px solid rgba(99, 102, 241, .3) !important; border-radius: 999px; }
.mne-hero-bg { display: none !important; }

/* ==========================================================================
   ACCESSIBILITY PHASE 2 — WCAG 2.2 AA Dark-First Nexus Contrast & Focus Layer
   ========================================================================== */

:root:root {
  --color-text-muted: #94a3b8;
}

:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.preset-chip:focus-visible,
.estimator-preset-btn:focus-visible,
.hamburger:focus-visible {
  outline: 3px solid #38bdf8 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

p a:not(.btn):not(.cta-button):not(.card-cta-link):not(.service-link):not(.nav-link):not(.header-cta):not(.logo),
li a:not(.btn):not(.cta-button):not(.card-cta-link):not(.service-link):not(.nav-link):not(.header-cta):not(.logo),
td a:not(.btn):not(.cta-button):not(.card-cta-link):not(.service-link):not(.nav-link):not(.header-cta),
th a:not(.btn):not(.cta-button):not(.card-cta-link):not(.service-link):not(.nav-link):not(.header-cta),
dd a:not(.btn), blockquote a:not(.btn), .prose a:not(.btn),
.footer a:not(.logo):not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Dark-First Table Text Contrast */
th, .pricing-table th, .comparison-table th {
  color: #f8fafc !important;
}
td, .pricing-table td, .comparison-table td {
  color: #cbd5e1 !important;
}
tbody tr:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}
tbody tr:hover td, tbody tr:hover th {
  color: #ffffff !important;
}

.hero-estimator-card .estimator-slider-label strong,
.estimator-slider-label strong {
  color: #38bdf8 !important;
}

#form-feedback,
#form-feedback.form-error {
  color: #f87171 !important;
}
.badge.success, .pill.success {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

@media (prefers-reduced-transparency: reduce) {
  .service-card,
  .calc-card,
  .hero-estimator-card,
  .kpi-card,
  .price-card,
  .testimonial-card,
  .faq-item,
  .service-kpi-strip,
  .header,
  .main-header {
    background: #111e36 !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 3px solid #38bdf8 !important;
  outline-offset: 2px !important;
}

/* --- 8. Reduced motion. Existing rules in style.css cover the legacy layers;
   this block also neutralises the light-theme card lifts/transforms and any
   transition added later in the cascade. JS-driven motion (count-up, tilt,
   reveal observers in js/main.js) cannot be switched off from CSS — see the
   audit report, §6. */
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .service-card,
  .feature-box,
  .value-card,
  .process-step-card,
  .mne-system,
  .btn-primary,
  .header-cta,
  .service-card:hover,
  .feature-box:hover,
  .value-card:hover,
  .process-step-card:hover,
  .mne-system:hover,
  .btn-primary:hover,
  .header-cta:hover {
    transform: none !important;
  }
  .reveal,
  .reveal.is-visible,
  body.js-motion-ready .reveal:not(.is-visible),
  .is-visible,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   DESIGN 2026 LAYER — Nexus Celestial Sapphire overrides (merged from design-2026.css)
   Cascade order guarantees these override stitch-system tokens above.
   ========================================================================== */

/* ==========================================================================
   design-2026.css — M&E Solutions Canonical 2026 Nexus Celestial Sapphire
   & Multi-Surface 4K / TV Fluid Architecture
   Source of truth: docs/DESIGN.md (Nexus Material-3 Celestial Sapphire)
   Enforces:
   1. Tonal Dark-First Stack (#080f1e -> #0e1729 -> #162038 -> #1e2d4a)
   2. Luminous Sapphire Indigo (#6366f1 / #a3a6ff) + Aurora Cyan/Mint (#7bd0ff / #4edea3)
   3. Edge-to-Edge Fluid Scaling (1080p -> 1440p -> 4K 3840px -> TV CINEMATIC)
   4. GPU-Accelerated Scroll Reveals, 3D Pointer Tilt & D-Pad Spatial Navigation
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Core Nexus Tonal Surface Hierarchy (No-Line Rule) */
  --color-bg: #080f1e;
  --color-bg-subtle: #0e1729;
  --color-surface: #162038;
  --color-surface-elevated: #1e2d4a;
  --color-surface-hover: #1f2b49;
  --surface-background: #080f1e;
  --surface-sunken: #0e1729;
  --surface-elevated: #162038;
  --surface-glass: rgba(15, 25, 48, 0.68);
  --nexus-hud-bg: rgba(15, 25, 48, 0.68);
  --nexus-hud-bg-strong: rgba(9, 19, 40, 0.88);
  --nexus-glass-blur: 24px;
  --nexus-glass-border: rgba(163, 166, 255, 0.14);

  /* High-Contrast Typography on Dark Surfaces (WCAG 2.2 AA > 7:1) */
  --color-text: #dee5ff;
  --color-text-secondary: #a3aac4;
  --color-text-muted: #94a3b8;
  --color-navy: #dee5ff;
  --color-navy-dark: #080f1e;
  --color-navy-light: #1e2d4a;
  --color-white: #162038;
  --color-pure-white: #ffffff;

  /* Brand & Engineering Telemetry Accents (Sapphire Indigo + Aurora Cyan/Mint) */
  --color-primary: #6366f1;
  --nexus-primary: #6366f1;
  --nexus-primary-container: #a3a6ff;
  --nexus-primary-dim: #494bd6;
  --nexus-on-primary: #ffffff;
  --nexus-secondary: #7bd0ff;
  --nexus-tertiary: #4edea3;
  --nexus-error: #f87171;

  --color-orange: #a3a6ff;
  --color-orange-hover: #b9bbff;
  --color-orange-dark: #6063ee;
  --color-orange-glow: rgba(99, 102, 241, 0.35);

  --color-sky: #7bd0ff;
  --color-sky-bright: #38bdf8;
  --color-sky-deep: #38bdf8;
  --color-sky-light: #bae6fd;
  --color-sky-glow: rgba(123, 208, 255, 0.22);
  --color-link: #a3a6ff;
  --color-link-hover: #65fde6;
  --color-success: #4edea3;
  --color-success-bg: rgba(78, 222, 163, 0.14);
  --color-success-border: rgba(78, 222, 163, 0.32);
  --color-warning: #fbbf24;

  /* Ghost Hairlines (Subtle Tonal Separation) */
  --border-subtle: rgba(163, 166, 255, 0.10);
  --border-default: rgba(163, 166, 255, 0.18);
  --border-strong: rgba(163, 166, 255, 0.30);
  --border-focus: #65fde6;

  /* Fluid Typography & Radii */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 18px;
  --density-scale: 1;
  --container-max: min(94vw, 2400px);
}

/* ==========================================================================
   1. Edge-to-Edge Fluid Screen Architecture (Zero Empty 4K / Ultra-Wide Gutters)
   ========================================================================== */
html {
  background: #080f1e;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: transparent !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Ambient Aurora Motion Field — GPU-accelerated gradient drift behind content
   ========================================================================== */
body::before {
  content: '';
  position: fixed;
  inset: -30vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 30vmax at 18% 20%, rgba(99, 102, 241, 0.20), transparent 62%),
    radial-gradient(34vmax 26vmax at 82% 12%, rgba(101, 253, 230, 0.14), transparent 60%),
    radial-gradient(38vmax 30vmax at 70% 88%, rgba(96, 99, 238, 0.18), transparent 62%),
    radial-gradient(30vmax 22vmax at 30% 70%, rgba(78, 222, 163, 0.10), transparent 60%);
  filter: blur(28px);
  animation: aurora-drift 32s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(3%, -2.5%, 0) scale(1.08) rotate(1.2deg); }
  100% { transform: translate3d(-2.5%, 3%, 0) scale(1.03) rotate(-0.8deg); }
}

/* Seamless cross-page View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Film grain — subtle fixed noise overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
}

/* Base fluid container (min(94vw, 2400px) baseline, scales up to 3520px on 4K) */
.container,
.header .container,
.hero .container,
.service-kpi-strip .container,
.mne-stats .container,
.mne-visual .container,
.mne-service-visual .container,
.footer .container,
.map-section > h2,
.map-container,
.hero:not(:has(.hero-estimator-card)) .container {
  width: min(94vw, 2400px);
  max-width: min(94vw, 2400px) !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 2.4vw, 3rem) !important;
}

@media (min-width: 1920px) {
  .container,
  .header .container,
  .hero .container,
  .service-kpi-strip .container,
  .mne-stats .container,
  .mne-visual .container,
  .mne-service-visual .container,
  .footer .container,
  .map-section > h2,
  .map-container,
  .hero:not(:has(.hero-estimator-card)) .container {
    width: min(94vw, 2400px) !important;
    max-width: 2400px !important;
  }
}

@media (min-width: 2560px) {
  .container,
  .header .container,
  .hero .container,
  .service-kpi-strip .container,
  .mne-stats .container,
  .mne-visual .container,
  .mne-service-visual .container,
  .footer .container,
  .map-section > h2,
  .map-container,
  .hero:not(:has(.hero-estimator-card)) .container {
    width: min(94vw, 3000px) !important;
    max-width: 3000px !important;
  }
}

@media (min-width: 3440px) {
  .container,
  .header .container,
  .hero .container,
  .service-kpi-strip .container,
  .mne-stats .container,
  .mne-visual .container,
  .mne-service-visual .container,
  .footer .container,
  .map-section > h2,
  .map-container,
  .hero:not(:has(.hero-estimator-card)) .container {
    width: min(94vw, 3520px) !important;
    max-width: 3520px !important;
  }
}

/* Auto-fluid multi-column grids across all viewports (no orphan gaps on 4K) */
.services-grid,
.nominated-grid,
.process-grid,
.value-grid,
.benefits-grid,
.blog-grid,
.testimonials-grid,
.kpi-grid,
.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: clamp(1.1rem, 1.8vw, 2rem) !important;
}

@media (min-width: 2560px) {
  .services-grid,
  .nominated-grid,
  .process-grid,
  .value-grid,
  .benefits-grid,
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)) !important;
  }
}

/* ==========================================================================
   2. 10-Foot TV & Cinematic Surface Mode ([data-surface="CINEMATIC"])
   ========================================================================== */
html[data-surface="CINEMATIC"] {
  --density-scale: 1.22;
  font-size: clamp(17px, 1.05vw, 22px);
}

html[data-surface="CINEMATIC"] body {
  padding-inline: max(24px, 3vw);
}

html[data-surface="CINEMATIC"] :is(.btn, button, a.nav-link, input, select, .estimator-preset-btn, .scope-toggle-chip) {
  min-height: 54px;
}

html[data-surface="CINEMATIC"] :focus-visible,
[data-spatial-focus="true"] {
  outline: 3px solid #65fde6 !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 6px rgba(101, 253, 230, 0.20), 0 18px 44px rgba(99, 102, 241, 0.40) !important;
}

/* ==========================================================================
   3. Glassmorphic Sticky Header & Telemetry Bar
   ========================================================================== */
.cert-bar {
  background: rgba(9, 19, 40, 0.85) !important;
  border-bottom: 1px solid rgba(163, 166, 255, 0.10) !important;
  color: #a3aac4 !important;
  font-size: 0.8125rem;
  padding: 0.45rem clamp(1rem, 2.2vw, 2.5rem) !important;
}
.cert-bar span { color: #a3aac4 !important; }
.cert-bar a { color: #7bd0ff !important; font-weight: 600; }
.cert-bar a:hover { color: #65fde6 !important; }

.header, .site-header, header.header, .main-header {
  background: rgba(9, 19, 40, 0.72) !important;
  -webkit-backdrop-filter: saturate(160%) blur(24px) !important;
  backdrop-filter: saturate(160%) blur(24px) !important;
  border-bottom: 1px solid rgba(163, 166, 255, 0.12) !important;
  box-shadow: 0 12px 36px rgba(6, 14, 32, 0.45) !important;
}

body header .logo, body header .logo-text, body .logo, body .logo-text, body #header .logo-text {
  color: #dee5ff !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.nav-menu { gap: 0.35rem; }
.nav-link, .nav > a:not(.logo):not(.btn) {
  color: #a3aac4 !important;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  color: #ffffff !important;
  background: rgba(163, 166, 255, 0.10) !important;
}
.nav-link.active, .nav-link[aria-current="page"],
a.nav-link.active, .nav .nav-link.active, .header .nav-link.active,
a.nav-link[aria-current="page"] {
  color: #c6fff3 !important;
  background: rgba(101, 253, 230, 0.12) !important;
  border: 1px solid rgba(101, 253, 230, 0.26) !important;
}

@media (min-width: 1061px) {
  .hamburger { display: none; }
}

/* ==========================================================================
   4. Split Hero — Edge-to-Edge Fluid & Above-the-Fold Live Telemetry
   ========================================================================== */
.hero, .hero-section, section.hero {
  position: relative;
  background-color: #0e1729 !important;
  background-image:
    radial-gradient(1200px 560px at 10% -15%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(1000px 480px at 90% 10%, rgba(101, 253, 230, 0.12), transparent 58%) !important;
  padding: clamp(2rem, 3.6vw, 4rem) 0 !important;
  min-height: auto !important;
}

.hero .hero-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, 0.8fr) !important;
  gap: clamp(1.75rem, 3.2vw, 4rem) !important;
  align-items: center !important;
}

.hero .hero-copy {
  max-width: none !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero .hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: rgba(101, 253, 230, 0.10) !important;
  border: 1px solid rgba(101, 253, 230, 0.25) !important;
  color: #c6fff3 !important;
  border-radius: 999px;
  font-family: var(--font-mono) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.35rem 0.9rem !important;
  margin-bottom: 1rem !important;
}
.hero .hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4edea3 !important;
  box-shadow: 0 0 12px #4edea3;
}

.hero h1, .hero-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(120deg, #ffffff 0%, #dee5ff 48%, #7bd0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #dee5ff !important;
  max-width: 24ch !important;
  margin: 0 0 0.85rem !important;
}

.hero-subtitle {
  color: #7bd0ff !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  max-width: 66ch !important;
  margin: 0 0 0.75rem !important;
}

.hero-description, .hero .hero-lede {
  color: #a3aac4 !important;
  font-size: clamp(0.98rem, 1.15vw, 1.18rem) !important;
  line-height: 1.62 !important;
  max-width: 68ch !important;
  margin: 0 0 1.25rem !important;
}

.hero-cta, .hero .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 1.15rem !important;
}

.hero-proof-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 0.65rem !important;
  margin: 0 0 1rem !important;
}

.hero-proof-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem !important;
  background: rgba(20, 31, 56, 0.68) !important;
  border: 1px solid rgba(163, 166, 255, 0.14) !important;
  border-radius: 12px !important;
  color: #dee5ff !important;
  font-size: 0.84rem !important;
  font-weight: 500;
}
.hero-proof-icon {
  color: #4edea3 !important;
  font-weight: 700;
}

/* Hero Discipline Schematic Strip (Vector CAD Previews — No Pixelated Thumbnail Duplication) */
.hero-media {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100%;
  margin: 0.9rem 0 0 !important;
}
.hero-media-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: rgba(15, 25, 48, 0.72);
  border: 1px solid rgba(163, 166, 255, 0.14);
  border-radius: 12px;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), border-color 280ms ease;
}
.hero-media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 208, 255, 0.38);
}
.hero-media img {
  width: 100%;
  height: clamp(82px, 7.5vw, 112px) !important;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(163, 166, 255, 0.18) !important;
  border-radius: 10px !important;
  background: #0e1729;
}
.hero-media figcaption {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  color: #94a3b8 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-trust {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem !important;
  margin: 0.95rem 0 0 !important;
  padding-top: 0.85rem !important;
  border-top: 1px solid rgba(163, 166, 255, 0.12) !important;
  color: #a3aac4 !important;
  font-size: 0.82rem !important;
}
.hero-trust span::before {
  content: "●";
  margin-inline-end: 0.45rem;
  color: #4edea3;
  font-size: 0.65em;
}

/* Right-hand Hero Live Telemetry Panel */
.hero-panel {
  background: linear-gradient(160deg, rgba(25, 37, 64, 0.76) 0%, rgba(15, 25, 48, 0.88) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(163, 166, 255, 0.20) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(6, 14, 32, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  padding: clamp(1.35rem, 2.2vw, 2rem) !important;
  color: #dee5ff !important;
}
.hero-panel-kicker {
  margin: 0 0 0.85rem !important;
  color: #7bd0ff !important;
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}
.hero-panel-slider-wrap {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(9, 19, 40, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(163, 166, 255, 0.12);
}
.hero-panel-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #a3aac4;
  margin-bottom: 0.35rem;
}
.hero-panel-slider-label strong {
  font-family: var(--font-mono);
  color: #7bd0ff;
  font-size: 1.05rem;
}
.hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(163, 166, 255, 0.10);
  color: #a3aac4 !important;
  font-size: 0.92rem;
}
.hero-panel-row em { color: #94a3b8 !important; font-style: normal; }
.hero-panel-row strong { color: #dee5ff !important; font-family: var(--font-mono) !important; font-size: 1.22rem; }
.hero-panel-row .strike { color: #f87171 !important; text-decoration: line-through; }
.hero-panel-save { margin: 0.95rem 0 0.4rem !important; color: #dee5ff !important; font-size: 0.95rem !important; }
.hero-panel-save strong { color: #4edea3 !important; font-family: var(--font-mono) !important; font-size: 1.38rem; }
.hero-panel-note { color: #94a3b8 !important; font-size: 0.78rem !important; line-height: 1.5 !important; }
.hero-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: #a3a6ff !important;
  font-weight: 600;
  font-size: 0.88rem;
}
.hero-panel-link:hover { color: #65fde6 !important; }

/* ==========================================================================
   5. Full-Width 2-Column Parametric Estimator & Voice/AI Workbench
   ========================================================================== */
.estimator-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .estimator-workbench-grid {
    grid-template-columns: 1fr;
  }
}

.hero-estimator-card, .estimator-card, .estimator-scope-panel {
  background: linear-gradient(165deg, rgba(25, 37, 64, 0.72) 0%, rgba(15, 25, 48, 0.88) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(163, 166, 255, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(6, 14, 32, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: clamp(1.25rem, 2vw, 1.85rem) !important;
  color: #dee5ff !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-estimator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem !important;
}
.hero-estimator-header h2, .estimator-scope-panel h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #dee5ff !important;
  margin: 0 0 0.25rem !important;
}
.hero-estimator-header p, .estimator-scope-panel .scope-sub {
  font-size: 0.84rem !important;
  color: #a3aac4 !important;
  margin: 0 !important;
}

.estimator-badge, .badge, .pill {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c0c1ff !important;
  border: 1px solid rgba(163, 166, 255, 0.32) !important;
  border-radius: 999px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  padding: 0.28rem 0.75rem !important;
  white-space: nowrap;
}

.estimator-presets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  margin-bottom: 0.9rem !important;
}

.estimator-preset-btn, .preset-chip, .estimator-presets button {
  background: rgba(9, 19, 40, 0.72) !important;
  border: 1px solid rgba(163, 166, 255, 0.16) !important;
  color: #a3aac4 !important;
  border-radius: 10px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 0.55rem 0.75rem !important;
  cursor: pointer;
  transition: all 0.18s ease;
}
.estimator-preset-btn:hover, .preset-chip:hover {
  border-color: #7bd0ff !important;
  color: #ffffff !important;
  background: rgba(123, 208, 255, 0.12) !important;
}
.estimator-preset-btn.active, .preset-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(96, 99, 238, 0.20)) !important;
  border-color: #a3a6ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.28) !important;
}

.estimator-slider-row {
  margin-bottom: 0.85rem !important;
}
.estimator-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #a3aac4 !important;
  font-size: 0.86rem !important;
  margin-bottom: 0.4rem !important;
}
.estimator-slider-label strong {
  color: #7bd0ff !important;
  font-family: var(--font-mono) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

input[type="range"].estimator-range, .estimator-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(163, 166, 255, 0.20) !important;
  accent-color: #6366f1;
  cursor: pointer;
}
.estimator-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(163, 166, 255, 0.22);
}
.estimator-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #a3a6ff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.75);
}

.estimator-comparison-box {
  background: rgba(6, 14, 32, 0.68) !important;
  border: 1px solid rgba(163, 166, 255, 0.14) !important;
  border-radius: 14px !important;
  padding: 0.8rem 1rem !important;
  margin-bottom: 0.85rem !important;
}
.estimator-comp-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0 !important;
  font-size: 0.85rem !important;
}
.estimator-comp-line.jct-route { color: #94a3b8 !important; }
.estimator-comp-line.jct-route span:last-child {
  color: #f87171 !important;
  text-decoration: line-through;
  font-family: var(--font-mono) !important;
  font-weight: 600;
}
.estimator-comp-line.direct-route { color: #dee5ff !important; font-weight: 600; }
.estimator-comp-line.direct-route span:last-child {
  color: #dee5ff !important;
  font-family: var(--font-mono) !important;
  font-weight: 700;
}
.estimator-savings-Highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem !important;
  margin-top: 0.35rem !important;
  border-top: 1px solid rgba(163, 166, 255, 0.12) !important;
  color: #4edea3 !important;
  font-weight: 700;
  font-size: 0.88rem !important;
}

.estimator-milestones {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  margin-bottom: 0.85rem !important;
}
.milestone-box {
  background: rgba(15, 25, 48, 0.78) !important;
  border: 1px solid rgba(163, 166, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 0.55rem 0.5rem !important;
  text-align: center;
}
.milestone-pct {
  display: block;
  font-size: 0.7rem !important;
  font-weight: 700;
  text-transform: uppercase;
  color: #7bd0ff !important;
  letter-spacing: 0.04em;
}
.milestone-val {
  display: block;
  font-family: var(--font-mono) !important;
  font-size: 1rem !important;
  font-weight: 700;
  color: #dee5ff !important;
  margin: 0.12rem 0;
}
.milestone-lbl {
  display: block;
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
}

.estimator-footer-note {
  margin: 0.5rem 0 0 !important;
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  text-align: center;
}

/* Right-hand Scope Matrix + Voice & AI Advisor Panel */
.scope-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0;
}
.scope-toggle-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(9, 19, 40, 0.72);
  border: 1px solid rgba(163, 166, 255, 0.16);
  color: #a3aac4;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.scope-toggle-chip[aria-pressed="true"] {
  background: rgba(78, 222, 163, 0.12);
  border-color: rgba(78, 222, 163, 0.40);
  color: #dee5ff;
}
.scope-toggle-chip strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #4edea3;
}

.voice-ai-terminal {
  background: rgba(6, 14, 32, 0.76);
  border: 1px solid rgba(163, 166, 255, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-top: 0.65rem;
}
.voice-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.voice-ai-header span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7bd0ff;
}
.voice-ai-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.voice-mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(163, 166, 255, 0.35);
  color: #dee5ff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.voice-mic-btn[data-listening="true"] {
  background: rgba(248, 113, 113, 0.24);
  border-color: #f87171;
  color: #ffffff;
}
.voice-waveform-canvas {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 8px;
  background: rgba(9, 19, 40, 0.85);
  margin-bottom: 0.55rem;
}
.ai-stream-output {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #dee5ff;
  background: rgba(15, 25, 48, 0.65);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  min-height: 3.2rem;
}
.proposal-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

/* ==========================================================================
   6. Buttons, Cards, Sections, Tables, Forms & Schematics (Sapphire + Aurora)
   ========================================================================== */
.header-cta, .btn-primary, .btn.btn-primary, button[type="submit"], .cta-button {
  background: linear-gradient(135deg, #a3a6ff 0%, #6063ee 100%) !important;
  color: #080d26 !important;
  border: 1px solid rgba(192, 193, 255, 0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(96, 99, 238, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}
:where(.header-cta, .btn-primary, .btn.btn-primary, button[type="submit"], .cta-button):hover:not(:disabled) {
  background: linear-gradient(135deg, #b9bbff 0%, #7376f2 100%) !important;
  box-shadow: 0 14px 36px rgba(96, 99, 238, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  color: #060a1f !important;
  transform: translateY(-1px);
}

.btn-secondary, .btn.btn-secondary {
  background: rgba(15, 25, 48, 0.72) !important;
  border: 1px solid rgba(123, 208, 255, 0.32) !important;
  color: #dee5ff !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
}
.btn-secondary:hover, .btn.btn-secondary:hover {
  background: rgba(123, 208, 255, 0.14) !important;
  border-color: #7bd0ff !important;
  color: #ffffff !important;
}

/* Sections & Cards (Tonal Hierarchy, Airy Frosted Glass) */
.section {
  background: transparent !important;
  padding: clamp(2.75rem, 4.8vw, 4.75rem) 0;
}
.section:nth-of-type(even), .nominated-strip {
  background: rgba(9, 19, 40, 0.68) !important;
}
.section-title, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  color: #dee5ff !important;
}
.section-subtitle, p, li {
  color: #a3aac4 !important;
}

.calc-card, .calc-result, .kpi-card, .price-card,
.testimonial-card, .faq-item, .card, .value-card, .team-card,
.service-card, .pricing-card, .panel, .info-card, .nominated-item,
.process-step-card, .fire-calc-panel {
  background: rgba(15, 25, 48, 0.68) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(163, 166, 255, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px -12px rgba(6, 14, 32, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #dee5ff !important;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease, border-color 360ms ease;
}

.service-card:hover, .kpi-card:hover, .price-card:hover, . nominated-item:hover, .process-step-card:hover {
  border-color: rgba(163, 166, 255, 0.34) !important;
  box-shadow: 0 22px 54px -10px rgba(96, 99, 238, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* Progressive Scroll-Reveal — progressive enhancement (content always visible by default) */
.reveal {
  opacity: 1;
  transform: none;
}
body.js-motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* KPI Strip & Stats */
.service-kpi-strip, .mne-stats {
  background: rgba(9, 19, 40, 0.85) !important;
}
.service-kpi-item {
  background: rgba(15, 25, 48, 0.76) !important;
  border: 1px solid rgba(163, 166, 255, 0.14) !important;
  border-radius: 14px !important;
}
.service-kpi-item span { color: #94a3b8 !important; }
.service-kpi-item strong { color: #dee5ff !important; }

/* Engineering Visuals & CAD Schematics */
.mne-visual, .mne-service-visual {
  background: #080f1e !important;
  color: #dee5ff !important;
}
.mne-visual-kicker { color: #7bd0ff !important; }
.mne-visual-title, .mne-service-visual h2 { color: #dee5ff !important; }
.mne-visual-lede, .mne-service-visual p { color: #a3aac4 !important; }
.mne-visual-card, .mne-service-figure {
  background: #0e1729 !important;
  border: 1px solid rgba(163, 166, 255, 0.16) !important;
  border-radius: 16px !important;
}
.mne-visual-card--drawing, .mne-service-figure--drawing {
  background:
    radial-gradient(circle at 22% 30%, rgba(123, 208, 255, 0.16), transparent 56%),
    radial-gradient(circle at 82% 76%, rgba(99, 102, 241, 0.16), transparent 52%),
    #162038 !important;
  border: 1px solid rgba(163, 166, 255, 0.2) !important;
}
.mne-visual-card--drawing img, .mne-service-figure--drawing img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.mne-visual-tag {
  background: rgba(6, 14, 32, 0.82) !important;
  border: 1px solid rgba(123, 208, 255, 0.28) !important;
  color: #7bd0ff !important;
}
.mne-visual-caption {
  background: linear-gradient(to top, rgba(6, 14, 32, 0.96) 0%, rgba(6, 14, 32, 0.72) 58%, transparent 100%) !important;
  color: #dee5ff !important;
}
.mne-visual-caption strong { color: #ffffff !important; }
.mne-visual-caption span { color: #a3aac4 !important; }

/* Forms & Inputs */
.form-input, .form-select, input[type="text"], input[type="number"],
input[type="email"], input[type="tel"], select, textarea {
  background: rgba(9, 19, 40, 0.85) !important;
  border: 1px solid rgba(163, 166, 255, 0.20) !important;
  border-radius: 10px !important;
  color: #dee5ff !important;
}
select option, .form-select option {
  background: #0e1729 !important;
  color: #dee5ff !important;
}

/* Icons */
.value-icon, .team-avatar, .service-icon, .icon-box, .benefit-icon,
[class$="-icon"]:not(.nav-icon) {
  background: rgba(99, 102, 241, 0.14) !important;
  border: 1px solid rgba(163, 166, 255, 0.24) !important;
  color: #a3a6ff !important;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero .hero-split {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .hero-proof-grid {
    grid-template-columns: 1fr !important;
  }
  .service-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-media {
    grid-template-columns: 1fr !important;
  }
}

@media (forced-colors: active) {
  .hero-panel,
  .hero-estimator-card,
  .estimator-scope-panel,
  .service-card,
  .calc-card,
  .nominated-item,
  .process-step-card,
  .faq-item {
    border: 1px solid CanvasText !important;
  }
  .header-cta,
  .btn-primary,
  .btn-secondary,
  button[type="submit"] {
    border: 1px solid ButtonText !important;
  }
}

/* WCAG 2.2 SC 2.5.8 target size — footer link lists (Lighthouse target-size, 2026-10-29) */
.footer-links ul li a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 2px;
}
.footer-links ul li + li { margin-top: 2px; }

/* ==========================================================================
   2026 FLUID FX — cursor spotlight, scroll progress, kinetic shimmer, marquee,
   sticky CTA, floating particles
   ========================================================================== */

/* Cursor spotlight on cards (JS sets --mx / --my) — non-destructive: no child reflow, no clipping */
.spotlight { position: relative; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 360ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 208, 255, 0.10), transparent 65%);
  pointer-events: none;
  border-radius: inherit;
}
.spotlight:hover::before { opacity: 1; }

/* Scroll progress bar */
#fx-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 1300;
  background: linear-gradient(90deg, #6366f1, #7bd0ff, #4edea3);
  box-shadow: 0 0 12px rgba(123, 208, 255, 0.6);
  pointer-events: none;
}

/* Kinetic hero headline shimmer */
.hero h1, .hero-title {
  background-size: 200% auto;
  animation: h1-shimmer 7s linear infinite;
}
@keyframes h1-shimmer { to { background-position: 200% center; } }

/* Pulsing live telemetry dot */
.fx-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4edea3;
  box-shadow: 0 0 12px #4edea3;
  animation: fx-pulse 2s ease-in-out infinite;
}
@keyframes fx-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.45; }
}

/* Infinite services marquee */
.fx-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(99,102,241,0.10), rgba(123,208,255,0.07), rgba(78,222,163,0.10));
  border-top: 1px solid rgba(163,166,255,0.14);
  border-bottom: 1px solid rgba(163,166,255,0.14);
  padding: 0.65rem 0;
  white-space: nowrap;
}
.fx-marquee-track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: fx-marquee-scroll 32s linear infinite;
  will-change: transform;
}
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
.fx-marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3aac4;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.fx-marquee-track span::before { content: '◆'; color: #4edea3; font-size: 0.55rem; }
@keyframes fx-marquee-scroll { to { transform: translateX(-50%); } }

/* Sticky mobile CTA bar */
.fx-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem clamp(0.9rem, 3vw, 1.5rem);
  background: rgba(9, 19, 40, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(163,166,255,0.18);
  transform: translateY(110%);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-cta-bar.is-visible { transform: translateY(0); }
.fx-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #a3a6ff, #6063ee);
  color: #080d26;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(96,99,238,0.4);
}
.fx-cta-bar a.alt {
  background: rgba(15,25,48,0.85);
  color: #dee5ff;
  border: 1px solid rgba(123,208,255,0.32);
  box-shadow: none;
}
@media (min-width: 900px) { .fx-cta-bar { display: none; } }

/* Floating particle canvas */
#fx-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-marquee-track, .hero h1, .hero-title, .fx-live-dot { animation: none; }
}

/* ==========================================================================
   RESPONSIVE FIX — kill horizontal overflow; tablet nav collapses to hamburger
   ========================================================================== */
html { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }

@media (max-width: 1060px) {
  .hamburger { display: inline-flex; }
  .header-cta { display: none; }
  .nav-menu {
    position: fixed;
    top: var(--header-height, 64px);
    left: 0; right: 0;
    background-color: rgba(7, 13, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-default, rgba(163, 166, 255, 0.16));
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { width: 100%; }
}

.estimator-workbench-grid > * { min-width: 0; }

/* ==========================================================================
   2026 HERO — massive kinetic type, pill CTAs, borderless glass panel
   ========================================================================== */
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  max-width: 20ch !important;
  margin: 0 0 1rem !important;
}
.hero h1 .h1-accent {
  -webkit-text-fill-color: #4edea3;
  color: #4edea3;
}
.hero .hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.4rem) !important;
  line-height: 1.55 !important;
  max-width: 46ch !important;
  color: #b6c0d6 !important;
}
.hero-actions { gap: 1rem !important; margin: 0 0 1.4rem !important; }
.hero-actions .btn {
  padding: 1.05rem 1.9rem !important;
  font-size: 1.02rem !important;
  border-radius: 999px !important;
}
.hero-panel {
  border: none !important;
  border-radius: 28px !important;
  background: linear-gradient(165deg, rgba(25, 37, 64, 0.72) 0%, rgba(9, 19, 40, 0.88) 100%) !important;
  box-shadow: 0 40px 90px -24px rgba(6, 14, 32, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   2026 SERVICES — featured flagship card + asymmetric grid
   ========================================================================== */
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .services-grid .service-card:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.16) 0%, rgba(9, 19, 40, 0.88) 55%) !important;
    border-color: rgba(123, 208, 255, 0.30) !important;
    padding: clamp(1.6rem, 2.6vw, 2.4rem) !important;
  }
  .services-grid .service-card:first-child h3 { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; }
}

/* ==========================================================================
   2026 DESIGN LOCK — no-line rule, locked type scale, locked rhythm,
   three-token text system (docs/DESIGN.md · STITCH_DESIGN.md compliant)
   ========================================================================== */

/* ---- 1. NO-LINE RULE — tonal elevation replaces all hairline borders ---- */
.service-card, .kpi-card, .price-card, .value-card, .nominated-item,
.testimonial-card, .blog-card, .process-step-card, .faq-item,
.calc-card, .calc-result, .panel, .info-card, .team-card, .pricing-card,
.hero-panel, .hero-estimator-card, .estimator-scope-panel,
.estimator-comparison-box, .milestone-box, .voice-ai-terminal,
.hero-proof-pill, .estimator-badge, .badge, .pill,
.mne-visual-card, .mne-service-figure, .mne-stat, .service-kpi-item,
.hero-media-card, .scope-toggle-chip, .estimator-preset-btn,
.preset-chip, .voice-mic-btn, .ai-stream-output,
.hero-panel-slider-wrap, .estimator-comp-line {
  border: none !important;
}
.cert-bar, .header, .site-header, .main-header, .footer, footer,
.nav-link.active, .nav-link[aria-current="page"],
.btn-primary, .btn.btn-primary, .header-cta, .cta-button,
.btn-secondary, .btn.btn-secondary, button[type="submit"] {
  border: none !important;
}
/* inputs: filled style + focus glow (no resting hairline) */
.form-input, .form-select, input[type="text"], input[type="email"],
input[type="tel"], input[type="number"], select, textarea {
  border: none !important;
  background: #0e1729 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.form-input:focus, .form-select:focus,
input[type="text"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, input[type="number"]:focus,
select:focus, textarea:focus {
  outline: 2px solid #65fde6 !important;
  outline-offset: 1px !important;
}
/* tables: zebra tonal rows, zero hairlines */
.comparison-table th, .comparison-table td,
.pricing-table th, .pricing-table td,
.grants-table th, .grants-table td,
.cert-table th, .cert-table td,
.blog-article th, .blog-article td {
  border-bottom: none !important;
}
.comparison-table tbody tr:nth-child(even),
.pricing-table tbody tr:nth-child(even),
.grants-table tbody tr:nth-child(even),
.cert-table tbody tr:nth-child(even) {
  background: rgba(163, 166, 255, 0.035) !important;
}
.footer, footer { background: #0e1729 !important; }

/* ---- 2. LOCKED TYPE SCALE — 94 / 48 / 22 / 17 ---- */
.section-title, .section h2, main h2 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
  color: #dee5ff !important;
  max-width: 24ch !important;
}
.section-title {
  background: linear-gradient(120deg, #ffffff 0%, #dee5ff 55%, #a3a6ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
h3, .service-card h3, .card h3,
.hero-estimator-header h2, .estimator-scope-panel h3 {
  font-size: clamp(1.125rem, 1.35vw, 1.375rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #dee5ff !important;
}
.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.1875rem) !important;
  color: #a3aac4 !important;
}
@media (forced-colors: active) {
  .section-title {
    background: none !important;
    -webkit-text-fill-color: CanvasText !important;
  }
}

/* ---- 3. LOCKED SECTION RHYTHM (DESIGN.md sectionPadding token) ---- */
.section, main > section:not(.hero):not(.hero-evidence) {
  padding-top: clamp(2.75rem, 4.8vw, 4.75rem) !important;
  padding-bottom: clamp(2.75rem, 4.8vw, 4.75rem) !important;
}

/* ---- 4. THREE-TOKEN TEXT SYSTEM (#dee5ff / #a3aac4 / #94a3b8) ---- */
p, li, td, th, dd, figcaption { color: #a3aac4 !important; }
p strong, li strong, td strong, dt, figcaption strong { color: #dee5ff !important; }
.hero .hero-lede, .hero-subtitle { color: #a3aac4 !important; }

/* ---- 5. HERO EVIDENCE STRIP (schematics + trust, below the fold) ---- */
.hero-evidence {
  padding-top: clamp(2rem, 3.2vw, 3.25rem) !important;
  padding-bottom: clamp(2rem, 3.2vw, 3.25rem) !important;
  background: #0e1729 !important;
}
.hero-evidence .hero-media img {
  height: clamp(120px, 12vw, 200px) !important;
}

/* ---- 1b. RESIDUAL BORDER SWEEP — round two ---- */
.hero-eyebrow, .hero-panel-row, .hero-trust,
.estimator-savings-Highlight, .estimator-milestones,
.mne-visual-tag, .comparison-table-wrapper, .pricing-table-wrapper,
.service-icon, .icon-box, .value-icon, .benefit-icon, .team-avatar,
.card-price-pill, .card-deliverables, .card-deliverables li,
.cta-section, .feature-box, .estimator-presets button,
.preset-chip, .estimator-range, .voice-waveform-canvas {
  border: none !important;
}
main img, main svg { border: none !important; }

/* ---- 4b. OFF-TOKEN ACCENT NORMALIZATION ---- */
.hero .hero-eyebrow { color: #7bd0ff !important; }
.estimator-badge, .badge, .pill { color: #a3a6ff !important; }

/* ---- 1c. SPECIFICITY-MATCHED FINAL SWEEP ---- */
.hero .hero-eyebrow { border: none !important; }
.hero-media img, .hero-evidence .hero-media img { border: none !important; }
.value-icon, .team-avatar, .service-icon, .icon-box, .benefit-icon,
[class$="-icon"]:not(.nav-icon) { border: none !important; }
.mne-system-frame svg, .mne-system svg, .mne-visual-card svg,
.mne-service-figure svg, figure svg, main svg { border: none !important; }

/* ==========================================================================
   2026 STRUCTURAL SELL — photo-first hero, proof band, flagship imagery
   ========================================================================== */

/* ---- Full-bleed photographic hero backdrop ---- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/engineering/plant-room.jpg') center 38% / cover no-repeat;
  opacity: 0.12;
  filter: saturate(0.5) contrast(0.9) blur(2px);
  pointer-events: none;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,14,32,0.72) 0%, rgba(6,14,32,0.55) 42%, rgba(6,14,32,0.88) 88%, #080f1e 100%),
              linear-gradient(90deg, rgba(6,14,32,0.82) 0%, rgba(6,14,32,0.35) 46%, rgba(6,14,32,0.55) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  text-shadow: 0 2px 44px rgba(6, 14, 32, 0.55) !important;
}
.hero .hero-lede, .hero .hero-proofline { text-shadow: 0 1px 22px rgba(6, 14, 32, 0.65) !important; }

/* ---- Hero inline proof line ---- */
.hero-proofline {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem !important;
  margin: 1.5rem 0 0 !important;
  padding-top: 1.1rem !important;
}
.hero-proofline span {
  font-family: var(--font-mono) !important;
  font-size: 0.86rem !important;
  color: #a3aac4 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.hero-proofline span::before {
  content: "●";
  color: #4edea3;
  font-size: 0.6em;
  align-self: center;
}
.hero-proofline strong {
  color: #4edea3 !important;
  font-family: var(--font-mono) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
}

/* ---- Proof band: giant animated numbers ---- */
.proof-band {
  background: linear-gradient(180deg, #080f1e 0%, #0e1729 100%);
  padding: clamp(2.25rem, 4vw, 4rem) 0 !important;
}
.proof-band-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 2rem) !important;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.4rem, 2vw, 2rem) clamp(1rem, 1.6vw, 1.5rem);
  background: rgba(15, 25, 48, 0.55);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px -18px rgba(6, 14, 32, 0.7);
}
.proof-num {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  background: linear-gradient(120deg, #ffffff 0%, #dee5ff 50%, #a3a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proof-item:nth-child(2) .proof-num {
  background: linear-gradient(120deg, #4edea3 0%, #7bd0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proof-label {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8 !important;
}
@media (max-width: 900px) {
  .proof-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .proof-band-grid { grid-template-columns: 1fr !important; }
}

/* ---- Flagship card: real photography ---- */
.services-grid .service-card--flagship {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.flagship-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.85) contrast(1.06);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}
.service-card--flagship:hover .flagship-media img {
  transform: scale(1.045);
  opacity: 0.62;
}
.flagship-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,14,32,0.15) 0%, rgba(9,19,40,0.55) 55%, rgba(9,19,40,0.92) 100%);
}
.service-card--flagship > *:not(.flagship-media) {
  position: relative;
  z-index: 1;
}
.service-card--flagship .card-top-meta {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  justify-content: space-between;
}
.service-card--flagship .card-price-pill {
  background: rgba(6, 14, 32, 0.78) !important;
  backdrop-filter: blur(10px);
  color: #7bd0ff !important;
}
.service-card--flagship .service-icon { background: rgba(6, 14, 32, 0.7) !important; }

@media (forced-colors: active) {
  .proof-num { background: none !important; -webkit-text-fill-color: CanvasText !important; }
}

/* ==========================================================================
   2026 FULL-SERVICE SELL — animated journey flow + scroll-driven delivery timeline
   ========================================================================== */

/* ---- Hero journey flow: Design -> CAD -> Install -> Commission ---- */
.hero-flow {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem !important;
  margin: 1.35rem 0 0 !important;
}
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dee5ff !important;
  padding: 0.45rem 0.85rem;
  background: rgba(15, 25, 48, 0.62);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.flow-node i {
  font-style: normal;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a3a6ff);
  color: #060a1f;
  font-size: 0.64rem;
  font-weight: 700;
}
.flow-node:last-child {
  background: rgba(78, 222, 163, 0.13);
}
.flow-node:last-child i {
  background: linear-gradient(135deg, #4edea3, #7bd0ff);
}
.flow-link {
  position: relative;
  width: clamp(20px, 3vw, 46px);
  height: 2px;
  background: rgba(163, 166, 255, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}
.flow-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #7bd0ff, transparent);
  animation: flow-pulse 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.flow-link:nth-of-type(2)::after { animation-delay: 0.65s; }
.flow-link:nth-of-type(4)::after { animation-delay: 1.3s; }
.flow-link:nth-of-type(6)::after { animation-delay: 1.95s; }
@keyframes flow-pulse {
  0% { left: -45%; }
  100% { left: 100%; }
}

/* ---- Delivery timeline: scroll-driven rail that draws itself ---- */
.process-timeline {
  position: relative;
  margin-top: 2rem;
}
.process-rail {
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(163, 166, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}
.process-rail-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #6366f1 0%, #7bd0ff 55%, #4edea3 100%);
  box-shadow: 0 0 16px rgba(123, 208, 255, 0.55);
}
.process-timeline .process-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.1rem !important;
}
.process-timeline .process-step-card {
  position: relative;
  margin-left: 58px;
  padding: 1.5rem 1.6rem !important;
  background: rgba(15, 25, 48, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px -14px rgba(6, 14, 32, 0.65) !important;
  transition: background 500ms ease, box-shadow 500ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.62;
  transform: translateX(10px);
}
.process-timeline .process-step-card::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 1.75rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #162038;
  box-shadow: 0 0 0 3px rgba(163, 166, 255, 0.22);
  transition: background 400ms ease, box-shadow 400ms ease;
  z-index: 1;
}
.process-timeline .process-step-card.is-active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(15, 25, 48, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 54px -16px rgba(6, 14, 32, 0.8) !important;
}
.process-timeline .process-step-card.is-active::before {
  background: #4edea3;
  box-shadow: 0 0 0 4px rgba(78, 222, 163, 0.28), 0 0 20px rgba(78, 222, 163, 0.6);
}
.process-step-num {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7bd0ff !important;
  display: inline-block;
  margin-bottom: 0.5rem !important;
}

@media (prefers-reduced-motion: reduce) {
  .flow-link::after { animation: none; opacity: 0.5; }
  .process-timeline .process-step-card { opacity: 1; transform: none; transition: none; }
}
