/* ===========================
   TheTONE - Responsive Fixed Layout (V19 - Email Font Fix)
   =========================== */

/* 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%;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape/mobile */
    text-size-adjust: 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: flex-end; /* Align elements to the bottom (Corner Gravity) */
    padding-bottom: 0; /* Remove padding to sit directly on the line */
    padding-left: 20%;
}

.logo {
    position: relative; 
    height: 50px; 
    display: flex;
    align-items: flex-end; 
    margin-left: -5px;
    padding-bottom: 0;
    margin-bottom: -2px; /* Visually sits firmly on the line (User request: slightly more to bottom) */
}

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

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: auto; 
    bottom: 0; 
    transform: none; 
    margin-top: 0; 
    right: 0;
    width: 400px;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start; 
    padding-left: 0; /* Align perfectly to the vertical grid line (Left Corner of the block) */
    padding-bottom: 8px; /* Sit comfortably on the horizontal line */
    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: 80px; /* Aligned exactly to grid header line (Corner start) */
    padding-bottom: 80px;
    width: 100%;
}

.hero-content {
    margin-left: 20%;
    width: calc(100% - 20% - 400px); 
    padding-left: 0;
    padding-top: 15px; /* Restored breathing room */
    padding-right: 40px;
}

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

.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: 20px; /* Force update: Reduced from 30px to 20px */
    text-transform: uppercase;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Further reduced from 20px to 10px for very tight spacing */
}

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

.pillar-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0 !important; /* Force zero margin */
    letter-spacing: -0.5px;
    margin-left: -3px;
    padding-bottom: 5px; /* Tiny gap for readability */
}

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

/* Email & Address Styles - Nuclear Option for Cache Issues */
.email-link-container p,
a[href^="mailto"] p {
    font-size: 16px !important; 
    font-weight: 400 !important;
    color: #444 !important;
    margin-bottom: 0 !important;
    line-height: 1.8 !important;
}

.email-text,
.email-text-final {
    font-size: 16px !important; 
    font-weight: 400 !important;
}

/* ===========================
   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; 
        padding-right: 24px;
        align-items: flex-end; 
        padding-bottom: 0;
    }

    .logo {
        padding-bottom: 0; /* Mobile: Sit exactly on the line */
    }
    
    .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 */
    }
}