/*
 * ============================================================================
 *  KANDA — DESIGN SYSTEM v2
 * ============================================================================
 *  Brand: "Smart technology. Human impact."
 *
 *  Core palette:
 *    - Cream   #F5EFE3  — page backgrounds, negative space
 *    - Sage    #B7C1A1  — borders, subtle dividers, secondary buttons
 *    - Olive   #7C8A69  — primary action, links, active states
 *    - Forest  #3E4A35  — headings, body text, primary content
 *    - Earth   #A79A7A  — captions, metadata, secondary UI
 *
 *  Type:
 *    - Display:  "Satoshi"       (headings, UI, buttons, labels)
 *    - Body:     "Merriweather"  (paragraphs, descriptions, long-form)
 *    - Mono:     "JetBrains Mono" (code, IDs, tabular data)
 * ============================================================================
 */

:root {
    /* ── Olive (primary accent) ── */
    --olive-50:  #f0f2ec;
    --olive-100: #e1e5d9;
    --olive-200: #c5ccba;
    --olive-300: #a8b39a;
    --olive-500: #7C8A69;
    --olive-700: #5e6b4f;
    --olive-900: #3E4A35;
    --olive-soft: rgba(124, 138, 105, 0.08);
    --olive-glow: rgba(124, 138, 105, 0.22);

    /* ── Sage (borders, secondary) ── */
    --sage:      #B7C1A1;
    --sage-soft: rgba(183, 193, 161, 0.12);

    /* ── Cream (canvas) ── */
    --cream-50:  #FDFCF8;
    --cream-100: #F5EFE3;

    /* ── Earth (secondary accent, metadata) ── */
    --earth:     #A79A7A;
    --earth-soft: rgba(167, 154, 122, 0.12);

    /* ── Surface ── */
    --bg:           var(--cream-100);
    --bg-elevated:  var(--cream-50);
    --bg-card:      rgba(253, 252, 248, 0.78);
    --bg-card-solid:#FDFCF8;

    /* ── Text ── */
    --text-1: #2C3529;
    --text-2: #4A5A3E;
    --text-3: #7A7058;

    /* ── Borders & shadows ── */
    --border:    rgba(183, 193, 161, 0.35);
    --border-md: rgba(183, 193, 161, 0.50);
    --shadow-sm: 0 1px 2px oklch(30% 0.048 122 / 0.05);
    --shadow-md: 0 4px 12px oklch(30% 0.048 122 / 0.08);
    --shadow-lg: 0 8px 24px oklch(30% 0.048 122 / 0.12);

    /* ── Radius ── */
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-full: 9999px;

    /* ── Type ── */
    --font-d: 'Satoshi', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-b: 'Merriweather', 'Georgia', 'Times New Roman', serif;

    /* ── Motion ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Backwards-compat aliases ── */
    --mint-50:    var(--olive-50);
    --mint-100:   var(--olive-100);
    --mint-200:   var(--olive-200);
    --mint-300:   var(--olive-300);
    --mint-500:   var(--olive-500);
    --mint-700:   var(--olive-500);
    --mint-900:   var(--olive-900);
    --mint-soft:  var(--olive-soft);
    --mint-glow:  var(--olive-glow);
    --gold:       var(--earth);
    --gold-soft:  var(--earth-soft);
    --bg-cream:   var(--cream-100);
    --bg-light:   var(--cream-50);
    --forest:     var(--olive-500);
    --forest-dark:     var(--olive-900);
    --forest-light:    var(--olive-50);
    --forest-soft:     var(--olive-soft);
    --forest-green:    var(--olive-500);
    --text-primary:    var(--text-1);
    --text-secondary:  var(--text-2);
    --text-muted:      var(--text-3);
    --border-light:    var(--border);
    --border-medium:   var(--border-md);
    --shadow-soft:     var(--shadow-sm);
    --shadow-medium:   var(--shadow-md);
    --shadow-strong:   var(--shadow-lg);
    --radius-sm:       var(--r-sm);
    --radius-md:       var(--r-md);
    --radius-lg:       var(--r-lg);
    --radius-xl:       var(--r-xl);
    --radius-full:     var(--r-full);
    --font-display:    var(--font-d);
    --font-body:       var(--font-b);
    --transition-fast: 0.2s var(--ease);
    --transition-smooth: 0.4s var(--ease);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings always use the display font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-d);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-1);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============================================================================
 *  AMBIENT BACKGROUND (mint-toned blobs)
 * ============================================================================ */
.ambient,
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob,
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: drift 22s ease-in-out infinite;
}

.blob-1, .blob-a {
    width: min(700px, 100vw); height: min(700px, 100vw);
    background: radial-gradient(circle, var(--olive-200), transparent 70%);
    top: -260px; right: -180px;
}

.blob-2, .blob-b {
    width: min(520px, 80vw); height: min(520px, 80vw);
    background: radial-gradient(circle, var(--earth-soft), transparent 70%);
    bottom: 4%; left: -160px;
    animation-delay: -8s;
    opacity: 0.55;
}

@media (max-width: 768px) {
    .blob, .ambient-blob {
        display: none;
    }
}

.blob-3, .blob-c {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--olive-50), transparent 70%);
    top: 45%; left: 40%;
    animation-delay: -15s;
    opacity: 0.35;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(40px, -30px); }
    66%      { transform: translate(-30px, 40px); }
}

/* Noise overlay removed */

/* ============================================================================
 *  PATTERNS & TEXTURES (DESIGN.md §Patterns & Textures)
 *  Apply as classes on <section> elements. Patterns render via ::before so
 *  they never intercept pointer events on interactive content.
 * ============================================================================ */

/* Topographic contour lines — hero / editorial sections */
.pattern-topo {
    position: relative;
}

.pattern-topo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23B7C1A1' stroke-width='0.8' opacity='0.18'%3E%3Cellipse cx='200' cy='200' rx='180' ry='120'/%3E%3Cellipse cx='200' cy='200' rx='150' ry='100'/%3E%3Cellipse cx='200' cy='200' rx='120' ry='80'/%3E%3Cellipse cx='200' cy='200' rx='90' ry='60'/%3E%3Cellipse cx='200' cy='200' rx='60' ry='40'/%3E%3Cellipse cx='200' cy='200' rx='30' ry='20'/%3E%3Cellipse cx='120' cy='100' rx='100' ry='70' transform='rotate(-15 120 100)'/%3E%3Cellipse cx='120' cy='100' rx='70' ry='48' transform='rotate(-15 120 100)'/%3E%3Cellipse cx='120' cy='100' rx='40' ry='26' transform='rotate(-15 120 100)'/%3E%3Cellipse cx='320' cy='320' rx='90' ry='65' transform='rotate(20 320 320)'/%3E%3Cellipse cx='320' cy='320' rx='60' ry='42' transform='rotate(20 320 320)'/%3E%3Cellipse cx='320' cy='320' rx='30' ry='20' transform='rotate(20 320 320)'/%3E%3Cellipse cx='80' cy='340' rx='70' ry='50' transform='rotate(-30 80 340)'/%3E%3Cellipse cx='80' cy='340' rx='40' ry='28' transform='rotate(-30 80 340)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 400px 400px;
    pointer-events: none;
    z-index: 0;
}

/* Hide topo on dark backgrounds to preserve contrast */
.bg-forest.pattern-topo::before {
    opacity: 0.06;
}

.pattern-topo > * {
    position: relative;
    z-index: 1;
}

/* Soft gradient wash — accent sections (use sparingly) */
.pattern-wash {
    position: relative;
}

.pattern-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, oklch(77% 0.035 122 / 0.08), transparent 60%),
        radial-gradient(ellipse at 80% 70%, oklch(65% 0.045 84 / 0.06), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.pattern-wash > * {
    position: relative;
    z-index: 1;
}

/* Dot grid — data-heavy / technical sections */
.pattern-dots {
    position: relative;
}

.pattern-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(oklch(77% 0.035 122 / 0.25) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.pattern-dots > * {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .pattern-topo::before,
    .pattern-wash::before,
    .pattern-dots::before {
        display: none;
    }
}

/* ============================================================================
 *  BRAND MARK (the squircle K — used in nav, footer, hero, anywhere)
 *  References k-mark.svg file.
 * ============================================================================ */
.brand-mark {
    display: inline-block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-image: url("../images/k-mark.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brand-mark-sm { width: 32px; height: 32px; }
.brand-mark-lg { width: 64px; height: 64px; }

.brand-name {
    font-family: var(--font-d);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ============================================================================
 *  NAV (canonical — same markup on every page)
 * ============================================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(245, 241, 232, 0.78);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s var(--ease), background 0.3s var(--ease),
                box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled {
    padding: 0.7rem 4%;
    background: rgba(255, 252, 248, 0.94);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-1);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    list-style: none;
}

.nav-links > li > a {
    font-family: var(--font-d);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--olive-500);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--olive-500);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--olive-500), var(--olive-900)) !important;
    color: var(--cream-50) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: var(--r-full);
    font-weight: 600 !important;
    box-shadow: 0 6px 18px var(--olive-glow);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 138, 105, 0.32);
}

.mobile-toggle,
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-1);
    border-radius: var(--r-sm);
}

.mobile-toggle:hover,
.mobile-menu-btn:hover { background: var(--olive-soft); }

/* ── NAV DROPDOWN (Produit) ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-d);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0;
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--olive-500);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: var(--olive-500);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(255, 252, 248, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--r-sm);
    font-family: var(--font-d);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--olive-soft);
    color: var(--olive-500);
}

.nav-dropdown-menu a.active {
    color: var(--olive-500);
    font-weight: 600;
}

@media (max-width: 860px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0 0 0 1rem;
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-toggle svg { margin-left: auto; }
}

@media (max-width: 860px) {
    .nav { padding: 0.85rem 4%; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 4%; right: 4%;
        background: rgba(255, 252, 248, 0.98);
        backdrop-filter: blur(16px);
        padding: 0.85rem 1rem 1rem;
        margin-top: 0.4rem;
        box-shadow: var(--shadow-md);
        border-radius: var(--r-md);
        gap: 0.15rem;
        border: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a {
        display: block;
        padding: 0.75rem 0.85rem;
        border-radius: var(--r-sm);
        font-size: 0.95rem;
    }
    .nav-links > li > a::after { display: none; }
    .nav-links > li > a:hover { background: var(--olive-soft); }
    .nav-links > li > a.nav-cta {
        text-align: center;
        margin-top: 0.4rem;
    }
    .mobile-toggle,
    .mobile-menu-btn { display: inline-flex; }
}

/* ============================================================================
 *  LAYOUT UTILITIES
 * ============================================================================ */
.container { max-width: 1300px; margin: 0 auto; }
.section { padding: 6rem 4%; position: relative; }
.section-sm { padding: 4rem 4%; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-d);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--olive-500);
    margin-bottom: 0.85rem;
}

.eyebrow::before,
.section-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--olive-500);
    border-radius: 50%;
}

.h2 {
    font-family: var(--font-d);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.h3 {
    font-family: var(--font-d);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sub {
    font-family: var(--font-b);
    font-size: 1.1rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--olive-500), var(--earth), var(--olive-500));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================================
 *  BUTTONS
 * ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-d);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
                background 0.2s var(--ease), color 0.2s var(--ease);
    line-height: 1;
}

.btn-p {
    background: linear-gradient(135deg, var(--olive-500), var(--olive-900));
    color: var(--cream-50);
    box-shadow: 0 10px 28px var(--olive-glow);
}

.btn-p:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 138, 105, 0.35);
}

.btn-s {
    background: var(--bg-card);
    color: var(--text-1);
    border: 1px solid var(--border-md);
    backdrop-filter: blur(10px);
}

.btn-s:hover {
    background: var(--cream-50);
    border-color: var(--olive-500);
    color: var(--olive-500);
    transform: translateY(-2px);
}

/* ============================================================================
 *  FINAL CTA BAND (replaces the harsh forest-green slab)
 * ============================================================================ */
.final-cta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
    border-radius: var(--r-lg);
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 252, 248, 0.7), transparent 55%),
        linear-gradient(135deg, var(--olive-50) 0%, var(--olive-100) 55%, var(--olive-200) 100%);
    border: 1px solid var(--olive-200);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 30%, rgba(124, 138, 105, 0.08) 100%);
    pointer-events: none;
}

.final-cta h2 {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--olive-900);
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    position: relative;
}

.final-cta p {
    font-family: var(--font-b);
    font-size: 1.05rem;
    color: var(--text-2);
    margin-bottom: 2rem;
    position: relative;
}

.final-cta-btns {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--olive-900);
    color: var(--cream-50);
    font-family: var(--font-d);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-full);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(62, 74, 53, 0.25);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(62, 74, 53, 0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: transparent;
    color: var(--olive-900);
    font-family: var(--font-d);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-full);
    text-decoration: none;
    border: 1.5px solid var(--sage);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-ghost:hover {
    background: rgba(253, 252, 248, 0.45);
    border-color: var(--olive-500);
}

@media (max-width: 720px) {
    .final-cta { padding: 3rem 1.5rem; }
}

/* ============================================================================
 *  REVEAL ANIMATION
 * ============================================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* ── STAGGERED GRID REVEALS ── */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.active > *:nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.active > *:nth-child(10) { transition-delay: 540ms; }
.reveal-stagger.active > *:nth-child(11) { transition-delay: 600ms; }
.reveal-stagger.active > *:nth-child(12) { transition-delay: 660ms; }
.reveal-stagger.active > *:nth-child(13) { transition-delay: 720ms; }
.reveal-stagger.active > *:nth-child(14) { transition-delay: 780ms; }
.reveal-stagger.active > *:nth-child(15) { transition-delay: 840ms; }
.reveal-stagger.active > *:nth-child(16) { transition-delay: 900ms; }
.reveal-stagger.active > *:nth-child(17) { transition-delay: 960ms; }
.reveal-stagger.active > *:nth-child(18) { transition-delay: 1020ms; }
.reveal-stagger.active > *:nth-child(19) { transition-delay: 1080ms; }
.reveal-stagger.active > *:nth-child(20) { transition-delay: 1140ms; }
.reveal-stagger.active > * {
    opacity: 1;
    transform: none;
}

/* ── STAT COUNTER PULSE ── */
.stat-num[data-count] {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-num[data-count].counted {
    animation: countPulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes countPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ── SECTION PARALLAX BASE ── */
.parallax-section {
    will-change: transform;
}

/* ── BUTTON RIPPLE ── */
.btn, .btn-p, .btn-white, .btn-ghost, .pp-cta {
    position: relative;
    overflow: hidden;
}

.btn::after, .btn-p::after, .btn-white::after, .btn-ghost::after, .pp-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.btn:active::after, .btn-p:active::after, .btn-white:active::after, 
.btn-ghost:active::after, .pp-cta:active::after {
    opacity: 1;
    transition: opacity 0s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
    .blob, .ambient-blob { animation: none; }
    .mockup-wrap { animation: none; }
    .gradient-text { animation: none; background-size: 100% 100%; }
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ============================================================================
 *  FOOTER (canonical — same markup on every page)
 * ============================================================================ */
.footer {
    padding: 4.5rem 4% 2rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(255, 252, 248, 0.55));
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 3rem;
}

.footer-brand { max-width: 300px; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-1);
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.footer-brand p {
    font-family: var(--font-b);
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
}

.footer-col h4 {
    font-family: var(--font-d);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
    font-family: var(--font-d);
    font-size: 0.88rem;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--olive-500); }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.85rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-d);
    font-size: 0.78rem;
    color: var(--text-3);
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: var(--text-2);
    transition: background 0.2s var(--ease), color 0.2s var(--ease),
                border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
    background: var(--olive-500);
    border-color: var(--olive-500);
    color: var(--cream-50);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem;
    }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}

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

/* ============================================================================
 *  COOKIE BANNER
 * ============================================================================ */
.cookie {
    position: fixed;
    bottom: -200px;
    left: 0; right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1f2933, #374151);
    padding: 1.25rem 4%;
    transition: bottom 0.5s var(--ease);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.cookie.show { bottom: 0; }

.cookie-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 200px; }

.cookie-text h3 {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.15rem;
}

.cookie-text p {
    font-family: var(--font-b);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.cookie-text a { color: var(--gold); }

.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.cookie-btn {
    padding: 0.55rem 1.1rem;
    border-radius: var(--r-full);
    font-family: var(--font-d);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s var(--ease);
}

.cb-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cb-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cb-accept {
    background: linear-gradient(135deg, var(--olive-500), var(--olive-900));
    color: var(--cream-50);
}

.cb-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 138, 105, 0.45);
}

/* ============================================================================
 *  LEGACY: .logo-k / .logo-mark — redirect to brand-mark for old markup that
 *  hasn't been swept yet. New markup should use <span class="brand-mark">.
 * ============================================================================ */
/* ============================================================================
 *  UTILITIES
 * ============================================================================ */
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.fs-sm { font-size: 0.85rem !important; }
.fs-0-9 { font-size: 0.9rem !important; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.text-2 { color: var(--text-2) !important; }
.text-forest { color: var(--olive-500) !important; }

.max-w-600 { max-width: 600px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.flex { display: flex !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }

.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }

.bg-mint-soft { background: var(--olive-soft) !important; }
.bg-cream-soft { background: rgba(245, 241, 232, 0.03) !important; }
.bg-cream-100 { background: var(--cream-100) !important; }
.bg-cream-50 { background: var(--cream-50) !important; }

.relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }
.z-2 { z-index: 2 !important; }

.text-white { color: white !important; }
.text-gold { color: #C9B478 !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.88) !important; }

.text-white-90 { color: rgba(255, 255, 255, 0.94) !important; }
.aide-icon { vertical-align: middle !important; margin-right: 0.5rem !important; }
.link-forest-bold { color: var(--olive-500) !important; font-weight: 600 !important; }

.img-cover { width: 100% !important; height: 100% !important; object-fit: cover !important; }




