/* ============================================
   FONT DECLARATIONS
   ============================================ */

@font-face {
    font-family: 'GT Standard Condensed';
    src: url('fonts/GT-Standard-L-Condensed-Light-Trial.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'GT Standard';
    src: url('fonts/GT-Standard-L-Standard-Regular-Trial.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Tiempos Text';
    src: url('fonts/TiemposTextWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Departure Mono';
    src: url('fonts/DepartureMono-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}


/* ============================================
   CSS VARIABLES - COLOR SYSTEM
   ============================================ */

:root {
    /* Brand Colors */
    --color-yellow: #E8F34F;
    --color-yellow-muted: #C4D947;
    --color-orange: #EA5A39;
    --color-pink: #F0B3C5;
    --color-charcoal: #3D3D3D;
    --color-gray-light: #D9D9D9;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Typography */
    --font-display: 'GT Standard Condensed', 'Arial Narrow', sans-serif;
    --font-sans: 'GT Standard', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Tiempos Text', Georgia, serif;
    --font-mono: 'Departure Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;

    /* Layout */
    --max-width: 800px;
    --max-width-wide: 1200px;
}


/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    overflow-x: hidden;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--color-white);
    text-transform: capitalize;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
}

.section-heading {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

h2.finding-title,
.finding-title {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.emphasis {
    font-size: 1.3rem;
    font-style: italic;
}

.key-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-orange);
}

.byline, .attribution {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.author {
    color: var(--color-yellow);
}


/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

section {
    position: relative;
}


/* ============================================
   SCROLLYTELLING DATA BURST
   ============================================ */

.data-burst-container {
    position: relative;
    background-color: var(--color-charcoal);
}

.data-slide {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.6s ease;
    padding: var(--space-md);
}

.data-slide.active {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 1;
    animation: fadeInBounce 2s ease-out, bounce 2s ease-in-out infinite 2s;
    z-index: 10;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

.scroll-arrow {
    color: var(--color-gray-light);
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.data-stat {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--color-white);
    max-width: 900px;
    text-align: center;
    z-index: 2;
    line-height: 1.3;
}

.attribution {
    color: var(--color-gray-light);
    margin-top: var(--space-sm);
}

.why-question {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-yellow);
    font-weight: 300;
}

.highlight-yellow {
    color: var(--color-yellow);
}

/* Dithered figure backgrounds for data slides */
.dithered-figure {
    position: absolute;
    width: 400px;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    opacity: 0.8;
    z-index: 1;
    will-change: transform;
}

.dithered-figure.figure-1 {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.dithered-figure.figure-2 {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.dithered-figure.figure-3 {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.dithered-figure.figure-4 {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-lg) var(--space-md);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 900px;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.byline {
    color: var(--color-white);
}

/* Dithered figures in hero */
.hero-graphics {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dithered-figure-large {
    position: absolute;
    width: 400px;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.dithered-figure-large.left {
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.dithered-figure-large.right {
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

/* Diagonal lines decoration */
.diagonal-lines {
    position: absolute;
    right: 100px;
    top: 20%;
    width: 300px;
    height: 600px;
    z-index: 5;
    background-image: url(stitches/stitch-05.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(100%);
        rotate: 145deg;
}


/* ============================================
   STITCHING GRAPHIC ELEMENTS
   ============================================ */

.stitching-top {
    width: 100%;
    max-width: 400px;
    height: 40px;
    background-image: url(stitches/stitch-04.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: var(--space-lg);
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(350%) hue-rotate(8deg) brightness(103%) contrast(101%);
}

.stitching-divider {
    width: 100%;
    height: 40px;
    margin: var(--space-md) 0;
    position: relative;
    rotate: 2.5deg;
}

.stitching-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 40px;
    background-image: url(stitches/stitch-05.svg);
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(28%) sepia(84%) saturate(2723%) hue-rotate(347deg) brightness(94%) contrast(94%);
}

.stitching-divider.diagonal::before {
    background-image: url(stitches/stitch-01.svg);
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(84%) saturate(2723%) hue-rotate(347deg) brightness(94%) contrast(94%);
}

.stitching-divider.dots::before {
    background: radial-gradient(circle, var(--color-charcoal) 2px, transparent 2px);
    background-size: 15px 15px;
    height: 20px;
}


/* ============================================
   CALLOUT BOXES
   ============================================ */

.callout-box {
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border: 2px solid var(--color-charcoal);
    position: relative;
}

.callout-box.pink {
    background-color: var(--color-pink);
}

.callout-box.pink {
    margin-bottom: 0;
}

.callout-box.pink::after {
    content: '';
    position: absolute;
    right: -250px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 500px;
    height: 1200px;
    background-image: url(stitches/stitch-02.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(28%) sepia(84%) saturate(2723%) hue-rotate(347deg) brightness(94%) contrast(94%);
}

/* Third Place Features Section */
.features-heading {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-pink);
    background-color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
    border-top: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: var(--space-lg);
}

.feature-box {
    padding: var(--space-md);
    background-color: var(--color-pink);
    border: 2px solid var(--color-charcoal);
    border-top: none;
}

.feature-box:nth-child(1),
.feature-box:nth-child(2) {
    border-top: 2px solid var(--color-charcoal);
}

.feature-box:nth-child(2),
.feature-box:nth-child(4) {
    border-left: none;
}

.feature-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        border-left: 2px solid var(--color-charcoal);
        border-top: none;
    }

    .feature-box:first-child {
        border-top: 2px solid var(--color-charcoal);
    }
}

.stat-callout {
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    text-align: center;
    border: 3px solid currentColor;
}

.stat-callout.orange {
    border-color: var(--color-orange);
    background-color: rgba(234, 90, 57, 0.05);
}

.stat-callout.yellow {
    border-color: var(--color-yellow-muted);
    background-color: rgba(232, 243, 79, 0.05);
}

.big-stat {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-orange);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.inline-stat {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-orange);
    white-space: nowrap;
}


/* ============================================
   MAP SCROLLYTELLING SECTION
   ============================================ */

.map-scrollytelling-section {
    position: relative;
    background-color: var(--color-charcoal);
}

.map-scrollytelling-container {
    position: relative;
    min-height: 500vh; /* 5 steps × 100vh each */
}

/* Fullscreen sticky map background */
.map-background {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Disable map interaction */
}

/* Scrollytelling steps container */
.story-steps {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.story-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to left */
    padding: var(--space-md);
    padding-left: var(--space-lg); /* Reduced padding on left */
}

/* Story cards that overlay the map */
.story-card {
    background-color: var(--color-white);
    padding: var(--space-lg);
    max-width: 450px;
    border: 3px solid var(--color-charcoal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    position: relative;
}

.story-card.wide {
    max-width: 650px;
}

.story-card h2 {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.story-card h3 {
    font-family: var(--font-sans);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-orange);
}

.story-card h4 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tract-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

/* Stats grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background-color: var(--color-gray-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-orange);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-charcoal);
}

/* Comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Direct comparison table */
.comparison-grid-direct {
    margin-top: var(--space-md);
    font-family: var(--font-sans);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xs);
    font-weight: 600;
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #ddd;
}

.comparison-label {
    font-weight: 500;
    color: var(--color-charcoal);
}

.comparison-value {
    text-align: center;
    font-weight: 600;
    font-family: var(--font-mono);
}

.comparison-value.empty {
    color: #999;
    font-weight: 400;
}

.comparison-value.highlight {
    background-color: var(--color-yellow);
}

.comparison-row.total {
    font-weight: 700;
    border-top: 2px solid var(--color-charcoal);
    border-bottom: 2px solid var(--color-charcoal);
    margin-top: var(--space-xs);
}

.comparison-col {
    padding: var(--space-md);
}

.comparison-col:first-child {
    background-color: rgba(234, 90, 57, 0.05);
    border-left: 4px solid var(--color-orange);
}

.comparison-col:last-child {
    background-color: rgba(232, 243, 79, 0.05);
    border-left: 4px solid var(--color-yellow-muted);
}

.place-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.place-list li {
    padding: var(--space-xs) 0;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.place-list li:last-child {
    border-bottom: none;
}

.place-list li.empty {
    opacity: 0.4;
    font-style: italic;
}

.place-list li::before {
    content: '▸';
    color: var(--color-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: var(--space-xs);
}

.place-list li.empty::before {
    content: '○';
    opacity: 0.3;
}

/* Responsive adjustments for map scrollytelling */
@media (max-width: 768px) {
    .story-step {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .story-card {
        padding: var(--space-lg);
        max-width: 90vw;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

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

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .story-card h2 {
        font-size: 1.8rem;
    }

    .story-card h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.intro-section,
.child-section,
.findings-section {
    padding: var(--space-md) 0;
}

/* Outro Section */
.outro-section {
    position: relative;
    background-color: var(--color-charcoal);
    color: white;
    padding: var(--space-xl) 0;
}

.outro-section .stitching-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.outro-section .stitching-divider::before {
    filter: brightness(0) saturate(100%) invert(73%) sepia(96%) saturate(350%) hue-rotate(8deg) brightness(103%) contrast(101%);
}

.outro-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('graphics/conclusion-BKG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: color-burn;
    pointer-events: none;
}

.outro-section .content-container {
    position: relative;
    z-index: 1;
    padding-top: var(--space-md);
}

.outro-section p {
    color: white;
}

.outro-section .intro-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.end-mark {
    text-align: left;
    margin: var(--space-xs) 0 var(--space-md) 0;
}

.end-mark img {
    max-width: 50px;
    height: auto;
}

.outro-section h2 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
    color: white;
}

.next-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-md);
}

.explore-box {
    background-color: var(--color-yellow);
    border: 1px solid var(--color-charcoal);
    padding: var(--space-sm);
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: block;
}

.explore-box:hover {
    background-color: var(--color-yellow);
}

.explore-box-content {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-charcoal);
    padding: var(--space-sm);
}

.outro-section .methodology {
    background-color: white;
    color: var(--color-charcoal);
}

.outro-section .methodology summary {
    color: var(--color-charcoal);
}

.outro-section .methodology h3,
.outro-section .methodology p,
.outro-section .methodology li {
    color: var(--color-charcoal);
}

/* Article Actions Bar */
.article-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
    border-top: 1px solid var(--color-gray-light);
    border-bottom: 1px solid var(--color-gray-light);
}

.listen-section {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-charcoal);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.play-btn:hover {
    background-color: var(--color-gray-light);
}

.play-btn svg {
    margin-left: 3px; /* visual centering for play icon */
}

.listen-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
}

.listen-duration {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #666;
}

.learn-more-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    text-decoration: underline;
    margin-left: var(--space-xs);
}

.share-section {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-light);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background-color: var(--color-gray-light);
}

/* Share Menu */
.share-section {
    position: relative;
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-white);
    border: 2px solid var(--color-charcoal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 100;
}

.share-menu.active {
    display: block;
}

.share-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-charcoal);
}

.share-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--color-white);
}

.share-menu-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-gray-light);
}

.share-menu-header h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-charcoal);
}

.share-menu-options {
    padding: var(--space-xs) 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.share-option:hover {
    background-color: var(--color-gray-light);
}

.share-option svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .article-actions-bar {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .listen-duration,
    .learn-more-link {
        display: none;
    }
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
}

.finding {
    margin-bottom: var(--space-md);
}

.finding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    align-items: start;
}

.finding-text p {
    margin-bottom: 0;
}

.finding-callout {
    width: 100%;
}

.finding-callout .stat-callout {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .finding-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.finding-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.visualization-placeholder {
    margin: var(--space-lg) 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.viz-caption {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-charcoal);
}


/* ============================================
   EXPLORE & RESOURCES SECTIONS
   ============================================ */

.explore-section,
.resources-section {
    background-color: var(--color-gray-light);
    padding: 0;
}

.methodology {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background-color: var(--color-white);
    border: 1px solid var(--color-charcoal);
}

.methodology summary {
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    padding: var(--space-sm);
}

.methodology summary:hover {
    background-color: var(--color-yellow);
}

.map-container {
    margin: var(--space-lg) 0;
    border: 3px solid var(--color-charcoal);
    background-color: var(--color-white);
}

.map-container-fullwidth {
    width: 100%;
    background-color: var(--color-white);
}

.map-container-fullwidth iframe {
    display: block;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.resource-category {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border: 2px solid var(--color-charcoal);
}

.resource-category h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.resource-category ul {
    list-style-position: inside;
    padding-left: 0;
}

.resource-category li {
    margin-bottom: var(--space-sm);
}


/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-lg);
    text-align: center;
    display: none;
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .dithered-figure,
    .dithered-figure-large {
        opacity: 0.3;
        width: 200px;
        max-height: 400px;
    }

    .diagonal-lines {
        display: none;
    }

    .callout-box.pink::after {
        display: none;
    }

    .hero {
        padding: var(--space-md);
    }

    .content-container {
        padding: var(--space-md) var(--space-sm);
    }

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .data-stat {
        font-size: 1.5rem;
    }

    .big-stat {
        font-size: 3rem;
    }
}


/* ============================================
   LINKS & INTERACTIVE ELEMENTS
   ============================================ */

a {
    color: var(--color-orange);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-charcoal);
    background-color: var(--color-yellow);
    text-decoration: none;
}

a:focus {
    outline: 3px solid var(--color-orange);
    outline-offset: 2px;
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Add smooth transitions to all interactive elements */
button,
summary,
details,
.callout-box,
.stat-callout {
    transition: all 0.3s ease;
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background-color: var(--color-yellow);
    color: var(--color-charcoal);
}

::-moz-selection {
    background-color: var(--color-yellow);
    color: var(--color-charcoal);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .data-burst-container,
    .hero-graphics,
    .diagonal-lines,
    .stitching-divider {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        color: var(--color-charcoal);
        text-decoration: underline;
    }

    .content-container {
        max-width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .dithered-figure,
    .dithered-figure-large {
        opacity: 1;
    }

    .callout-box,
    .stat-callout {
        border-width: 3px;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 2px;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border: 3px solid var(--color-charcoal);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.modal-content p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.modal-content p:last-of-type {
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-charcoal);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-orange);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
