/* ==== Design Tokens ==== */
:root{
    --bg: #0b1020;
    --surface: #0f172a;
    --elev: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand-1: #c8a24c; /* logo gold */
    --brand-2: #1a237e; /* logo indigo */
    --accent: #34d399;
    --danger: #ef4444;
    --ring: color-mix(in oklab, var(--brand-2), white 15%);
    --card: color-mix(in oklab, var(--surface), white 2%);
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* Logo brand colors */
    --logo-1: #c8a24c; /* gold */
    --logo-2: #1a237e; /* deep indigo */
}

:root.light{
    --bg: #f7f8fb;
    --surface: #ffffff;
    --elev: #f3f4f6;
    --text: #0b1020;
    --muted: #475569;
    --card: #ffffff;
    --shadow: 0 10px 25px rgba(2,6,23,.08);
}

*{ box-sizing: border-box }
html,body{ height:100%; overflow-x:hidden }
html{ scroll-behavior:smooth }
body{
    margin:0;
    font-family:var(--font);
    color:var(--text);
    background: radial-gradient(1200px 800px at 10% -10%, #1b2550, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, #3b185f, transparent 60%),
    var(--bg);
    line-height:1.6;
}

/* Mobile menu backdrop (fades in when nav is open) */
body::before{
    content:""; position:fixed; inset: var(--header-h, 64px) 0 0 0;
    background: rgba(2,6,23,.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity:0; pointer-events:none; transition: opacity .25s ease; z-index:40;
}
body.nav-open::before{ opacity:1; pointer-events:auto }

/* Media defaults */
img, video{ max-width:100%; height:auto; display:block }
svg{ max-width:100%; height:auto }

/* Improve tap targets on mobile */
@media (max-width: 900px){
    a, button{ min-height:44px }
}

/* Background glow */
.bg-glow{
    position:fixed; inset:-20vmax;
    background:
    radial-gradient(40vmax 40vmax at 20% 10%, color-mix(in oklab, var(--brand-1), transparent 70%), transparent 70%),
    radial-gradient(50vmax 40vmax at 80% -10%, color-mix(in oklab, var(--brand-2), transparent 70%), transparent 70%);
    filter: blur(60px) saturate(120%);
    opacity:.45;
    pointer-events:none;
    z-index:-1;
}
.light .bg-glow{ opacity:.25 }

/* Layout utilities */
.container{ width:min(1100px, 92%); margin-inline:auto }
.section{ padding: clamp(60px, 8vw, 120px) 0; scroll-margin-top: calc(var(--header-h, 64px) + 12px) }
.light .section{ scroll-margin-top: calc(var(--header-h, 64px) + 12px) }

/* Ensure home anchor also respects header offset */
#home{ scroll-margin-top: calc(var(--header-h, 64px) + 12px) }
.section.alt{ background: var(--elev) }
.section-head{ text-align:center; margin-bottom: 2rem }
.grid{ display:grid; gap:clamp(18px, 2.2vw, 28px) }
.grid.two{ grid-template-columns: repeat(2, minmax(0,1fr)) }
.grid.three{ grid-template-columns: repeat(3, minmax(0,1fr)) }
@media (max-width: 980px){
    .grid.two, .grid.three{ grid-template-columns: 1fr }
}
.stack{ display:flex; flex-direction:column }
.stack.gap{ gap:14px } .stack.gap-lg{ gap:22px }
.row{ display:flex; gap:12px; align-items:center }
.row.between{ justify-content:space-between }
.badge{ font-size:1.4rem }

/* Vision & Mission */
.vision-mission {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.vision-card, .mission-card {
    flex: 1;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid color-mix(in oklab, var(--surface), white 10%);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
}

.vision-card {
    border-top: 4px solid var(--brand-1);
}

.mission-card {
    border-top: 4px solid var(--brand-2);
}

.vision-card h3, .mission-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vision-card h3::before, .mission-card h3::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vision-card h3::before {
    background: var(--brand-1);
}

.mission-card h3::before {
    background: var(--brand-2);
}

/* Header */
.site-header{
    position: fixed; top:0; z-index:50; width: 100%;
    background: color-mix(in oklab, var(--surface), transparent 35%);
    backdrop-filter: blur(12px);
    border-bottom:1px solid color-mix(in oklab, var(--surface), white 8%);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: color-mix(in oklab, var(--surface), transparent 15%);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding:12px 0 }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; color:var(--text); text-decoration:none; letter-spacing:.2px }
.brand .accent{ background: linear-gradient(90deg, var(--logo-1), var(--logo-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.logo{ width:32px; height:32px; flex:0 0 auto }

.nav ul{ display:flex; gap:16px; align-items:center; list-style:none; margin:0; padding:0 }
.nav a{ color:var(--text); text-decoration:none; padding:8px 10px; border-radius:10px }
.nav a:hover{ background: color-mix(in oklab, var(--surface), white 7%) }

.nav-toggle{ display:none; width:42px; height:42px; border:1px solid color-mix(in oklab, var(--surface), white 12%); background:transparent; border-radius:12px; cursor:pointer }
.nav-toggle .bar{ display:block; width:22px; height:2px; background:var(--text); margin:4px auto; border-radius:2px }

.theme-toggle{ display:grid; place-items:center; width:42px; height:42px; border-radius:12px; border:1px solid color-mix(in oklab, var(--surface), white 12%); background:transparent; cursor:pointer }
.theme-toggle svg{ width:18px; height:18px }
.theme-toggle .moon{ display:none }
.light .theme-toggle .sun{ display:none }
.light .theme-toggle .moon{ display:block }

/* Mobile nav */
@media (max-width: 900px){
    .nav-toggle{ display:inline-block }
    .nav ul{
        display:none;
        position:fixed; inset:auto 0 0 0; top: var(--header-h, 64px);
        background:var(--surface);
        border-top:1px solid color-mix(in oklab, var(--surface), white 10%);
        padding:18px 5vw calc(18px + env(safe-area-inset-bottom));
        gap:10px; flex-direction:column; z-index:60;
    }
    .nav ul.open{ display:flex }
    .nav li{ width:100% }
    .nav a{ display:block; width:100%; font-size:1.05rem; padding:12px 14px; border-radius:12px }
    .nav li + li{ border-top:1px solid color-mix(in oklab, var(--surface), white 8%) }
    .theme-wrap{ align-self:flex-end }
}

/* Lock background scroll when mobile menu open */
body.nav-open{ overflow:hidden; touch-action:none }

/* Hero */
.eyebrow{ color:var(--accent); text-transform:uppercase; letter-spacing:.18em; font-weight:700; font-size:.86rem }
h1{ font-size: clamp(2.2rem, 3.8vw, 4rem); line-height:1.1; margin:0 }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height:1.2; margin:0 0 8px }
h3{ margin:0 0 6px }
.lede{ font-size: clamp(1.05rem, 1.4vw, 1.2rem); color:var(--muted); max-width:55ch }
.grad{ background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent }
.hero .hero-stats{ display:flex; gap:26px; padding:0; margin:10px 0 0; list-style:none; color:var(--muted) }
.hero .hero-stats strong{ color:var(--text); font-size:1.2rem }
.hero-media{
    min-height: 340px; border-radius: var(--radius);
    background:
    radial-gradient(120px 80px at 80% 20%, color-mix(in oklab, var(--brand-1), transparent 35%), transparent 60%),
    radial-gradient(220px 120px at 20% 80%, color-mix(in oklab, var(--brand-2), transparent 35%), transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, var(--surface), white 4%), color-mix(in oklab, var(--surface), black 6%));
    display:grid; place-items:center; padding:28px; box-shadow: var(--shadow); border:1px solid color-mix(in oklab, var(--surface), white 6%);
}
.glass-card{
    width:min(580px, 100%); border-radius:18px; padding:18px;
    background: color-mix(in oklab, var(--surface), transparent 25%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border:1px solid color-mix(in oklab, var(--surface), white 16%);
}
.glass-card h3{ margin:0 0 12px; font-weight:700; letter-spacing:.01em; font-size: clamp(1rem, 2.6vw, 1.15rem) }
.glass-card .metrics{ display:grid; grid-template-columns: repeat(4,1fr); gap:10px; margin-bottom:12px }
.glass-card .metrics div{ background:var(--card); border:1px solid color-mix(in oklab, var(--surface), white 10%); border-radius:12px; padding:12px; text-align:center; display:flex; flex-direction:column; justify-content:center; min-height:68px }
.glass-card .metrics div span{ display:block; color:var(--muted); font-size: clamp(.8rem, 2.4vw, .9rem) }
.glass-card .metrics div strong{ display:block; font-size: clamp(1.05rem, 3.6vw, 1.2rem); line-height:1.2 }
.sparkline{ height:70px; border-radius:10px; background:
    linear-gradient(180deg, color-mix(in oklab, var(--brand-1), transparent 70%), transparent),
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--surface), white 8%), color-mix(in oklab, var(--surface), white 8%) 1px, transparent 1px, transparent 28px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
    *{ scroll-behavior: auto !important }
    .revealed, [data-reveal] .card, [data-reveal] .feature, [data-reveal] .post{ transition: none !important }
}

/* Cards & Features */
.cards .card, .post.card{
    background: var(--card); border:1px solid color-mix(in oklab, var(--surface), white 10%);
    border-radius: 16px; overflow: clip; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cards .card:hover, .post.card:hover{ transform: translateY(-3px) }
.card img{ display:block; width:100%; height:190px; object-fit:cover }
.card-body{ padding:16px }
.tags{ display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:10px 0 0; list-style:none }
.tags li{ font-size:.8rem; padding:6px 10px; border-radius:999px; background: color-mix(in oklab, var(--surface), white 8%); color:var(--muted) }
.card-cta{ display:inline-block; margin-top:12px; text-decoration:none; color:var(--accent); font-weight:600 }
.features .feature{ background:var(--card); border:1px solid color-mix(in oklab, var(--surface), white 10%); border-radius:16px; padding:18px }
.features .icon{ width:48px; height:48px; display:grid; place-items:center; background: color-mix(in oklab, var(--brand-1), var(--brand-2)); color:#0b1020; border-radius:12px; font-weight:800 }

/* About */
.checklist{ list-style:none; padding:0; margin:0; display:grid; gap:10px }
.checklist li::before{ content:"✔️ "; margin-right:6px }
.quote{ background: var(--card); border:1px solid color-mix(in oklab, var(--surface), white 10%); border-radius:16px; padding:22px; box-shadow: var(--shadow) }
.quote blockquote{ margin:0 0 12px; font-size:1.1rem; font-weight:600 }
.quote-meta{ display:flex; gap:10px; align-items:center }
.quote-meta img{ width:48px; height:48px; object-fit:cover; border-radius:50%; border:1px solid color-mix(in oklab, var(--surface), white 12%) }

/* Blog */
.post.card{ padding:16px }
.pill{ display:inline-block; font-size:.75rem; padding:4px 10px; border-radius:999px;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color:#06101a; font-weight:700; letter-spacing:.02em; margin-bottom:10px }
    .post h3{ margin:0 0 8px }
    .post h3 a{ color:var(--text); text-decoration:none }
    .post h3 a:hover{ text-decoration:underline }
    .post-meta{ color:var(--muted); font-size:.9rem }

    /* Buttons & Links */
    .btn{
        --bg: linear-gradient(90deg, var(--brand-1), var(--brand-2));
        display:inline-block; padding:12px 16px; border-radius:12px; color:#06101a; font-weight:800; text-decoration:none; letter-spacing:.01em;
        border:0; cursor:pointer; box-shadow: 0 8px 18px color-mix(in oklab, var(--brand-2), transparent 70%);
    }
    .btn--primary{ background: var(--bg) }
    .btn--ghost{ background: transparent; color: var(--text); border:1px solid color-mix(in oklab, var(--surface), white 14%) }
    .btn--sm{ padding:8px 12px; font-weight:700 }
    @media (max-width: 900px){ .btn{ min-height:44px } }

    /* Form */
    .form{ background: var(--card); border:1px solid color-mix(in oklab, var(--surface), white 10%); border-radius:16px; padding:20px; box-shadow: var(--shadow) }
    .field{ display:grid; gap:8px }
    .field span{ font-weight:600 }
    input, select, textarea{
        width:100%; padding:12px 12px; border-radius:12px; border:1px solid color-mix(in oklab, var(--surface), white 14%);
        background: var(--surface); color:var(--text); outline: none;
    }
    input:focus, select:focus, textarea:focus{
        border-color: var(--ring); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring), transparent 75%);
    }
    .error{ color: var(--danger); min-height: 18px }
    .form-note{ margin-top:10px; color:var(--muted) }
    .switch{ display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none }
    .switch input{ position:absolute; opacity:0 }
    .switch span{ width:44px; height:26px; background: color-mix(in oklab, var(--surface), white 10%); border-radius:999px; position:relative; transition:.2s }
    .switch span::after{ content:""; width:20px; height:20px; background:#fff; border-radius:50%; position:absolute; top:3px; left:3px; transition:.2s }
    .switch input:checked + span{ background: linear-gradient(90deg, var(--brand-1), var(--brand-2)) }
    .switch input:checked + span::after{ transform: translateX(18px) }

    /* Footer */
    .site-footer{ border-top:1px solid color-mix(in oklab, var(--surface), white 10%); background: var(--surface); padding:36px 0 }
    .links{ list-style:none; padding:0; margin:0; display:grid; gap:8px }
    .links a{ color:var(--muted); text-decoration:none }
    .links a:hover{ color:var(--text) }
    .social{ display:flex; gap:10px; align-items:center; justify-content:flex-end }
    .social-btn{
        display:grid; place-items:center; width:44px; height:44px; border-radius:10px; border:1px solid color-mix(in oklab, var(--surface), white 12%);
        color:var(--text); text-decoration:none; background: color-mix(in oklab, var(--surface), white 6%);
    }

    /* Animations / Reveal */
    [data-reveal] .card, [data-reveal] .feature, [data-reveal] .post{
        opacity:0; transform: translateY(12px) scale(.98);
    }
    .revealed{ opacity:1 !important; transform: none !important; transition: opacity .6s ease, transform .6s ease }

    /* Utility */
.muted{ color:var(--muted) }

/* Honeypot field (visually hidden) */
.hp{ position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

    /* Elevate header on scroll */
    [data-elevate].scrolled{ box-shadow: 0 12px 30px rgba(0,0,0,.25) }


    @media (max-width: 900px) {
        /* Mobile Nav */
        .nav-toggle {
            display: inline-block;
        }
        .nav ul {
            display: none;
            position: fixed;
            inset: auto 0 0 0;
            top: var(--header-h, 64px);
            background: var(--surface);
            border-top: 1px solid color-mix(in oklab, var(--surface), white 10%);
            padding: 18px 5vw calc(18px + env(safe-area-inset-bottom));
            gap: 10px;
            flex-direction: column;
            z-index: 60;
        }
        .nav ul.open {
            display: flex;
        }
        .nav a {
            display: block;
            width: 100%;
        }
        .theme-wrap {
            align-self: flex-end;
        }

        /* Hero Section */
        .hero .stack {
            text-align: center;
            align-items: center;
        }
        h1 {
            font-size: 2rem;
        }
        .lede {
            font-size: 1rem;
        }
        .hero-media {
            min-height: 280px;
        }
        .glass-card .metrics {
            grid-template-columns: repeat(2, 1fr);
        }
        .glass-card{ padding:20px; background: color-mix(in oklab, var(--surface), transparent 10%) }
        .glass-card .metrics{ gap:12px }
        .glass-card .metrics div{ padding:14px; min-height:74px }
        .glass-card .metrics div strong{ font-size:1.15rem }
        .sparkline{ height:56px }
        .hero .hero-stats {
            flex-wrap: wrap;
            justify-content: center;
        }
        .row.gap {
            flex-wrap: wrap;
            justify-content: center;
        }

        /* Vision & Mission */
        .vision-mission {
            flex-direction: column;
        }
    }


    @media (max-width: 600px) {
        .vision-mission {
            flex-direction: column;
        }
    }

    @media (max-width: 380px){
        .glass-card .metrics{ grid-template-columns: 1fr }
    }
