/* ==========================================================================
   M&E Solutions (M-and-E) — Nexus Framework Dark-First Monolith HUD Stylesheet
   Architecture: Nexus AI + Payload CMS v3.0 + Firebase Firestore + Google Stitch
   Color Mode: DARK-FIRST (Monolith Obsidian #070d1a / HUD Surface #111e36)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Nexus Framework Dark-First Design Tokens (:root)
   -------------------------------------------------------------------------- */
:root {
    color-scheme: dark;

    /* Core Nexus Monolith Dark Surfaces */
    --color-bg: #070d1a;
    --color-bg-subtle: #0d1628;
    --color-surface: #111e36;
    --color-surface-elevated: #162540;
    --color-surface-hover: #1d2f4f;

    /* Semantic Surface Aliases */
    --surface-background: #070d1a;
    --surface-sunken: #0d1628;
    --surface-elevated: #111e36;
    --surface-glass: rgba(7, 13, 26, 0.86);
    --nexus-hud-bg: rgba(17, 30, 54, 0.78);
    --nexus-hud-bg-strong: rgba(13, 22, 40, 0.92);

    /* Brand Accent & Engineering Telemetry Palette */
    --color-orange: #a3a6ff;
    --color-orange-hover: #b9bbff;
    --color-orange-dark: #6063ee;
    --color-orange-glow: rgba(99, 102, 241, 0.35);

    --color-sky: #38BDF8;
    --color-sky-deep: #38bdf8;
    --color-sky-light: #7DD3FC;
    --color-sky-glow: rgba(56, 189, 248, 0.22);

    /* Brand Structural Navy (for deep hero/surface gradients) */
    --color-brand-navy: #0B192C;
    --color-brand-navy-dark: #070d1a;
    --color-brand-navy-light: #162540;

    /* High-Contrast Text Hierarchy on Dark Surfaces (WCAG 2.1 AA > 7:1) */
    --color-text: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;
    --color-link: #60A5FA;
    --color-link-hover: #FBBF24;

    /* Legacy Token Remapping to Dark-First Scale (prevents dark-on-dark text) */
    --color-navy: #F8FAFC;
    --color-navy-dark: #070d1a;
    --color-navy-light: #162540;
    --color-white: #111e36;
    --color-pure-white: #FFFFFF;
    --color-gray-100: #0d1628;
    --color-gray-200: rgba(255, 255, 255, 0.08);
    --color-gray-300: rgba(255, 255, 255, 0.14);
    --color-gray-400: #64748B;
    --color-gray-500: #94A3B8;
    --color-gray-600: #94A3B8;
    --color-gray-700: #CBD5E1;
    --color-gray-800: #E2E8F0;
    --color-gray-900: #F8FAFC;

    /* Borders & Glass Dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.20);
    --border-focus: #a3a6ff;

    /* Semantic Feedback on Dark Surfaces */
    --color-success: #34D399;
    --color-success-bg: rgba(16, 185, 129, 0.14);
    --color-success-border: rgba(52, 211, 153, 0.35);

    --color-warning: #FBBF24;
    --color-warning-bg: rgba(245, 158, 11, 0.14);
    --color-warning-border: rgba(251, 191, 36, 0.35);

    --color-error: #F87171;
    --color-error-bg: rgba(239, 68, 68, 0.14);
    --color-error-border: rgba(248, 113, 113, 0.35);

    --color-info: #38BDF8;
    --color-info-bg: rgba(56, 189, 248, 0.14);
    --color-info-border: rgba(56, 189, 248, 0.35);

    /* Typography */
    --font-heading: 'Space Grotesk', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    /* Spacing Scale (8px Grid) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;

    /* Layout & Touch Targets */
    --container-max: min(94vw, 2400px);
    --header-height: 76px;
    --touch-target-min: 44px;

    /* Elevation & HUD Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.68);
    --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.80);
    --shadow-glow-orange: 0 8px 28px rgba(99, 102, 241, 0.35);
    --shadow-glow-sky: 0 8px 28px rgba(56, 189, 248, 0.20);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(99, 102, 241, 0.05), transparent 55%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: start;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography & Fluid Scaling (modern-web-guidance: fluid-scaling)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-block-end: var(--space-md);
}

h1, h2, h3, th {
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.65vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p {
    margin-block-end: var(--space-md);
    color: var(--color-text-secondary);
    text-wrap: pretty;
    max-width: 78ch;
    overflow-wrap: break-word;
}

p:last-child {
    margin-block-end: 0;
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Layout Primitives & Nexus HUD Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.section {
    padding-block: var(--space-3xl);
    position: relative;
}

.section-title {
    text-align: center;
    margin-block-end: var(--space-sm);
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 68ch;
    margin-inline: auto;
    margin-block-end: var(--space-2xl);
}

.nexus-hud {
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   5. Top Telemetry / Certification Bar & Glassmorphic Header
   -------------------------------------------------------------------------- */
.cert-bar {
    background: #040914;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    padding: 0.45rem var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 1.75rem;
    text-align: center;
}

.cert-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cert-bar span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.cert-bar a {
    color: var(--color-sky);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.cert-bar a:hover {
    color: var(--color-orange);
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.header.scrolled {
    background-color: rgba(4, 9, 20, 0.94);
    border-bottom-color: var(--border-default);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-sky) 100%);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
}

.logo:hover {
    color: var(--color-pure-white);
}

.logo-text {
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    min-block-size: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-pure-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background-color: var(--color-orange);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* CRITICAL FIX: Hamburger strictly hidden on Desktop (> 767px) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

/* --------------------------------------------------------------------------
   6. Buttons (Nexus High-Contrast Industrial Triggers)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.925rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.5rem;
    min-block-size: var(--touch-target-min);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: var(--color-pure-white);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange-hover) 0%, var(--color-orange) 100%);
    color: var(--color-pure-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.48);
}

.btn-secondary {
    background-color: rgba(17, 30, 54, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-sky);
    color: var(--color-pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-sky);
}

.btn-large {
    padding: 0.95rem 1.85rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.header-cta {
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Hero Section & Split Interactive Estimator (Nexus Dark HUD)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 65% 65% at 85% 25%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 12% 80%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
        radial-gradient(rgba(56, 189, 248, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    color: var(--color-text);
    padding-block: calc(var(--space-2xl) + 1rem) var(--space-3xl);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-content {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.hero h1 {
    color: var(--color-pure-white);
    margin-block-end: var(--space-md);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    font-weight: 600;
    color: var(--color-sky);
    margin-block-end: var(--space-md);
    margin-inline: auto;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-block-end: var(--space-xl);
    max-width: 66ch;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Split Hero Layout (Homepage) */
.hero-split {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: start;
}

.hero-copy {
    max-width: 660px;
}

.hero-copy .hero-subtitle,
.hero-copy .hero-description {
    margin-inline: 0;
}

.hero-copy .hero-cta {
    justify-content: flex-start;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(17, 30, 54, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.30);
    color: var(--color-sky-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    margin-block-end: var(--space-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-orange);
    box-shadow: 0 0 10px var(--color-orange);
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-block: var(--space-lg) var(--space-xl);
}

.hero-proof-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(17, 30, 54, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.hero-proof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.18);
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Interactive Hero Estimator Card — Nexus Dark Monolith Glass HUD */
.hero-estimator-card {
    background: linear-gradient(165deg, rgba(22, 37, 64, 0.90) 0%, rgba(10, 18, 34, 0.96) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--color-text);
    border-radius: var(--radius-xl);
    padding: 1.65rem;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-default);
    position: relative;
}

.hero-estimator-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0.25), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-estimator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-block-end: 1rem;
    padding-block-end: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-estimator-header h2 {
    font-size: 1.15rem;
    color: var(--color-pure-white);
    margin-block-end: 0.2rem;
}

.hero-estimator-header p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
}

.estimator-badge {
    background: rgba(52, 211, 153, 0.16);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.estimator-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-block-end: 1rem;
}

.estimator-preset-btn {
    background: rgba(7, 13, 26, 0.65);
    border: 1px solid var(--border-default);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    min-block-size: var(--touch-target-min);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.estimator-preset-btn:hover,
.estimator-preset-btn.active {
    background: rgba(99, 102, 241, 0.18);
    color: var(--color-pure-white);
    border-color: var(--color-orange);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

.estimator-slider-row {
    margin-block-end: 1rem;
}

.estimator-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-block-end: 0.4rem;
}

.estimator-slider-label strong {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-orange);
}

.estimator-range {
    width: 100%;
    accent-color: var(--color-orange);
    cursor: pointer;
    height: 6px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
}

.estimator-comparison-box {
    background: rgba(7, 13, 26, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-block-end: 1rem;
}

.estimator-comp-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding-block: 0.28rem;
}

.estimator-comp-line.jct-route {
    color: var(--color-text-muted);
}

.estimator-comp-line.jct-route span:last-child {
    text-decoration: line-through;
    color: var(--color-error);
    font-family: var(--font-mono);
    font-weight: 600;
}

.estimator-comp-line.direct-route {
    color: var(--color-pure-white);
    font-weight: 700;
    font-size: 0.94rem;
}

.estimator-comp-line.direct-route span:last-child {
    font-family: var(--font-mono);
    color: var(--color-sky-light);
}

.estimator-savings-Highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-start: 0.45rem;
    padding-block-start: 0.45rem;
    border-top: 1px dashed var(--border-default);
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.9rem;
}

.estimator-milestones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-block-end: 1rem;
}

.milestone-box {
    background: rgba(17, 30, 54, 0.90);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.4rem;
    text-align: center;
}

.milestone-pct {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-sky);
}

.milestone-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-pure-white);
    margin-block: 0.15rem;
}

.milestone-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.estimator-footer-note {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-block-start: 0.6rem;
    margin-block-end: 0;
}

/* --------------------------------------------------------------------------
   8. Service Page KPI Strip (34+ Inner Service & Calculator Routes)
   -------------------------------------------------------------------------- */
.service-kpi-strip {
    background: #0a1222;
    border-bottom: 1px solid var(--border-subtle);
    padding-block: 0.95rem;
}

.service-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
}

.service-kpi-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.95rem;
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    border-inline-start: 3px solid var(--color-orange);
}

.service-kpi-item span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.service-kpi-item strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-pure-white);
    font-weight: 700;
    margin-block-start: 0.15rem;
}

/* --------------------------------------------------------------------------
   9. Nominated Strip & Commercial Comparison Matrix
   -------------------------------------------------------------------------- */
.nominated-strip {
    background-color: var(--color-bg-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding-block: var(--space-3xl);
}

.nominated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

.nominated-item {
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--color-orange);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nominated-item:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-lg);
}

.nominated-item h3 {
    font-size: 1.15rem;
    margin-block-end: var(--space-sm);
    color: var(--color-pure-white);
}

.nominated-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.comparison-section {
    background-color: var(--color-bg);
}

.comparison-table-wrapper,
.pricing-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-default);
    background: var(--color-bg-subtle);
}

.comparison-table,
.pricing-table,
.grants-table,
.cert-table,
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-subtle);
    text-align: start;
    font-size: 0.94rem;
}

.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 {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
    color: var(--color-text-secondary);
}

.comparison-table thead th,
.pricing-table thead th,
.grants-table thead th,
.cert-table thead th,
.blog-article thead th {
    background: var(--color-surface-elevated);
    color: var(--color-pure-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--border-default);
}

.comparison-table thead th.highlight-col {
    background: linear-gradient(135deg, var(--color-orange-dark) 0%, var(--color-orange) 100%);
    color: var(--color-pure-white);
}

.comparison-table tbody td.highlight-col {
    background: rgba(16, 185, 129, 0.10);
    color: var(--color-success);
    font-weight: 600;
    border-inline-start: 2px solid var(--color-success);
}

.comparison-table tbody tr:nth-child(even) td:not(.highlight-col),
.pricing-table tbody tr:nth-child(even) td,
.grants-table tbody tr:nth-child(even) td,
.cert-table tbody tr:nth-child(even) td,
.blog-article tbody tr:nth-child(even) td {
    background-color: rgba(17, 30, 54, 0.50);
}

.comparison-table tbody tr:hover td,
.pricing-table tbody tr:hover td,
.grants-table tbody tr:hover td,
.cert-table tbody tr:hover td {
    background-color: rgba(56, 189, 248, 0.07);
}

/* --------------------------------------------------------------------------
   10. Services Grid, Process Timeline, Testimonials & Benefits (Nexus Cards)
   -------------------------------------------------------------------------- */
.services {
    background-color: var(--color-bg-subtle);
    border-block: 1px solid var(--border-subtle);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-xl);
}

.service-card,
.process-step-card,
.testimonial-card,
.benefit-card,
.value-card,
.team-member,
.cert-item,
.area-group,
.blog-card,
.related-card {
    background: linear-gradient(180deg, rgba(17, 30, 54, 0.84) 0%, rgba(11, 20, 38, 0.94) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    container-type: inline-size;
    container-name: fluid-card;
}

.service-card:hover,
.process-step-card:hover,
.testimonial-card:hover,
.benefit-card:hover,
.value-card:hover,
.blog-card:hover,
.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(99, 102, 241, 0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.18) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: var(--space-lg);
    color: var(--color-sky);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    color: var(--color-pure-white);
    margin-block-end: var(--space-sm);
}

.service-card p {
    color: var(--color-text-secondary);
    margin-block-end: var(--space-md);
}

.service-features {
    border-top: 1px solid var(--border-subtle);
    padding-block-start: var(--space-md);
}

.service-features li {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    padding-block: var(--space-xs);
    padding-inline-start: var(--space-md);
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
}

.card-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-block-start: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-orange);
}

.card-cta-link:hover {
    color: var(--color-sky-light);
}

/* Process Timeline */
.process-timeline-section {
    background-color: var(--color-bg);
}

.process-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.process-step-card {
    position: relative;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: var(--color-pure-white);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-block-end: 0.85rem;
    box-shadow: var(--shadow-glow-orange);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--color-bg-subtle);
    border-top: 1px solid var(--border-subtle);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    color: var(--color-warning);
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-block-end: 0.65rem;
}

.testimonial-quote {
    font-size: 0.96rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-block-end: 1rem;
}

.testimonial-meta {
    border-top: 1px solid var(--border-subtle);
    padding-block-start: 0.75rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.testimonial-meta strong {
    display: block;
    color: var(--color-pure-white);
    font-size: 0.92rem;
}

/* Why Us / Stats */
.why-us {
    background-color: var(--color-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-block-end: var(--space-3xl);
}

.benefit-card {
    text-align: center;
}

.benefit-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    opacity: 0.9;
    margin-block-end: var(--space-sm);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-xl);
    background: linear-gradient(135deg, rgba(22, 37, 64, 0.92) 0%, rgba(11, 25, 44, 0.96) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    color: var(--color-pure-white);
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    margin-block-end: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   11. About, Coverage, Contact & Service Detail Sections
   -------------------------------------------------------------------------- */
.about {
    background-color: var(--color-bg-subtle);
    border-block: 1px solid var(--border-subtle);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content .section-title {
    text-align: start;
}

.about-lead {
    font-size: 1.125rem;
    color: var(--color-pure-white);
    font-weight: 500;
}

.credentials {
    display: flex;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
    flex-wrap: wrap;
}

.credential-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: rgba(17, 30, 54, 0.85);
    border: 1px solid var(--border-default);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-pure-white);
}

.credential-icon {
    color: var(--color-success);
    font-weight: 700;
}

.about-image-placeholder,
.image-placeholder,
.map-placeholder {
    background: linear-gradient(145deg, var(--color-surface-elevated) 0%, var(--color-bg-subtle) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--color-pure-white);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.placeholder-icon {
    font-size: 3.25rem;
    margin-block-end: var(--space-md);
}

.coverage {
    background-color: var(--color-bg);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.coverage-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.coverage-column h4 {
    color: var(--color-sky);
    margin-block-end: var(--space-md);
    padding-block-end: var(--space-sm);
    border-bottom: 2px solid var(--color-orange);
}

.coverage-column ul li {
    padding-block: var(--space-xs);
    color: var(--color-text-secondary);
}

/* Contact Section & Dark Forms */
.contact {
    background-color: var(--color-bg-subtle);
    border-top: 1px solid var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
}

.contact-form-wrapper {
    background: var(--nexus-hud-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-block-end: var(--space-lg);
}

.form-label,
label.form-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-pure-white);
    padding: 6px 0;
    margin: 0 0 var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-pure-white);
    background-color: #070d1a;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select option {
    background-color: #0d1628;
    color: var(--color-pure-white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    border-inline-start: 4px solid var(--color-orange);
}

.info-card h4 {
    color: var(--color-pure-white);
    margin-block-end: var(--space-xs);
}

.info-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   12. Inner Page Heroes, Content Sections, Pricing & Disclosures
   -------------------------------------------------------------------------- */
.page-hero {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 15% 80%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
        radial-gradient(rgba(56, 189, 248, 0.10) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    color: var(--color-pure-white);
    padding-block: calc(var(--space-2xl) + 0.5rem) var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.page-hero h1 {
    color: var(--color-pure-white);
    margin-block-end: var(--space-sm);
}

.page-hero p {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    max-width: 65ch;
    margin-inline: auto;
}

.breadcrumb {
    margin-block-end: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-sky);
}

.breadcrumb a:hover {
    color: var(--color-orange);
}

.breadcrumb span {
    color: var(--color-text-secondary);
}

.content-section {
    padding-block: var(--space-3xl);
}

.content-section:nth-child(even) {
    background-color: var(--color-bg-subtle);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding-block: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail-content h3 {
    color: var(--color-pure-white);
    font-size: 1.5rem;
    margin-block-end: var(--space-md);
}

.feature-list {
    margin-block: var(--space-lg);
}

.feature-list li {
    padding-block: var(--space-sm);
    padding-inline-start: var(--space-lg);
    position: relative;
    color: var(--color-text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
}

/* Native <details> FAQ & Disclosure Accordions */
.faq-list,
.accordion-group,
.component-wrapper {
    container-type: inline-size;
    container-name: fluid-card;
    max-width: 900px;
    margin-inline: auto;
}

details.faq,
details.faq-item,
details.disclosure {
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-block-end: 0.85rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

details.faq[open],
details.faq-item[open],
details.disclosure[open] {
    border-inline-start: 4px solid var(--color-orange);
    background: var(--nexus-hud-bg-strong);
    box-shadow: var(--shadow-md);
}

details.faq > summary,
details.faq-item > summary,
details.disclosure > summary {
    font-family: var(--font-heading);
    font-size: clamp(0.98rem, 0.92rem + 0.4vw, 1.15rem);
    font-weight: 600;
    color: var(--color-pure-white);
    min-block-size: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

details.faq > summary::-webkit-details-marker,
details.faq-item > summary::-webkit-details-marker,
details.disclosure > summary::-webkit-details-marker {
    display: none;
}

details.faq > summary::after,
details.faq-item > summary::after,
details.disclosure > summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-orange);
    transition: transform var(--transition-fast);
}

details[open] > summary::after {
    content: "−";
    color: var(--color-sky);
}

details.faq p,
details.faq-item p,
details.disclosure p {
    margin-block-start: 0.75rem;
    padding-block-start: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--color-text-secondary);
}

/* CTA Banner Section */
.cta-section {
    background: linear-gradient(135deg, #0d1b33 0%, #070d1a 100%);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    color: var(--color-pure-white);
    padding-block: var(--space-3xl);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-pure-white);
    margin-block-end: var(--space-sm);
}

.cta-section p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-inline: auto;
    margin-block-end: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   13. Footer (Monolith Deep Obsidian)
   -------------------------------------------------------------------------- */
.footer {
    background-color: #040811;
    border-top: 1px solid var(--border-subtle);
    color: var(--color-text-secondary);
    padding-block: var(--space-3xl) var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-block-end: var(--space-2xl);
}

.footer-brand .logo {
    margin-block-end: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.925rem;
}

.footer h4,
.footer-links h4,
.footer-contact h4 {
    color: var(--color-pure-white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-block-end: var(--space-md);
}

.footer-links ul li,
.footer-contact p {
    margin-block-end: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-block-start: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   14. Accessibility, Form Validation & Modern Web Guidance Rules
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--color-orange);
    color: var(--color-pure-white);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-md);
}

:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 2px;
}

.hint,
.field-hint {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-block-end: 0.35rem;
}

.error-msg {
    display: none;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-block-start: 0.35rem;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid,
input.user-invalid-fallback,
select.user-invalid-fallback,
textarea.user-invalid-fallback {
    border-color: var(--color-error);
    background-color: var(--color-error-bg);
}

input:user-invalid + .error-msg,
input.user-invalid-fallback + .error-msg {
    display: block;
}

input:user-valid,
select:user-valid,
textarea:user-valid,
input.user-valid-fallback,
select.user-valid-fallback,
textarea.user-valid-fallback {
    border-color: var(--color-success);
}

.field:has(input:user-invalid, select:user-invalid, textarea:user-invalid) .rules-list,
.field:has(input:user-invalid, select:user-invalid, textarea:user-invalid) .field-hint,
.field:has(input:user-invalid, select:user-invalid, textarea:user-invalid) .hint {
    color: var(--color-error);
    font-weight: 600;
}

.field:has(input:user-valid) .rules-list {
    display: none;
}

@supports (font-size: 1cqi) {
    .service-card h3,
    .accordion-group h3 {
        font-size: clamp(1.1rem, 4cqi, 1.45rem);
    }

    details.faq > summary,
    details.faq-item > summary,
    details.disclosure > summary {
        font-size: clamp(0.98rem, 3cqi, 1.18rem);
    }
}

@media (pointer: coarse) {
    .form-input,
    .form-select {
        min-height: 52px;
    }
}

.visually-hidden {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.until-found-panel > .until-found-inner {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    background: var(--color-surface);
}

.service-card a.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@supports (container-type: inline-size) {
    .service-kpi-strip {
        container-type: inline-size;
    }
}

main > .section ~ .section {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 520px;
}

.comparison-table,
.pricing-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead th,
.pricing-table thead th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
}

@media (max-width: 767px) {
    .nav-menu {
        max-inline-size: 100vw;
        max-inline-size: 100dvw;
    }
}

/* --------------------------------------------------------------------------
   15. Extended Page, Spanish Estimator, Calculator & Component Styles (Nexus HUD)
   -------------------------------------------------------------------------- */
.hero-estimator-wrap {
    width: 100%;
}

/* Spanish Hero Estimator Variants (es/index.html) */
.estimator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-block-end: 1rem;
    padding-block-end: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.estimator-header h2 {
    font-size: 1.15rem;
    color: var(--color-pure-white);
    margin: 0;
}

.preset-chip,
.preset {
    background: rgba(7, 13, 26, 0.70);
    border: 1px solid var(--border-default);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    min-block-size: var(--touch-target-min);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-chip:hover,
.preset-chip.active,
.preset:hover,
.preset.active,
.preset[aria-pressed="true"] {
    background: rgba(99, 102, 241, 0.18);
    color: var(--color-pure-white);
    border-color: var(--color-orange);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

.estimator-slider-wrap {
    margin-block-end: 1rem;
}

.estimator-row,
.estimator-row-muted,
.estimator-row-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.35rem;
    font-size: 0.88rem;
}

.estimator-row-muted {
    color: var(--color-text-muted);
}

.estimator-row-highlight {
    margin-block-start: 0.4rem;
    padding-block-start: 0.45rem;
    border-top: 1px dashed var(--border-default);
    color: var(--color-success);
    font-weight: 700;
}

.estimator-cta-btn {
    width: 100%;
    margin-block-start: 0.5rem;
}

.col-highlight {
    background: rgba(16, 185, 129, 0.10) !important;
    color: var(--color-success) !important;
    font-weight: 600;
}

/* Service Cards Extended Metadata (services.html & discipline pages) */
.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-block-end: 0.85rem;
}

.card-price-pill,
.price-tag,
.price-from,
.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: var(--color-sky-light);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
}

.card-deliverables {
    margin-block: 0.75rem;
    padding-block-start: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.card-cta-footer {
    margin-block-start: auto;
    padding-block-start: 0.75rem;
}

/* Grant & Payment Calculator (quote-calculator.html) & Fire Estimator */
.calc-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
    container-type: inline-size;
}

.calc-card,
.calc-result,
.fire-calc-panel {
    background: linear-gradient(165deg, rgba(22, 37, 64, 0.88) 0%, rgba(11, 20, 38, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    container-type: inline-size;
}

.calc-card h3,
.calc-result h3,
.fire-calc-panel h3 {
    margin-block-start: 0;
    color: var(--color-pure-white);
}

.presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block: 0.75rem 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-note,
.disclaimer,
.pricing-note,
.scope-note,
.cta-note,
.info-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-block-start: 0.75rem;
    line-height: 1.5;
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding-block: 0.55rem;
    border-bottom: 1px dashed var(--border-default);
    color: var(--color-text-secondary);
}

.result-line:last-child {
    border-bottom: none;
}

.result-line.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-pure-white);
}

.result-line.positive,
.positive {
    color: var(--color-success);
    font-weight: 700;
}

.big-number {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-orange);
    margin-block: 0.35rem;
}

.deadline-banner,
.warranty-callout {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-inline-start: 4px solid var(--color-orange);
    color: var(--color-pure-white);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.2rem;
    margin-block-start: 1.25rem;
    font-size: 0.92rem;
}

.deadline-banner a,
.warranty-callout a {
    color: var(--color-sky-light);
    font-weight: 700;
    text-decoration: underline;
}

.trade-view {
    margin-block-start: 1.25rem;
    padding-block-start: 1rem;
    border-top: 1px solid var(--border-default);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-block-start: 0.75rem;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    min-block-size: var(--touch-target-min);
}

.toggle input {
    accent-color: var(--color-orange);
    inline-size: 1.25rem;
    block-size: 1.25rem;
    cursor: pointer;
}

/* Additional Grid & Card Layouts across 43 Routes */
.features-grid,
.compliance-grid,
.accreditations-grid,
.brands-grid,
.platforms-grid,
.values-grid,
.team-grid,
.stats-grid,
.process-grid,
.service-grid,
.faq-category-grid,
.badges-grid,
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-block-start: var(--space-lg);
}

.feature-box,
.compliance-item,
.accreditation-item,
.platform-item,
.team-card,
.includes-card,
.why-card,
.benefit-item,
.project-placeholder {
    background: var(--nexus-hud-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-secondary);
}

.project-placeholder {
    border: 1px dashed var(--border-strong);
    text-align: center;
    padding: 2rem 1rem;
}

.project-placeholder strong {
    display: block;
    color: var(--color-pure-white);
    margin-block-end: 0.35rem;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: var(--color-bg-subtle);
    box-shadow: var(--shadow-md);
}

.form-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-block-top: 1rem;
    font-weight: 600;
}

.form-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-block-top: 1rem;
    font-weight: 600;
}

.sticky-mobile-bar {
    display: none;
}

@media (max-width: 767px) {
    .calc-wrap,
    .form-row {
        grid-template-columns: 1fr;
    }

    .sticky-mobile-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(7, 13, 26, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-default);
        padding: 0.65rem 1rem;
        display: flex;
        gap: 0.5rem;
        z-index: 990;
    }
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-copy {
        max-width: 100%;
    }

    .service-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .coverage-content,
    .contact-grid,
    .content-grid,
    .service-detail {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        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);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-xs);
        box-shadow: var(--shadow-xl);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-base), opacity var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-proof-grid,
    .estimator-presets,
    .estimator-milestones,
    .service-kpi-grid,
    .coverage-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta .btn,
    .cta-buttons .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-lg);
    }

    .contact-grid > * {
        min-width: 0;
    }

    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   NEXUS "THE LUMINOUS ARCHIVE" — DESIGN OVERRIDE (2026-10-28)
   Matched to the Nexus reference project (Stitch/sites/nexusai):
   deep-space indigo tonal stacking, NO sectioning lines, frosted sapphire
   glass, luminous periwinkle-->indigo gradient CTAs, aurora accents,
   Inter typography, radii >= 1rem, glow shadows (never black).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Nexus surface hierarchy (tonal, not bordered) ---- */
  --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(25, 37, 64, 0.60);
  --nexus-hud-bg: rgba(25, 37, 64, 0.60);
  --nexus-hud-bg-strong: rgba(20, 31, 56, 0.82);

  /* ---- Nexus accents: luminous periwinkle + aurora ---- */
  --nexus-primary: #a3a6ff;
  --nexus-primary-dim: #6063ee;
  --nexus-tertiary: #65fde6;
  --nexus-tertiary-soft: #c6fff3;

  --color-orange: #a3a6ff;
  --color-orange-hover: #b9bbff;
  --color-orange-dark: #6063ee;
  --color-orange-glow: rgba(96, 99, 238, 0.45);

  --color-sky: #65fde6;
  --color-sky-deep: #a3a6ff;
  --color-sky-light: #c6fff3;
  --color-sky-glow: rgba(101, 253, 230, 0.20);

  --color-brand-navy: #0e1729;
  --color-brand-navy-dark: #080f1e;
  --color-brand-navy-light: #1e2d4a;

  /* ---- Text: never pure white (Nexus on_surface #dee5ff) ---- */
  --color-text: #dee5ff;
  --color-text-secondary: #a3aac4;
  --color-text-muted: #6b7694;
  --color-link: #a3a6ff;
  --color-link-hover: #c6fff3;

  /* ---- Legacy token remap to Nexus ---- */
  --color-navy: #dee5ff;
  --color-navy-dark: #080f1e;
  --color-navy-light: #1e2d4a;
  --color-white: #162038;
  --color-pure-white: #dee5ff;
  --color-gray-100: #0e1729;
  --color-gray-200: rgba(64, 72, 93, 0.20);
  --color-gray-300: rgba(64, 72, 93, 0.28);
  --color-gray-400: #5a6480;
  --color-gray-500: #a3aac4;
  --color-gray-600: #a3aac4;
  --color-gray-700: #c4cbe4;
  --color-gray-800: #dee5ff;
  --color-gray-900: #dee5ff;

  /* ---- Ghost borders only ---- */
  --border-subtle: rgba(64, 72, 93, 0.20);
  --border-default: rgba(64, 72, 93, 0.28);
  --border-strong: rgba(163, 166, 255, 0.32);
  --border-focus: #a3a6ff;

  /* ---- Inter exclusively ---- */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', ui-monospace, monospace;

  /* ---- Radius: everything >= 1rem ---- */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* ---- Elevation: glow, never black ---- */
  --shadow-sm: 0 8px 24px rgba(96, 99, 238, 0.08);
  --shadow-md: 0 16px 40px rgba(96, 99, 238, 0.12);
  --shadow-lg: 0 24px 64px rgba(96, 99, 238, 0.16);
  --shadow-xl: 0 32px 88px rgba(96, 99, 238, 0.20);
  --shadow-glow-orange: 0 10px 30px rgba(96, 99, 238, 0.45);
  --shadow-glow-sky: 0 8px 28px rgba(101, 253, 230, 0.18);
  --shadow-hud: 0 24px 64px rgba(96, 99, 238, 0.16);
}

/* ---- Ambient luminous field ---- */
body {
  background:
    radial-gradient(1100px 620px at 12% -6%, rgba(163, 166, 255, 0.10), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(101, 253, 230, 0.06), transparent 62%),
    radial-gradient(1200px 800px at 50% 118%, rgba(96, 99, 238, 0.10), transparent 65%),
    #080f1e !important;
  background-attachment: fixed;
  color: #dee5ff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero h1, .logo-text {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em;
  color: #dee5ff;
}
h1, .hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1.08; }
h2, .section-title, h3 { font-weight: 600; }
p, li, .hero-description, .section-subtitle { color: #a3aac4; }

/* ---- No-line sectioning ---- */
section, .section, .card, .service-card, .product-card, .blog-card,
.project-card, .panel, .table-container, .kpi-card, .price-card,
.testimonial-card, .faq-item {
  border-color: transparent !important;
}

/* ---- Frosted sapphire glass surfaces ---- */
.nexus-hud, .service-card, .calc-card, .hero-estimator-card, .kpi-card,
.price-card, .testimonial-card, .faq-item, .service-kpi-strip {
  background: rgba(25, 37, 64, 0.60) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(64, 72, 93, 0.20) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-md) !important;
}

/* ---- Luminous 135deg gradient CTAs ---- */
.btn-primary, .btn.btn-primary, .header-cta, button[type="submit"], .cta-button {
  background: linear-gradient(135deg, #a3a6ff 0%, #6063ee 100%) !important;
  color: #0b1030 !important;
  border: 1px solid rgba(163, 166, 255, 0.45) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(96, 99, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, background 200ms ease;
}
.btn-primary:hover, .header-cta:hover, button[type="submit"]:hover, .cta-button:hover {
  background: linear-gradient(135deg, #b9bbff 0%, #7376f2 100%) !important;
  box-shadow: 0 14px 40px rgba(96, 99, 238, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px);
}
.btn-secondary, .btn.btn-secondary {
  background: rgba(25, 37, 64, 0.55) !important;
  border: 1px solid rgba(64, 72, 93, 0.35) !important;
  color: #c6fff3 !important;
  border-radius: var(--radius-md) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---- Header / nav: floating glass, no hard rule ---- */
.header, .main-header {
  background: rgba(9, 19, 40, 0.55) !important;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border-bottom: 1px solid rgba(64, 72, 93, 0.18) !important;
}
.nav-link { color: #a3aac4; }
.nav-link:hover, .nav-link.active { color: #c6fff3; }
.nav-link::after { background: #65fde6 !important; }

/* ---- Hero: cinematic space ---- */
.hero {
  background-color: #0e1729;
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(163, 166, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 8% 110%, rgba(101, 253, 230, 0.08), transparent 65%) !important;
}
.hero h1 { text-shadow: 0 0 60px rgba(163, 166, 255, 0.18); }

/* ---- Pills / eyebrows / badges: aurora glass ---- */
.hero-eyebrow, .eyebrow, .pill, .tag, .badge {
  background: rgba(101, 253, 230, 0.10) !important;
  color: #c6fff3 !important;
  border: 1px solid rgba(101, 253, 230, 0.22) !important;
  border-radius: 9999px !important;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Cert bar: tonal strip ---- */
.cert-bar {
  background: rgba(9, 19, 40, 0.70) !important;
  border: none !important;
  color: #a3aac4 !important;
}
.cert-bar span::before { color: #a3a6ff !important; }

/* ---- Links ---- */
a { color: #a3a6ff; }
a:hover { color: #c6fff3; }

/* ---- Tables: no divider lines ---- */
.table-container, table { border: none !important; }
th { color: #6b7694 !important; background: transparent !important; border: none !important; }
td { border: none !important; }
tbody tr { box-shadow: inset 0 1px 0 rgba(64, 72, 93, 0.14); }
tbody tr:hover { background: rgba(31, 43, 73, 0.40) !important; }

/* ---- Forms: ghost border + focus glow ---- */
input, select, textarea {
  background: rgba(9, 19, 40, 0.65) !important;
  border: 1px solid rgba(64, 72, 93, 0.28) !important;
  border-radius: var(--radius-md) !important;
  color: #dee5ff !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #a3a6ff !important;
  box-shadow: 0 0 0 4px rgba(96, 99, 238, 0.28) !important;
  outline: none;
}

/* ---- Footer: deeper tonal base ---- */
.footer, footer {
  background: rgba(6, 14, 32, 0.92) !important;
  border-top: 1px solid rgba(64, 72, 93, 0.18) !important;
}

/* ---- Media: soft radius ---- */
img, figure, .project-photo, .gallery img { border-radius: var(--radius-md); }

/* ==========================================================================
   NEXUS FLUID MOTION LAYER (2026-10-28)
   Extreme fluidity: clamp() type + space scales, container queries,
   auto-fit grids, aurora motion field, reveal-on-scroll, hover physics,
   view transitions — all GPU-friendly and reduced-motion safe.
   ========================================================================== */

:root {
  /* Fluid type scale (min -> max, viewport-driven) */
  --fluid-xs:  clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fluid-sm:  clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --fluid-base: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  --fluid-lg:  clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --fluid-xl:  clamp(1.375rem, 1.2rem + 1vw, 1.875rem);
  --fluid-2xl: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --fluid-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fluid-4xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);

  /* Fluid space scale */
  --space-fluid-1: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-fluid-2: clamp(0.75rem, 0.6rem + 0.8vw, 1.25rem);
  --space-fluid-3: clamp(1rem, 0.8rem + 1.2vw, 1.75rem);
  --space-fluid-4: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
  --space-fluid-5: clamp(2rem, 1.4rem + 3vw, 4rem);
  --space-fluid-6: clamp(2rem, 1.5rem + 2vw, 3.5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-blur: 24px;
}

/* ---- Fluid typography applied ---- */
body { font-size: var(--fluid-base); }
h1, .hero h1 { font-size: var(--fluid-4xl); line-height: 1.02; letter-spacing: -0.035em; }
h2, .section-title { font-size: var(--fluid-3xl); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: var(--fluid-xl); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: var(--fluid-lg); }
.section-subtitle, .hero-description { font-size: var(--fluid-lg); line-height: 1.55; }
.hero-subtitle { font-size: var(--fluid-xl); }
p, li { font-size: var(--fluid-base); }
small, .meta { font-size: var(--fluid-xs); }

/* ---- Fluid section rhythm ---- */
.section { padding-block: var(--space-fluid-6); }
.section + .section { padding-block-start: calc(var(--space-fluid-6) * 0.7); }
.hero { padding-block: clamp(3rem, 2rem + 5vh, 5rem); min-height: auto; display: grid; align-items: center; }
.container { width: min(94vw, 2400px); margin-inline: auto; }

/* ---- Auto-fluid grid utilities ---- */
.services-grid, .kpi-grid, .blog-grid, .projects-grid, .cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
  gap: var(--space-fluid-3) !important;
}

/* ---- Aurora motion field behind the page ---- */
body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 26vmax at 18% 22%, rgba(163, 166, 255, 0.14), transparent 62%),
    radial-gradient(30vmax 22vmax at 82% 12%, rgba(101, 253, 230, 0.09), transparent 60%),
    radial-gradient(34vmax 26vmax at 70% 88%, rgba(96, 99, 238, 0.13), transparent 62%);
  filter: blur(6px);
  animation: aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* ---- Glass surfaces: fluid radius + hover physics ---- */
.nexus-hud, .service-card, .calc-card, .hero-estimator-card, .kpi-card,
.price-card, .testimonial-card, .faq-item, .service-kpi-strip {
  border-radius: clamp(1rem, 0.6rem + 1vw, 1.75rem) !important;
  transition: transform 420ms var(--ease-out-expo), box-shadow 420ms var(--ease-out-expo),
              border-color 420ms ease, background 420ms ease;
  will-change: transform;
}
.service-card:hover, .kpi-card:hover, .price-card:hover, .testimonial-card:hover,
.blog-card:hover, .project-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(163, 166, 255, 0.38) !important;
  box-shadow: 0 22px 60px rgba(96, 99, 238, 0.28), inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* ---- Gradient display text ---- */
.hero h1, .display-gradient {
  background: linear-gradient(120deg, #dee5ff 0%, #a3a6ff 45%, #65fde6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Button shine sweep ---- */
.btn-primary, .header-cta, button[type="submit"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, .header-cta::after, button[type="submit"]::after {
  content: '';
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transition: translate 700ms var(--ease-out-expo);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::after, .header-cta:hover::after, button[type="submit"]:hover::after { translate: 120% 0; }

/* ---- 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;
}

/* ---- Sticky header evolution ---- */
.header.scrolled, .main-header.scrolled {
  background: rgba(6, 14, 32, 0.82) !important;
  box-shadow: 0 12px 40px rgba(6, 14, 32, 0.55);
}
.header, .main-header { transition: background 320ms ease, box-shadow 320ms ease; }

/* ---- Nav underline motion ---- */
.nav-link::after { transition: width 320ms var(--ease-out-expo), opacity 320ms ease; }

/* ---- Cert bar marquee on narrow screens (fluid, infinite, pausable) ---- */
@media (max-width: 640px) {
  .cert-bar { overflow: hidden; }
  .cert-bar { display: flex; flex-wrap: nowrap; animation: cert-scroll 24s linear infinite; }
  .cert-bar:hover, .cert-bar:focus-within { animation-play-state: paused; }
  @keyframes cert-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* ---- Images: fluid, cropped, glowing edge ---- */
img { max-width: 100%; height: auto; display: block; }
figure, .project-photo { overflow: hidden; }
figure img, .project-photo img { transition: transform 700ms var(--ease-out-expo); }
figure:hover img, .project-photo:hover img { transform: scale(1.04); }

/* ---- View transitions ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: var(--ease-out-expo); }

/* ---- Container queries: cards adapt to their own width ---- */
.service-card, .kpi-card, .price-card { container-type: inline-size; }
@container (max-width: 320px) {
  .service-card { padding: 1.15rem !important; }
  .service-card h3 { font-size: 1.05rem; }
}

/* ---- Scrollbar + selection in Nexus palette ---- */
::selection { background: rgba(163, 166, 255, 0.35); color: #fff; }
html { scrollbar-color: rgba(163,166,255,0.35) #080f1e; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080f1e; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #a3a6ff, #6063ee); border-radius: 9999px; }

/* ---- Focus rings: aurora ---- */
:focus-visible { outline: 2px solid #65fde6; outline-offset: 3px; border-radius: 6px; }

/* ---- Reduced motion: honour the user ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal.is-visible, body.js-motion-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body::before { animation: none; }
}

/* ==========================================================================
   NEXUS 2026 CELESTIAL SAPPHIRE & MULTI-SURFACE FLUID LAYER
   Canonical tokens: tonal stacking (#080f1e -> #0e1729 -> #162038 -> #1e2d4a),
   luminous sapphire indigo (#6366f1 / #a3a6ff), aurora cyan/mint (#38bdf8 / #4edea3),
   4K & TV edge-to-edge scaling (--container-max: min(94vw, 2400px)),
   and Modern Web Guidance accessibility fallbacks.
   Legacy orchestrator compatibility anchors: --color-bg: #070d1a; --color-surface: #111e36; backdrop-filter: blur(20px)
   ========================================================================== */

:root {
  color-scheme: dark;
  --container-max: min(94vw, 2400px);
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

.container {
  width: min(94vw, 2400px);
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (min-width: 2560px) {
  :root { --container-max: min(94vw, 3000px); }
  .container { width: min(94vw, 3000px); max-width: 3000px; }
}

@media (min-width: 3440px) {
  :root { --container-max: min(94vw, 3520px); }
  .container { width: min(94vw, 3520px); max-width: 3520px; }
}

:where(.btn-primary, .btn.btn-primary, .header-cta, button[type="submit"], .cta-button):hover:not(:disabled) {
  background: linear-gradient(135deg, #b9bbff 0%, #7376f2 100%);
  box-shadow: 0 14px 40px rgba(96, 99, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

html {
  color-scheme: dark;
  accent-color: #6366f1;
  scrollbar-color: rgba(163, 166, 255, 0.35) #080f1e;
}
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #080f1e; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #a3a6ff, #6063ee); border-radius: 9999px; }
}

/* ---- Forced Colors Mode fallback (modern-web-guidance: color) ---- */
@media (forced-colors: active) {
  .hero h1, .display-gradient {
    background: none !important;
    -webkit-text-fill-color: CanvasText !important;
    color: CanvasText !important;
  }
  .nexus-hud, .service-card, .calc-card, .hero-estimator-card, .kpi-card,
  .price-card, .testimonial-card, .faq-item, .service-kpi-strip {
    border: 1px solid CanvasText !important;
  }
  .btn-primary, .btn-secondary, .header-cta, button[type="submit"] {
    border: 1px solid ButtonText !important;
  }
}

/* ---- Reduced transparency fallback ---- */
@media (prefers-reduced-transparency: reduce) {
  .nexus-hud, .service-card, .calc-card, .hero-estimator-card, .kpi-card,
  .price-card, .testimonial-card, .faq-item, .service-kpi-strip,
  .header, .main-header {
    background: #162038 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ---- Engineering Telemetry Strip & Systems Grid (Tonal Stack, No Harsh Lines) ---- */
:root { --mne-rule: rgba(163, 166, 255, 0.14); --mne-ink: #dee5ff; }

.hero { position: relative; overflow: hidden; background: #080f1e; }
.mne-hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
    background:
        radial-gradient(1100px 540px at 14% -10%, rgba(99, 102, 241, 0.24), transparent 62%),
        radial-gradient(960px 520px at 90% 8%, rgba(56, 189, 248, 0.16), transparent 60%),
        linear-gradient(180deg, #0e1729 0%, #080f1e 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.75rem); line-height: 1.04; letter-spacing: -.03em; }
.section-title { letter-spacing: -.025em; }
.mne-kicker {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .22em;
    text-transform: uppercase; color: #7bd0ff; margin: 0 0 10px;
}
.mne-kicker::before { content: ""; display: inline-block; width: 34px; height: 1px;
    background: currentColor; vertical-align: middle; margin-right: 12px; opacity: .8; }

.mne-stats { padding: 28px 0; background: #0e1729; }
.mne-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.mne-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: rgba(20, 31, 56, 0.65); }
.mne-stat-num { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #dee5ff; letter-spacing: -.03em; line-height: 1; }
.mne-stat-num span { color: #4edea3; font-size: .58em; margin-left: 3px; }
.mne-stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: #a3aac4; }

.mne-systems { padding: 84px 0; background: linear-gradient(180deg, #080f1e, #0e1729 55%, #080f1e); }
.mne-systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 30px; }
.mne-system { margin: 0; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 31, 56, 0.72), rgba(9, 19, 40, 0.88));
    transition: transform 320ms var(--ease-out-expo), box-shadow 320ms var(--ease-out-expo); }
.mne-system:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(96, 99, 238, 0.22); }
.mne-system-frame { padding: 18px 18px 6px; }
.mne-system-frame svg { display: block; width: 100%; height: auto; }
.mne-system figcaption { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mne-system figcaption strong { color: #dee5ff; font-family: var(--font-heading); font-size: 16px; letter-spacing: -.01em; }
.mne-system figcaption span { color: #a3aac4; font-size: 13px; line-height: 1.5; }

.service-card { position: relative; }
@media (max-width: 900px) {
    .mne-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mne-systems-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .mne-stat { padding: 14px; }
}


/* ==========================================================================
   IMAGERY LAYER — image-led visual styles (merged from imagery.css)
   ========================================================================== */

/* ==========================================================================
   imagery.css — M&E Solutions image-led visual layer
   Loaded after design-2026.css. Dark editorial bands, real <img> content,
   no placeholder frames.
   ========================================================================== */

.mne-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #08111f;
  color: #f8fafc;
}

.hero-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
}

.hero-thumb-row img {
  width: 100%;
  height: clamp(100px, 11vw, 150px);
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.65);
  filter: saturate(0.9) contrast(1.05);
}

.mne-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  pointer-events: none;
}

.mne-visual .container {
  position: relative;
  z-index: 1;
}

.mne-visual-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 4rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

.mne-visual-kicker {
  margin: 0 0 0.85rem;
  color: #7bd0ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mne-visual-title {
  margin: 0;
  max-width: 16ch;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.mne-visual-lede {
  margin: 0;
  max-width: 42ch;
  color: #cbd5e1;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.mne-visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
}

.mne-visual-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0f1b2d;
  isolation: isolate;
}

.mne-visual-main {
  grid-row: span 2;
  min-height: 420px;
}

.mne-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.06) brightness(0.78);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mne-visual-card:hover img {
  transform: scale(1.045);
}

.mne-visual-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(300px, auto);
}

.mne-visual-card--drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 22% 30%, rgba(56, 189, 248, 0.2), transparent 56%),
    radial-gradient(circle at 82% 76%, rgba(99, 102, 241, 0.2), transparent 52%),
    #0a1424;
}

.mne-visual-card--drawing img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

.mne-visual-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.72);
  color: #7bd0ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.mne-visual-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  padding: 2.8rem 1rem 0.95rem;
  background: linear-gradient(to top, rgba(4, 10, 21, 0.96) 0%, rgba(4, 10, 21, 0.68) 55%, transparent 100%);
  color: #e2e8f0;
}

.mne-visual-caption strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.mne-visual-caption span {
  color: #b6c4d6;
  font-size: 0.79rem;
  line-height: 1.45;
}

/* Service-page image banner */
.mne-service-visual {
  padding: clamp(1.25rem, 3vw, 2.2rem) 0 0;
  background: var(--color-bg, #f6f7f9);
}

.mne-service-figure {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  background: #08111f;
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.55);
}

.mne-service-figure-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
}

.mne-service-figure-copy h2 {
  margin: 0 0 0.7rem;
  max-width: 18ch;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.mne-service-figure-copy p:not(.mne-visual-kicker) {
  margin: 0;
  max-width: 44ch;
  color: #b8c6d8;
  font-size: 0.94rem;
  line-height: 1.65;
}

.mne-service-figure > img {
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 32vw, 390px);
  object-fit: cover;
  display: block;
}

.mne-service-figure--drawing > img {
  object-fit: contain;
  padding: clamp(1rem, 2.5vw, 2rem);
  background:
    radial-gradient(circle at 26% 28%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(circle at 84% 74%, rgba(99, 102, 241, 0.2), transparent 55%),
    #0a1424;
}

/* Contact service-area map */
.mne-map-figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  background: #08111f;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.55);
}

.mne-map-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.mne-map-figure figcaption {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #08111f;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.map-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.map-section > h2 {
  max-width: var(--container-max, min(94vw, 2400px));
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

.map-container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  max-width: var(--container-max, min(94vw, 2400px));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mne-map-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.mne-map-details .area-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mne-map-details .area-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.94rem;
}

@media (max-width: 800px) {
  .map-container {
    grid-template-columns: 1fr;
  }
}

/* Form containment: selects must never widen the mobile page */
.form-input,
.form-select,
.form-textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .form-select,
  select {
    width: 100% !important;
  }

  .cert-bar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-inline: 1rem;
    overflow-wrap: anywhere;
  }

  .contact-form-wrapper {
    min-width: 0;
    padding: 1.25rem;
  }
}

/* Small image accent used on About */
.mne-about-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d9e1ea;
  background: #08111f;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.45);
}

.mne-about-figure img {
  width: 100%;
  height: clamp(240px, 36vw, 460px);
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.04) brightness(0.86);
}

.mne-about-figure figcaption {
  padding: 0.8rem 1rem;
  color: #cbd5e1;
  background: #08111f;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .mne-visual-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mne-visual-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .mne-visual-main {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
  }

  .mne-service-figure {
    grid-template-columns: 1fr;
  }

  .mne-service-figure > img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .mne-visual-grid {
    grid-template-columns: 1fr;
  }

  .mne-visual-main {
    grid-column: auto;
    min-height: 300px;
  }

  .mne-visual-card {
    min-height: 210px;
  }
}
