/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --accent-blue: #4f8cff;
    --accent-cyan: #22d3ee;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --section-padding: 100px;
    --container-max: 1100px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-cyan);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(244, 63, 94, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(79, 140, 255, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 28px;
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8)
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 40px;
    animation: fadeUp 0.8s var(--ease-out) 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeUp 0.8s var(--ease-out) 0.8s both;
}

.hero-stat {
    padding: 20px 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.hero-stat:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-purple));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 100px;
    transition: all 0.3s;
    animation: fadeUp 0.8s var(--ease-out) 1s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.3);
    color: white;
}

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

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    padding: 5px 14px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 100px;
    background: rgba(34, 211, 238, 0.05);
}

.tag-rose {
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.05);
}

.tag-amber {
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
}

.tag-cyan {
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.05);
}

.tag-purple {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   LEVERS GRID (Overview)
   ============================================ */
.levers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lever-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(24px);
}

.lever-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.lever-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 140, 255, 0.15);
    transform: translateY(-3px);
}

.lever-icon {
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.lever-icon.icon-cyan {
    color: var(--accent-cyan);
}

.lever-icon.icon-purple {
    color: var(--accent-purple);
}

.lever-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.lever-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.lever-metric {
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.lever-num {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lever-num.cyan {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
}

.lever-num.purple {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-rose));
    -webkit-background-clip: text;
    background-clip: text;
}

.lever-unit {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   CHART SECTIONS
   ============================================ */
.chart-section {
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(24px);
}

.chart-section.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s var(--ease-out);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.chart-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* BAR CHART */
.bar-chart {
    max-width: 700px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bar-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transition: width 1.2s var(--ease-out);
}

.bar-rose {
    background: linear-gradient(90deg, #f43f5e, #ec4899);
}

.bar-blue {
    background: linear-gradient(90deg, #4f8cff, #6366f1);
}

.bar-green {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-amber {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.bar-cyan {
    background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

.bar-purple {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}

.bar-orange {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.replacement-line {
    opacity: 0.7;
}

/* H-BAR CHART (horizontal, wider labels) */
.h-bar-chart {
    max-width: 750px;
}

.h-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.h-bar-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    line-height: 1.3;
}

.h-bar-label small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.h-bar-track {
    flex: 1;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.h-bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    transition: width 1.2s var(--ease-out);
}

/* LINE CHART */
.line-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}

.line-chart {
    width: 100%;
    height: auto;
}

.chart-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 2s var(--ease-out) 0.5s forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* DONUT CHARTS */
.donut-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 16px;
}

.donut-item {
    text-align: center;
}

.donut-chart {
    width: 140px;
    height: 140px;
}

.donut-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* STACKED BARS */
.stacked-bars {
    margin-bottom: 16px;
}

.stacked-bar-item {
    margin-bottom: 16px;
}

.stacked-year {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.stacked-track {
    display: flex;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
}

.stacked-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    transition: width 1s var(--ease-out);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.seg-euro {
    background: #4f8cff;
}

.seg-latino {
    background: #f59e0b;
}

.seg-african {
    background: #10b981;
}

.seg-asian {
    background: #22d3ee;
}

.seg-mixed {
    background: #a855f7;
}

.stacked-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* AGE COMPARISON */
.age-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 16px;
}

.age-item {
    text-align: center;
}

.age-circle svg {
    width: 140px;
    height: 140px;
}

.age-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
}

.age-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.age-vs {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* ============================================
   STAT CARDS ROW
   ============================================ */
.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.stat-cards-row.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out);
}

.stat-card {
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(244, 63, 94, 0.2);
    transform: translateY(-2px);
}

.stat-card-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-card-num.rose {
    color: var(--accent-rose);
}

.stat-card-num.cyan {
    color: var(--accent-cyan);
}

.stat-card-num.amber {
    color: var(--accent-amber);
}

.stat-card-num.purple {
    color: var(--accent-purple);
}

.stat-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   QUOTE BLOCK
   ============================================ */
.quote-block {
    max-width: 680px;
    margin: 0 auto 56px;
    opacity: 0;
    transform: translateY(20px);
}

.quote-block.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s var(--ease-out);
}

.quote-block blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 24px 0 24px 24px;
    border-left: 3px solid var(--accent-rose);
}

/* ============================================
   SPLIT CARDS
   ============================================ */
.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out);
}

.info-card:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.info-card-icon {
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CALLOUT
   ============================================ */
.callout {
    display: flex;
    gap: 20px;
    padding: 28px;
    margin-bottom: 48px;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(20px);
}

.callout.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out);
}

.callout-icon-wrap {
    flex-shrink: 0;
    padding-top: 2px;
}

.callout-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent-cyan);
}

.callout-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   TIMELINE (Blending)
   ============================================ */
.timeline {
    max-width: 660px;
    margin: 0 auto 56px;
    position: relative;
    padding-left: 56px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out);
}

.timeline-track {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-rose), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.tl-dot {
    position: absolute;
    left: -44px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 2px solid var(--bg-secondary);
}

.tl-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.tl-card {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.tl-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tl-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.mini-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s var(--ease-out);
}

.mini-fill.purple {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-rose));
}

/* ============================================
   IMPLICATIONS
   ============================================ */
.implications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.impl-card {
    padding: 32px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.impl-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.impl-card:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
}

.impl-icon-wrap {
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.impl-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.impl-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CLOSING QUOTE */
.closing-quote {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.closing-quote.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s var(--ease-out);
}

.closing-quote blockquote p {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.closing-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   SOURCES
   ============================================ */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.source-item {
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.src-org {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.src-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.footer-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:1024px) {
    .levers-grid {
        grid-template-columns: 1fr;
    }

    .stat-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .implications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .donut-row {
        flex-wrap: wrap;
        gap: 32px;
    }

    .split-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    :root {
        --section-padding: 70px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-cards-row {
        grid-template-columns: 1fr;
    }

    .implications-grid {
        grid-template-columns: 1fr;
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }

    .bar-label,
    .h-bar-label {
        width: 90px;
        font-size: 0.78rem;
    }

    .age-comparison {
        flex-direction: column;
        gap: 24px;
    }

    .age-vs {
        transform: none;
    }

    .stacked-seg {
        font-size: 0.6rem;
    }

    .timeline {
        padding-left: 44px;
    }

    .callout {
        flex-direction: column;
    }

    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .donut-row {
        flex-direction: column;
        align-items: center;
    }
}