/* Fix the 3D space permanently behind your website typography layers */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #0d130d;
}

/* Master wrapper for scroll pacing control */
.threejs-scroll-wrapper {
    position: relative;
    z-index: 1;
}

/* Structural sizing for story markers */
.threejs-scroll-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    pointer-events: none; /* Let the mouse rotate/interact with 3D elements behind the text if needed */
}

/* Clean text overlays floating over the low-poly scene */
.threejs-scroll-content {
    pointer-events: auto; /* Turn mouse clicks back on for normal text selection, buttons, and links */
    max-width: 550px;
    padding: 3rem;
    margin-left: 8%;
    background: rgba(13, 19, 13, 0.65);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.threejs-scroll-content h1, .threejs-scroll-content h2 {
    color: #ffffff;
    margin-top: 0;
    font-weight: 700;
}

.threejs-scroll-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 0;
}