/* 1. Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    background-color: #000;
    font-family: "oscine", sans-serif;
    font-weight: 300; 
    font-style: normal;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Navigation */
#main-site-nav, nav.site-header-nav {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
    pointer-events: none;
}

nav .logo, nav .nav-links {
    pointer-events: auto;
}

nav .logo {
    color: #fff;
    font-family: "oscine", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: lowercase;
    font-family: "oscine", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, font-weight 0s linear; 
}

.nav-links a.active {
    font-weight: 700;
    color: #fff; /* Can change color here later if needed */
}

/* Optional Hover */
.nav-links a:hover {
    opacity: 0.8;
}

/* ==========================================
   MOBILE VIEWPORT NAVIGATION SHIFT
   ========================================== */

@media (max-width: 768px) {
    #main-site-nav {
        top: 0;
        bottom: 0;
        left: auto;   /* Release the left edge latch */
        right: 0;      /* Anchor cleanly to the right side of the screen */
        width: auto;   /* Collapse width to wrap the content tightly */
        height: 100vh; /* Stretch the track vertically to span the screen */
        padding: 40px 25px; /* Give it comfortable breathing room from the edge */
        flex-direction: column; /* Stack the Logo and Links vertically */
        justify-content: flex-start; /* Push everything up to start from the top */
        align-items: flex-end;    /* Align all elements flush to the right edge */
        gap: 3rem;     /* Create a clean gap between the logo and the menu block */
    }

    /* 2. Re-orient the Menu Links to a Vertical Stack */
    .nav-links {
        flex-direction: column; /* Turn horizontal row into a vertical stack */
        align-items: flex-end;   /* Flush the text alignment to the right edge */
        gap: 1.5rem;            /* Comfortably space out the vertical tap targets */
    }

    /* Optional: Rotate the logo vertically or keep it clean */
    nav .logo {
        text-align: right;
        margin-bottom: 1rem;
    }
}

/* 2. The Virtualized Stack Wrapper */
#scroll-wrapper {
    position: fixed; /* Keeps your visual panels locked to the view matrix */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
}

/* 3. The Scroll Runway
   This defines the total physical scroll height of the site (4 viewport heights) */
#scroll-runway {
    position: relative;
    width: 100%;
    height: 1200vh; /* 400vh matches our 4 transition phases exactly */
    z-index: 1;
    pointer-events: none; /* Invisible, letting inputs pass right through to panels */
}

/* 4. The Studio Panel Stack 
   Every single panel occupies the exact same viewport track */
/* All panels start flat. GSAP will explicitly handle elevation. */
.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1; /* All panels start on the base floor */
}
.virtual-panel {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}
.content-container {
    text-align: center;
    color: #fff;
}


/* ==========================================
   VIRTUALIZED CANVAS STACK BACKGROUND
   ========================================== */

/* ==========================================
   AMBIENT WATER TINT & SHIMMER OVERLAY
   ========================================== */

#home { 
    background-color: #1a1a1a; 
    z-index: 2;
    position: relative;
    overflow: hidden;
}

/* 🟢 Moved from body::before to #home::before to isolate the ecosystem */
#home::before {
    content: '';
    position: absolute; /* Pinned exactly to the #home viewport frame */
    top: 0;
    
    /* OVERSCAN FIX: Keeps your safety buffer intact for the scale() transforms */
    left: -2vw;
    width: 104vw;
    height: 100vh;
    
    /* LAYER POSITIONING MATRIX:
       Canvas is z-index: 1
       Overlay is z-index: 2  <-- Sits directly on top of the graphics to tint them
       Content Container is z-index: 3 <-- Sits on top of the tint so text stays crisp
    */
    z-index: 2; 
    pointer-events: none; 
    
    background: 
        radial-gradient(
            circle at 50% -10%, 
            rgba(0, 240, 255, 0.07) 0%, 
            rgba(255, 255, 255, 0.02) 45%, 
            transparent 75%
        ),
        linear-gradient(
            to bottom, 
            rgba(19, 15, 135, 0.2) 0%, 
            rgba(5, 4, 33, 0.2) 100%
        );

    animation: pondBloomShimmer 14s ease-in-out infinite alternate;
    transform-origin: top center;
}

/* Ensure the hero typography sits cleanly above the shimmer layer */
#home .content-container {
    position: relative;
    z-index: 3; /* Elevated slightly to clear the overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* Keep your highly calibrated keyframes exactly as you wrote them */
@keyframes pondBloomShimmer {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-2px); 
    }
    100% {
        opacity: 0.85;
        transform: scale(0.98) translateY(2px);
    }
}

#koi-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind the content layer but stays inside the #home matrix */
}

#home .content-container {
    position: relative;
    z-index: 2; /* Layered directly over the canvas graphics loop */
    width: 100%;
    height: 100%;
    
    /* Center the child grid inside the fixed viewport panel */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==========================================
   HOME SECTION - HERO GRAPHICS MATRIX
   ========================================== */


.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    pointer-events: auto;
    align-items: center; 
}

.hero-left {
    text-align: right;
    padding-right: 40px;
}

.hero-name {
    color: #ffffff;
    font-family: "oscine", sans-serif;
    font-size: 3.5vw; /* Desktop metric choice */
    font-weight: 300; /* Thin, elegant profile */
    text-transform: lowercase;
    letter-spacing: -0.01em;
    line-height: 1.0;
    margin: 0;
}

.hero-right {
    text-align: left;
    padding-left: 40px;
    display: flex;
    align-items: center; 
}

.hero-content-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    color: #ffffff;
    font-family: "oscine", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    opacity: 0.6;
}


.hero-tagline {
    color: #ffffff;
    font-family: "oscine", sans-serif;
    font-size: 3vw; /* Desktop metric choice */
    font-weight: 700; /* Bold layout emphasis */
    line-height: 1.2; /* Tightened slightly to match the bold profile scale */
    max-width: 580px; /* Expanded slightly to account for the larger bold text vector */
    margin: 0;
    opacity: 0.95;
}

/* Responsive Overrides stay isolated to mobile viewports */
@media (max-width: 768px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        padding-left: 30px;
        padding-right: 30px;
    }
    .hero-left {
        text-align: left;
        padding-right: 0;
        margin-bottom: 15px;
    }
    .hero-name {
        font-size: 2.5rem; /* Fallback scales for phone viewports */
    }
    .hero-right {
        text-align: left;
        padding-left: 0;
    }
    .hero-tagline {
        font-size: 1.5rem;
    }
}
#contact { background-color: #616161; }