:root {
    --bg: #0d0f12;
    --bg-soft: #14181d;
    --text: #f7f3ee;
    --muted: rgba(247, 243, 238, 0.72);
    --accent: #ff8a2a;
    --accent-2: #ffc46b;
    --line: rgba(255,255,255,0.09);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img, video {
    display: block;
    max-width: 100%;
}

/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 30s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.62)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
    animation: heroFade 1.4s ease;
}

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

.hero-kicker {
    color: var(--accent-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-text {
    margin-top: 22px;
    max-width: 760px;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.45;
    color: var(--muted);
}

.hero-btn {
    margin-top: 30px;
    padding: 14px 30px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* JOURNEY VIDEO */

.journey-intro-section,
.outro-video-section {
    position: relative;
    min-height: 62vh;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.journey-intro-video,
.outro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-intro-overlay,
.outro-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.62)),
        radial-gradient(circle at 50% 20%, rgba(255, 196, 107, 0.18), transparent 28%);
}

.journey-intro-content,
.outro-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
}

.journey-intro-content h2,
.outro-content h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.journey-intro-content p,
.outro-content p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    line-height: 1.6;
}

.outro-kicker {
    color: var(--accent-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
}

/* MAP */

.map-section {
    padding: 110px 0 140px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 138, 42, 0.08), transparent 25%),
        var(--bg);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.map-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    max-width: 920px;
    margin: 0 auto 52px;
    padding: 0 24px;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 40px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-soft);
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 150px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    opacity: 0.7;
}

.stat-value {
    margin-top: 6px;
    font-size: 24px;
    color: var(--accent-2);
    font-weight: bold;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 30px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

#map {
    height: 80vh;
    min-height: 760px;
    width: 90%;
    margin: auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}

#map canvas {
    filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

/* POPUPS */

.maplibregl-popup-content {
    background: #1b1f25;
    color: white;
    border-radius: 14px;
    padding: 12px;
    max-width: 270px;
    border: 1px solid rgba(255,255,255,0.08);
}

.popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #222;
}

.popup-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.popup-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.55;
}

.popup-note {
    font-size: 13px;
    line-height: 1.5;
}

/* TECH */

.tech-section {
    padding: 120px 0;
    background: #101318;
    text-align: center;
}

.tech-header {
    max-width: 820px;
    margin: 0 auto 0;
    padding: 0 24px;
}

.tech-header h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.tech-header p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.tech-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.tech-details.open {
    opacity: 1;
}

.tech-grid {
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.tech-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
}

.tech-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--accent-2);
}

.tech-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.tech-card img {
    margin-top: 16px;
    width: 100%;
    border-radius: 10px;
}

.tech-toggle {
    margin-top: 36px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tech-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* FOOTER */

.footer {
    padding: 110px 24px 120px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 138, 42, 0.08), transparent 30%),
        linear-gradient(to bottom, #101318, #0b0d10);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.footer-kicker {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer h3 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.footer-text {
    margin: 0 auto;
    max-width: 700px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 18px;
}

.footer-meta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
}

/* RESPONSIVE */

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

    #map {
        width: calc(100% - 32px);
        min-height: 600px;
    }
}

@media (max-width: 640px) {
    .hero-btn {
        width: 100%;
        max-width: 320px;
    }

    .section-header p,
    .journey-intro-content p,
    .outro-content p,
    .footer-text {
        font-size: 16px;
    }
}