/* ==========================================================================
   1. CORE RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   2. STRUCTURAL LAYOUT WRAPPER (DESKTOP)
   ========================================================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0 4rem;
}

.top-spacer {
    height: 5rem;
    transition: height 0.3s ease;
}

/* ==========================================================================
   3. NAVIGATION FRAME
   ========================================================================== */
.nav-frame {
    border-bottom: 3pt solid #ffffff;
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

    .menu-link:hover,
    .menu-link.active {
        opacity: 1;
    }

/* ==========================================================================
   4. CANVAS CONTENT PANELS (DESKTOP)
   ========================================================================== */
.canvas-container {
    flex: 1;
    position: relative;
    margin-top: 2.5rem;
}

.canvas-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 900px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s;
}

    .canvas-panel.active-view {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .canvas-panel h2 {
        font-family: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;
        font-size: 2.2rem; /* Slipped down slightly from 2.5rem to keep the long formula on one line */
        font-weight: 700;
        margin-bottom: 1.5rem;
        letter-spacing: -0.01em;
        text-transform: uppercase; /* Keeps the technical, hard-edged look consistent across all panels */
    }

    .canvas-panel p {
        color: #a0a0a0;
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .canvas-panel strong {
        color: #ffffff;
    }

/* ==========================================================================
   5. FIXED CONTACT ANCHOR (DESKTOP)
   ========================================================================== */
.fixed-email-link {
    position: fixed;
    bottom: 3rem;
    left: 4rem;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    .fixed-email-link:hover {
        opacity: 1 !important;
    }

/* ==========================================================================
   6. RESPONSIVE MOBILE OVERRIDES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .site-wrapper {
        padding: 0 1.5rem;
        height: auto !important;
        overflow-y: visible !important;
    }

    body, html {
        overflow-y: auto !important;
        height: auto !important;
    }

    .top-spacer {
        height: 2.5rem;
    }

    /* Stack elements vertically but force strict LEFT alignment */
    .nav-frame {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 1rem;
        padding-bottom: 1.25rem;
        text-align: left !important;
    }

    .brand-logo {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
        width: 100%;
    }

    .main-menu {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 1.5rem;
    }

    .menu-link {
        font-size: 0.85rem;
    }

    .canvas-container {
        position: relative !important;
        display: block !important;
        height: auto !important;
        margin-top: 2rem;
    }

    .canvas-panel {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        top: 0 !important;
        left: 0 !important;
        display: none;
    }

        .canvas-panel.active-view {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
        }

        /* Clean, safe safety margin to pull the text inward from the glass */
        .canvas-panel h2 {
            font-size: 3.9vw !important; /* Tiny drop from 4.2vw for a flawless right margin */
            white-space: nowrap !important;
            line-height: 1.4;
            letter-spacing: -0.02em;
        }

        .canvas-panel p {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 1.25rem;
        }

    .fixed-email-link {
        position: relative !important;
        display: block !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 4rem 0 3rem 0 !important;
        padding-bottom: 2rem;
        text-align: left !important;
        width: 100%;
    }
}