/* ==========================================================================
   css/pages/about.css
   CONTEXT: The "About" Manifesto - Industrial Luxury & Cinematic Motion
   ========================================================================== */

/* ==========================================================================
   1. ACT 1: THE MONOLITH HERO
   ========================================================================== */
.about-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
    filter: contrast(1.1) saturate(0);
    /* Cinematic Black & White Look */
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, #000 90%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.hero-label-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.mono-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-line {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(5rem, 13vw, 11rem);
    line-height: 0.85;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin: 0;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-mission {
    margin-top: 60px;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   2. ACT 2: STICKY METRICS (The Core Interaction)
   ========================================================================== */
.sticky-metrics-section {
    background-color: var(--bg-color);
    padding: 200px 0;
    position: relative;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    min-height: 80vh;
    /* Ensures enough scroll space */
    margin-bottom: 100px;
}

.metric-row.reverse {
    flex-direction: row-reverse;
}

.metric-visual {
    width: 45%;
    position: relative;
}

/* The magic sticky container */
.sticky-wrapper {
    position: sticky;
    top: calc(50vh - 100px);
    /* Center vertically in viewport */
    border-left: 2px solid var(--accent);
    padding-left: 30px;
}

.metric-row.reverse .sticky-wrapper {
    border-left: none;
    border-right: 2px solid var(--accent);
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
}

.massive-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    opacity: 1;
}

.plus {
    font-size: 0.5em;
    color: var(--accent);
    -webkit-text-stroke: 0;
    vertical-align: top;
}

.num-label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-top: 20px;
}

.metric-context {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.context-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
}

.context-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

/*.metric-row.reverse .context-desc { margin-left: auto; } /* Align text block right if reversed */


/* ==========================================================================
   3. ACT 3: CULTURE SCROLL (Horizontal Values)
   ========================================================================== */
.culture-scroll-section {
    background-color: #050505;
    padding: 0;
    height: 400vh;
    /* Scroll Trigger Height */
    position: relative;
    z-index: 10;
}

/* The Viewport Locker */
.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.culture-track {
    display: flex;
    padding-left: 10vw;
    height: 70vh;
    align-items: center;
    width: max-content;
    will-change: transform;
    gap: 100px;
}

.culture-card {
    position: relative;
    flex-shrink: 0;
}

.intro-card {
    width: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-title {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.arrow-circle {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
}

.image-card {
    width: 50vw;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-bg {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.image-card:hover .card-bg img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease;
}

.image-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0);
}

.card-content h3 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 1rem;
    color: #888;
    max-width: 400px;
}

.card-num {
    display: block;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.buffer {
    width: 10vw;
}


/* ==========================================================================
   4. ACT 4: THE FINAL SEQUENCE (Transition)
   ========================================================================== */
.final-sequence-section {
    background-color: var(--bg-color);
    /* Matches the dark theme */
    padding: 0;
    height: 250vh;
    /* Controlled scroll length */
    position: relative;
    z-index: 20;
}

/* Note: Re-using the .sticky-viewport class defined above in section 3 */

.final-track {
    display: flex;
    height: 100vh;
    align-items: center;
    width: max-content;
    will-change: transform;
}

/* --- The Panels --- */
.final-panel {
    width: 100vw;
    /* Each panel takes full screen width */
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel 1: The Giant Title */
.title-panel .footer-heading {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-align: center;
}

.title-panel .highlight {
    color: var(--accent);
}

/* Panel 2: The Regular Quote */
.quote-panel {
    background-color: #080808;
    /* Subtle shift to slightly darker black */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Thin separator line */
}

.management-quote {
    font-family: var(--font-body);
    /* Regular text font */
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    /* Large enough to be elegant, small enough to be "text" */
    font-weight: 300;
    line-height: 1.6;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-style: italic;
    text-align: center;
}

.management-cite {
    display: block;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    text-transform: uppercase;
    font-style: normal;
    letter-spacing: 0.1em;
    font-size: 1rem;
    text-align: center;
}


/* ==========================================================================
   5. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-title {
        /* Reduce min size from 5rem to 2.5rem */
        font-size: clamp(2.5rem, 11vw, 5rem);
        width: 100%;

        /* Safety Protocol: Break words if they exceed screen width */
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }



    /* Sticky Metrics Breakdown */
    .metric-row,
    .metric-row.reverse {
        flex-direction: column;
        gap: 60px;
        min-height: auto;
    }

    .metric-visual,
    .metric-context {
        width: 100%;
    }

    .sticky-wrapper {
        position: static;
        border-left: none; 
        border-bottom: 2px solid var(--accent);
        padding-left: 0; 
        padding-bottom: 20px;
        
        /* CHANGED: Switch from 'row' (side-by-side) to 'column' (stacked) */
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        justify-content: flex-start;
        gap: 10px; /* Add space between Number and Label */
    }

    .massive-num { 
        font-size: 6rem; 
        line-height: 1; /* Tighten vertical spacing */
        width: 100%;    /* Ensure it doesn't fight the container */
    }

    .num-label {
        margin-top: 0; /* Remove old margins, rely on 'gap' */
        font-size: 1rem; /* Slightly smaller for hierarchy */
    }

    .context-title {
        font-size: 2.5rem;
    }

    /* Horizontal Sections Breakdown (Convert to Stack) */
    .culture-scroll-section,
    .final-sequence-section {
        height: auto;
        padding: 100px 0;
    }

    .sticky-viewport {
        position: static;
        height: auto;
        display: block;
    }

    /* Culture Track Mobile */
    .culture-track {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important;
        padding-left: 20px;
        padding-right: 20px;
        gap: 80px;
    }

    .intro-card,
    .image-card {
        width: 100%;
        height: auto;
    }

    .culture-title {
        font-size: 4rem;
    }

    .card-bg {
        height: 50vh;
    }

    .buffer {
        display: none;
    }

    /* Final Sequence Mobile */
    .final-track {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important;
    }

    .final-panel {
        width: 100%;
        height: auto;
        padding: 60px 20px;
        min-height: 50vh;
    }

    .title-panel .footer-heading { 
        /* OLD: font-size: 3.5rem; */
        /* NEW: Fluid scale starting at 2rem */
        font-size: clamp(2rem, 8vw, 3.5rem) !important; 
        padding: 0 10px; /* Prevent edge touching */
        word-wrap: break-word;
    }

    .management-quote {
        font-size: 1.4rem;
    }
}