/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #ffffff;
    --bg-card: #f4f4f4;
    --text-main: #0a0a0a; /* Darker black */
    --text-muted: #333333; /* Darker gray for better readability */
    --accent: #bd5728;
    /* Duller Terracotta Orange */

    --font-heading: 'Space Grotesk', sans-serif;
    --font-serif: 'Playfair Display', serif; /* New Formal Font */
    --font-body: 'Inter', sans-serif;

    --sidebar-w: 260px;
    --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-mode {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #cccccc;
}

/* Chart Container */
#chartdiv {
    width: 100%;
    height: 100%;
    /* Ensure it sits nicely */
    transform: translateZ(0);
    will-change: transform;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

ul {
    list-style: none;
}

/* --- SIDEBAR --- */
/* --- SIDEBAR --- */
aside.sidebar {
    position: sticky;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    flex-shrink: 0; /* Prevent shrinking */
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    background-color: var(--bg-dark);
    transition: background-color 0.5s ease;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.sidebar-guide p {
    transition: opacity 0.3s ease;
}

aside nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: -10vh;
}

aside nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

aside nav a:hover,
aside nav a.active {
    color: var(--text-main);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.sidebar-guide {
    margin-top: -10vh;
    font-family: var(--font-body);
}

.sidebar-guide p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.sidebar-guide .small {
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.4;
    transition: color 0.5s ease;
}

.sidebar-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* --- MAIN CONTENT --- */
main.content {
    /* margin-left: var(--sidebar-w); <- REMOVED */
    /* width: calc(100% - var(--sidebar-w)); <- REMOVED */
    flex-grow: 1; /* Take up remaining space */
    width: 0; /* Flexbox trick to prevent overflow */
    position: relative;
}

/* --- HERO (CANVAS) --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}
/* --- HERO (CANVAS) --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    perspective: 1000px;
    transition: background-color 0.5s ease;
}

.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

body.dark-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: var(--accent);
    margin: 0.5rem auto;
    animation: grow 2s infinite;
}

/* Full-Screen Map Hero */
.hero-map-fullscreen {
    min-height: 100vh;
    position: relative;
    background: var(--bg-dark);
}

.hero-map-fullscreen #chartdiv {
    width: 100%;
    height: 100vh;
}

.map-instruction {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(189, 87, 40, 0.3);
    z-index: 10;
}

.map-instruction span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    font-weight: 500;
}

/* Content Section Below Map */
.intro-content-section {
    padding: 10rem 8%;
    background: var(--bg-dark);
    text-align: left;
}

.intro-content-section h1 {
    font-size: clamp(3.5rem, 6vw, 7rem);
    margin-bottom: 4rem;
    line-height: 1;
}

.intro-grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.intro-grid .lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.intro-grid .sub {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0.85;
}

/* Gallery CTA in content section */
.intro-content-section .gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s var(--easing);
    will-change: transform, box-shadow;
    box-shadow: 0 4px 6px -1px rgba(189, 87, 40, 0.2);
}

.intro-content-section .gallery-cta svg {
    transition: transform 0.4s var(--easing);
}

.intro-content-section .gallery-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(189, 87, 40, 0.3), 
                0 10px 10px -5px rgba(189, 87, 40, 0.2);
}

.intro-content-section .gallery-cta:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media(max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-content-section {
        padding: 6rem 5%;
    }
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes grow {
    0%, 100% {
        height: 50px;
    }
    50% {
        height: 70px;
    }
}

/* --- TEXT SECTIONS --- */
section.text-section,
section.feature-block,
section.contents-section {
    padding: 8rem 8%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#intro {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-family: var(--font-serif);
    font-style: italic;
    /* Massive, editorial scale */
    font-size: clamp(4rem, 12vw, 14rem); 
    line-height: 0.85;
    font-weight: 400;
    margin-bottom: 6rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
    transform: translateX(-2vw); /* Slight overhang */
}

.highlight-text {
    color: var(--accent); /* Pop of color */
    display: block;
    margin-left: 10vw; /* Asymmetric rhythm */
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin-left: auto;
}

.lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-main);
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-style: italic;
}

.sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

/* Contents - "Bento" Grid feel */
h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    opacity: 0.6;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.toc-list li {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column; /* Number on top */
    align-items: flex-start;
    gap: 1rem;
    border-radius: 12px;
    transition: all 0.4s var(--easing);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.toc-list li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(0,0,0,0.1);
    padding-left: 2rem; /* Reset padding shift from old style */
}

.toc-num {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(189, 87, 40, 0.15);
    border-radius: 100px;
}

/* Feature Blocks - Clean & Spacious */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Asymmetric Sidebar style */
    gap: 6rem;
    align-items: start;
}

.block-header {
    position: sticky;
    top: 10rem;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 8rem; /* Massive Number */
    color: #f0f0f0; /* Subtle ghost number */
    line-height: 0.8;
    font-weight: 700;
    display: block;
    margin-bottom: -2rem; /* Overlap */
    z-index: -1;
    position: relative;
    user-select: none;
}

h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.block-content p {
    font-size: 1.25rem; /* Larger body text for cognitive ease */
    line-height: 1.7;
    max-width: 65ch;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.large-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.5rem !important;
    line-height: 1.3 !important;
    color: var(--text-main) !important;
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
    margin: 3rem 0;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); /* Floating effect */
}

.block-image,
.wide-image {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.8s var(--easing);
    display: block;
}

.block-image:hover,
.wide-image:hover {
    filter: grayscale(0%);
    transform: scale(1.05); /* Slow zoom */
}

.caption {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    display: block;
    text-align: right;
}

/* Bento Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stats-grid > div {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.stats-grid > div:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    display: block;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Gallery */
/* Asymmetric Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Asymmetric split */
    gap: 2rem;
    align-items: end; /* Align to bottom */
}

.gallery-item {
    position: relative;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    /* No fixed aspect ratio, let them flow */
    height: auto;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: all 0.6s ease;
}

.gallery-item:hover img {
    filter: grayscale(0);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gallery-item h5 {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    border-top: 1px solid var(--text-muted);
    padding-top: 1rem;
    display: inline-block;
}

/* Marquee / Highlight */
#highlights {
    padding: 8rem 0;
    background: var(--text-main);
    color: var(--bg-dark);
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    padding: 6rem 10%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.footer-branding p {
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.footer-nav a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #333;
}

/* Hide AmCharts watermark if no license */
.am5-watermark {
    display: none !important;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MAP TOOLTIP --- */
.map-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    z-index: 1000;
    transform: translate(-50%, -150%);
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark); 
}
::-webkit-scrollbar-thumb {
    background: #ddd; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb; 
}

/* --- RESPONSIVE --- */
/* --- RESPONSIVE --- */

/* Tablet & Smaller Laptops (1024px and down) */
@media(max-width: 1024px) {
    body {
        flex-direction: column;
    }

    aside.sidebar {
        width: 100%;
        height: auto;
        position: relative; /* Not sticky on mobile to save vertical space */
        flex-direction: row;
        align-items: center;
        padding: 1.5rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .logo {
        font-size: 1.5rem;
    }

    aside nav,
    .sidebar-footer {
        display: none; /* Simplify UI for smaller screens */
    }
    
    .sidebar-guide {
        margin-top: 0; /* Reset margin */
        display: none; /* Hide guide text to save header space */
    }

    /* Keep Guide visible only as small text if needed, or hide completely for clean header.
       Let's show just the Logo and a Hamburger if we had one, but for now just Logo is clean.
    */

    main.content {
        margin-left: 0;
        width: 100%;
    }

    section.text-section,
    section.feature-block,
    section.contents-section {
        padding: 8rem 5%; /* Reduce padding */
    }

    /* On Tablet, allow some grids to remain 2-col if they fit */
    .feature-block {
         grid-template-columns: 1fr; /* Stack sidebar style blocks */
         gap: 4rem;
    }

    .block-header {
        position: static; /* Remove sticky inside blocks */
    }

    h1 {
        font-size: 6rem;
    }
}

/* Mobile (768px and down) */
@media(max-width: 768px) {
    h1 {
        font-size: 3.5rem; /* Readable on phone */
        padding-top: 2rem;
        margin-bottom: 3rem;
    }

    .lead {
        font-size: 1.5rem;
    }

    section.text-section,
    section.feature-block,
    section.contents-section {
        padding: 6rem 5%; /* Tighter padding for mobile */
    }

    .intro-grid,
    .stats-grid,
    .gallery-grid,
    .toc-list {
        grid-template-columns: 1fr !important; /* Force stack everything */
        gap: 2.5rem;
    }

    .section-number {
        font-size: 4rem;
        margin-bottom: -1rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    .large-text {
        font-size: 1.4rem !important; /* Prevent overflow */
        padding-left: 1.5rem;
        margin: 2rem 0;
    }

    /* Adjust Map Controls position for mobile */
    /* Handled by JS ideally, but we can ensure container is sized right */
    #chartdiv {
        height: 60vh; /* Smaller map on mobile */
    }
    
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    footer {
        padding: 4rem 5%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-nav {
        text-align: left;
    }
}

/* --- SPLIT SCREEN LAYOUT (Sticky Sidebar + Scroll Content) --- */

.split-layout-container {
    display: grid;
    grid-template-columns: 35% 65%; /* Asymmetric Split */
    min-height: 100vh;
}

/* Sticky Left Panel */
.sticky-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: #999; /* Fallback */
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.sticky-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: #fff;
    transform: none;
}

.hero-meta {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    display: block;
}

.back-link-split {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    z-index: 10;
}

.back-link-split:hover {
    color: #fff;
}

/* Scrollable Right Panel */
.scroll-content {
    background-color: #ffffff; /* Clean white for text */
    padding: 8rem 10%; /* Lots of breathing room */
    color: #333;
}

.scroll-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-top: 4rem; 
    margin-bottom: 2rem;
    color: #000;
    text-align: center;
}

.scroll-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-align: center;
}

.scroll-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 2rem;
    max-width: 65ch; /* Optimal reading measure */
    margin-left: auto;
    margin-right: auto;
}

.quote-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    margin: 4rem 0;
    color: #000;
}

/* Elements Grid (Light Theme) */
.elements-grid-light {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.element-card-light {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.element-card-light:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
}

.element-card-light strong {
    display: block;
    font-family: var(--font-heading);
    color: #000;
    margin-bottom: 0.5rem;
}

.element-card-light span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.scroll-image {
    width: 100%;
    margin: 3rem 0;
    border-radius: 4px;
    /* max-height: 500px; object-fit: cover; optional */
}

/* Mobile Responsive */
@media(max-width: 1024px) {
    .split-layout-container {
        grid-template-columns: 1fr;
    }
    .sticky-hero {
        position: relative;
        height: 60vh;
        padding: 2rem;
    }
    .scroll-content {
        padding: 4rem 5%;
    }
}

/* --- REDESIGNED ARTICLE LAYOUT (Classy & Modern) --- */

.article-hero-modern {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff; /* Always white on hero for contrast */
    background-color: var(--bg-dark);
}

.article-hero-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Dark overlay */
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.1); /* Slight zoom for parallax feel initially */
    transition: transform 10s ease;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.article-hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    transform: none; /* Reset overhang */
    letter-spacing: -0.02em;
}

.article-meta-modern {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.article-container {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

/* Floating Clean TOC */
.modern-toc {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    width: 200px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modern-toc.visible {
    opacity: 0.6;
    pointer-events: auto;
}

.modern-toc:hover {
    opacity: 1;
}

.modern-toc ul {
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 1.5rem;
}

body.dark-mode .modern-toc ul {
    border-color: rgba(255,255,255,0.1);
}

.modern-toc li {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-toc li a {
    color: var(--text-muted);
}

.modern-toc li.active a {
    color: var(--accent);
    font-weight: 700;
}

/* Article Typography */
.article-lead {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 4rem;
    font-style: italic;
    text-align: center;
}

.article-section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
    letter-spacing: -0.02em;
    opacity: 1;
}

.article-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Image Grids inside Article */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem -4rem; /* Break out of container slightly */
}

.editorial-image-full {
    width: 100%;
    margin: 4rem 0;
    border-radius: 4px;
}

.editorial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.editorial-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.editorial-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 1024px) {
    .modern-toc { display: none; }
    .editorial-grid { margin: 2rem 0; grid-template-columns: 1fr; }
    .article-container { padding: 4rem 1.5rem; }
    .article-hero-modern { height: 70vh; }
}