/* =========================================
   PAGES/HOME.CSS
   Index Page, Timeline Layout
   ========================================= */

/* Main Grid Layout (Timeline) */
.container {
    display: grid;
    grid-template-columns: 40px 1fr 280px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 4% 10rem;
    position: relative;
}

/* Left Sidebar Spacer (Desktop) */
/* .timeline-sidebar {} - Implicitly used in HTML as empty div */

/* Center Column: Narrative Content */
.content-column {
    /* Padding removed in standardization */
    max-width: 850px;
}

section {
    min-height: 80vh;
    padding-bottom: 4rem;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

section.active {
    opacity: 1;
}

.hero-section {
    min-height: 60vh;
    opacity: 1;
}

.lif-video-embed {
    width: 100%;
    max-width: var(--col-narrow);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.lif-video-embed-iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Right Column: Sticky Charts */
.chart-column {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 69px;
    height: 80vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.chart-frame {
    width: 100%;
    max-width: 700px;
    position: relative;
    aspect-ratio: 4/3;
}

.chart-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border-light);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 20px;
    cursor: zoom-in;
}

.chart-img.active {
    opacity: 1;
    z-index: 10;
}

.chart-caption {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    text-align: center;
    position: absolute;
    bottom: -40px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chart-img.active+.chart-caption {
    opacity: 1;
}

/* Narrative Inline Figures (used in landing page) */
.narrative-inline-figure {
    width: 100%;
    max-width: var(--col-narrow);
    overflow: hidden;
}

.narrative-inline-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.narrative-inline-figure figcaption {
    font-size: var(--fs-tiny);
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Mobile Responsive Overrides for Home */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 800px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .timeline-sidebar {
        display: none;
    }
}