/* ============================================================
   THE LAST HARVEST — Main Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;   /* Must be scrollable for programmatic scrollTo to work */
    background: #000;
    font-family: 'Lato', sans-serif;
    color: #fff;
}


/* ── Start screen ─────────────────────────────────────────── */
#start-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ── Background video ─────────────────────────────────────── */
.video-container {
    position: absolute;
    inset: 0;               /* top/right/bottom/left: 0 */
    z-index: 0;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fills container, maintains aspect ratio */
    object-position: center center;
    display: block;
}


/* ── Dark overlay ─────────────────────────────────────────── */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
}


/* ── Title block (centred) ────────────────────────────────── */
.title-block {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 24px;

    /* Nudge slightly above true centre for visual balance */
    transform: translateY(-5vh);
}

.eyebrow {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: clamp(0.80rem, 1.8vw, 1.05rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.story-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1.0;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow:
        0 2px 40px rgba(0, 0, 0, 0.6),
        0 1px 4px  rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.60);
}


/* ── Scroll prompt (bottom-centre) ───────────────────────── */
.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    user-select: none;
}

.scroll-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.5vw, 0.80rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.arrow-wrap {
    animation: bounce 1.8s ease-in-out infinite;
}

.arrow-icon {
    display: block;
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.60);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}


/* ── Bounce keyframes ─────────────────────────────────────── */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.60;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}


/* ── Site logo ────────────────────────────────────────────── */
.site-logo-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: block;
    line-height: 0;         /* removes gap below inline img */
}

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;

    /* Default: pure white */
    filter: brightness(0) invert(1);
    opacity: 0.85;

    transition: filter 0.35s ease, opacity 0.35s ease;
}

.site-logo-link:hover .site-logo,
.site-logo-link:focus  .site-logo {
    /* Hover: restore full colour */
    filter: none;
    opacity: 1;
}


/* ── Responsive adjustments ───────────────────────────────── */
@media (max-width: 480px) {
    .story-title {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .scroll-prompt {
        bottom: 28px;
    }
}


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

/* ── Section container ────────────────────────────────────── */
#map-section {
    position: relative;
    height: 100vh;
}

/* ── Sticky map viewport ──────────────────────────────────── */
.map-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.map-sticky.fading-out {
    opacity: 0;
}

/* ── 3D Globe Container ───────────────────────────────────── */
.globe-container {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    transition: opacity 2s ease;
    overflow: hidden;
}

.map-sticky.revealed .globe-container {
    opacity: 1;
}

/* Globe.GL canvas - ensure it fills viewport */
.globe-container > div {
    width: 100% !important;
    height: 100% !important;
}

.globe-container canvas {
    display: block !important;
}

/* ── Map scroll-down arrow ────────────────────────────────── */
.map-scroll-prompt {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

/* Bounce applied to inner wrap so it doesn't override
   the container's translateX(-50%) centering transform */
.map-scroll-prompt .arrow-wrap {
    animation: bounce 1.8s ease-in-out infinite;
}

.map-scroll-prompt .arrow-icon {
    display: block;
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ── Dark gradient overlay ────────────────────────────────── */
.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.12) 35%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

/* ── Map captions (shared base) ───────────────────────────── */
.map-caption {
    position: absolute;
    z-index: 2;
    max-width: 580px;
    padding: 80px 100px;
    pointer-events: none;
}

/* ── Caption 1 — centred, big stat ───────────────────────── */
.cap-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 28px));
    text-align: center;
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
    max-width: 900px;
}

.cap-1.visible {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.cap-stat {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 14px;
}

.cap-heading {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.3vw, 2.1rem);
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ── Caption 2 — lower-right ──────────────────────────────── */
.cap-2 {
    bottom: 14%;
    right: 6%;
    transform: translateY(28px);
    text-align: left;
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
    max-width: 760px;
}

.cap-2.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Cap-2 heading is ~35% larger than the shared .cap-heading size */
.cap-2 .cap-heading {
    font-size: clamp(1.35rem, 3vw, 1.90rem);
}

/* ── Ethiopia pin ─────────────────────────────────────────── */
/*   Positioned relative to .map-image-wrapper with responsive adjustments
     to stay fixed to Ethiopia across different viewport aspect ratios */
.eth-pin {
    position: absolute;
    /* Base position for desktop landscape (16:9 to 16:10) */
    left: 73%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    /* Slight delay so pin appears just after caption 2 */
    transition: opacity 0.8s ease 0.35s;
}

.eth-pin.visible {
    opacity: 1;
}

/* Responsive pin adjustments for different viewport sizes/aspect ratios */
/* Narrower screens show more vertical image content, shift pin accordingly */
@media (max-width: 1400px) {
    .eth-pin {
        left: 71%;
        top: 51%;
    }
}

@media (max-width: 1024px) {
    .eth-pin {
        left: 69%;
        top: 52%;
    }
}

@media (max-width: 768px) {
    .eth-pin {
        left: 67%;
        top: 53%;
    }
}

@media (max-width: 480px) {
    .eth-pin {
        left: 65%;
        top: 54%;
    }
}

.eth-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e05c2a;
    border: 2px solid #fff;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.eth-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(224, 92, 42, 0.55);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: eth-pulse 2.4s ease-out infinite;
}

.eth-label {
    display: block;
    margin-top: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.40rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
}

/* ── Ethiopia ripple keyframe ─────────────────────────────── */
@keyframes eth-pulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(5);   opacity: 0;   }
}


/* ============================================================
   VIDEO FEATURE SECTION
   ============================================================ */

#video-feature {
    position: relative;
    height: 400vh;
    width: 100vw;
    overflow: visible;
}

.feature-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.feature-sticky {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.feature-sticky.fading-in {
    opacity: 0;
}

/* Ensure feature section is visible when navigating to it */
#video-feature.state-left .feature-sticky,
#video-feature.state-right .feature-sticky,
#video-feature.state-departure .feature-sticky,
#video-feature.state-refugee-camp .feature-sticky {
    opacity: 1;
}

.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh;
    z-index: 0;
    transform: translateY(0);
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-bg.no-transition {
    transition: none !important;
}

.feature-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
}

.feature-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh;
    z-index: 2;
    pointer-events: none;
    transform: translateY(0);
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-video-layer.no-transition {
    transition: none !important;
}

#video-feature.state-initial .feature-bg,
#video-feature.state-initial .feature-video-layer {
    transform: translateY(0);
}

#video-feature.state-left .feature-bg,
#video-feature.state-left .feature-video-layer {
    transform: translateY(-33vh);
}

#video-feature.state-hidden .feature-bg,
#video-feature.state-hidden .feature-video-layer {
    transform: translateY(-100vh);
}

#video-feature.state-right .feature-bg,
#video-feature.state-right .feature-video-layer {
    transform: translateY(-150vh);
}

#video-feature.state-fadeout .feature-bg,
#video-feature.state-fadeout .feature-video-layer {
    transform: translateY(-200vh);
}

#video-feature.state-departure .feature-bg,
#video-feature.state-departure .feature-video-layer {
    transform: translateY(-235vh);
}

.feature-video {
    position: absolute;
    width: 54vw;
    max-width: 1400px;
    min-width: 320px;
    overflow: visible;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 1s ease;
}


.feature-video-clip {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #000;
}

.feature-video-left {
    left: clamp(24px, 6vw, 96px);
    top: 83vh;
    transform: translateY(-50%);
}

.feature-video-right {
    right: clamp(24px, 6vw, 96px);
    top: 200vh;
    transform: translateY(-50%);
}

#video-feature.state-initial .feature-video-left,
#video-feature.state-initial .feature-video-right {
    opacity: 0;
}

#video-feature.state-left .feature-video-left {
    opacity: 1;
}

#video-feature.state-left .feature-video-right {
    opacity: 0;
}

#video-feature.state-hidden .feature-video-left,
#video-feature.state-hidden .feature-video-right {
    opacity: 0;
    transition: opacity 1s ease;
}

#video-feature.state-right .feature-video-right {
    opacity: 1;
}

#video-feature.state-right .feature-video-left {
    opacity: 0;
}

#video-feature.state-fadeout .feature-video-right {
    opacity: 0;
    transition: opacity 1.2s ease;
}

#video-feature.state-fadeout .feature-video-left {
    opacity: 0;
}

#video-feature.state-departure .feature-video-left,
#video-feature.state-departure .feature-video-right {
    opacity: 0;
}

.feature-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.feature-play:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: -6px;
}

.feature-play:hover {
    background: rgba(0, 0, 0, 0.35);
}

.feature-video.is-playing .feature-play {
    opacity: 0;
    pointer-events: none;
}

.video-progress-wrap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
}

.video-progress {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.video-progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.video-remaining {
    min-width: 56px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.feature-heading {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(280px, 32vw, 550px);
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

#video-feature.state-left .feature-video-left .feature-heading {
    opacity: 1;
}

#video-feature.state-right .feature-video-right .feature-heading {
    opacity: 1;
}

.feature-heading-right {
    left: calc(100% + 3vw);
}

.feature-heading-left {
    right: calc(100% + 3vw);
}

.play-icon {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}

.play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 26px solid #111;
}

.feature-scroll-prompt {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#video-feature.arrow-visible .feature-scroll-prompt {
    opacity: 1;
}

@media (max-width: 900px) {
    .feature-video {
        width: 78vw;
    }

    .feature-video-right {
        margin-left: auto;
        margin-right: auto;
        top: 200vh;
        left: auto;
        right: auto;
    }

    .feature-heading {
        position: static;
        transform: none;
        margin-top: 18px;
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .feature-video {
        width: 90vw;
    }

    .feature-video-clip {
        border-radius: 18px;
    }

    .feature-video-left,
    .feature-video-right {
        margin-left: auto;
        margin-right: auto;
    }

    .video-progress-wrap {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   MIGRATION CONTENT (WITHIN VIDEO FEATURE SECTION)
   ============================================================ */

.migration-content {
    position: absolute;
    top: 240vh;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    max-width: 1200px;
    z-index: 3;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 1s ease;
}

#video-feature.state-departure .migration-content {
    opacity: 1;
}

.migration-media-wrapper {
    position: relative;
    width: 100%;
}

.migration-photo {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: clamp(18px, 2vw, 32px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transition: opacity 0.8s ease;
}

#video-feature.state-refugee-camp .migration-photo {
    opacity: 0;
    pointer-events: none;
}

.migration-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.3);
    transition: transform 5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#video-feature.state-departure .migration-image {
    transform: scale(1);
}

.migration-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(18px, 2vw, 32px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#video-feature.state-refugee-camp .migration-video {
    opacity: 1;
    pointer-events: auto;
}

.migration-heading-overlay {
    position: absolute;
    max-width: 45%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(8px);
    border-radius: clamp(12px, 1.5vw, 20px);
    padding: clamp(20px, 3vw, 36px);
    opacity: 1;
    transition: opacity 0.8s ease;
}

.migration-heading-top {
    top: clamp(24px, 4vw, 48px);
    left: clamp(24px, 4vw, 48px);
}

.migration-heading-bottom {
    top: clamp(24px, 4vw, 48px);
    right: clamp(24px, 4vw, 48px);
    left: auto;
    max-width: 50%;
    opacity: 0;
    pointer-events: none;
}

#video-feature.state-refugee-camp .migration-heading-top {
    opacity: 0;
    pointer-events: none;
}

#video-feature.state-refugee-camp .migration-heading-bottom {
    opacity: 1;
    pointer-events: auto;
}

.migration-heading {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.migration-heading-bottom .migration-heading {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

@media (max-width: 900px) {
    .migration-content {
        width: 85vw;
    }
}

@media (max-width: 600px) {
    .migration-content {
        width: 90vw;
    }
    
    .migration-photo {
        border-radius: 16px;
    }
    
    .migration-video {
        border-radius: 16px;
    }
    
    .migration-heading-overlay {
        max-width: 80%;
        padding: clamp(16px, 4vw, 24px);
    }
}

/* ============================================================
   PROGRESS INDICATOR (SECTION 2+)
   ============================================================ */

.progress-indicator {
    position: fixed;
    top: 50%;
    right: clamp(6px, 1.5vw, 14px);
    transform: translateY(-50%);
    z-index: 4;
    width: 30px;
    height: 90vh;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.progress-indicator.is-visible {
    opacity: 1;
}

.progress-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(200, 200, 200, 0.35);
}

.progress-dots {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.progress-dot {
    border: none;
    padding: 0;
    outline: none;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(200, 200, 200, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.progress-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 4px;
}

.progress-dot.is-active {
    background: rgba(230, 230, 230, 0.85);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.progress-dot:hover {
    background: rgba(235, 235, 235, 0.95);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.progress-orb {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
    transform: translate(-50%, 0);
    transition: none;
}

@media (max-width: 700px) {
    .progress-indicator {
        right: 6px;
        height: 90vh;
    }
}

/* ============================================================
   NAVIGATION ARROWS
   ============================================================ */

.nav-arrow {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    animation: nav-pulse 2s ease-in-out infinite;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    transform: translateX(-50%) scale(1.1);
    animation: none;
}

.nav-arrow:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.nav-arrow svg {
    width: 28px;
    height: 28px;
}

@keyframes nav-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(6px);
    }
}

/* ============================================================
   CONTENT SECTIONS (Health, Trends, Explore)
   ============================================================ */

.content-section {
    position: relative;
    min-height: 100vh;
    padding: clamp(40px, 8vh, 80px) 0;
    background: #000;
    display: flex;
    align-items: center;
    z-index: 2;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    width: 100%;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 12px;
}

.section-heading.centered {
    text-align: center;
}

.section-subheading {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.section-subheading.centered {
    text-align: center;
}

/* ── Health Impacts Section ─────────────────────────────── */
.health-impacts-section {
    background: #000;
    background: linear-gradient(to bottom, #000 0%, #0a0a0a 100%);
    isolation: isolate;
    position: relative;
    padding-top: 0;
    padding-bottom: clamp(40px, 6vh, 80px);
    display: block;
    align-items: flex-start;
}

.health-impacts-section .content-container {
    padding-top: 20px;
}

.health-impacts-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    background: #000;
    z-index: 10;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.content-text {
    padding-top: 20px;
}

.health-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #e05c2a;
    margin-bottom: 12px;
}

.stat-label {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.impact-item {
    border-left: 3px solid #e05c2a;
    padding-left: 20px;
}

.impact-title {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #fff;
    margin-bottom: 8px;
}

.impact-item p {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.content-media {
    position: sticky;
    top: 120px;
}

.content-media picture {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.health-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(224, 92, 42, 0.15) 0%, rgba(224, 92, 42, 0.05) 100%);
    border: 2px dashed rgba(224, 92, 42, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 24px;
}

/* ── Trends Section ─────────────────────────────────────── */
.trends-section {
    background: linear-gradient(to bottom, #0a0a0a 0%, #000 100%);
}

.trends-header {
    margin-bottom: 60px;
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.trend-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(32px, 4vw, 48px);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 92, 42, 0.5);
}

.trend-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: #e05c2a;
    margin-bottom: 16px;
}

.trend-label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.trend-detail {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.hotspots-section {
    margin-top: 80px;
}

.subsection-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 32px;
    text-align: center;
}

.displacement-map {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .displacement-map {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .displacement-map {
        height: 400px;
    }
}

/* Leaflet color scheme - lighter, more modern */
.displacement-map .leaflet-tile-pane {
    filter: brightness(0.9) saturate(0.7) contrast(1.1);
}

.displacement-map .leaflet-control-zoom a {
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.displacement-map .leaflet-control-zoom a:hover {
    background-color: rgba(224, 92, 42, 0.8);
    color: #fff;
}

.displacement-map .leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.displacement-map .leaflet-control-attribution a {
    color: rgba(224, 92, 42, 0.8);
}

.displacement-map .leaflet-popup-content-wrapper {
    background-color: rgba(20, 20, 20, 0.95);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(224, 92, 42, 0.3);
}

.displacement-map .leaflet-popup-tip {
    background-color: rgba(20, 20, 20, 0.95);
}

.displacement-map .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 20px !important;
}

.displacement-map .leaflet-popup-close-button:hover {
    color: #e05c2a !important;
}

/* Custom popup content styling */
.hotspot-popup-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #e05c2a;
    margin-bottom: 8px;
}

.hotspot-popup-stat {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.hotspot-popup-description {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Permanent tooltips styling */
.displacement-map .leaflet-tooltip {
    background-color: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(224, 92, 42, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    color: #fff;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
}

.displacement-map .leaflet-tooltip-top:before {
    border-top-color: rgba(10, 10, 10, 0.92);
}

.displacement-map .leaflet-tooltip-bottom:before {
    border-bottom-color: rgba(10, 10, 10, 0.92);
}

.displacement-map .leaflet-tooltip-left:before {
    border-left-color: rgba(10, 10, 10, 0.92);
}

.displacement-map .leaflet-tooltip-right:before {
    border-right-color: rgba(10, 10, 10, 0.92);
}

/* Simple marker hover effect using CSS */
.leaflet-marker-icon {
    transition: all 0.2s ease;
}

.leaflet-marker-icon:hover {
    filter: brightness(1.2);
}

/* Target the inner div for scale without position shift */
.leaflet-marker-icon > div {
    transition: transform 0.2s ease;
}

.leaflet-marker-icon:hover > div {
    transform: scale(1.2);
}

.hotspot-list {
    display: none; /* Hidden per user request */
}

/* ── Explore More & Sources Section ─────────────────────── */
.explore-section {
    background: linear-gradient(to bottom, #000 0%, #0a0a0a 50%, #000 100%);
    padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 18vh, 200px) 0;
}

.explore-content {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-intro {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 32px auto 40px;
    max-width: 800px;
}

.explore-button {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #e05c2a 0%, #c94d1f 100%);
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(224, 92, 42, 0.3);
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(224, 92, 42, 0.5);
}

.explore-button:focus {
    outline: 3px solid rgba(224, 92, 42, 0.5);
    outline-offset: 4px;
}

.sources-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 0;
}

.sources-heading {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    margin-top: 0;
    text-align: center;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.source-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(224, 92, 42, 0.6);
    padding: 20px 28px;
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
}

.source-item strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.source-item a {
    color: #e05c2a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.source-item a:hover {
    color: #ff7a47;
    text-decoration: underline;
}

/* ── Responsive adjustments ─────────────────────────────── */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .content-media {
        position: relative;
        top: 0;
    }
    
    .health-stats {
        grid-template-columns: 1fr;
    }
    
    .trends-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .content-section {
        padding: clamp(40px, 8vh, 80px) 0;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .hotspot-list {
        grid-template-columns: 1fr;
    }
    
    .explore-button {
        padding: 16px 36px;
        font-size: 1rem;
    }
}
