:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-color: #c92a2a;
    /* Red for urgency/violence */
    --secondary-bg: #1a1a1a;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Merriweather', serif;
    --font-ui: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loading #loader {
    opacity: 1;
}

body:not(.loading) #loader {
    opacity: 0;
    pointer-events: none;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(0.3);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.eyebrow {
    font-family: var(--font-ui);
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-teaser {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Hero Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -100px;
    /* Requested adjustment */
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

/* Advanced Timeline Styles */
.timeline-container-vertical {
    position: relative;
    padding-left: 20px;
}

/* Progressive Line */
.timeline-container-vertical::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #333 0%, var(--accent-color) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.timeline-vertical-item {
    position: relative;
    padding-left: 40px;
    /* Space for node */
    margin-bottom: 40px;
    opacity: 0.4;
    /* Passive state */
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-left: none !important;
    /* Override inline style from JS if any */
}

/* Nodes */
.timeline-vertical-item::before {
    content: '';
    position: absolute;
    left: 15px;
    /* Aligned with line roughly */
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #333;
    /* Passive color */
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Active Node */
.timeline-vertical-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-vertical-item.active::before {
    background-color: #fff;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(201, 42, 42, 0.5);
    width: 16px;
    height: 16px;
    left: 13px;
    /* Adjust for size change */
}

/* Last Node */
.timeline-vertical-item:last-child::before {
    width: 20px;
    height: 20px;
    border: 4px solid var(--accent-color);
    background-color: #fff;
    outline: 2px solid #fff;
    /* Double ring effect */
    left: 11px;
}

/* Illustrated Narrative (Quote Cards) */
.quote-cards-section {
    background-color: #e0e0e0;
    /* Like paper/report */
    padding: 60px 20px;
    color: #1a1a1a;
}

.quote-card {
    background: #fff;
    padding: 30px;
    margin: 30px auto;
    max-width: 700px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
}

.quote-text::before {
    content: '“';
    font-size: 4rem;
    color: rgba(200, 200, 200, 0.5);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: serif;
}

.quote-source {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: right;
    font-weight: 700;
}

/* Word Cloud Styles */
.word-cloud-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 60px 0;
    overflow: hidden;
    /* Background: Gradient Black -> Dark Gray + Vignette */
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
    /* Vignette */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Noise overlay */
.word-cloud-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.word-cloud-title {
    margin-top: 30px;
    font-family: 'Oswald', sans-serif;
    /* Grotesque/Bold */
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #cccccc;
    /* Light Gray */
    text-transform: uppercase;
    z-index: 20;
    opacity: 0;
    animation: fadeReveal 2s ease forwards;
}

.cloud-item {
    position: absolute;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 0;
    /* Start hidden */
    z-index: 10;
    cursor: default;
    will-change: transform, opacity;
}

/* Hover Effect */
.cloud-item:hover {
    animation-play-state: paused !important;
    opacity: 1 !important;
    z-index: 30;
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(201, 42, 42, 0.5);
    cursor: crosshair;
}

@keyframes fadeReveal {
    to {
        opacity: 0.8;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, 10px);
    }

    50% {
        transform: translate(-5px, 20px);
    }

    75% {
        transform: translate(-15px, 5px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes opacityFlux {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

/* Small reveal for timeline items initially */
.timeline-vertical-item {
    transform: translateX(12px);
    /* Initial offset */
}

.timeline-vertical-item.active {
    transform: translateX(0);
}

/* Sections */
.story-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    border-bottom: 1px solid #333;
}

/* Sticky Image Panel */
.visual-panel {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    background-color: #000;
    overflow: hidden;
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 1s ease;
}

.visual-image:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

.visual-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-left: 3px solid var(--accent-color);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: #fff;
}

/* Text Panel */
.text-panel {
    width: 50%;
    padding: 0px 40px;
    background: var(--bg-color);
    position: relative;
    z-index: 2;
}

.part-label {
    font-family: var(--font-ui);
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.paragraph {
    margin-bottom: 24px;
    color: #ccc;
    font-size: 1.1rem;
}

/* Specific Content Types */
.pullquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    border-left: 4px solid #3f2ac9;
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    line-height: 1.4;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.inline-image {
    width: 100%;
    margin: 30px 0;
    border-radius: 4px;
}

/* Infographics */
.infographic-section {
    padding: 80px 20px;
    background: var(--secondary-bg);
    text-align: center;
}

.chart-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.chart-caption {
    margin-top: 20px;
    font-family: var(--font-ui);
    color: #888;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    padding: 20px;
    background-color: #222;
    border-radius: 6px;
    position: relative;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

/* Horizontal Timeline for Part 3 */
.timeline-horizontal {
    display: flex;
    overflow-x: auto;
    padding: 40px 0;
    margin: 40px 0;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #222;
}

.timeline-horizontal::-webkit-scrollbar {
    height: 8px;
}

.timeline-horizontal::-webkit-scrollbar-track {
    background: #222;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.timeline-h-item {
    min-width: 250px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-h-item:hover {
    transform: translateY(-5px);
}

.timeline-h-date {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-h-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-h-description {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-section {
        flex-direction: column;
    }

    .visual-panel {
        width: 100%;
        height: 40vh;
        /* Takes up top 40% of screen */
        position: sticky;
        top: 0;
        z-index: 5;
        /* Ensure it stays above text if needed, or text scrolls under? Usually text scrolls under. */
        /* Actually if sticky, it stays at top. Text is in normal flow below it. */
        border-bottom: 2px solid var(--accent-color);
    }

    .text-panel {
        width: 100%;
        padding: 40px 20px;
        min-height: 60vh;
        /* Ensure enough scroll space */
        z-index: 10;
        background: var(--bg-color);
        /* Ensure text covers image if they overlap, but here they stack. */
    }

    /* Adjust typography for mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .pullquote {
        font-size: 1.4rem;
        margin: 20px 0;
    }

    /* Timeline Mobile */
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dialogue Animation: Slide from left */
.dialogue-reveal {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.dialogue-reveal.active {
    opacity: 1;
    transform: translateX(0);
}

/* Dialogue Tone Styles */
.paragraph.dialogue-weak {
    font-family: var(--font-ui);
    font-style: italic;
    font-weight: 400;
    color: #999;
    text-transform: lowercase;
    padding-left: 20px;
    border-left: 1px solid #333;
}

.paragraph.dialogue-firm {
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

/* Hero Scroll Mouse Icon */
.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

.timeline-item {
    opacity: 0;
    transition: all 0.8s ease;
}

.timeline-item.left {
    transform: translateX(-30px);
}

.timeline-item.right {
    transform: translateX(30px);
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}