/* =====================================================
   diplomatic.quest — blobitecture-meets-geopolitical-futurism
   Dark neon · full-bleed · watercolor mountain landscape
   Fonts (400..800) from named families when local; no (Google fetch.
   Interaction System:** Intersection Observer enters viewport and toggles `.visible` when cables draw.
   ===================================================== */

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

:root {
    --void: #0a0a14;
    --deep: #0d0d1a;
    --surface: #1a1a3e;
    --neon-mint: #00ff9d;
    --neon-pink: #ff2d75;
    --neon-cyan: #00d4ff;
    --text-primary: #c8c8e0;
    --text-highlight: #ffffff;
    --blob-fill: rgba(0, 255, 157, 0.08);
    --blob-fill-soft: rgba(0, 255, 157, 0.04);
    --neon-glow-mint: rgba(0, 255, 157, 0.4);
    --neon-glow-mint-soft: rgba(0, 255, 157, 0.15);
    --neon-glow-cyan: rgba(0, 212, 255, 0.35);
    --neon-glow-pink: rgba(255, 45, 117, 0.3);
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--void);
    color: var(--text-primary);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: -0.01em;
}

body {
    position: relative;
    min-height: 100vh;
    --design-token-system: "System:**";
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---- Canvas particle layer ---- */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ---- Shared typography primitives ---- */
.eyebrow {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}
.eyebrow-light {
    color: var(--neon-mint);
    text-shadow: 0 0 14px rgba(0, 255, 157, 0.45);
}

.pull-quote {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    color: var(--neon-mint);
    text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
    margin-top: clamp(1rem, 2vw, 1.6rem);
    letter-spacing: 0.005em;
}

.accent, .dot {
    color: var(--neon-mint);
    text-shadow: 0 0 24px rgba(0, 255, 157, 0.7),
                 0 0 48px rgba(0, 255, 157, 0.3);
}

/* ============================================================
   THE THRESHOLD (Hero Zone)
   ============================================================ */

.threshold {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #12122a 0%, var(--void) 55%, #050510 100%);
    display: grid;
    place-items: center;
}

.threshold .mountain-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.threshold .contour-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.hero-blob-wrap {
    position: relative;
    z-index: 3;
    width: min(82vw, 1080px);
    aspect-ratio: 1.22 / 1;
    display: grid;
    place-items: center;
}

.hero-blob {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.10), transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 45, 117, 0.08), transparent 65%),
        linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(255, 45, 117, 0.08));
    background-color: var(--blob-fill);
    border: 2px solid rgba(0, 255, 157, 0.45);
    border-radius: 30% 70% 60% 40% / 50% 40% 70% 30%;
    box-shadow:
        0 0 30px rgba(0, 255, 157, 0.3),
        0 0 80px rgba(0, 255, 157, 0.15),
        inset 0 0 60px rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: blob-morph 12s ease-in-out infinite;
    display: grid;
    place-items: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-blob::before {
    content: "";
    position: absolute;
    inset: -3%;
    border-radius: inherit;
    border: 1px solid rgba(0, 212, 255, 0.15);
    pointer-events: none;
    animation: blob-morph 16s ease-in-out infinite reverse;
}

.hero-blob-inner {
    text-align: center;
    padding: clamp(2rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
    max-width: 90%;
}

.title {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 460;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-highlight);
    text-shadow:
        0 0 30px rgba(200, 200, 224, 0.4),
        0 0 60px rgba(0, 255, 157, 0.15);
    transition: font-variation-settings 0.4s ease, text-shadow 0.4s ease;
    cursor: default;
}
.title:hover {
    font-variation-settings: "wght" 800;
    text-shadow:
        0 0 40px rgba(0, 255, 157, 0.45),
        0 0 90px rgba(0, 255, 157, 0.2);
}

.subtitle {
    color: var(--text-primary);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    max-width: 48ch;
    opacity: 0.92;
}

.threshold-epigraph {
    position: absolute;
    bottom: clamp(2rem, 5vw, 4.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    color: var(--neon-mint);
    text-shadow: 0 0 18px rgba(0, 255, 157, 0.4);
    text-align: center;
    max-width: 80vw;
    letter-spacing: 0.01em;
}

/* ============================================================
   THE ATRIUM (Narrative Zone)
   ============================================================ */

.atrium {
    position: relative;
    width: 100vw;
    min-height: 180vh;
    padding: clamp(6rem, 12vw, 14rem) 0 clamp(6rem, 12vw, 12rem);
    background:
        linear-gradient(to bottom, var(--void), #0a0a18 30%, #0b0b1c 70%, var(--void));
    overflow: hidden;
}

.atrium-contours {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cables-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cable {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    transition: stroke-dashoffset 2.2s ease-out;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}
.cable.visible {
    stroke-dashoffset: 0;
}

.blob-region {
    position: relative;
    z-index: 2;
    width: min(52vw, 680px);
    padding: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5.5rem);
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blob-region.revealed {
    opacity: 1;
    transform: translateY(0);
}

.blob-region-left {
    margin-left: clamp(2rem, 6vw, 7rem);
    margin-bottom: clamp(3rem, 8vw, 8rem);
}

.blob-region-center {
    margin: clamp(2rem, 5vw, 5rem) auto clamp(3rem, 8vw, 8rem);
    text-align: left;
}

.blob-region-right {
    margin-left: auto;
    margin-right: clamp(2rem, 6vw, 7rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.blob-ornament {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.08), transparent 70%),
        linear-gradient(135deg, rgba(0, 255, 157, 0.10), rgba(255, 45, 117, 0.05));
    background-color: rgba(10, 10, 24, 0.55);
    border: 1.5px solid rgba(0, 255, 157, 0.28);
    box-shadow:
        0 0 40px rgba(0, 255, 157, 0.14),
        inset 0 0 80px rgba(0, 212, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: blob-morph 14s ease-in-out infinite;
}

.blob-ornament-left {
    border-radius: 56% 44% 62% 38% / 48% 60% 40% 52%;
    animation-delay: 0s;
}
.blob-ornament-center {
    border-radius: 40% 60% 52% 48% / 58% 42% 60% 40%;
    animation-delay: -4s;
    border-color: rgba(0, 212, 255, 0.28);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.14),
        inset 0 0 80px rgba(0, 255, 157, 0.05);
}
.blob-ornament-right {
    border-radius: 62% 38% 44% 56% / 42% 58% 38% 62%;
    animation-delay: -8s;
    border-color: rgba(255, 45, 117, 0.22);
    box-shadow:
        0 0 40px rgba(255, 45, 117, 0.12),
        inset 0 0 80px rgba(0, 255, 157, 0.04);
}

.region-index {
    display: inline-block;
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.region-title {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text-highlight);
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
    transition: font-variation-settings 0.4s ease, text-shadow 0.4s ease;
    cursor: default;
}
.region-title:hover {
    font-variation-settings: "wght" 800;
    text-shadow: 0 0 28px rgba(0, 255, 157, 0.35);
}

.region-body {
    font-size: clamp(1rem, 1.15vw, 1.14rem);
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 46ch;
}

/* ============================================================
   THE SUMMIT CHAMBER (Feature Zone)
   ============================================================ */

.summit {
    position: relative;
    width: 100vw;
    min-height: 110vh;
    padding: clamp(6rem, 10vw, 12rem) clamp(2rem, 6vw, 6rem);
    background:
        radial-gradient(ellipse at 50% 50%, #10102a 0%, var(--deep) 60%, var(--void) 100%);
    overflow: hidden;
}

.summit-contours {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.summit.intense .summit-contour-lines {
    opacity: 1.6;
}

.summit-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 960px;
    margin: 0 auto clamp(4rem, 8vw, 8rem);
    padding: 0 1rem;
}

.summit-title {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--text-highlight);
    margin: clamp(1rem, 2vw, 1.6rem) 0;
    transition: font-variation-settings 0.4s ease;
    cursor: default;
}
.summit-title:hover {
    font-variation-settings: "wght" 800;
}

.summit-sub {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--neon-mint);
    text-shadow: 0 0 16px rgba(0, 255, 157, 0.35);
    margin-top: 0.5rem;
}

.summit-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem);
    align-items: stretch;
    justify-items: center;
}

.summit-point {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);

    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.10), transparent 60%),
        linear-gradient(135deg, rgba(0, 255, 157, 0.12), rgba(255, 45, 117, 0.06));
    background-color: rgba(10, 10, 24, 0.5);
    border: 1.5px solid rgba(0, 255, 157, 0.4);
    border-radius: 40% 60% 70% 30% / 30% 30% 70% 70%;

    box-shadow:
        0 0 20px rgba(0, 255, 157, 0.10),
        inset 0 0 60px rgba(0, 212, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transform: translateY(0);
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s ease,
        border-color 0.5s ease;

    opacity: 0;
    animation: blob-morph 12s ease-in-out infinite;
}

.summit-point.revealed {
    opacity: 1;
}

.summit-point-1 { animation-delay: 0s; }
.summit-point-2 {
    animation-delay: -4s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    border-color: rgba(0, 212, 255, 0.45);
}
.summit-point-3 {
    animation-delay: -8s;
    border-radius: 50% 50% 60% 40% / 45% 65% 35% 55%;
    border-color: rgba(255, 45, 117, 0.40);
}

.summit-point:hover {
    transform: translateY(-16px);
    border-color: rgba(0, 255, 157, 1);
    box-shadow:
        0 0 40px rgba(0, 255, 157, 0.3),
        0 0 80px rgba(0, 255, 157, 0.1),
        inset 0 0 60px rgba(0, 212, 255, 0.12);
}
.summit-point-2:hover {
    border-color: rgba(0, 212, 255, 1);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.35),
        0 0 80px rgba(0, 212, 255, 0.12),
        inset 0 0 60px rgba(0, 212, 255, 0.14);
}
.summit-point-3:hover {
    border-color: rgba(255, 45, 117, 1);
    box-shadow:
        0 0 40px rgba(255, 45, 117, 0.35),
        0 0 80px rgba(255, 45, 117, 0.12),
        inset 0 0 60px rgba(255, 45, 117, 0.10);
}

.point-glyph {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-variation-settings: "wght" 700;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    letter-spacing: 0.2em;
    color: var(--neon-mint);
    text-shadow: 0 0 16px rgba(0, 255, 157, 0.5);
}
.summit-point-2 .point-glyph { color: var(--neon-cyan); text-shadow: 0 0 16px rgba(0, 212, 255, 0.5); }
.summit-point-3 .point-glyph { color: var(--neon-pink); text-shadow: 0 0 16px rgba(255, 45, 117, 0.5); }

.point-title {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: var(--text-highlight);
    text-transform: uppercase;
    transition: font-variation-settings 0.4s ease;
}
.summit-point:hover .point-title {
    font-variation-settings: "wght" 800;
}

.point-body {
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.92;
    max-width: 32ch;
}

/* ============================================================
   THE VISTA (Closing Zone)
   ============================================================ */

.vista {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--void) 0%, #0b0b1c 40%, var(--void) 100%);
    display: grid;
    place-items: center;
}

.vista-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.vista-farewell {
    position: relative;
    z-index: 2;
    margin-bottom: 42vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.6rem, 1.4vw, 1.2rem);
    text-align: center;
    padding: 0 2rem;
}

.vista-small {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    color: var(--neon-mint);
    text-shadow: 0 0 18px rgba(0, 255, 157, 0.4);
    letter-spacing: 0.01em;
}

.vista-big {
    font-family: "Syne", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 520;
    font-size: clamp(2.4rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-highlight);
    text-shadow:
        0 0 30px rgba(200, 200, 224, 0.4),
        0 0 60px rgba(255, 45, 117, 0.18);
    transition: font-variation-settings 0.4s ease, text-shadow 0.4s ease;
    cursor: default;
}
.vista-big:hover {
    font-variation-settings: "wght" 800;
    text-shadow:
        0 0 40px rgba(0, 255, 157, 0.45),
        0 0 90px rgba(0, 255, 157, 0.2);
}

.vista-tiny {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.85;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes blob-morph {
    0%, 100% { border-radius: 30% 70% 60% 40% / 50% 40% 70% 30%; }
    25%      { border-radius: 58% 42% 35% 65% / 45% 55% 40% 60%; }
    50%      { border-radius: 40% 60% 70% 30% / 60% 30% 55% 45%; }
    75%      { border-radius: 65% 35% 45% 55% / 35% 65% 50% 50%; }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(0.8vw, -0.6vw); }
}

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

@media (max-width: 900px) {
    .blob-region,
    .blob-region-left,
    .blob-region-center,
    .blob-region-right {
        width: min(88vw, 620px);
        margin-left: auto;
        margin-right: auto;
    }
    .cables-layer { display: none; }
    .summit-grid { grid-template-columns: 1fr; }
    .vista-farewell { margin-bottom: 36vh; }
}
