    :root {
        --toxic-green: #28a745;
        --neon-purple: #8a2be2;
    }

    /* Ambient Glowing Blobs */
    .ambient-glow {
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        filter: blur(140px);
        opacity: 0.08;
        pointer-events: none;
        z-index: 0;
        animation: float-blob 25s ease-in-out infinite alternate;
    }
    .animation-delay-2000 {
        animation-delay: 4s;
    }
    @keyframes float-blob {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(80px, -60px) scale(1.15); }
        100% { transform: translate(-40px, 50px) scale(0.9); }
    }

    /* Entry Animations */
    .fade-up-entry {
        animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Reading Progress */
    #scroll-progress-bar {
        transition: width 0.1s ease-out;
    }

    /* Typography & Readability */
    .intel-body {
        line-height: 1.85;
        color: #334155; /* slate-700 */
        font-size: 1.125rem; /* 18px */
    }

    .intel-body h2 {
        font-size: 2rem; /* 32px */
        font-weight: 800;
        color: #0f172a;
        margin: 3.5rem 0 1.5rem;
        letter-spacing: -0.03em;
        line-height: 1.25;
        scroll-margin-top: 120px;
        border-left: 4px solid var(--toxic-green);
        padding-left: 1rem;
    }

    .intel-body h3 {
        font-size: 1.5rem; /* 24px */
        font-weight: 800;
        color: #0f172a;
        margin: 2.5rem 0 1.25rem;
        letter-spacing: -0.02em;
        line-height: 1.25;
    }

    .intel-body p {
        margin-bottom: 1.75rem;
        font-weight: 400;
    }

    /* First Paragraph Lead-In Style */
    .intel-body > p:first-of-type {
        font-size: 1.25rem;
        line-height: 1.8;
        color: #1e293b;
        font-weight: 500;
    }

    .intel-body ul {
        list-style-type: none;
        padding-left: 1.5rem;
        margin-bottom: 1.75rem;
    }
    .intel-body ul li {
        position: relative;
        margin-bottom: 0.75rem;
        padding-left: 1.5rem;
        font-weight: 400;
    }
    .intel-body ul li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.65rem;
        width: 6px;
        height: 6px;
        background-color: var(--toxic-green);
        border-radius: 50%;
    }

    .intel-body ol {
        list-style-type: decimal;
        padding-left: 2rem;
        margin-bottom: 1.75rem;
    }
    .intel-body ol li {
        margin-bottom: 0.75rem;
        font-weight: 400;
        padding-left: 0.5rem;
    }

    .intel-body blockquote {
        border-left: 4px solid #4f46e5;
        background: #f8fafc;
        padding: 1.5rem 2rem;
        border-radius: 0 1.5rem 1.5rem 0;
        margin: 2.5rem 0;
        font-style: italic;
        color: #475569;
        font-weight: 500;
    }

    .intel-body img {
        border-radius: 2rem;
        margin: 3rem 0;
        width: 100%;
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
        transition: transform 0.5s ease;
    }
    .intel-body img:hover {
        transform: scale(1.02);
    }

    .sidebar-sticky {
        position: sticky;
        top: 130px;
    }

    /* ─── BLOG HERO: fixed image + background theme ─── */
    html, body {
        overflow-x: clip !important;
        background-color: var(--light-bg, #f5f5f5) !important;
    }

    /* The fixed hero image sits behind the main content sheet */
    #blog-hero-fixed {
        position: fixed;
        top: 88px; /* Position right under the 88px nav bar */
        left: 0;
        width: 100%;
        height: 90vh;
        z-index: 0;
        overflow: hidden;
        background: #0f172a;
    }
    #blog-hero-fixed img {
        width: 100%;
        height: 100%;
        object-fit: fit;
        opacity: 0.55;
    }
    /* Gradient overlay so content edge fades nicely */
    #blog-hero-fixed::after {
        content: '';
        position: absolute;
        inset: 0;
        /* Reduced the white gradient overlay to show more of the image clearly */
        background: linear-gradient(to bottom, rgba(15,23,42,0.05) 0%, rgba(245,245,245,0.6) 80%, var(--light-bg, #f5f5f5) 100%);
    }

    /* The scrollable content wrapper */
    #blog-page-body {
        position: relative;
        z-index: 10;
        /* Push content below the visible hero area, adjusted for top: 88px */
        padding-top: 50vh;
    }

    /* The content sheet that slides over the image */
    #blog-content-sheet {
        background: transparent;
        border-radius: 2.5rem 2.5rem 0 0;
        box-shadow: 0 -30px 80px rgba(0,0,0,0.15);
        min-height: 80vh;
        padding-top: 3rem;
        padding-bottom: 6rem;
    }

    /* ─── Grid alignment: must stretch (default) for sticky sidebar to work ─── */
    .blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    @media (min-width: 1024px) {
        .blog-grid {
            grid-template-columns: 8fr 4fr;
        }
    }

    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
        transition: all 0.4s ease;
    }
    .glass-card:hover {
        border-color: rgba(40, 167, 69, 0.3);
        box-shadow: 0 20px 40px -15px rgba(40, 167, 69, 0.08);
    }

    .toc-item:hover { padding-left: 6px; }
    .toc-item.toc-active span { color: #28a745 !important; font-weight: 900 !important; }
    .toc-item.toc-active div  { background-color: #28a745 !important; transform: scale(1.4); }

    @media (max-width: 1024px) {
        .mobile-order-1 { order: 1; }
        .mobile-order-2 { order: 2; }
        #blog-page-body { padding-top: 40vh; }
    }
