:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --font-main: 'Space Grotesk', sans-serif;
    --accent-cyan: #00f0ff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 1100vh; /* Accommodates all sections */
}

/* ========================================= */
/* 1. VISUAL LAYERS & Z-INDEX STACKING       */
/* ========================================= */

.vignette-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
}

.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 6; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

#canvas-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 10; 
    pointer-events: none; 
}

.text-block {
    position: absolute;
    z-index: 20; 
    opacity: 1 !important; 
}

.timeline-track {
    position: absolute; top: 0; left: 5vw; width: 2px; height: 100%;
    background: rgba(255, 255, 255, 0.15); 
    z-index: 40;
}
.marker {
    position: absolute; left: -9px; display: flex; align-items: center; gap: 15px;
    font-family: 'Courier New', monospace; color: #fff;
}
.marker::before { content: ''; display: block; width: 20px; height: 1px; background: #fff; }

/* ========================================= */
/* 2. BASE LAYOUT & SECTIONS                 */
/* ========================================= */

.centered-layout {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    height: 80vh; 
    text-align: center;
    pointer-events: none; 
}

.centered-layout > * {
    pointer-events: auto; 
}

/* SECTION A */
.top-group {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 20px; margin-bottom: 10px;
}
.hero-logo {
    width: 230px; height: auto; object-fit: contain; display: block;
}
.bottom-headline {
    font-family: var(--font-main);
    font-size: clamp(1rem, 2.5vw, 2rem); 
    line-height: 1.2; font-weight: 600; text-transform: uppercase;
    color: #FFFFFF; letter-spacing: 0.05em;
    margin-top: auto; width: 100%; 
    padding-bottom: 40px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* SECTION B */
.section-header-group {
    display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 0;
}
.s2-sub {
    font-family: var(--font-main); font-size: 1.5rem; font-weight: 300; 
    color: #ffffff; margin: 0; text-transform: none; letter-spacing: 0.05em; opacity: 0.9;
}
.s2-main {
    font-family: var(--font-main);
    font-size: clamp(0.8rem, 2.8vw, 2.3rem);
    font-weight: 500; color: #ffffff; margin: 0; line-height: 1.1;
    text-transform: lowercase; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.s2-bottom {
    font-size: clamp(1.2rem, 3vw, 2rem) !important; 
    font-weight: 300 !important; text-transform: none !important; 
    letter-spacing: 0.05em !important; opacity: 0.9;
    padding-bottom: 0px !important; 
}

/* SECTIONS 3 & 4 */
.s3-heading {
    font-family: var(--font-main);
    font-size: clamp(0.8rem, 2.8vw, 2.3rem); font-weight: 500; 
    color: #ffffff; margin: 0; line-height: 1.1; text-transform: lowercase; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin-top: 0; padding-top: 60vh; 
}
.s3-grid {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; 
    gap: 20px 60px; width: 100%; max-width: 900px; 
    margin-top: auto; padding-top: 50vh; padding-bottom: 0px !important; 
}
.s3-item {
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 3vw, 2rem) !important; font-weight: 300 !important;
    color: #ffffff; text-align: center; opacity: 0.9;
    letter-spacing: 0.05em !important; text-transform: none !important;
}

/* SECTION 5 */
.s5-heading {
    font-family: var(--font-main); font-size: clamp(0.8rem, 2.8vw, 2.3rem);
    font-weight: 500; color: #ffffff; margin: 0; line-height: 1.1;
    text-transform: lowercase; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin-top: 0; padding-top: 62vh; 
}
.s5-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; 
    width: 100%; max-width: 900px; margin-top: auto; padding-top: 62vh; padding-bottom: 0px !important; 
}
.s5-item {
    font-family: var(--font-main); font-size: clamp(1.2rem, 3vw, 2rem) !important;
    font-weight: 300 !important; color: #ffffff; text-align: center; opacity: 0.9;
    letter-spacing: 0.05em !important; text-transform: none !important;
}

/* SECTION 6 */
.s6-heading {
    font-family: var(--font-main); font-size: clamp(0.8rem, 2.8vw, 2.3rem);
    font-weight: 500; color: #ffffff; margin: 0; line-height: 1.1;
    text-transform: lowercase; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin-top: 0; padding-top: 65vh; 
}
.s6-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; 
    width: 100%; max-width: 900px; margin-top: auto; padding-top: 65vh; padding-bottom: 0px !important; 
}
.s6-item {
    font-family: var(--font-main); font-size: clamp(1.2rem, 3vw, 2rem) !important;
    font-weight: 300 !important; color: #ffffff; text-align: center; opacity: 0.9;
    letter-spacing: 0.05em !important; text-transform: none !important;
}

/* SECTION 7: CONTACT (UPDATED) */
.s7-heading {
    font-family: var(--font-main); font-size: clamp(0.8rem, 2.8vw, 2.3rem);
    font-weight: 500; color: #ffffff; margin: 0; line-height: 1.1;
    text-transform: lowercase; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin-top: 0; padding-top: 85vh; 
}

.s7-links {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    margin-top: auto; padding-bottom: 50px;
}

.contact-link {
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.contact-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* ========================================= */
/* MOBILE RESPONSIVENESS                     */
/* ========================================= */

@media (max-width: 768px) {
    .timeline-track { display: none; }
    .centered-layout { height: 70vh; width: 90%; }
    .bottom-headline { font-size: 1.2rem; padding-bottom: 30px; }

    .s3-heading, .s5-heading, .s6-heading, .s7-heading {
        padding-top: 50vh !important;
        font-size: 1.5rem; 
    }
    
    .s3-grid, .s5-grid, .s6-grid {
        grid-template-columns: 1fr; gap: 15px;
        padding-top: 50vh !important; padding-bottom: 60px !important; 
    }

    .s2-main { font-size: 1.5rem; }
    .s2-bottom { padding-bottom: 90px !important; }
    
    .hero-logo { width: 185px; }
    .top-group { gap: 15px; }

    .contact-link {
        font-size: 1rem;
        padding: 12px 30px;
    }
}