    body { background-color: #FAFAF9; color: #157A6E; font-family: '"Nunito Sans"', sans-serif; overflow-x: hidden; }
    h1,h2,h3,h4,h5,h6 { font-weight: 900; letter-spacing: -0.02em; }

    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #FAFAF9; }
    ::-webkit-scrollbar-thumb { background: #157A6E; border-radius: 4px; }

    .text-outline { -webkit-text-stroke: 1px #157A6E; color: transparent; }

    /* Skip link for accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #157A6E;
        color: white;
        padding: 8px;
        z-index: 100;
    }
    .skip-link:focus { outline: none; }
    .skip-link:focus-visible { top: 0; outline: 2px solid #157A6E; outline-offset: 3px; }

    /* Global focus states */
    :where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus {
        outline: none;
        box-shadow: none;
    }

    :where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
        outline: 2px solid #157A6E;
        outline-offset: 3px;
        box-shadow: 0 0 0 2px rgba(21, 122, 110, 0.18);
        border-radius: 10px;
        transition: outline-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* MORPHING EDGE NAV - Design Forward */
    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 64px;
        background: transparent;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        border: none;
        border-bottom: none;
    }

    #main-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: linear-gradient(180deg,
            rgba(250, 250, 249, 0.6) 0%,
            rgba(250, 250, 249, 0.45) 35%,
            rgba(250, 250, 249, 0) 100%
        );
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: -1;
    }

    #main-nav.scrolled::before {
        opacity: 1;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
        max-width: 1340px;
        padding: 0 2.15rem;
        pointer-events: auto;
    }

    .nav-logo {
        position: relative;
        font-size: 1.1rem;
        letter-spacing: 0.16em;
        font-weight: 900;
        color: #013B37;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: 2px;
    }

    .nav-logo:hover {
        color: #157A6E;
        letter-spacing: 0.18em;
        transform: translateY(-1px);
    }

    .nav-links {
        display: flex;
        gap: 0;
        justify-content: center;
        align-items: center;
        background: rgba(250, 250, 249, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(19, 92, 86, 0.12);
        border-radius: 999px;
        padding: 0.35rem 0.8rem 0.45rem;
        box-shadow:
            0 12px 30px rgba(21, 122, 110, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        position: relative;
        overflow: hidden;
    }

    .nav-links::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, 
            rgba(21, 122, 110, 0.03) 0%, 
            rgba(242, 183, 114, 0.03) 100%
        );
        opacity: 0;
        transition: opacity 0.4s;
        pointer-events: none;
    }

    .nav-links:hover::before {
        opacity: 1;
    }

    .nav-indicator {
        position: absolute;
        left: 0;
        bottom: 0.35rem;
        height: 3px;
        background: linear-gradient(90deg, rgba(21, 122, 110, 0.85), rgba(242, 183, 114, 0.85));
        border-radius: 999px;
        transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1;
        box-shadow:
            0 6px 18px rgba(21, 122, 110, 0.18),
            0 2px 4px rgba(0, 0, 0, 0.06);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links a {
        position: relative;
        z-index: 2;
        padding: 0.55rem 1.25rem;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(1, 59, 55, 0.72);
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        white-space: nowrap;
        border-radius: 999px;
        opacity: 0.9;
    }

    .nav-links a:hover {
        color: #0f5a54;
        transform: translateY(-1px) scale(1.02);
        opacity: 1;
        text-shadow: 0 8px 24px rgba(21, 122, 110, 0.12);
    }

    .nav-links a.active {
        color: #013B37;
        font-weight: 900;
        opacity: 1;
    }

    .nav-cta {
        position: relative;
        margin-left: 0.35rem;
        padding: 0.6rem 1.8rem;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #FAFAF9;
        background: linear-gradient(135deg, #157A6E 0%, #013B37 100%);
        border: 1.5px solid rgba(1, 59, 55, 0.18);
        border-radius: 50px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 16px rgba(21, 122, 110, 0.3);
        overflow: hidden;
    }

    .nav-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #F2B772 0%, #E8A85E 100%);
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 50px;
    }

    .nav-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(242, 183, 114, 0.4);
        border-color: #F2B772;
    }

    .nav-cta:hover::before {
        opacity: 1;
    }

    .nav-cta span {
        position: relative;
        z-index: 1;
    }

    .nav-cta:hover span {
        color: #013B37;
    }

    /* Mobile responsive */
    @media (max-width: 968px) {
        #main-nav {
            height: 56px;
        }

        .nav-container {
            padding: 0 1.5rem;
        }

        .nav-links {
            display: none;
        }

        .nav-logo {
            font-size: 1rem;
        }

        .nav-cta {
            padding: 0.5rem 1.3rem;
            font-size: 0.65rem;
        }
    }

    html {
        scroll-padding-top: 80px;
    }

    #main-nav.scrolled {
        height: 60px;
    }

    #fluid-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.6; }
    .hero-section::before { content: ""; position: absolute; inset: 0; background: rgba(250, 250, 249, 0.92); z-index: -1; }

    @media (prefers-reduced-motion: reduce), (max-width: 767px) {
        #fluid-canvas, #engine-canvas, #microbiome-canvas { display: none !important; }
        *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    }

    .phase-track { height: 4px; background-color: #E5E7EB; border-radius: 2px; position: relative; width: 100%; margin-top: 2.5rem; }
    .phase-fill { height: 100%; background-color: #F2B772; border-radius: 2px; position: absolute; top: 0; left: 0; }
    .phase-dot { width: 12px; height: 12px; background-color: #F2B772; border-radius: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 20; border: 2px solid #FAFAF9; }
    .phase-label { position: absolute; top: -25px; transform: translateX(-50%); font-size: 10px; font-weight: 800; text-transform: uppercase; color: #0f4c45; opacity: 0.7; letter-spacing: 0.05em; white-space: nowrap; }
    .phase-label.active { opacity: 1; color: #d68b46; }
    .phase-dot.active { width: 16px; height: 16px; background-color: #FAFAF9; border: 4px solid #F2B772; }
    .phase-dot.future { background-color: #E5E7EB; border: none; }
    .word {
        display: inline-block;
        opacity: 0;
        transform: translateY(10px);
        transition: color 0.3s;
        margin-right: 0.3em;
        color: #157A6E;
    }
    .word[data-highlight="true"] {
        color: #F2B772;
    }
    details > summary { list-style: none; cursor: pointer; transition: color 0.2s; }
    details > summary::-webkit-details-marker { display: none; }
    .expand-icon {
        transition: transform 0.2s;
        display: inline-block;
        transform: rotate(0deg);
    }
    details[open] .expand-icon { transform: rotate(90deg); }

    /* Footer accordions default left and rotate down when open */
    .footer-accordion .expand-icon { transform: rotate(180deg); }
    .footer-accordion[open] .expand-icon { transform: rotate(90deg); }

    .viz-label { position: absolute; font-size: 12px; font-weight: 800; text-transform: uppercase; background: rgba(14,82,74,0.95); color: #fff; padding: 8px 12px; border-radius: 6px; pointer-events: none; opacity: 0; transform: translateY(10px) scale(0.9); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); border: 1px solid #F2B772; z-index: 20; white-space: pre-wrap; max-width: 180px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    .viz-label.visible { opacity: 1; transform: translateY(0) scale(1); }

    #engine-canvas { 
        border-radius: 50%; 
        cursor: crosshair;
        background: #ffffff;
    }

    .globular-core { background: radial-gradient(circle at 30% 30%, rgba(242,183,114,0.95), rgba(220,160,90,0.95)); box-shadow: inset -10px -10px 20px rgba(0,0,0,0.2), inset 10px 10px 20px rgba(255,255,255,0.4), 0 0 60px rgba(242,183,114,0.6); border: 1px solid rgba(255,255,255,0.4); }

    /* Floating section labels for engine visualization */
    .section-label {
        position: absolute;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #1e293b;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        padding: 4px 10px;
        border-radius: 999px;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(15, 118, 110, 0.2);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
        white-space: nowrap;
        transform: translateX(-50%);
    }

    .section-label.active {
        opacity: 1;
    }

    .section-label::before {
        content: '';
        position: absolute;
        width: 2px;
        height: 18px;
        background: linear-gradient(to bottom, rgba(15, 118, 110, 0.6), transparent);
        top: -18px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.7;
    }

    /* Hide section labels on mobile for clarity */
    @media (max-width: 767px) {
        .section-label {
            display: none;
        }
    }

    /* Media card interactions */
    .media-title-link {
        position: relative;
        display: inline-block;
        transition: color 0.25s ease;
    }

    .media-title-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, rgba(21, 122, 110, 0.85), rgba(242, 183, 114, 0.9));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .group:hover .media-title-link::after,
    .group:focus-visible .media-title-link::after,
    .group:focus-within .media-title-link::after {
        transform: scaleX(1);
    }

    /* Modal base styling */
    .modal-backdrop {
        transition: opacity 200ms ease-out;
    }

    .modal-backdrop.opacity-0 {
        opacity: 0;
    }

    .modal-backdrop.opacity-100 {
        opacity: 1;
    }

    .modal-panel {
        transition: transform 200ms ease-out;
    }

    @media (max-width: 640px) {
        .modal-backdrop { align-items: flex-start; padding-top: 1.25rem; padding-bottom: 1.25rem; }
        .modal-panel { margin-top: 0; margin-bottom: 0; max-height: 92vh; }
        .modal-content { max-height: 70vh; }
        .modal-panel button[data-close-modal] { top: 0.65rem; right: 0.65rem; }
    }

</style>
