/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Color Palette - Warm & Natural */
    --warm-sand: #E8DCC4;
    --alabaster: #F5F1E8;
    --burnt-orange: #C85A3E;
    --deep-moss: #3A4D39;
    --matte-carbon: #2B2B2B;

    --text-primary: #2B2B2B;
    --text-secondary: #5A5A5A;
    --text-accent: #C85A3E;

    --border-hairline: rgba(43, 43, 43, 0.15);
    --shadow-subtle: rgba(43, 43, 43, 0.08);

    /* Spacing - Generous negative space */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 4.5rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 9rem;

    /* Typography */
    --font-serif: 'Crimson Pro', Georgia, serif;
    --font-mono: 'IBM Plex+Mono', 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-mono);
    background: var(--alabaster);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="16" cy="16" r="8" fill="%23C85A3E" opacity="0.6"/></svg>') 16 16, auto;
}

/* ===== TOP NAVIGATION LINKS ===== */
.top-nav-links {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    z-index: 1000;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--matte-carbon);
}

.nav-link.active {
    color: var(--matte-carbon);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.page-header h2 {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 700;
    color: var(--matte-carbon);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: var(--spacing-sm);
}

/* ===== INTRODUCTION SECTION ===== */
.intro-section {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
    font-weight: 400;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    text-align: center;
    margin: var(--spacing-2xl) 0 var(--spacing-md) 0;
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--burnt-orange);
}

.section-divider-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--matte-carbon);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.section-divider-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== BACK NAVIGATION ===== */
.back-navigation {
    margin-bottom: var(--spacing-lg);
    padding-left: 8%;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-hairline);
    transition: all var(--transition-fast);
}

.back-btn:hover {
    color: var(--burnt-orange);
    border-color: var(--burnt-orange);
    transform: translateX(-6px);
}

/* ===== HERO GRAPH (EDGE BUNDLING) ===== */
.hero-graph {
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.hero-graph-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-hairline);
}

.hero-graph-header h3 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--matte-carbon);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-graph-description {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-graph-container {
    background: var(--alabaster);
    position: relative;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-hairline);
}

/* ===== CHART SECTIONS ===== */
.chart-section {
    margin-bottom: var(--spacing-xl);
}

.main-chart-section {
    margin-bottom: var(--spacing-2xl);
}

.chart-header {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.chart-header h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--matte-carbon);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.chart-description {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chart-container {
    background: var(--warm-sand);
    border: 1px solid var(--border-hairline);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    width: 1px;
    height: 100%;
    background: var(--border-hairline);
}

.chart-container:hover {
    box-shadow: 0 24px 64px var(--shadow-subtle);
}

.big-chart {
    min-height: 600px;
}

.large-chart {
    min-height: 500px;
}

.medium-chart {
    min-height: 450px;
}

.small-chart {
    min-height: 530px;
}

/* ===== CHART PLACEHOLDERS ===== */
.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Skill Bubbles (Main Chart) - Suspended Objects Aesthetic */
.skill-bubbles {
    width: 100%;
    height: 550px;
    position: relative;
}

.skill-bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    background: var(--deep-moss);
    border: 2px solid var(--matte-carbon);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow:
        0 8px 24px rgba(43, 43, 43, 0.12),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    animation: suspend 4s ease-in-out infinite;
}

.skill-bubble:nth-child(2n) {
    background: var(--burnt-orange);
    animation-delay: 0.8s;
}

.skill-bubble:nth-child(3n) {
    background: var(--matte-carbon);
    animation-delay: 1.6s;
}

.skill-bubble span {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: calc(var(--size) / 10);
    color: var(--alabaster);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.skill-bubble:hover {
    transform: translate(-50%, -50%) translateY(-12px);
    box-shadow:
        0 16px 48px rgba(43, 43, 43, 0.2),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.skill-bubble:active {
    transform: translate(-50%, -50%) scale(0.96);
}

@keyframes suspend {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-18px) rotate(2deg);
    }
}

/* Bar Chart Placeholder */
.bar-chart-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    height: 380px;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.bar {
    flex: 1;
    height: var(--height);
    background: var(--color);
    position: relative;
    transition: all var(--transition-normal);
    cursor: pointer;
    animation: barRise 1s ease-out;
    border: 1px solid var(--border-hairline);
    box-shadow: 0 4px 16px var(--shadow-subtle);
}

.bar:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 32px rgba(43, 43, 43, 0.15);
}

.bar-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes barRise {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: var(--height);
        opacity: 1;
    }
}

/* Pie Chart Placeholder */
.pie-chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
}

.pie-chart-placeholder.small {
    gap: var(--spacing-sm);
}

.pie-svg {
    width: 240px;
    height: 240px;
    filter: drop-shadow(0 8px 24px rgba(43, 43, 43, 0.1));
}

.pie-chart-placeholder.small .pie-svg {
    width: 240px;
    height: 240px;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-hairline);
    box-shadow: 0 2px 6px var(--shadow-subtle);
}

/* Word Cloud Container */
.word-cloud-container {
    width: 100%;
    height: 600px;
    position: relative;
}

.word-item {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: var(--size);
    font-weight: 600;
    color: var(--deep-moss);
    opacity: 0.85;
    transition: all var(--transition-fast);
    cursor: pointer;
    animation: wordFloat 1s ease-out;
    white-space: nowrap;
    user-select: none;
    z-index: 1;
}

.word-item:hover {
    opacity: 1;
    z-index: 100;
}

/* Word Cloud Tooltip */
.word-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--matte-carbon);
    color: var(--alabaster);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.3);
    z-index: 1000;
}

.word-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--matte-carbon);
}

.word-item:hover .word-tooltip {
    opacity: 1;
}

@keyframes wordFloat {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }

    to {
        opacity: 0.85;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* Word Cloud Placeholder (for empty state) */
.word-cloud-placeholder {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scatter Plot Placeholder */
.scatter-plot-placeholder {
    width: 100%;
    height: 450px;
    position: relative;
    background: linear-gradient(to top, rgba(200, 90, 62, 0.03), transparent);
    border-left: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.scatter-point {
    position: absolute;
    left: var(--x);
    bottom: var(--y);
    width: 14px;
    height: 14px;
    background: var(--burnt-orange);
    border: 1px solid var(--matte-carbon);
    box-shadow: 0 2px 8px rgba(43, 43, 43, 0.15);
    transition: all var(--transition-fast);
    cursor: pointer;
    animation: pointAppear 0.8s ease-out;
}

.scatter-point:nth-child(3n) {
    background: var(--deep-moss);
}

.scatter-point:hover {
    transform: scale(2);
    box-shadow: 0 6px 20px rgba(43, 43, 43, 0.25);
    z-index: 10;
}

@keyframes pointAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.axis-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.axis-label.x-axis {
    bottom: -35px;
    right: 0;
}

.axis-label.y-axis {
    top: 0;
    left: -100px;
    transform: rotate(-90deg);
    transform-origin: right;
}

/* ===== GRID LAYOUTS - Asymmetrical ===== */
.charts-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.charts-grid:not(.three-columns) {
    grid-template-columns: 1.2fr 0.8fr;
}

.charts-grid.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ===== TEAM PAGE ===== */
.team-section {
    margin-top: var(--spacing-2xl);
}

.team-placeholder {
    background: var(--warm-sand);
    border: 1px solid var(--border-hairline);
    padding: var(--spacing-2xl);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-placeholder p {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .charts-grid.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid:not(.three-columns) {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        font-size: 4.5rem;
    }

    .chart-header h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .charts-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding-left: 0;
    }

    .page-header h2 {
        font-size: 3.5rem;
    }

    .chart-header {
        padding-left: 0;
    }

    .chart-container::before {
        display: none;
    }

    .big-chart {
        min-height: 500px;
    }

    .skill-bubbles {
        height: 450px;
    }

    .main-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 2.5rem;
    }

    .chart-header h3 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .big-chart {
        min-height: 450px;
    }

    .skill-bubbles {
        height: 400px;
    }
}

/* ===== TEAM MEMBER STYLING ===== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: var(--warm-sand);
    border: 1px solid var(--border-hairline);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

/* Hover Effect - Similar to your Chart Containers */
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px var(--shadow-subtle);
    border-color: var(--burnt-orange);
}

.member-photo-frame {
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-md);
    position: relative;
    border-radius: 50%;
    /* Makes it circular like skill bubbles */
    overflow: hidden;
    border: 2px solid var(--matte-carbon);
    background: var(--alabaster);
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.12);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
}

.member-info {
    width: 100%;
}

.member-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--matte-carbon);
    margin-bottom: var(--spacing-xs);
    line-height: 1.1;
}

.member-role {
    font-family: var(--font-mono);
    color: var(--burnt-orange);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-hairline);
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.social-icon {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: var(--burnt-orange);
    border-color: var(--burnt-orange);
    transform: translateY(-2px);
    background: rgba(200, 90, 62, 0.05);
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .member-photo-frame {
        width: 160px;
        height: 160px;
    }
}

/* Market Insights Card Styling */
.insight-card {
    background-color: #F9F7F2;
    /* Very light beige/paper color */
    border-left: 6px solid #C85A3E;
    /* Your Theme Orange */
    padding: 2rem;
    margin: 3rem 0 2rem 0;
    /* Spacing around the card */
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 20px rgba(58, 77, 57, 0.08);
    /* Subtle shadow using your Theme Green */
    position: relative;
    overflow: hidden;
}

/* Background decoration (optional stylized quotation mark) */
.insight-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: 'Crimson Pro', serif;
    font-size: 120px;
    color: rgba(200, 90, 62, 0.1);
    /* Faint orange */
    pointer-events: none;
}

.insight-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.insight-header h3 {
    font-family: 'IBM Plex Mono', monospace;
    /* Tech/Data font */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3A4D39;
    /* Theme Green */
    margin: 0;
    font-weight: 600;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-content p {
    font-family: 'Crimson Pro', serif;
    /* Readable body font */
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2B2B2B;
    margin: 0;
}

.insight-content strong {
    font-weight: 700;
    color: #000;
}

/* Highlight effect for the "No Level 2" conclusion */
.highlight-text {
    background: linear-gradient(120deg, rgba(200, 90, 62, 0.2) 0%, rgba(200, 90, 62, 0.2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    /* Underline marker effect */
    padding: 0 4px;
    font-weight: 600;
}

/* Footer base styling */
footer {
    border-top: 1px solid #bfa98e;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #5a4f3f;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: -50px;
}

.footer-logo {
    height: 100px;
    width: auto;
    opacity: 0.95;

}

.footer-logos img:first-child {
    margin-right: -80px;
}

.footer-text {
    text-align: left;
    min-width: 260px;
}

.footer-text p {
    margin: 3px 0;
}
/* ===== EDGE BUNDLING GRAPH ===== */
.edge-bundling-container {
    width: 95%;
    height: 1000px;
    height: 1000px; 
    
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edge-bundling-container svg {
    width: 100%;
    height: 100%;
}

.edge-bundling-node {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--matte-carbon);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.edge-bundling-link {
    stroke: var(--deep-moss);
    stroke-opacity: 0.3;
    fill: none;
    pointer-events: none;
    transition: stroke-opacity var(--transition-fast), stroke var(--transition-fast);
}

/* Responsive adjustments for edge bundling */
@media (max-width: 768px) {
    .hero-graph-header h3 {
        font-size: 3rem;
    }

    .edge-bundling-container {
        height: 500px;
    }

    .edge-bundling-node {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .hero-graph-header h3 {
        font-size: 2.5rem;
    }

    .edge-bundling-container {
        height: 600px;
    }

    .edge-bundling-node {
        font-size: 7px;
    }
}

/* ===== TIMELINE STYLES (Data Processing Page) ===== */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-hairline);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: var(--spacing-2xl);
    animation: timelineFadeIn 0.6s ease-out;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

@keyframes timelineFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--warm-sand);
    border: 2px solid var(--matte-carbon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--matte-carbon);
    box-shadow: 0 4px 16px var(--shadow-subtle);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-marker {
    background: var(--burnt-orange);
    color: var(--alabaster);
    transform: scale(1.1);
}

.timeline-content {
    background: var(--warm-sand);
    border: 1px solid var(--border-hairline);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: 0 12px 32px var(--shadow-subtle);
    border-color: var(--burnt-orange);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--matte-carbon);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.timeline-content p {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-content code {
    background: rgba(43, 43, 43, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--burnt-orange);
}

.timeline-content strong {
    color: var(--matte-carbon);
    font-weight: 600;
}

/* Mermaid Diagram Container */
.mermaid-container {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: var(--alabaster);
    border: 1px solid var(--border-hairline);
    overflow-x: auto;
}

.mermaid-container pre {
    margin: 0;
}

/* Processing Details */
.processing-details {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.detail-item {
    padding: var(--spacing-sm);
    background: var(--alabaster);
    border-left: 3px solid var(--burnt-orange);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.detail-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--burnt-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* Processing Scripts List */
.processing-scripts {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.script-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--alabaster);
    border: 1px solid var(--border-hairline);
    transition: all var(--transition-fast);
}

.script-item:hover {
    border-color: var(--burnt-orange);
    box-shadow: 0 4px 12px var(--shadow-subtle);
}

.script-item code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--burnt-orange);
    white-space: nowrap;
}

.script-item span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Visualization List */
.viz-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
}

.viz-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--alabaster);
    border-left: 3px solid var(--deep-moss);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.viz-list li strong {
    color: var(--deep-moss);
    font-weight: 600;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .script-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
        margin-bottom: var(--spacing-xl);
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .timeline-content p,
    .detail-item,
    .script-item span {
        font-size: 0.75rem;
    }
}

/* Visualization Thumbnails Grid */
.viz-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.viz-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.viz-thumb:hover {
    transform: translateY(-8px);
}

.thumb-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--alabaster);
    border: 2px solid var(--border-hairline);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-normal);
}

.viz-thumb:hover .thumb-preview {
    border-color: var(--burnt-orange);
    box-shadow: 0 8px 24px var(--shadow-subtle);
}

.thumb-svg {
    width: 100%;
    height: 100%;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.thumb-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.viz-thumb:hover .thumb-label {
    color: var(--burnt-orange);
}

/* View Dashboard CTA */
.view-dashboard-cta {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.dashboard-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--burnt-orange);
    color: var(--alabaster);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--burnt-orange);
    transition: all var(--transition-normal);
}

.dashboard-btn:hover {
    background: transparent;
    color: var(--burnt-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-subtle);
}

/* Thumbnail Grid Responsive */
@media (max-width: 768px) {
    .viz-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .viz-thumbnails {
        grid-template-columns: 1fr;
    }

    .thumb-label {
        font-size: 0.65rem;
    }
}
