/* =============================================
   MYCOMER — Global Design System
   Earth tones, organic elegance, fungi-inspired
   ============================================= */

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

:root {
    /* Earth palette */
    --forest: #1B3A2D;
    --forest-deep: #0D1B14;
    --forest-light: #2A5A42;
    --earth: #8B6F47;
    --earth-light: #A8895E;
    --mycelium: #C4A265;
    --mycelium-light: #D4B97A;
    --cream: #F5F1EB;
    --cream-warm: #EDE7DD;
    --soil: #2C1E10;
    --moss: #4A6741;
    --moss-light: #6B8C5E;
    --white: #FAFAF7;
    --text-dark: #1a1a1a;
    --text-body: #3d3d3d;
    --text-muted: #6b6b6b;
    --text-light: #F5F1EB;
    --text-light-muted: rgba(245,241,235,0.65);
    --border-light: rgba(0,0,0,0.08);
    --border-dark: rgba(255,255,255,0.1);

    /* Typography scale */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* --- Utility --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6%;
}
.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 6%;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s ease, padding 0.4s var(--transition), box-shadow 0.3s ease, backdrop-filter 0.5s ease;
}
.site-header.scrolled {
    padding: 0.75rem 6%;
    background: rgba(245, 241, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.site-header.header-dark {
    background: transparent;
}
.site-header.header-dark.scrolled {
    background: rgba(13, 27, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 10;
}
.header-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--transition);
}
.header-dark .header-logo-mark {
    background: var(--mycelium);
}
.header-logo-mark:hover { transform: scale(1.08); }
.header-logo-mark svg { width: 18px; height: 18px; }
.header-logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}
.header-dark .header-logo-text { color: var(--text-light); }
.header-dark.scrolled .header-logo-text { color: var(--text-light); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.01em;
}
.header-nav a:hover { color: var(--forest); opacity: 0.85; }
.header-dark .header-nav a { color: var(--text-light-muted); }
.header-dark .header-nav a:hover { color: var(--text-light); opacity: 1; }
.header-dark.scrolled .header-nav a { color: rgba(245,241,235,0.7); }
.header-dark.scrolled .header-nav a:hover { color: var(--text-light); }

/* Language toggle */
.lang-toggle {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.header-dark .lang-toggle { border-color: var(--border-dark); }
.lang-toggle button {
    background: transparent;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.lang-toggle button.active {
    background: var(--forest);
    color: var(--text-light);
}
.header-dark .lang-toggle button { color: var(--text-light-muted); }
.header-dark .lang-toggle button.active {
    background: var(--mycelium);
    color: var(--soil);
}

/* Bouton fermer menu (visible uniquement en mobile quand la nav est ouverte) */
.nav-close-btn { display: none; }

/* Mobile burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.header-dark .burger span { background: var(--text-light); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .burger { display: flex; }

    /*
     * When nav is open, remove backdrop-filter from the header.
     * backdrop-filter creates a containing block that breaks
     * position:fixed on child elements (the nav overlay).
     */
    .site-header.nav-open,
    .site-header.nav-open.scrolled,
    .site-header.header-dark.nav-open,
    .site-header.header-dark.nav-open.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Burger et bouton fermer au-dessus de l’overlay pour rester cliquables */
    .site-header.nav-open .burger {
        z-index: 1003;
    }
    /* Burger X color: dark on cream nav, light on dark nav */
    .site-header.nav-open .burger span {
        background: var(--text-dark);
    }
    .site-header.header-dark.nav-open .burger span {
        background: var(--text-light);
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 5rem 1.5rem 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 1002;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-dark .header-nav { background: var(--forest-deep); }
    .header-nav.open {
        opacity: 1;
        pointer-events: all;
    }
    .header-nav a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }
    .header-dark .header-nav.open a { color: var(--text-light); }

    /* Bouton fermer dans la nav (secours + meilleure zone de clic) */
    .nav-close-btn {
        display: flex;
        position: fixed;
        top: 1.25rem;
        right: 6%;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.06);
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--text-dark);
        z-index: 1003;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, background 0.2s ease;
    }
    .header-dark .nav-close-btn { background: rgba(255,255,255,0.1); color: var(--text-light); }
    .site-header.nav-open .nav-close-btn {
        opacity: 1;
        pointer-events: all;
    }
    .nav-close-btn:hover { background: rgba(0,0,0,0.1); }
    .header-dark .nav-close-btn:hover { background: rgba(255,255,255,0.2); }
}

/* =============================================
   HERO SECTIONS
   ============================================= */

/* --- Main hero (dark, cinematic) --- */
.hero-main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 6% 6rem;
    background: var(--forest-deep);
    position: relative;
    overflow: hidden;
}
.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(75,103,65,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(196,162,101,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 80% 80%, rgba(75,103,65,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.hero-main-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mycelium);
    margin-bottom: 2rem;
}
.hero-main h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 1.75rem;
}
.hero-main h1 em {
    font-style: italic;
    color: var(--mycelium-light);
}
.hero-main .hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-light-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Brand hero (lighter, for sub-pages) --- */
.hero-brand {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 6% 5rem;
    position: relative;
    overflow: hidden;
}
.hero-brand-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-brand.bg-forest {
    background: var(--forest-deep);
    color: var(--text-light);
}
.hero-brand.bg-cream {
    background: var(--cream);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .hero-brand-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--forest);
    color: var(--text-light);
}
.btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(27,58,45,0.25);
}
.btn-earth {
    background: var(--mycelium);
    color: var(--soil);
}
.btn-earth:hover {
    background: var(--mycelium-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196,162,101,0.3);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}
.btn-outline-dark:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.15);
}

/* =============================================
   SECTION SYSTEM
   ============================================= */
.section {
    padding: 7rem 6%;
    position: relative;
    overflow: hidden;
}
.section-dark {
    background: var(--forest-deep);
    color: var(--text-light);
}
.section-forest {
    background: var(--forest);
    color: var(--text-light);
}
.section-cream {
    background: var(--cream);
    color: var(--text-dark);
}
.section-white {
    background: var(--white);
    color: var(--text-dark);
}

.section-header {
    max-width: 680px;
    margin-bottom: 4rem;
}
.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mycelium);
    margin-bottom: 0.75rem;
    display: block;
}
.section-dark .section-eyebrow,
.section-forest .section-eyebrow { color: var(--mycelium-light); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.section-title em {
    font-style: italic;
    color: var(--forest-light);
}
.section-dark .section-title em,
.section-forest .section-title em { color: var(--mycelium-light); }

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}
.section-dark .section-desc { color: var(--text-light-muted); }
.section-forest .section-desc { color: rgba(245,241,235,0.7); }

/* =============================================
   QUOTE / DIVIDER BLOCKS
   ============================================= */
.quote-block {
    padding: 6rem 6%;
    text-align: center;
    position: relative;
}
.quote-block blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto;
}
.quote-block cite {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 500;
}
.quote-block.quote-dark {
    background: var(--forest-deep);
    color: var(--text-light);
}
.quote-block.quote-dark cite { color: var(--mycelium); }
.quote-block.quote-cream {
    background: var(--cream);
    color: var(--text-dark);
}
.quote-block.quote-cream cite { color: var(--earth); }

/* =============================================
   CARDS
   ============================================= */

/* Feature card */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: transform 0.4s var(--transition), box-shadow 0.4s ease, border-color 0.3s ease;
}
.section-dark .card,
.section-forest .card {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-dark);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -16px rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.12);
}
.section-dark .card:hover,
.section-forest .card:hover {
    box-shadow: 0 20px 48px -16px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(27,58,45,0.08);
}
.section-dark .card-icon,
.section-forest .card-icon {
    background: rgba(196,162,101,0.12);
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--text-body);
    font-size: 0.925rem;
    line-height: 1.6;
}
.section-dark .card p { color: var(--text-light-muted); }
.section-forest .card p { color: rgba(245,241,235,0.65); }

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

/* Brand card (La Croquante / NeuroMane) */
.brand-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}
.brand-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    transition: transform 0.5s var(--transition), box-shadow 0.5s ease;
}
.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.3);
}
.brand-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 1;
}
.brand-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--transition);
}
.brand-card:hover .brand-card-bg { transform: scale(1.04); }
.brand-card-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}
.brand-card-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mycelium-light);
    margin-bottom: 0.75rem;
}
.brand-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.brand-card-desc {
    font-size: 0.95rem;
    color: rgba(245,241,235,0.75);
    margin-bottom: 1.5rem;
    max-width: 380px;
    line-height: 1.6;
}
.brand-card .btn { display: inline-flex; }

/* La Croquante card */
.brand-card.card-croquante .brand-card-bg {
    background: linear-gradient(135deg, #3a5a3a 0%, #2a4a2f 50%, #1a3320 100%);
}
/* NeuroMane card */
.brand-card.card-neuromane .brand-card-bg {
    background: linear-gradient(135deg, #2C1E10 0%, #4a3520 50%, #3a2a15 100%);
}

@media (max-width: 768px) {
    .brand-duo { grid-template-columns: 1fr; }
    .brand-card { min-height: 420px; padding: 2rem; }
}

/* =============================================
   SPLIT CONTENT (text + visual)
   ============================================= */
.split {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.split-text h2 em {
    font-style: italic;
    color: var(--forest-light);
}
.section-dark .split-text h2 em { color: var(--mycelium-light); }
.split-text p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.section-dark .split-text p { color: var(--text-light-muted); }
.split-text .btn { margin-top: 1rem; }

.split-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--cream-warm);
}
.section-dark .split-visual { background: rgba(255,255,255,0.04); }
.split-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .split.reverse { direction: ltr; }
    .split-visual { max-width: 400px; margin: 0 auto; }
}

/* =============================================
   STATS ROW
   ============================================= */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.stat-item {}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--mycelium);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.section-dark .stat-label { color: var(--text-light-muted); }
@media (max-width: 600px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--mycelium), var(--forest-light));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mycelium);
    border: 3px solid var(--forest-deep);
    transform: translateX(-5px);
}
.timeline-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mycelium);
    margin-bottom: 0.25rem;
}
.timeline-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.6;
}

/* =============================================
   CONTACT / FORM
   ============================================= */
.form-wrap {
    max-width: 560px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-body);
}
.section-dark .form-group label { color: var(--text-light-muted); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.section-dark .form-group input,
.section-dark .form-group select,
.section-dark .form-group textarea {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-dark);
    color: var(--text-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(27,58,45,0.1);
}
.section-dark .form-group input:focus,
.section-dark .form-group select:focus,
.section-dark .form-group textarea:focus {
    border-color: var(--mycelium);
    box-shadow: 0 0 0 3px rgba(196,162,101,0.1);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--forest-deep);
    color: var(--text-light);
    padding: 4rem 6% 2rem;
}
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand-text {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}
.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light-muted);
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--mycelium); }
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light-muted);
}
.footer-bottom a { color: var(--mycelium); }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand-text { margin: 1rem auto 0; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--transition), transform 1s var(--transition);
}
.reveal.reveal-scale {
    transform: scale(0.92);
    filter: blur(4px);
    transition: opacity 1s var(--transition), transform 1s var(--transition), filter 1s var(--transition);
}
.reveal.visible {
    opacity: 1;
    transform: none;
    filter: none;
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-stagger.visible > * {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* Mycelium network background animation */
.mycelium-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.mycelium-bg canvas {
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

/* =============================================
   PAGE-SPECIFIC STYLES
   ============================================= */

/* Mission page - impact numbers */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.impact-card {
    background: rgba(13,27,20,0.04);
    border: 1px solid rgba(13,27,20,0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}
.impact-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.impact-label {
    font-size: 1rem;
    color: var(--text-dark-muted, #4a5548);
    line-height: 1.5;
}
@media (max-width: 600px) {
    .impact-grid { grid-template-columns: 1fr; }
}

/* Feature list with check marks */
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
.feature-list li::before {
    content: '~';
    color: var(--mycelium);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
