
/* Light Theme Split Engine for Explore 3D */

:root {
  --color-a: #F4EBD8; /* Highlight */
  --color-b: #B69676; /* Midtone */
  --color-c: #111111; /* Shadow */
}

:root.dark {
  --color-a: #27272a; /* Solid Structure */
  --color-b: #B69676; /* Structural Core */
  --color-c: #FFFFFF; /* Inverted Geometry Edge */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF; /* Pure Light Canvas */
    color: #111111; /* Dux Black */
    overflow-x: hidden;
    height: 600vh; /* Scroll track length */
}

/* Typography Overrides for Light Theme */
.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #111111;
    font-weight: 900;
    letter-spacing: -0.05em;
    font-size: 1.5rem;
    transition: opacity 0.3s;
    position: absolute;
    top: 2rem;
    left: 3rem;
    z-index: 50;
}
.brand-link img { height: 2.5rem; width: auto; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* 50/50 Architecture */
.fixed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex; /* Flex Row for Split */
    overflow: hidden;
    align-items: center;
    z-index: 10;
}

.pane-left, .pane-right {
    flex: 1; /* 50% / 50% Distribution */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* LEFT PANE: The 3D Sandbox */
.scene {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.cube-wrapper {
    width: 256px;
    height: 256px;
    position: relative;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes continuous-rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Static Isometric Geometry Vectors for Light Layout */
.face-top { transform: rotateX(90deg) translateZ(128px); background-color: var(--color-a); } /* Y-Axis: Highlight */
.face-bottom { transform: rotateX(-90deg) translateZ(128px); background-color: var(--color-a); } /* Y-Axis: Highlight */

.face-front { transform: translateZ(128px); background-color: var(--color-b); } /* Z-Axis: Midtone */
.face-back { transform: rotateY(180deg) translateZ(128px); background-color: var(--color-b); } /* Z-Axis: Midtone */

.face-left { transform: rotateY(-90deg) translateZ(128px); background-color: var(--color-c); }  /* X-Axis: Shadow */
.face-right { transform: rotateY(90deg) translateZ(128px); background-color: var(--color-c); } /* X-Axis: Shadow */


/* RIGHT PANE: Typography & Dynamics */
.interaction-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@keyframes promptPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.init-prompt {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #111111;
    text-transform: uppercase;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 17, 17, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s ease;
    animation: promptPulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

:root.dark .init-prompt {
    background-color: rgba(17,17,17,0.8);
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.1);
}

.divider-track {
    width: 6px;
    height: 60vh;
    background-color: rgba(17, 17, 17, 0.05);
    position: relative;
    z-index: 60;
    border-radius: 4px;
}

#scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #B69676; /* Sepia Core Progress */
    transform-origin: top;
    transform: scaleY(0);
}

.content-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(17,17,17,0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 380px;
    height: 380px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#nav-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(17, 17, 17, 0.5);
    text-transform: uppercase;
}

.dynamic-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.05em;
    color: #111111;
    margin: 0;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.dynamic-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.6);
    flex-grow: 1;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.icon-button {
    background-color: #111111;
    color: #FFFFFF;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-end; 
    margin-top: 1rem;
}

.icon-button:hover {
    background-color: #B69676;
    transform: translateX(8px);
    box-shadow: 0 10px 20px rgba(182, 150, 118, 0.3);
}

.icon-button span.arrow {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}
.icon-button:hover span.arrow {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .fixed-overlay { flex-direction: column; justify-content: center; }
    .pane-left, .pane-right { height: auto; flex: 1; width: 100vw; }
    
    .cube-wrapper {
        transform: scale(0.8);
        margin-top: 4rem; /* Offset strictly for the fixed top navbar */
    }
    
    .brand-link { top: 1.5rem; left: 1.5rem; }
    .interaction-stack { padding-left: 0; align-items: center; text-align: center; justify-content: center; height: 100%;}
    
    .divider-track {
        width: 60vw;
        height: 6px;
    }
    #scroll-progress-bar {
        transform-origin: left;
    }
}
