/* ================================================================
   Vela Intelligence — shared stylesheet
   Canonical source for tokens, components, layout, and responsive
   behaviour across every page. See docs/style-guide.md.
   ================================================================ */

/* ──────────────────────────────────────────────
   TOKENS
   ────────────────────────────────────────────── */
:root {
    /* Brand anchors — names kept for backwards compatibility with existing rules,
       but values now point at the canonical OKLCH brand-palette swatches.
       See brand-kit.md in the Vela Intelligence Brand Assets repo. */
    --primary-navy:        oklch(0.260 0.087 260);   /* Indigo 900 */
    --primary-emerald:     oklch(0.450 0.114 163);   /* Emerald 600 */
    --accent-orange:       oklch(0.630 0.181 50);    /* Ember 400 — the singular CTA */
    --secondary-gray:      oklch(0.980 0.011 248);   /* Slate 50 */
    --secondary-sand:      oklch(0.830 0.075 90);    /* Gold 200 */

    /* Brand palettes — 11-stop OKLCH scales (50 → 950), mirrored from the
       app design system (vela-ds-source/packages/tokens). Hue and peak
       chroma per family; chroma follows a Gaussian curve so tints/shades
       stay perceptually balanced across the range.
       Rough anchor mapping: navy ≈ 900, emerald ≈ 600, orange ≈ 400–500. */

    /* primary — hue 260, peak chroma 0.160 */
    --brand-primary-50:    oklch(0.980 0.0721 260);
    --brand-primary-100:   oklch(0.930 0.0970 260);
    --brand-primary-200:   oklch(0.830 0.1220 260);
    --brand-primary-300:   oklch(0.730 0.1430 260);
    --brand-primary-400:   oklch(0.630 0.1565 260);
    --brand-primary-500:   oklch(0.550 0.1598 260);
    --brand-primary-600:   oklch(0.450 0.1522 260);
    --brand-primary-700:   oklch(0.370 0.1353 260);
    --brand-primary-800:   oklch(0.300 0.1122 260);
    --brand-primary-900:   oklch(0.260 0.0869 260);
    --brand-primary-950:   oklch(0.220 0.0627 260);

    /* secondary — hue 163, peak chroma 0.120 */
    --brand-secondary-50:  oklch(0.980 0.0540 163);
    --brand-secondary-100: oklch(0.930 0.0728 163);
    --brand-secondary-200: oklch(0.830 0.0915 163);
    --brand-secondary-300: oklch(0.730 0.1073 163);
    --brand-secondary-400: oklch(0.630 0.1174 163);
    --brand-secondary-500: oklch(0.550 0.1198 163);
    --brand-secondary-600: oklch(0.450 0.1142 163);
    --brand-secondary-700: oklch(0.370 0.1015 163);
    --brand-secondary-800: oklch(0.300 0.0842 163);
    --brand-secondary-900: oklch(0.260 0.0651 163);
    --brand-secondary-950: oklch(0.220 0.0470 163);

    /* accent — hue 50, peak chroma 0.185 */
    --brand-accent-50:     oklch(0.980 0.0833  50);
    --brand-accent-100:    oklch(0.930 0.1122  50);
    --brand-accent-200:    oklch(0.830 0.1410  50);
    --brand-accent-300:    oklch(0.730 0.1654  50);
    --brand-accent-400:    oklch(0.630 0.1809  50);
    --brand-accent-500:    oklch(0.550 0.1847  50);
    --brand-accent-600:    oklch(0.450 0.1760  50);
    --brand-accent-700:    oklch(0.370 0.1565  50);
    --brand-accent-800:    oklch(0.300 0.1298  50);
    --brand-accent-900:    oklch(0.260 0.1004  50);
    --brand-accent-950:    oklch(0.220 0.0725  50);

    /* Tertiary — Slate, hue 248, peak chroma 0.040 (cool gray for text on dark) */
    --slate-50:            oklch(0.980 0.011 248);
    --slate-100:           oklch(0.930 0.014 248);
    --slate-200:           oklch(0.830 0.020 248);
    --slate-300:           oklch(0.730 0.029 248);
    --slate-400:           oklch(0.630 0.038 248);
    --slate-500:           oklch(0.550 0.040 248);
    --slate-600:           oklch(0.450 0.038 248);
    --slate-700:           oklch(0.370 0.033 248);
    --slate-800:           oklch(0.300 0.026 248);
    --slate-900:           oklch(0.260 0.018 248);
    --slate-950:           oklch(0.220 0.012 248);

    /* Tertiary — Gold, hue 90, peak chroma 0.100 (warm contrast — sand surface) */
    --gold-50:             oklch(0.980 0.045 90);
    --gold-100:            oklch(0.930 0.060 90);
    --gold-200:            oklch(0.830 0.075 90);
    --gold-300:            oklch(0.730 0.089 90);
    --gold-400:            oklch(0.630 0.097 90);
    --gold-500:            oklch(0.550 0.100 90);
    --gold-600:            oklch(0.450 0.094 90);
    --gold-700:            oklch(0.370 0.084 90);
    --gold-800:            oklch(0.300 0.070 90);
    --gold-900:            oklch(0.260 0.054 90);
    --gold-950:            oklch(0.220 0.039 90);

    /* Chart accent palettes — extend the brand triad for multi-series data viz.
       Use the 400 shade for chart series (consistent lightness across all hues). */

    /* Lime — hue 115, peak chroma 0.155 (yellow-green) */
    --lime-50:             oklch(0.980 0.070 115);
    --lime-100:            oklch(0.930 0.095 115);
    --lime-200:            oklch(0.830 0.118 115);
    --lime-300:            oklch(0.730 0.138 115);
    --lime-400:            oklch(0.630 0.150 115);
    --lime-500:            oklch(0.550 0.155 115);
    --lime-600:            oklch(0.450 0.147 115);
    --lime-700:            oklch(0.370 0.130 115);
    --lime-800:            oklch(0.300 0.108 115);
    --lime-900:            oklch(0.260 0.084 115);
    --lime-950:            oklch(0.220 0.060 115);

    /* Pool — hue 215, peak chroma 0.145 (sky-blue) */
    --pool-50:             oklch(0.980 0.065 215);
    --pool-100:            oklch(0.930 0.088 215);
    --pool-200:            oklch(0.830 0.110 215);
    --pool-300:            oklch(0.730 0.129 215);
    --pool-400:            oklch(0.630 0.141 215);
    --pool-500:            oklch(0.550 0.145 215);
    --pool-600:            oklch(0.450 0.138 215);
    --pool-700:            oklch(0.370 0.122 215);
    --pool-800:            oklch(0.300 0.101 215);
    --pool-900:            oklch(0.260 0.078 215);
    --pool-950:            oklch(0.220 0.057 215);

    /* Plum — hue 340, peak chroma 0.170 (pink-purple) */
    --plum-50:             oklch(0.980 0.077 340);
    --plum-100:            oklch(0.930 0.104 340);
    --plum-200:            oklch(0.830 0.129 340);
    --plum-300:            oklch(0.730 0.151 340);
    --plum-400:            oklch(0.630 0.165 340);
    --plum-500:            oklch(0.550 0.170 340);
    --plum-600:            oklch(0.450 0.162 340);
    --plum-700:            oklch(0.370 0.143 340);
    --plum-800:            oklch(0.300 0.119 340);
    --plum-900:            oklch(0.260 0.092 340);
    --plum-950:            oklch(0.220 0.066 340);

    /* Amber — hue 75, peak chroma 0.165 (warm yellow) */
    --amber-50:            oklch(0.980 0.074 75);
    --amber-100:           oklch(0.930 0.101 75);
    --amber-200:           oklch(0.830 0.125 75);
    --amber-300:           oklch(0.730 0.147 75);
    --amber-400:           oklch(0.630 0.160 75);
    --amber-500:           oklch(0.550 0.165 75);
    --amber-600:           oklch(0.450 0.157 75);
    --amber-700:           oklch(0.370 0.139 75);
    --amber-800:           oklch(0.300 0.115 75);
    --amber-900:           oklch(0.260 0.089 75);
    --amber-950:           oklch(0.220 0.064 75);

    /* Teal — hue 195, peak chroma 0.125 (blue-green) */
    --teal-50:             oklch(0.980 0.056 195);
    --teal-100:            oklch(0.930 0.076 195);
    --teal-200:            oklch(0.830 0.095 195);
    --teal-300:            oklch(0.730 0.111 195);
    --teal-400:            oklch(0.630 0.121 195);
    --teal-500:            oklch(0.550 0.125 195);
    --teal-600:            oklch(0.450 0.119 195);
    --teal-700:            oklch(0.370 0.105 195);
    --teal-800:            oklch(0.300 0.087 195);
    --teal-900:            oklch(0.260 0.068 195);
    --teal-950:            oklch(0.220 0.049 195);

    /* Surfaces — Indigo ramp (the brand canvas). */
    --primary-black:       oklch(0.220 0.063 260);   /* Indigo 950 — deepest focal surface */
    --secondary-charcoal:  oklch(0.300 0.112 260);   /* Indigo 800 — raised cards */
    --tertiary-gray:       oklch(0.370 0.135 260);   /* Indigo 700 — popovers, headers */
    --border-subtle:       oklch(0.300 0.026 248);   /* Slate 800 — structural neutral border on dark */

    /* Text — Slate ramp (cool gray, hue 248). */
    --text-primary:        oklch(0.980 0.011 248);   /* Slate 50 */
    --text-secondary:      oklch(0.830 0.020 248);   /* Slate 200 */
    --text-muted:          oklch(0.630 0.038 248);   /* Slate 400 */

    /* Utility */
    /* utility-negative is Ember 600 — a deep urgent burnt orange that stays
       inside the Ember palette and reads as "stop", clearly distinct from
       the CTA Ember 400. */
    --utility-negative:    oklch(0.450 0.176 50);    /* Ember 600 */
    --utility-e:           oklch(0.730 0.107 163);   /* Emerald 300 — Environmental pillar */
    --utility-s:           oklch(0.730 0.089 90);    /* Gold 300 — Social pillar */

    /* Spacing */
    --spacing-xs:          0.5rem;
    --spacing-sm:          1rem;
    --spacing-md:          2rem;
    --spacing-lg:          4rem;
    --spacing-xl:          6rem;
    --spacing-xxl:         8rem;

    /* Typography */
    --font-display:        'Manrope', sans-serif;
    --font-body:           'Inter', sans-serif;
    --font-mono:           'JetBrains Mono', monospace;
}

/* ──────────────────────────────────────────────
   RESET
   ────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Links inherit their container's color by default so the browser's visited purple
   never bleeds through. Component rules (.prose a, .nav-link, etc.) override.      */
a,
a:visited { color: inherit; }
body {
    font-family: var(--font-display);
    background-color: var(--primary-navy);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ──────────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────────── */
.headline-hero    { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; margin-bottom: var(--spacing-md); }
.headline-section { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: var(--spacing-md); }
.subheadline      { font-family: var(--font-body); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 400; color: var(--text-secondary); line-height: 1.4; margin-bottom: var(--spacing-md); }
.body-large       { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; margin-bottom: var(--spacing-sm); }
.body-regular     { font-family: var(--font-body); font-size: 1rem;    line-height: 1.6; margin-bottom: var(--spacing-sm); }
.text-small       { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); font-weight: 400; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    display: block;
}
.eyebrow--sm { font-size: 0.75rem; letter-spacing: 0.12em; }

/* ──────────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

.section {
    padding: var(--spacing-xxl) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.visible       { opacity: 1; transform: translateY(0); }
.no-js .section        { opacity: 1; transform: none; }
.section--compact      { padding-top: var(--spacing-md); }   /* top only — keep full bottom so the section breathes into the footer */
.section--hero-offset  { padding-top: calc(80px + var(--spacing-xxl)); }

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: var(--spacing-xl) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;                              gap: var(--spacing-lg); margin: var(--spacing-lg) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);                        gap: var(--spacing-md); margin: var(--spacing-lg) 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); margin: var(--spacing-lg) 0; }

/* ──────────────────────────────────────────────
   HEADER & NAVIGATION
   ────────────────────────────────────────────── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: var(--spacing-sm) 0;
    background: oklch(0.260 0.087 260 / 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-content { display: flex; align-items: center; justify-content: space-between; }

.logo-lockup { display: flex; align-items: center; text-decoration: none; }
.logo {
    /* Combined star-mark + "VELA INTELLIGENCE" wordmark — SVG uses fill=currentColor, inherits brand color. */
    display: block;
    height: 36px;
    width: auto;
    color: var(--text-primary);
}

.main-nav  { display: flex; align-items: center; gap: var(--spacing-md); }
.nav-item  { position: relative; display: inline-flex; align-items: center; }
.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    background: none; border: none; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; gap: 0.4em;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-chevron { font-size: 0.65em; transition: transform 0.2s ease; display: inline-block; width: 0.65em; min-width: 0.65em; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}
.nav-item.open .dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }

.dropdown-item {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem var(--spacing-sm);
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.2s, background 0.2s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { color: var(--text-primary); background: var(--tertiary-gray); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}
.mobile-menu.open { background: var(--primary-black); max-height: 500px; border-top-color: var(--border-subtle); }
.mobile-menu-inner { padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md); display: flex; flex-direction: column; }

.mobile-section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: var(--spacing-sm) 0 0.4rem;
}
.mobile-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.2s;
}
.mobile-link:hover { color: var(--text-primary); }
.mobile-cta { margin-top: var(--spacing-md); justify-content: center; }

/* ──────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
    padding-top: 80px;
}
.hero-content    { position: relative; z-index: 2; }
.hero-supporting { max-width: 600px; margin-bottom: var(--spacing-lg); }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

/* Oversized hero-eyebrow lockup — used when the eyebrow IS the wordmark
   (e.g. Vela Labs hero). Scales the SVG with the text via em units. */
.hero-eyebrow--xl {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}
.hero-eyebrow--xl svg {
    width: auto;
    height: 1em;
}

/* ──────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary        { border-color: var(--accent-orange); background: var(--accent-orange); color: var(--secondary-gray); }
.btn-primary:hover  { background: transparent; color: var(--accent-orange); box-shadow: 0 0 20px oklch(0.630 0.181 50 / 0.3); }

.btn-secondary       { color: var(--text-secondary); border-color: var(--border-subtle); margin-left: var(--spacing-sm); }
.btn-secondary:hover { color: var(--text-primary); border-color: var(--text-secondary); }

.btn-group { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; align-items: flex-start; }
.btn-group .btn { flex: 0 0 auto; margin-left: 0; }
.btn-group--center { justify-content: center; margin-top: var(--spacing-lg); }

.cta-block { text-align: center; max-width: 600px; margin: 0 auto; }

/* ──────────────────────────────────────────────
   CARDS
   ────────────────────────────────────────────── */
.card {
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
}
.card:hover       { border-color: var(--primary-emerald); box-shadow: 0 0 30px oklch(0.450 0.114 163 / 0.2); }
.card-title       { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-sm); color: var(--text-primary); }
.card-description { font-family: var(--font-body); color: var(--text-secondary); line-height: 1.5; font-size: 0.95rem; }

/* Small accent badge above a card title — e.g. POST, WHITEPAPER, OVERVIEW.
   Same visual vocabulary as .project-tag on the labs page, scoped for cards. */
.card-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    border: 1px solid oklch(0.630 0.181 50 / 0.35);
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.card-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-orange);
    border: 1px solid oklch(0.630 0.181 50 / 0.35);
    padding: 0.2rem 0.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Icon box */
.icon-box {
    width: 42px; height: 42px;
    background: var(--primary-emerald);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}
.icon-box i { font-size: 1.125rem; color: var(--text-primary); }

/* ──────────────────────────────────────────────
   PILLARS
   ────────────────────────────────────────────── */
.pillar             { text-align: center; padding: var(--spacing-md); }
.pillar-icon        {
    width: 60px; height: 60px;
    background: var(--primary-emerald);
    margin: 0 auto var(--spacing-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-gray);
}
.pillar-title       { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
.pillar-description { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.9rem; }

/* ESG pillar labels */
.pillar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}
.pillar-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pillar-e { color: var(--utility-e); }
.pillar-e .pillar-label-dot { background: var(--utility-e); box-shadow: 0 0 8px oklch(0.730 0.107 163 / 0.6); }
.pillar-s { color: var(--utility-s); }
.pillar-s .pillar-label-dot { background: var(--utility-s); box-shadow: 0 0 8px oklch(0.730 0.089 90 / 0.6); }
.pillar-g { color: var(--text-muted); }
.pillar-g .pillar-label-dot { background: var(--text-muted); }

/* ──────────────────────────────────────────────
   STEP / PROCESS CARDS
   ────────────────────────────────────────────── */
.step-card {
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}
.step-card:hover { border-color: var(--primary-emerald); }

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-emerald);
    display: block;
    margin-bottom: var(--spacing-sm);
}
.step-title { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
.step-desc  { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

.step-list { list-style: none; padding: 0; margin-top: var(--spacing-xs); }
.step-list li {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 3px 0;
    padding-left: var(--spacing-sm);
    position: relative;
}
.step-list li:before { content: "—"; color: var(--primary-emerald); position: absolute; left: 0; }

/* ──────────────────────────────────────────────
   STATS
   ────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }

.stat        { background: var(--secondary-charcoal); border: 1px solid var(--border-subtle); padding: var(--spacing-md); }
.stat-value  { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--spacing-xs); }
.stat-label  { font-family: var(--font-body); font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; }
.stat-key    { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--spacing-xs); }
.stat-icon   { font-size: 1.25rem; color: var(--primary-emerald); margin-bottom: var(--spacing-sm); display: block; }

/* ──────────────────────────────────────────────
   BANNER (pull quote / highlight box)
   ────────────────────────────────────────────── */
.banner {
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary-emerald);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ──────────────────────────────────────────────
   IDENTITY CARDS (top-border accent card)
   ────────────────────────────────────────────── */
.identity-card {
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--primary-emerald);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}
.identity-card:hover { box-shadow: 0 0 20px oklch(0.450 0.114 163 / 0.15); }
.identity-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
.identity-card p  { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* ──────────────────────────────────────────────
   OUTPUT CARDS (with nested bullet list)
   ────────────────────────────────────────────── */
.output-card {
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}
.output-card:hover      { border-color: var(--primary-emerald); }
.output-card h3         { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--spacing-sm); }
.output-card > p        { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin-bottom: var(--spacing-sm); }
.output-card ul         { list-style: none; padding: 0; }
.output-card li {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: var(--spacing-sm);
    position: relative;
}
.output-card li:before  { content: "•"; color: var(--primary-emerald); position: absolute; left: 0; font-weight: bold; }

/* ──────────────────────────────────────────────
   USE CASES
   ────────────────────────────────────────────── */
.use-case           { background: var(--secondary-charcoal); border-left: 3px solid var(--primary-emerald); padding: var(--spacing-md); margin-bottom: var(--spacing-md); }
.use-case-title     { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--spacing-sm); color: var(--text-primary); }
.use-case-what      { font-family: var(--font-body); margin-bottom: var(--spacing-sm); color: var(--text-primary); }
.use-case-what ul   { list-style: none; padding-left: 0; margin-top: var(--spacing-xs); }
.use-case-what li   { padding: 2px 0; position: relative; padding-left: var(--spacing-sm); color: var(--text-secondary); }
.use-case-what li:before { content: "•"; color: var(--primary-emerald); font-weight: bold; position: absolute; left: 0; }
.use-case-why       { font-family: var(--font-body); color: var(--text-secondary); font-style: italic; }

.use-case-card      { background: var(--secondary-charcoal); border-left: 3px solid var(--primary-emerald); padding: var(--spacing-md); transition: all 0.3s ease; }
.use-case-card:hover{ box-shadow: 0 0 30px oklch(0.450 0.114 163 / 0.15); }
.use-case-card h3   { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--spacing-xs); }
.use-case-card p    { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* ──────────────────────────────────────────────
   PRINCIPLES
   ────────────────────────────────────────────── */
.principles-grid  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); margin-top: var(--spacing-lg); }
.principle        { padding: var(--spacing-md) 0; border-top: 1px solid var(--border-subtle); }
.principle-number { font-family: var(--font-mono); font-size: 1.5rem; color: var(--primary-emerald); display: block; margin-bottom: var(--spacing-sm); }
.principle-title  { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-xs); color: var(--text-primary); }
.principle-desc   { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* ──────────────────────────────────────────────
   AUDIENCE CARDS
   ────────────────────────────────────────────── */
.audience-grid       { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); margin-top: var(--spacing-lg); }
.audience-card       { background: var(--secondary-charcoal); border: 1px solid var(--border-subtle); padding: var(--spacing-md); transition: all 0.3s ease; }
.audience-card:hover { border-color: var(--primary-emerald); }
.audience-label      { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--spacing-xs); }
.audience-desc       { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* ──────────────────────────────────────────────
   CONTRAST LISTS
   ────────────────────────────────────────────── */
.contrast-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); margin: var(--spacing-lg) 0; }
.contrast-column h4  { font-size: 1.125rem; margin-bottom: var(--spacing-sm); }
.contrast-negative   { font-family: var(--font-body); color: var(--text-muted); list-style: none; padding-left: 0; }
.contrast-negative li          { padding: var(--spacing-xs) 0; position: relative; }
.contrast-negative li:before   { content: "×"; color: var(--utility-negative); font-weight: bold; margin-right: var(--spacing-xs); }
.contrast-positive   { font-family: var(--font-body); color: var(--primary-emerald); list-style: none; padding-left: 0; }
.contrast-positive li          { padding: var(--spacing-xs) 0; position: relative; }
.contrast-positive li:before   { content: "✓"; color: var(--primary-emerald); font-weight: bold; margin-right: var(--spacing-xs); }

/* ──────────────────────────────────────────────
   TABLE (comparison / data)
   ────────────────────────────────────────────── */
.table-wrap   { background: var(--secondary-charcoal); border: 1px solid var(--border-subtle); overflow: hidden; }
table         { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td        { padding: 1.25rem var(--spacing-md); text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
th            { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,0.02); }
td            { font-family: var(--font-body); color: var(--text-secondary); }
td strong     { color: var(--text-primary); }
tr:last-child td { border-bottom: none; }

/* ──────────────────────────────────────────────
   BIO / TEAM
   ────────────────────────────────────────────── */
.team-photo-wrap {
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}
.team-photo {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.bio-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.bio-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-emerald);
    margin-bottom: var(--spacing-md);
    display: block;
}
.bio-para {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.bio-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.bio-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}
.bio-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-emerald);
    font-weight: 700;
}

/* ──────────────────────────────────────────────
   PROJECT LIST (labs)
   ────────────────────────────────────────────── */
.project-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.project-card:first-of-type      { border-top: 1px solid var(--border-subtle); }
.project-card:hover .project-name  { color: var(--primary-emerald); }
.project-card:hover .project-arrow { transform: translateX(6px); color: var(--primary-emerald); }

.project-meta { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-sm); }

.project-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    color: var(--primary-emerald);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.project-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.project-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    border: 1px solid oklch(0.630 0.181 50 / 0.35);
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
}
.project-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}
.project-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.2rem 0.6rem;
}
.project-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* ──────────────────────────────────────────────
   404 / ERROR PAGE
   ────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    text-align: center;
}
.error-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    display: block;
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.footer               { border-top: 1px solid var(--border-subtle); padding: var(--spacing-sm) 0; text-align: center; margin-top: 0; }
.footer-content       { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--spacing-sm); }

.footer-links         { display: flex; gap: var(--spacing-md); }
.footer-links a       { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-secondary); }

.footer-contact       { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-contact:hover { color: var(--primary-emerald); }

.footer-labs          { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); text-decoration: none; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; transition: color 0.2s; }
.footer-labs:hover    { color: var(--primary-emerald); }
.footer-labs svg      { opacity: 0.7; transition: opacity 0.2s; }
.footer-labs:hover svg { opacity: 1; }

/* ──────────────────────────────────────────────
   ARTICLE / POST — long-form reading
   Narrower measure, prose typography, end-matter.
   Scoped inside .article / .prose so marketing pages are unaffected.
   ────────────────────────────────────────────── */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.post-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-subtle);
}
.post-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: var(--spacing-sm) 0 var(--spacing-md);
}
.post-dek {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.post-meta-sep { opacity: 0.5; }

/* Prose scope — Inter body, generous line-height, tuned margins */
.prose {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.prose p { margin-bottom: var(--spacing-sm); }
.prose h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-top: calc(var(--spacing-md) * 1.5);
    margin-bottom: var(--spacing-sm);
}
.prose h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}
.prose ol, .prose ul {
    padding-left: 1.5rem;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}
.prose ol li, .prose ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: 0.25rem;
}
.prose ol li::marker { color: var(--accent-orange); font-weight: 600; }
.prose ul li::marker { color: var(--text-muted); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em     { font-style: italic; color: var(--text-secondary); }
.prose a,
.prose a:visited {
    color: var(--accent-orange);
    text-decoration: none;
    border-bottom: 1px solid oklch(0.630 0.181 50 / 0.35);
    transition: border-color 0.2s ease;
}
.prose a:hover { border-bottom-color: var(--accent-orange); }

/* Emphatic in-prose link to a companion post or whitepaper.
   Double underline signals "follow this link to a substantial piece",
   distinguishing it from ordinary inline references. */
.prose a.post-link,
a.post-link,
a.post-link:visited {
    display: inline-block;
    color: var(--accent-orange);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.0625rem;
    letter-spacing: 0.005em;
    text-decoration: underline;
    text-decoration-style: double;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    border-bottom: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prose a.post-link:hover,
a.post-link:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}
.post-link-wrap {
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.prose blockquote {
    border-left: 2px solid var(--primary-emerald);
    padding-left: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: var(--spacing-lg) 0;
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--secondary-charcoal);
    border: 1px solid var(--border-subtle);
    padding: 0.1em 0.4em;
    border-radius: 2px;
}

/* Larger first-paragraph / lede treatment */
.prose-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* Closing italic note — author bio, product mention, disclaimer */
.post-endnote {
    max-width: 720px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md) var(--spacing-md) 0;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.post-endnote a,
.post-endnote a:visited {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s ease;
}
.post-endnote a:hover { color: var(--accent-orange); }

/* ──────────────────────────────────────────────
   RESPONSIVE — two breakpoints, nothing more
   ────────────────────────────────────────────── */

/* 900px — navigation collapses to hamburger */
@media (max-width: 900px) {
    .header-content { display: flex; justify-content: space-between; align-items: center; }
    .main-nav       { display: none; }
    .hamburger      { display: flex; }
}

/* 768px — layout collapses to single column */
@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-sm); }
    .section   { padding: var(--spacing-lg) 0; }

    .grid-2, .grid-3, .grid-4,
    .contrast-grid, .principles-grid, .audience-grid, .stats-row { grid-template-columns: 1fr; }

    .hero-supporting { max-width: 100%; }

    .btn-secondary   { margin-left: 0; margin-top: var(--spacing-sm); }
    .footer-content  { flex-direction: column; text-align: center; }

    .banner          { padding: var(--spacing-md); }
    .team-photo      { height: 280px; }

    .project-card    { grid-template-columns: 1fr; }
    .project-arrow   { display: none; }

    /* Responsive data tables — cards via data-label */
    .table-wrap { border: none; background: transparent; }
    table, thead, tbody, tr { display: block; width: 100%; }
    thead { display: none; }
    tr { background: var(--secondary-charcoal); border: 1px solid var(--border-subtle); margin-bottom: var(--spacing-sm); padding: var(--spacing-sm); }
    td { display: block; padding: 0.75rem var(--spacing-sm); border-bottom: 1px solid var(--border-subtle); }
    tr:last-child td { border-bottom: 1px solid var(--border-subtle); }
    tr td:last-child { border-bottom: none; }
    td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
    td[data-label="Approach"] { border-top: 3px solid var(--primary-emerald); margin-top: 0.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Focus states */
.btn:focus, a:focus { outline: 2px solid var(--primary-emerald); outline-offset: 2px; }
