/* ============================================
   SSVR Design System
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Colors - Primary */
    --color-mint: #ADDFBA;
    --color-mint-secondary: #7BAE89;
    --color-mint-dark: #5E7C66;
    --color-black: #000000;
    --color-white: #F9F9F9;

    /* Colors - Backgrounds (increased contrast between tiers) */
    --color-bg-primary: #0D1117;
    --color-bg-secondary: #1A222B;
    --color-bg-tertiary: #242D38;
    --color-bg-elevated: #2D3743;

    /* Colors - Text (boosted secondary/muted for readability) */
    --color-text-primary: #F0F6FC;
    --color-text-secondary: #A8B2BC;
    --color-text-muted: #848D97;

    /* Colors - Accent (Law Enforcement) */
    --color-blue: #6495ED;
    --color-blue-dark: #4A6FA5;

    /* Colors - Danger / Error */
    --color-danger: #f85149;
    --color-danger-emphasis: #E65B5B;
    --color-danger-dark: #B34444;
    --color-danger-muted: #9B4A4A;
    --color-danger-border: #da3633;

    /* Colors - Borders (increased opacity for visibility) */
    --color-border: rgba(240, 246, 252, 0.35);
    --color-border-emphasis: rgba(240, 246, 252, 0.5);

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

    /* Font Sizes */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */

    /* Spacing (tighter section rhythm) */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 1.5rem;     /* 24px */
    --space-lg: 2rem;       /* 32px */
    --space-xl: 2.5rem;     /* 40px */
    --space-2xl: 2.75rem;   /* 44px */
    --space-3xl: 3rem;      /* 48px - reduced from 56px */
    --space-4xl: 4rem;      /* 64px - reduced from 80px */

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

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

    /* Shadows (new - for depth) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);

    /* Gradients (new - for visual depth) */
    --gradient-section: linear-gradient(180deg, var(--color-bg-primary), var(--color-bg-secondary));
    --gradient-glow: radial-gradient(ellipse at center, rgba(173, 223, 186, 0.12), transparent 70%);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.text-display {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-headline {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.text-subhead {
    font-size: var(--text-lg);
    color: rgba(240, 246, 252, 0.9);
    line-height: 1.7;
}

.text-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint-secondary);
}

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

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

/* --- Placeholder Box (for wireframe content) --- */
.placeholder-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--color-border-emphasis);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.placeholder-box--highlight {
    background: rgba(173, 223, 186, 0.05);
    border-color: rgba(173, 223, 186, 0.2);
}

.placeholder-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint);
    margin-bottom: var(--space-sm);
    display: block;
}

.placeholder-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Section Label (larger than placeholder-label) */
.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-mint);
    margin-bottom: var(--space-sm);
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: var(--color-mint);
    color: var(--color-black);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-emphasis);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: var(--space-xs) var(--space-sm);
}

.btn--ghost:hover {
    color: var(--color-text-primary);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo-icon {
    height: 38px;
    width: auto;
}

.nav__logo-wordmark {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.nav__cta {
    margin-left: var(--space-sm);
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: calc(100vh - 180px); /* Leave room for credibility bar */
    padding-top: calc(72px + var(--space-xl)); /* Nav height + spacing */
    padding-bottom: var(--space-md);
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(173, 223, 186, 0.08), transparent 70%),
        var(--color-bg-primary);
    overflow: hidden;
}

/* Canvas network background - reduced for background role */
.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75; /* Stronger visibility */
}

/* Ensure hero content stays above canvas */
.hero > .container {
    position: relative;
    z-index: 1;
}

.hero__inner {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
}

.hero__inner > * {
    flex: 1;
}

.hero__content {
    align-self: center;
}

.hero__headline {
    margin-bottom: var(--space-md);
    animation: heroFadeInUp 0.8s ease forwards;
}

.hero__headline-accent {
    color: var(--color-mint);
    display: block;
}

.hero__subhead {
    margin-bottom: var(--space-lg);
    max-width: 480px;
    animation: heroFadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero__scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero__scroll-cta:hover {
    color: var(--color-mint);
}

.hero__scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Hero Visual / Image Container */
.hero__visual {
    position: relative;
    align-self: center;
}

/* Hero Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pillarFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes connectorFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

/* Hero Split Layout (Input → Output) */
/* Hero Video Layout */
.hero__video-container {
    position: relative;
    width: 100%;
    opacity: 0;
    animation: videoFadeIn 0.6s ease 0.3s forwards;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero__video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
}

/* Badge overlay - bottom left of video */
.hero__badge {
    position: absolute;
    z-index: 10;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-emphasis);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Badge indicator (progress ring + check) */
.hero__badge-indicator {
    --badge-fill-duration: 1800ms;
    --badge-circle-length: 113.097; /* 2 * PI * 18 */
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.hero__badge-ring {
    width: 100%;
    height: 100%;
}

.hero__badge-ring-bg {
    fill: none;
    stroke: var(--color-danger-muted);
    stroke-width: 3;
}

.hero__badge-ring-progress {
    fill: none;
    stroke: var(--color-mint);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: var(--badge-circle-length);
    stroke-dashoffset: var(--badge-circle-length);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.hero__badge-check-mark {
    fill: none;
    stroke: var(--color-mint);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    opacity: 0;
}

.hero__badge-indicator.is-animating .hero__badge-ring-progress {
    animation: badgeRingFill var(--badge-fill-duration) ease-out forwards;
}

.hero__badge-indicator.is-animating .hero__badge-check-mark {
    animation: badgeCheckDraw 0.3s ease forwards;
    animation-delay: var(--badge-fill-duration);
}

.hero__badge.is-paused .hero__badge-ring-progress,
.hero__badge.is-paused .hero__badge-check-mark {
    animation-play-state: paused;
}

@keyframes badgeRingFill {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes badgeCheckDraw {
    from {
        stroke-dashoffset: 30;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Badge info section */
.hero__badge-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.hero__badge .hero__credential-text {
    width: max-content;
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
    overflow: hidden;
}

.hero__badge .hero__credential-track {
    display: grid;
    width: max-content;
}

.hero__badge .hero__credential {
    position: relative;
    top: auto;
    left: auto;
    grid-area: 1 / 1;
    width: max-content;
    align-items: flex-start;
    gap: 0;
    transform: translateY(12px);
}

.hero__badge .hero__credential.is-active {
    transform: translateY(0);
}

.hero__badge .hero__credential.is-exiting {
    transform: translateY(-12px);
}

.hero__badge .hero__credential-name {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
}

.hero__badge-status {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint);
    line-height: 1;
}

/* --- Telemetry Sidebar (V4-B: Credential-Synced) --- */
.hero__inner--sidebar {
    gap: var(--space-md);
}

.telemetry-sidebar {
    flex: 0 0 220px;
    background: rgba(26, 34, 43, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-family: var(--font-mono);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow: hidden;
    opacity: 0;
    animation: videoFadeIn 0.6s ease 0.5s forwards;
}

.telemetry-sidebar__header {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.telemetry-sidebar__header::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-mint);
    animation: telemetryPulse 2s ease-in-out infinite;
}

@keyframes telemetryPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.telemetry-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 42px;
}

.telemetry-card__label {
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 400ms ease, transform 400ms ease;
}

.telemetry-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.telemetry-card__value {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    transition: opacity 400ms ease, transform 400ms ease;
}

.telemetry-card__spark {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 20px;
}

.telemetry-card__spark-bar {
    width: 3px;
    background: var(--color-mint-dark);
    border-radius: 1px;
    transition: height 400ms ease;
}

.telemetry-card__spark-bar:last-child {
    background: var(--color-mint);
}

/* Credential-sync cross-fade */
.telemetry-card--synced.is-transitioning .telemetry-card__label,
.telemetry-card--synced.is-transitioning .telemetry-card__value {
    opacity: 0;
    transform: translateY(-8px);
}

.telemetry-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.telemetry-progress__label {
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.telemetry-progress__bar {
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.telemetry-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-mint-dark), var(--color-mint));
    border-radius: 3px;
    transition: width 800ms ease;
}

.telemetry-feed {
    flex: 1 1 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    overflow: hidden;
    min-height: 80px;
    transition: opacity 300ms ease;
}

.telemetry-feed__label {
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.telemetry-feed__item {
    font-size: 10px;
    line-height: 1.5;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: telemetryFeedIn 300ms ease forwards;
}

.telemetry-feed__item .feed-time {
    color: rgba(132, 141, 151, 0.5);
}

.telemetry-feed__item .feed-event {
    color: var(--color-mint-secondary);
}

@keyframes telemetryFeedIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Credential Text Cycling */
.hero__credential-text {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.hero__credential-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__credential {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__credential.is-active {
    opacity: 1;
    transform: translateY(0);
}

.hero__credential.is-exiting {
    opacity: 0;
    transform: translateY(-20px);
}

.hero__credential-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
}

.hero__credential-authority {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Credibility Strip --- */
.credibility-strip {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.credibility-strip__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.credibility-strip__logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
    flex-shrink: 0;
}

.credibility-strip__logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(30%) brightness(1.3);
    opacity: 0.75;
}

.credibility-strip__sep {
    width: 1px;
    height: 36px;
    background: var(--color-border);
    flex-shrink: 0;
}

.credibility-strip__stats {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.credibility-strip__stat {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.credibility-strip__stat strong {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.credibility-strip__dot {
    color: var(--color-text-muted);
    opacity: 0.4;
    font-size: var(--text-xs);
}

.credibility-strip__link {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-mint-secondary);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.credibility-strip__link:hover {
    color: var(--color-mint);
}

@media (max-width: 768px) {
    .credibility-strip__inner {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: var(--space-sm);
    }

    .credibility-strip__sep {
        display: none;
    }
}

/* --- The Readiness Gap + Mission Coverage --- */
.system {
    background: var(--gradient-section);
}

/* Gap Hero — headline + visualization */
.gap-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.gap-hero__headline {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gap-hero__headline em {
    font-style: normal;
    color: var(--color-mint);
}

.gap-hero__sub {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    max-width: 520px;
}

/* Readiness Gap Visualization */
.gap-viz {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
}

.gap-viz__bar-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.gap-viz__bar {
    position: relative;
}

.gap-viz__bar-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.gap-viz__bar-track {
    height: 32px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.gap-viz__bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0;
}

.gap-viz__bar-fill--required {
    background: linear-gradient(90deg, var(--color-mint), var(--color-mint-secondary));
}

.gap-viz__bar-fill--actual {
    background: linear-gradient(90deg, var(--color-danger-emphasis), var(--color-danger-dark));
}

.gap-viz__bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-bg-primary);
}

.gap-viz__bar-fill--actual .gap-viz__bar-value {
    color: var(--color-danger);
}

.gap-viz__gap-label {
    text-align: center;
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-danger-emphasis);
    opacity: 0;
    transition: opacity 0.6s ease 1.2s;
}

.gap-viz.is-animated .gap-viz__bar-fill--required {
    width: 100%;
}

.gap-viz.is-animated .gap-viz__bar-fill--actual {
    width: 12%;
}

.gap-viz.is-animated .gap-viz__gap-label {
    opacity: 1;
}

/* Problem Evidence Cards */
.problem-cards {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: var(--space-md);
    margin-bottom: var(--space-4xl);
}

.problem-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-mint);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
}

.problem-card__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-mint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.problem-card__stat {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.problem-card__body {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Mission Coverage Header */
.mission-coverage__header {
    margin-bottom: var(--space-lg);
}

.mission-coverage__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mission-coverage__subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

/* Domain Filter Pills */
.domain-filters {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.domain-filters__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}

.domain-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: all var(--transition-base);
}

.domain-pill.is-active {
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
    background: rgba(240, 246, 252, 0.06);
}

.domain-pill--mil.is-active {
    color: var(--color-mint);
    border-color: var(--color-mint-dark);
    background: rgba(173, 223, 186, 0.08);
}

.domain-pill--le.is-active {
    color: var(--color-blue);
    border-color: var(--color-blue-dark);
    background: rgba(100, 149, 237, 0.08);
}

.domain-pill:hover:not(.is-active) {
    color: var(--color-text-secondary);
    border-color: var(--color-text-muted);
}

/* Domain Tags on Tiles */
.mission-tile__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mission-tile__domain-tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.mission-tile__domain-tag--mil {
    color: var(--color-mint);
    background: rgba(173, 223, 186, 0.1);
}

.mission-tile__domain-tag--le {
    color: var(--color-blue);
    background: rgba(100, 149, 237, 0.1);
}

.mission-tile__domain-tag--both {
    color: var(--color-text-secondary);
    background: rgba(240, 246, 252, 0.06);
}

/* LE tile hover accent */
.mission-tile[data-domain="le"]:hover,
.mission-tile[data-domain="le"]:focus-within,
.mission-tile[data-domain="le"].is-active {
    border-color: var(--color-blue);
    background: rgba(100, 149, 237, 0.04);
}

.mission-tile[data-domain="le"] .mission-tile__reveal-label {
    color: var(--color-blue);
}

/* Hidden state for filtered tiles */
.mission-tile.is-domain-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* Mission Tiles (interactive — slide replace) */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.mission-tile {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    height: 140px;
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), opacity 0.35s ease, transform 0.35s ease, height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    position: relative;
    overflow: hidden;
}

.mission-tile__default,
.mission-tile__reveal {
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.mission-tile__default {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mission-tile__name {
    font-size: var(--text-base);
    font-weight: 600;
}

.mission-tile__hint {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.mission-tile__reveal {
    position: absolute;
    inset: 0;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(100%);
}

.mission-tile__reveal-label {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--color-mint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    flex-shrink: 0;
}

.mission-tile__reveal-text {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    overflow: hidden;
}

.mission-tile:hover,
.mission-tile:focus-within,
.mission-tile.is-active {
    border-color: var(--color-mint);
    background: rgba(173, 223, 186, 0.04);
}

.mission-tile:hover .mission-tile__default,
.mission-tile.is-active .mission-tile__default {
    opacity: 0;
    transform: translateY(-20px);
}

.mission-tile:hover .mission-tile__reveal,
.mission-tile.is-active .mission-tile__reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Creator Tile — Contrast accent */
.mission-tile--creator {
    border-color: var(--color-mint-dark);
    background: rgba(173, 223, 186, 0.06);
}

.mission-tile--creator .mission-tile__name {
    color: var(--color-mint);
}

.mission-tile--creator .mission-tile__hint {
    color: var(--color-mint-dark);
}

.mission-tile--creator:hover,
.mission-tile--creator.is-active {
    border-color: var(--color-mint);
    background: rgba(173, 223, 186, 0.12);
}

/* Split Grid — Section labels */
.mission-grid__section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.mission-grid__section-label + .mission-grid {
    margin-bottom: 0;
}

.mission-grid__section-label:not(:first-child) {
    margin-top: var(--space-xl);
}

/* Extensible grid — 2 columns */
.mission-grid--extensible {
    grid-template-columns: repeat(2, 1fr);
}

/* Extensible Tiles — Gradient border */
.mission-tile--extensible {
    border-color: transparent;
    background: linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
                linear-gradient(135deg, rgba(173, 223, 186, 0.3), rgba(173, 223, 186, 0.05)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.mission-tile--extensible .mission-tile__name {
    color: var(--color-mint-secondary);
}

.mission-tile--extensible:hover,
.mission-tile--extensible.is-active {
    background: linear-gradient(rgba(173, 223, 186, 0.04), rgba(173, 223, 186, 0.04)) padding-box,
                linear-gradient(135deg, rgba(173, 223, 186, 0.5), rgba(173, 223, 186, 0.15)) border-box;
    border-color: transparent;
}

/* Mission Coverage CTA — Terminal style */
.mission-cta {
    margin-top: var(--space-xl);
    text-align: left;
}

.mission-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-mint);
    text-decoration: none;
    transition: color var(--transition-fast);
    letter-spacing: 0.02em;
}

.mission-cta__link:hover {
    color: var(--color-white);
}

.mission-cta__cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--color-mint);
    margin-left: 4px;
    animation: terminal-blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Founder Section --- */
.founder__photo {
    position: relative;
    width: 180px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.founder__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: contrast(1.05) saturate(0.9);
}

/* Subtle gradient overlay to blend with dark theme */
.founder__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Larger variant for About page - still conservative due to low-res source */
.founder__photo--large {
    width: 220px;
    height: 260px;
}

.founder__attribution {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.founder__attribution strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* --- Page Header (for inner pages) --- */
.page-header {
    padding-top: calc(72px + var(--space-3xl));
    padding-bottom: var(--space-2xl);
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(173, 223, 186, 0.08), transparent),
        var(--color-bg-primary);
}

.page-header__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Case Studies Page --- */

/* Gap Cards Section */
.gap-cards-section {
    padding: var(--space-lg) 0 var(--space-xl);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

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

.gap-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gap-card:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.gap-card.is-active {
    border-color: var(--color-mint);
    background: rgba(173, 223, 186, 0.05);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-mint);
}

.gap-card__number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-mint);
    letter-spacing: 0.1em;
}

.gap-card__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin: 0;
}

.gap-card.is-active .gap-card__title {
    color: var(--color-mint);
}

.gap-card__problem {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.gap-card__customer {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.gap-card__logo {
    height: 20px;
    width: auto;
    max-width: 28px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%) brightness(1.5);
    transition: all var(--transition-fast);
}

.gap-card__logo--circular {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.gap-card:hover .gap-card__logo,
.gap-card.is-active .gap-card__logo {
    opacity: 0.8;
    filter: grayscale(0%) brightness(1);
}

.gap-card__customer-name {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

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

@media (max-width: 500px) {
    .gap-cards {
        grid-template-columns: 1fr;
    }
}

/* Case Study Details */
.case-study-details {
    background: var(--color-bg-secondary);
    padding: var(--space-xl) 0 var(--space-3xl);
}

.case-study-detail {
    display: none;
    animation: fadeIn 0.3s ease;
}

.case-study-detail.is-active {
    display: block;
}

.case-study {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-study:target {
    border-color: var(--color-mint);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-mint);
}

.case-study__header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: center;
}

.case-study__logo-placeholder {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study__logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-study__logo-placeholder--circular img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
}

.case-study__logo-placeholder--dual {
    gap: var(--space-sm);
}

.case-study__logo-placeholder--dual img {
    max-width: 60px;
    max-height: 60px;
}

.case-study__intro {
    flex: 1;
}

.case-study__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 var(--space-xs) 0;
}

.case-study__subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.case-study__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.case-study__section {
    /* Section spacing handled by gap */
}

.case-study__section p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--space-md) 0;
}

.case-study__section p:last-child {
    margin-bottom: 0;
}

.case-study__section-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 var(--space-md) 0;
}

.case-study__section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* External coverage section - heading distinct from links */
.case-study__external .case-study__section-label {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.case-study__section--highlight {
    background: rgba(173, 223, 186, 0.05);
    border: 1px solid rgba(173, 223, 186, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.case-study__figure {
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.case-study__figure img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study__figure figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-top: 1px solid var(--color-border);
}

.case-study__photo-credit {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.case-study__source-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-mint);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.case-study__source-link:hover {
    color: var(--color-white);
}

@media (max-width: 480px) {
    .case-study__figure figcaption {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

.case-study__quote {
    border-left: 3px solid var(--color-mint);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
}

.case-study__quote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-white);
    margin: 0 0 var(--space-sm) 0;
}

.case-study__quote cite {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--color-text-muted);
}

.case-study__external {
    background: rgba(173, 223, 186, 0.05);
    border: 1px solid rgba(173, 223, 186, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.case-study__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.case-study__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-mint);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.case-study__link:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .case-study__header {
        grid-template-columns: 1fr;
    }

    .case-study__logo-placeholder {
        width: 100%;
        max-width: 200px;
    }
}

/* --- Final CTA --- */
.final-cta {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(173, 223, 186, 0.15), transparent 70%),
        var(--color-bg-tertiary);
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
}

.final-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

/* Direct text styles (no placeholder wrappers needed) */
.final-cta__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.final-cta__text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* Legacy support for placeholder-box wrappers */
.final-cta__headline {
    margin-bottom: var(--space-md);
}

.final-cta__subhead {
    margin-bottom: var(--space-lg);
}

.final-cta .btn--primary {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-lg);
    box-shadow: var(--shadow-md), 0 0 30px rgba(173, 223, 186, 0.2);
}

.final-cta .btn--primary:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(173, 223, 186, 0.3);
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: start;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__logo-icon {
    height: 40px;
    width: auto;
}

.footer__logo-wordmark {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-2xl);
}

.footer__column h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: var(--space-xs);
}

.footer__column a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer__column a:hover {
    color: var(--color-mint);
}

.footer__bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-emphasis);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__inner {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .hero__inner--sidebar {
        flex-direction: column;
    }

    /* Sidebar becomes horizontal strip on tablet */
    .telemetry-sidebar {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .telemetry-sidebar__header {
        width: 100%;
    }

    .telemetry-card {
        flex: 1 1 100px;
        min-width: 100px;
    }

    .telemetry-progress {
        width: 100%;
    }

    .telemetry-feed__label {
        width: 100%;
    }

    .telemetry-feed {
        flex: none;
        width: 100%;
        height: 60px;
        flex-direction: column-reverse;
        gap: 4px;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .founder__photo {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 2rem;
        --space-4xl: 2.5rem;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__cta {
        margin-left: 0;
        margin-top: var(--space-sm);
    }

    /* Hero badge - responsive at 768px */
    .hero__badge {
        padding: 10px 12px;
        gap: 10px;
    }

    .hero__badge-indicator {
        width: 48px;
        height: 48px;
    }

    .hero__badge .hero__credential-text {
        width: max-content;
    }

    .hero__badge .hero__credential-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero__badge {
        bottom: 12px;
        left: 12px;
        right: auto;
        padding: 8px 10px;
        gap: 8px;
    }

    .hero__badge-indicator {
        width: 40px;
        height: 40px;
    }

    .hero__badge .hero__credential-text {
        width: max-content;
    }

    .hero__badge .hero__credential-name {
        font-size: 12px;
    }

    .hero__badge-status {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .credibility__logo img {
        height: 70px;
        max-width: 160px;
    }

    .credibility__logo--circular img {
        width: 70px;
        height: 70px;
    }

    /* Readiness Gap + Mission Coverage - mobile */
    .gap-hero {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .problem-cards {
        grid-template-columns: 1fr;
    }

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

    .domain-filters {
        flex-wrap: wrap;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__links {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --- Error Page (404) --- */
.error-page {
    min-height: calc(100vh - 200px); /* Account for footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(72px + var(--space-xl)); /* Account for fixed nav */
    padding-bottom: var(--space-4xl);
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(173, 223, 186, 0.06), transparent 70%),
        var(--color-bg-primary);
}

.error-page__inner {
    text-align: center;
    max-width: 500px;
}

.error-page__code {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--color-mint);
    line-height: 1;
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.error-page__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.error-page__message {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.error-page__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Training Game (404 Page) --- */
.game-screen {
    display: none;
    width: 100%;
}

.game-screen.is-active {
    display: block;
}

/* Ensure complete screen doesn't get cut off */
.game-complete {
    padding-top: var(--space-xl);
}

/* Intro Screen */
.game-intro__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.game-intro__prompt {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.game-intro__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Skill Decay Chart */
.skill-decay {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
}

.skill-decay__header {
    margin-bottom: var(--space-md);
}

.skill-decay__chart {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.skill-decay__y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    min-width: 40px;
    text-align: right;
}

.skill-decay__graph {
    flex: 1;
    height: 100px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-decay__curve {
    width: 100%;
    height: 100%;
}

.skill-decay__caption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Play Screen */
.game-play .container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px - 200px);
    min-height: 500px;
    max-width: 700px;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.game-play__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.game-play__readiness {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.game-play__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-play__bar {
    flex: 1;
    max-width: 300px;
    height: 12px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.game-play__bar-fill {
    height: 100%;
    background: var(--color-mint);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(173, 223, 186, 0.4);
}

.game-play__value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-mint);
    min-width: 50px;
}

.game-play__timer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.game-play__timer .game-play__value {
    color: var(--color-text-primary);
}

/* Game Area */
.game-area {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    min-height: 300px;
    box-shadow: var(--shadow-lg);
}

.game-area__hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    pointer-events: none;
    opacity: 0.5;
}

/* Game Target */
.game-target {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-mint), var(--color-mint-secondary));
    border: 2px solid var(--color-white);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 0 20px rgba(173, 223, 186, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.game-target::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: var(--color-white);
    border-radius: 50%;
    opacity: 0.9;
}

.game-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.game-target.is-visible {
    opacity: 1;
    transform: scale(1);
}

.game-target.is-hit {
    background: var(--color-white);
    transform: scale(1.3);
    opacity: 0;
}

.game-target.is-missed {
    background: var(--color-text-muted);
    transform: scale(0.8);
    opacity: 0;
}

.game-target:focus {
    outline: none;
}

/* Game Stats */
.game-play__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
    flex-shrink: 0;
}

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

.game-stat__label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.game-stat__value {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Complete Screen */
.game-complete__inner {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.game-complete__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
    color: var(--color-mint);
}

.game-complete__readiness {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.game-complete__readiness-label {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.game-complete__readiness-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-mint);
}

.game-complete__bar {
    width: 100%;
    height: 16px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.game-complete__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-mint-secondary), var(--color-mint));
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(173, 223, 186, 0.5);
}

.game-complete__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.game-complete__stat {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.game-complete__stat--highlight {
    background: rgba(173, 223, 186, 0.1);
    border-color: var(--color-mint);
}

.game-complete__stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.game-complete__stat--highlight .game-complete__stat-value {
    color: var(--color-mint);
}

.game-complete__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-complete__message {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    border-left: 3px solid var(--color-mint);
    background: var(--color-bg-secondary);
    text-align: left;
}

.game-complete__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Dashboard (enhanced end screen) */
.game-dashboard {
    display: grid;
    grid-template-columns: auto auto;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
    justify-content: center;
}

.game-dashboard__section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint-secondary);
    margin-bottom: var(--space-sm);
}

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

.shot-grouping-canvas {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: var(--space-sm);
}

.game-dashboard__grouping-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.game-dashboard__grouping-stat .text-mono {
    font-size: var(--text-lg);
    color: var(--color-mint);
    font-weight: 600;
}

.game-dashboard__metrics {
    display: flex;
    flex-direction: column;
}

.game-complete__stats--compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.game-complete__stats--compact .game-complete__stat {
    padding: var(--space-sm);
}

.game-complete__stats--compact .game-complete__stat-value {
    font-size: var(--text-lg);
}

.game-complete__stat--wide {
    width: 100%;
    padding: var(--space-md);
}

.game-dashboard__evidence {
    background: rgba(173, 223, 186, 0.05);
    border: 1px solid rgba(173, 223, 186, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.game-dashboard__evidence .text-label {
    display: block;
    margin-bottom: var(--space-xs);
}

.game-dashboard__evidence p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Mobile Adjustments for Game */
@media (max-width: 768px) {
    .game-play .container {
        height: calc(100vh - 72px - 150px);
        min-height: 450px;
    }

    .game-play__header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .game-play__readiness {
        width: 100%;
    }

    .game-play__bar {
        max-width: none;
    }

    .game-play__stats {
        gap: var(--space-lg);
    }

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

    .game-dashboard {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .game-dashboard__visual {
        order: 2;
    }

    .game-dashboard__metrics {
        order: 1;
    }

    .shot-grouping-canvas {
        width: 160px;
        height: 160px;
        margin: 0 auto var(--space-sm);
    }

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

    .skill-decay__chart {
        flex-direction: column;
    }

    .skill-decay__y-axis {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        min-width: auto;
        padding: 0;
        margin-bottom: var(--space-xs);
    }

    .skill-decay__graph {
        height: 80px;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations (add .is-visible via JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Content Sections (for inner pages) --- */
.content-section {
    padding: var(--space-xl) 0;
}

.content-section--alt {
    background: var(--color-bg-secondary);
}

.content-section--page-start {
    padding-top: calc(72px + var(--space-3xl));
}

.content-section--gradient {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    position: relative;
}

.content-section--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(173, 223, 186, 0.06), transparent 55%);
    pointer-events: none;
}

.content-section__header {
    margin-bottom: var(--space-xl);
}

.content-block {
    margin-bottom: var(--space-xl);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Fixed 2x2 grid for company info cards */
.content-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .content-grid--2x2 {
        grid-template-columns: 1fr;
    }
}

/* Company Info Cards (Procurement page) */
.company-info-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.company-info-card__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint);
}

.company-info-card__value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

.company-info-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* --- Founder Expanded (About page) --- */
.founder-expanded {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .founder-expanded {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-expanded__photo {
        display: flex;
        justify-content: center;
    }
}

/* --- Team Overview (About page) --- */
.team-overview {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.team-overview__content {
    max-width: 600px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.team-stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    min-width: 120px;
    box-shadow: var(--shadow-sm);
}

/* Third stat spans full width and centers below */
.team-stat:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
}

.team-stat__number {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-mint);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.team-stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-careers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(173, 223, 186, 0.05);
    border: 1px solid rgba(173, 223, 186, 0.15);
    border-radius: var(--radius-md);
}

.team-careers__content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.team-careers__content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .team-overview {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .team-stats {
        justify-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .team-careers {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Locations Grid (About page) --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.location-card {
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.location-card:hover {
    border-color: var(--color-mint);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-md);
}

.location-card__city {
    display: block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.location-card__address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

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

/* --- Forms --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group--empty {
    display: none;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-input {
    padding: var(--space-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-mint);
    background: var(--color-bg-elevated);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    padding-right: calc(var(--space-sm) + 24px);
    cursor: pointer;
}

select.form-input option {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

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

.form-error {
    font-size: var(--text-sm);
    color: var(--color-danger);
    min-height: 0;
}

.form-input.is-invalid {
    border-color: var(--color-danger);
}

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

/* Checkbox */
.form-group--checkbox {
    margin-top: var(--space-xs);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-checkbox__indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-sm);
    background: var(--color-bg-tertiary);
    position: relative;
    margin-top: 1px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.form-checkbox__indicator::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--color-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__indicator {
    background: var(--color-mint);
    border-color: var(--color-mint);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__indicator::after {
    opacity: 1;
}

.form-checkbox input[type="checkbox"]:focus-visible + .form-checkbox__indicator {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}

/* Honeypot (invisible to humans) */
.contact-form [name="bot-field"] {
    position: absolute;
    left: -9999px;
}

/* Form messages */
.form-message {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

.form-message--success {
    background: rgba(173, 223, 186, 0.12);
    border: 1px solid var(--color-mint-dark);
    color: var(--color-mint);
}

.form-message--error {
    background: rgba(248, 81, 73, 0.12);
    border: 1px solid var(--color-danger-border);
    color: var(--color-danger);
}

.form-message--error a {
    color: inherit;
    text-decoration: underline;
}

/* Loading / submitting state */
.contact-form.is-submitting .form-input,
.contact-form.is-submitting .btn {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Patents (loaded dynamically) --- */
.patent-list {
    list-style: none;
}

.patent-item {
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.patent-number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-mint);
    display: block;
    margin-bottom: var(--space-xs);
}

.patent-title {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.patent-pending {
    color: var(--color-text-muted);
    font-style: italic;
}

.patent-table {
    width: 100%;
    border-collapse: collapse;
}

.patent-table th,
.patent-table td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.patent-table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.patent-table td {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

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

.patent-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Grant Assistance (Procurement page) --- */
.grants-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.grants-service {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.grants-service:hover {
    border-color: var(--color-mint);
    background: var(--color-bg-elevated);
}

.grants-service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(173, 223, 186, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-mint);
    flex-shrink: 0;
}

.grants-service__content h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.grants-service__content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.grants-cta {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(173, 223, 186, 0.05);
    border: 1px solid rgba(173, 223, 186, 0.15);
    border-radius: var(--radius-md);
}

.grants-cta p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

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


/* --- Pipeline (How It Works) --- */
.pipeline-wrap {
    position: relative;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    position: relative;
}

/* Connecting line */
.pipeline-line {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 0;
}

.pipeline-line-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-border), var(--color-mint-dark), var(--color-mint));
    opacity: 0.3;
}

.pipeline-line-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-border-emphasis), var(--color-mint-secondary), var(--color-mint));
    clip-path: inset(0 100% 0 0);
}

.pipeline-wrap.is-visible .pipeline-line-fill {
    clip-path: inset(0 0% 0 0);
    transition: clip-path 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Chevrons */
.pipeline-chevrons {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.pipeline-chevron {
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-mint-secondary);
    border-top: 2px solid var(--color-mint-secondary);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pipeline-wrap.is-visible .pipeline-chevron { opacity: 0.6; }
.pipeline-chevron:nth-child(1) { left: calc(25% - 5px); transition-delay: 0.5s; }
.pipeline-chevron:nth-child(2) { left: calc(50% - 5px); transition-delay: 1.0s; }
.pipeline-chevron:nth-child(3) { left: calc(75% - 5px); transition-delay: 1.4s; }

/* Panels */
.pipeline-panel {
    position: relative;
    z-index: 1;
    border: 1px solid var(--color-border);
    border-right: none;
    background: rgba(13, 17, 23, 0.85);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pipeline-wrap.is-visible .pipeline-panel { opacity: 1; transform: translateY(0); }
.pipeline-wrap.is-visible .pipeline-panel:nth-child(1) { transition-delay: 0.1s; }
.pipeline-wrap.is-visible .pipeline-panel:nth-child(2) { transition-delay: 0.35s; }
.pipeline-wrap.is-visible .pipeline-panel:nth-child(3) { transition-delay: 0.6s; }
.pipeline-wrap.is-visible .pipeline-panel:nth-child(4) { transition-delay: 0.85s; }

.pipeline-panel:last-child {
    border-right: 1px solid var(--color-mint-dark);
    border-color: var(--color-mint-dark);
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.85), rgba(173, 223, 186, 0.06));
}

/* Visual zone at top of each panel */
.pipeline-icon-zone {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm);
    position: relative;
    overflow: hidden;
    color: var(--color-text-secondary);
}

.pipeline-panel:last-child .pipeline-icon-zone {
    border-bottom-color: rgba(173, 223, 186, 0.15);
    background: rgba(173, 223, 186, 0.03);
}

.pipeline-icon-zone svg {
    width: 100%;
    max-width: 140px;
    height: auto;
    flex-shrink: 0;
}

/* Content zone */
.pipeline-content {
    padding: var(--space-md);
}

.pipeline-step-num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    color: var(--color-mint);
    margin-bottom: 0.75rem;
}

.pipeline-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.pipeline-accent-line {
    width: 24px;
    height: 2px;
    background: var(--color-border);
    margin-bottom: 0.75rem;
}

.pipeline-panel:last-child .pipeline-accent-line { background: var(--color-mint); }

.pipeline-step-text {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.pipeline-panel:last-child .pipeline-step-text { color: var(--color-text-primary); }

/* Detail lists */
.pipeline-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pipeline-detail-list li {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}

.pipeline-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-border-emphasis);
}

.pipeline-detail-list--mint li::before {
    background: var(--color-mint-secondary);
}

@media (max-width: 900px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    .pipeline-panel { border-right: 1px solid var(--color-border); }
    .pipeline-panel:last-child { border-right: 1px solid var(--color-mint-dark); }
    .pipeline-line, .pipeline-chevrons { display: none; }
    .pipeline-icon-zone { height: 100px; }
}

/* --- Specs Section (How It Works — Stacked Full-Width) --- */
.specs-section {
    padding: var(--space-3xl) 0;
}

.specs-section__header {
    margin-bottom: var(--space-xl);
}

.specs-section__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    color: var(--color-mint-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.specs-section__title {
    font-size: var(--text-2xl);
    font-weight: 600;
}

.specs-block {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.specs-block:last-of-type {
    border-bottom: 1px solid var(--color-border);
}

.specs-block__label {
    padding-right: var(--space-lg);
}

.specs-block__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.specs-block__name {
    font-size: var(--text-base);
    font-weight: 600;
}

.specs-block__count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.specs-block__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.specs-sub-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    padding-bottom: 0.3rem;
    margin-bottom: 0.15rem;
    grid-column: 1 / -1;
}

.specs-sub-label:not(:first-child) {
    margin-top: 0.75rem;
}

.specs-block__prose {
    grid-column: 1 / -1;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding: 0.35rem 0 0.5rem;
}

.specs-block__prose a {
    color: var(--color-mint-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(173, 223, 186, 0.3);
    transition: border-color 0.2s;
}

.specs-block__prose a:hover {
    border-color: var(--color-mint-secondary);
}

.specs-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(240, 246, 252, 0.04);
}

.specs-item__name {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.specs-item__value {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-mint-secondary);
    white-space: nowrap;
    margin-left: 0.75rem;
}

/* Creator inline callout */
.specs-creator {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(173, 223, 186, 0.15);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.specs-creator__badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--color-mint);
    background: rgba(173, 223, 186, 0.08);
    border: 1px solid var(--color-mint-dark);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}

.specs-creator__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.15rem;
}

.specs-creator__text {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.specs-creator__features {
    list-style: none;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.specs-creator__features li {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    padding: 0.2rem 0;
    padding-left: 0.9rem;
    position: relative;
}

.specs-creator__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-mint-secondary);
}

/* Ranges grid */
.specs-ranges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.specs-range {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(240, 246, 252, 0.04);
}

.specs-range__name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.specs-range__detail {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .specs-block {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .specs-block__body {
        grid-template-columns: 1fr;
    }
    .specs-creator__features {
        grid-template-columns: 1fr;
    }
    .specs-ranges {
        grid-template-columns: 1fr;
    }
}

/* --- Mission Split Layout --- */
.mission-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.mission-split__accent {
    width: 48px;
    height: 2px;
    background: var(--color-mint);
    border: none;
    margin: var(--space-md) 0;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .mission-split {
        grid-template-columns: 1fr;
    }
}

/* --- Gradient Hero (inner pages) --- */
.gradient-hero {
    padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    position: relative;
}

.gradient-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(173, 223, 186, 0.06), transparent 55%);
    pointer-events: none;
}

.gradient-hero__accent {
    width: 48px;
    height: 2px;
    background: var(--color-mint);
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.gradient-hero__headline {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
}

.gradient-hero__sub {
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    max-width: 480px;
    position: relative;
}

/* --- DoW Thesis — Pull Quote Section --- */
.dow-thesis {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind the quote */
.dow-thesis::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(173, 223, 186, 0.06), transparent 70%);
    pointer-events: none;
}

.dow-thesis__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.dow-thesis__context {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.dow-thesis__rule {
    width: 48px;
    height: 1px;
    background: var(--color-mint);
    opacity: 0.5;
    margin: var(--space-lg) auto;
}

.dow-thesis__quote {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text-primary);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    border: none;
}

.dow-thesis__deliverables {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.dow-thesis__deliverable {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mint-secondary);
}

.dow-thesis__dot {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .dow-thesis {
        padding: var(--space-3xl) 0;
    }

    .dow-thesis__quote {
        font-size: var(--text-2xl);
    }

    .dow-thesis__deliverables {
        gap: var(--space-xs) var(--space-sm);
    }
}

/* --- Content Utilities (replacing inline styles) --- */
.text-headline--mt { margin-top: var(--space-sm); }
.text-headline--spaced { margin-top: var(--space-sm); margin-bottom: var(--space-md); }
.content-section__header--centered { text-align: center; margin-bottom: var(--space-xl); }
.content-grid--mt { margin-top: var(--space-lg); }
.patent-list-container { margin-top: var(--space-lg); }

/* About page */
.about-body-col { padding-top: var(--space-xl); }
.about-body-text {
    margin-top: var(--space-md);
    line-height: 1.8;
    color: var(--color-text-secondary);
}
.procurement-list {
    margin-top: var(--space-md);
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.procurement-note {
    margin-top: var(--space-md);
    color: var(--color-text-muted);
}
.founder-story { margin-top: var(--space-md); }
.founder-story__lead {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}
.founder-story__text {
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}
.founder-story__text:last-child { margin-bottom: 0; }
.founder__attribution { margin-top: var(--space-xl); }
.founder__subtitle {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}
.contact-form-wrapper { max-width: 720px; margin: 0 auto; }

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background: var(--color-mint);
    color: var(--color-black);
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    width: auto;
    height: auto;
    overflow: visible;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* --- Global Focus Indicators --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}

/* --- Mission Grid — mid-size viewport text scaling --- */
@media (max-width: 768px) {
    .mission-tile__reveal-text {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .mission-tile__reveal-label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
}

/* --- Mission Grid Small Screen Fallback --- */
@media (max-width: 480px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid--extensible {
        grid-template-columns: 1fr;
    }

    .mission-tile__reveal-text {
        font-size: var(--text-sm);
        line-height: 1.5;
    }

    .mission-tile__reveal-label {
        font-size: var(--text-xs);
    }
}

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

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hero__video-container {
        opacity: 1;
    }

    .pipeline-panel {
        opacity: 1;
        transform: none;
    }

    .pipeline-chevron {
        opacity: 0.6;
    }

    .pipeline-line-fill {
        width: 100%;
    }
}

