/* ===========================
   TheTONE - Responsive Fixed Layout (V17 - Logo Color Change)
   =========================== */

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

:root {
    --bg-color: #FFFFFF;
    --text-color: #1A1A1A;
    --grid-color: #777777;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Removed min-width to allow responsive mobile layout */
    width: 100%;
    min-height: 100%;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* ===========================
   2. Grid System (FIXED FRAME)
   =========================== */
.grid-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.grid-line-vertical-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20%; 
    width: 1px;
    background-color: var(--grid-color);
}

.grid-line-vertical-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 400px;
    width: 1px;
    background-color: var(--grid-color);
}

.grid-header-line {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--grid-color);
}

.grid-split-line {
    position: absolute;
    top: 600px;
    left: 0;
    right: 400px;
    height: 1px;
    background-color: var(--grid-color);
}

.grid-sidebar-line {
    position: absolute;
    top: 50vh; 
    right: 0;
    width: 400px;
    height: 1px;
    background-color: var(--grid-color);
    z-index: 20; 
}

/* ===========================
   3. Header (FIXED, NO BAR)
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
}

.header .container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 20%;
}

.logo {
    position: relative; /* Added for overlay positioning */
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: -5px;
}

/* Logo Image */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 2px; 
    right: 0;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding-left: 30px; 
    gap: 30px;
    z-index: 101;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    white-space: nowrap;
    line-height: 1; 
    padding: 10px 0; 
}

/* ===========================
   4. Content Sections
   =========================== */
.hero-section {
    position: relative;
    z-index: 10;
    padding-top: 100px; 
    padding-bottom: 80px;
    width: 100%;
}

.hero-content {
    margin-left: 20%;
    width: calc(100% - 20% - 400px); 
    padding-left: 0;
    padding-right: 40px;
}

.hero-title {
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin-bottom: 30px;
    margin-left: -8px;
    margin-top: 0;
}

.title-line { display: block; white-space: nowrap; }

.slogan-verb {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-button {
    background: none;
    border: none;
    border-bottom: 1px solid #999;
    padding-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    color: var(--text-color);
}

/* ===========================
   5. Framework Sections
   =========================== */
.framework-section {
    position: relative;
    z-index: 10;
    padding-bottom: 120px;
    width: 100%;
}

.content-block {
    margin-left: 20%;
    width: calc(100% - 20% - 400px);
    padding-right: 40px;
}

.section-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 30px;
    margin-left: -5px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.pillar-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    margin-left: -3px;
}

.pillar-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* ===========================
   6. Footer & UI Elements
   =========================== */
.page-indicator {
    position: fixed;
    right: 100px;
    bottom: 80px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    mix-blend-mode: difference;
    color: var(--text-color);
}

.current-num { font-size: 24px; font-weight: 700; }
.total-num { font-size: 14px; font-weight: 600; }
.progress-line { width: 2px; height: 100px; background: rgba(0,0,0,0.1); position: relative; }
.progress-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: #000; }

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--grid-color);
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-left: 20%;
    margin-right: 400px;
}

/* ===========================
   7. Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; 
    }
    .page-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Grid System - Mobile Adaptation */
    .grid-layout {
        display: block; /* Show grid system */
    }

    .grid-line-vertical-left {
        display: block !important;
        left: 30px; /* Reduced from 20% to 30px for better mobile use */
    }

    .grid-line-vertical-right {
        right: 24px; /* Adjust right line to fit mobile screen */
        display: block !important;
    }

    /* Hide less important lines for mobile */
    .grid-sidebar-line,
    .grid-content-split-line {
        display: none !important;
    }
    
    /* Header & Logo Alignment */
    .header {
        height: 80px;
        background-color: transparent;
    }
    
    .header .container {
        padding-left: 30px; /* Align logo with new vertical grid line */
        padding-right: 24px;
    }
    
    .logo-img {
        height: 40px; 
    }
    
    /* Hero Content Alignment */
    .hero-section {
        margin-top: 0;
        padding-top: 80px; /* Align exactly with grid header line */
    }
    
    .hero-content {
        margin-left: 30px; /* Align with new grid */
        width: calc(100% - 30px - 24px); /* Fit between grid lines */
        padding-top: 10px; /* Slight breathing room below the line */
        padding-bottom: 24px;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 52px; 
        margin-left: -4px; /* Optical alignment */
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 40px;
        line-height: 1.7;
    }
    
    .hero-description br {
        display: none;
    }
    
    .cta-button {
        width: 100%;
        padding: 18px 0;
        font-size: 16px;
        text-align: left;
    }

    /* Framework Content Alignment */
    .content-block {
        margin-left: 30px; /* Align with new grid */
        width: calc(100% - 30px - 24px);
        padding: 24px 0;
    }
    
    .section-title {
        font-size: 40px;
        margin-left: -3px;
    }
    
    .footer {
        margin-left: 30px; /* Align with new grid */
        margin-right: 24px;
        text-align: left; /* Align with content */
    }
}