/* =========================================================
   diplomacy.boo — Inflated-3D Diplomatic Dashboard
   Palette: gold-black-luxury
   Typography: Josefin Sans + Outfit (Google Fonts)
   Motion: Intersection Observer for scroll triggers; Intersection Observer to trigger fade-in of panel elements.
   ========================================================= */

:root {
    --gold: #D4AF37;
    --gold-deep: #8B6914;
    --gold-amber: #C9952B;
    --gold-champagne: #F5E6B8;
    --obsidian: #0A0A0A;
    --onyx: #141414;
    --phantom: #2A2A2A;
    --parchment: #E8E0D0;
    --blood: #8B1A1A;

    --rail-width: 80px;
    --section-pad-x: clamp(1.5rem, 4vw, 4rem);
    --section-pad-y: clamp(3rem, 7vw, 6rem);

    --inflated-shadow:
        0 2px 4px rgba(212, 175, 55, 0.20),
        0 8px 16px rgba(0, 0, 0, 0.35),
        0 24px 48px rgba(0, 0, 0, 0.55),
        inset 0 -2px 6px rgba(0, 0, 0, 0.25),
        inset 0 2px 6px rgba(245, 230, 184, 0.10);

    --inflated-shadow-tight:
        0 0 0 1px rgba(212, 175, 55, 0.18),
        0 2px 6px rgba(212, 175, 55, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.50),
        inset 0 -1px 4px rgba(0, 0, 0, 0.30),
        inset 0 1px 3px rgba(245, 230, 184, 0.18);

    --gold-gradient: linear-gradient(135deg, #F5E6B8 0%, #D4AF37 35%, #C9952B 65%, #8B6914 100%);
    --gold-gradient-soft: linear-gradient(160deg, #D4AF37 0%, #8B6914 100%);
    --panel-gradient: linear-gradient(160deg, #1c1c1c 0%, #141414 50%, #0c0c0c 100%);
}

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

html {
    scroll-behavior: smooth;
    background: var(--obsidian);
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background: var(--obsidian);
    color: var(--parchment);
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 60% 50% at 20% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
        radial-gradient(ellipse 80% 60% at 80% 100%, rgba(139, 105, 20, 0.04), transparent 60%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

::selection {
    background: var(--gold);
    color: var(--obsidian);
}

/* ============ NAVIGATION RAIL ============ */
.nav-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--rail-width);
    height: 100vh;
    background: linear-gradient(180deg, #181818 0%, var(--onyx) 50%, var(--obsidian) 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow:
        2px 0 16px rgba(0, 0, 0, 0.6),
        inset -1px 0 0 rgba(245, 230, 184, 0.04);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0;
    gap: 28px;
}

.nav-emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow:
        0 0 0 2px rgba(10, 10, 10, 0.8),
        0 0 0 3px rgba(212, 175, 55, 0.35),
        0 6px 14px rgba(0, 0, 0, 0.6),
        inset 0 -2px 6px rgba(0, 0, 0, 0.35),
        inset 0 2px 4px rgba(245, 230, 184, 0.5);
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
}

.nav-emblem-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--obsidian);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(212, 175, 55, 0.4);
}

.nav-medallions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.medallion {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(160deg, #2a2a2a 0%, #141414 80%);
    color: var(--gold);
    display: grid;
    place-items: center;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(245, 230, 184, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, color 0.3s;
    cursor: pointer;
}

.medallion-face {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

.medallion-face svg {
    width: 100%;
    height: 100%;
    color: inherit;
}

.medallion:hover {
    transform: scale(1.08);
    color: var(--gold-champagne);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.45),
        0 0 18px rgba(212, 175, 55, 0.28),
        0 6px 14px rgba(0, 0, 0, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(245, 230, 184, 0.18);
}

.medallion.is-active {
    background: var(--gold-gradient);
    color: var(--obsidian);
    animation: diplomatic-pulse 3.4s ease-in-out infinite;
    box-shadow:
        0 0 0 2px rgba(245, 230, 184, 0.35),
        0 0 22px rgba(212, 175, 55, 0.4),
        0 6px 14px rgba(0, 0, 0, 0.55),
        inset 0 -3px 6px rgba(139, 105, 20, 0.5),
        inset 0 2px 4px rgba(245, 230, 184, 0.55);
}

.medallion.is-active .medallion-face {
    color: var(--obsidian);
}

.medallion-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: var(--onyx);
    color: var(--gold-champagne);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 12px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.medallion:hover .medallion-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.nav-cipher {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

@keyframes diplomatic-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(212, 175, 55, 0.55),
            0 0 0 2px rgba(245, 230, 184, 0.35),
            0 0 22px rgba(212, 175, 55, 0.4),
            0 6px 14px rgba(0, 0, 0, 0.55),
            inset 0 -3px 6px rgba(139, 105, 20, 0.5),
            inset 0 2px 4px rgba(245, 230, 184, 0.55);
    }
    50% {
        box-shadow:
            0 0 0 16px rgba(212, 175, 55, 0),
            0 0 0 2px rgba(245, 230, 184, 0.35),
            0 0 22px rgba(212, 175, 55, 0.4),
            0 6px 14px rgba(0, 0, 0, 0.55),
            inset 0 -3px 6px rgba(139, 105, 20, 0.5),
            inset 0 2px 4px rgba(245, 230, 184, 0.55);
    }
}

/* ============ STAGE & SECTIONS ============ */
.stage {
    margin-left: var(--rail-width);
    width: calc(100% - var(--rail-width));
    overflow-x: hidden;
}

.section {
    width: 100%;
    min-height: 100vh;
    padding: var(--section-pad-y) var(--section-pad-x);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-header {
    max-width: 900px;
    margin: 0 auto 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.section-numeral {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding: 6px 18px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.6);
    box-shadow:
        inset 0 -1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(245, 230, 184, 0.06);
}

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.18);
}

.section-deck {
    max-width: 640px;
    color: rgba(232, 224, 208, 0.72);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.75;
}

/* ============ 1. EMBASSY ENTRANCE ============ */
.section-entrance {
    background:
        radial-gradient(ellipse 50% 60% at 50% 30%, rgba(212, 175, 55, 0.10), transparent 70%),
        radial-gradient(ellipse 70% 80% at 50% 100%, rgba(139, 105, 20, 0.06), transparent 70%),
        var(--obsidian);
    overflow: hidden;
}

.entrance-spotlight {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 90%;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 230, 184, 0.10) 0%, rgba(212, 175, 55, 0.05) 25%, transparent 70%);
    pointer-events: none;
    filter: blur(6px);
}

.entrance-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    margin: 0 auto;
    max-width: 900px;
}

.entrance-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.65);
}

.meta-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* SEAL */
.seal-stage {
    position: relative;
    width: clamp(220px, 32vw, 340px);
    height: clamp(220px, 32vw, 340px);
    display: grid;
    place-items: center;
}

.seal-aura {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    animation: aura-breathe 4s ease-in-out infinite;
}

@keyframes aura-breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

.seal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.seal-ring-outer {
    inset: 0;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    animation: seal-rotate 60s linear infinite;
}

.seal-ring-mid {
    inset: 12%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    animation: seal-rotate 90s linear infinite reverse;
}

@keyframes seal-rotate {
    to { transform: rotate(360deg); }
}

.seal-disc {
    position: relative;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, var(--gold-champagne) 0%, var(--gold) 30%, var(--gold-amber) 60%, var(--gold-deep) 100%);
    box-shadow:
        0 0 0 2px rgba(245, 230, 184, 0.4),
        0 0 0 6px rgba(10, 10, 10, 0.9),
        0 0 0 7px rgba(212, 175, 55, 0.45),
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 12px 30px rgba(212, 175, 55, 0.3),
        inset 0 -8px 20px rgba(139, 105, 20, 0.6),
        inset 0 8px 20px rgba(245, 230, 184, 0.5);
    display: grid;
    place-items: center;
    animation: seal-spin 30s linear infinite;
}

@keyframes seal-spin {
    to { transform: rotate(-360deg); }
}

.seal-rays {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    pointer-events: none;
}

.seal-rays span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.55) 80%, rgba(10, 10, 10, 0.7));
    transform-origin: 0 50%;
}

.seal-rays span:nth-child(1) { transform: rotate(0deg); }
.seal-rays span:nth-child(2) { transform: rotate(30deg); }
.seal-rays span:nth-child(3) { transform: rotate(60deg); }
.seal-rays span:nth-child(4) { transform: rotate(90deg); }
.seal-rays span:nth-child(5) { transform: rotate(120deg); }
.seal-rays span:nth-child(6) { transform: rotate(150deg); }
.seal-rays span:nth-child(7) { transform: rotate(180deg); }
.seal-rays span:nth-child(8) { transform: rotate(210deg); }
.seal-rays span:nth-child(9) { transform: rotate(240deg); }
.seal-rays span:nth-child(10) { transform: rotate(270deg); }
.seal-rays span:nth-child(11) { transform: rotate(300deg); }
.seal-rays span:nth-child(12) { transform: rotate(330deg); }

.seal-core {
    position: relative;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, var(--gold-champagne), var(--gold) 50%, var(--gold-deep) 100%);
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 -4px 10px rgba(0, 0, 0, 0.5),
        inset 0 4px 10px rgba(245, 230, 184, 0.6),
        0 0 12px rgba(245, 230, 184, 0.5);
    animation: seal-spin 30s linear infinite reverse;
}

.seal-facet {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(from 30deg, transparent 0deg, rgba(245, 230, 184, 0.6) 30deg, transparent 60deg, transparent 180deg, rgba(245, 230, 184, 0.4) 210deg, transparent 240deg);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.seal-monogram {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.1em;
    color: var(--obsidian);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 0 rgba(245, 230, 184, 0.4);
}

.seal-orbit {
    position: absolute;
    inset: -5%;
    border-radius: 50%;
    pointer-events: none;
    animation: seal-rotate 22s linear infinite;
}

.orbit-tick {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-champagne);
    box-shadow: 0 0 10px rgba(245, 230, 184, 0.8);
}

.orbit-tick:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-tick:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.orbit-tick:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-tick:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.entrance-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1rem;
    background: linear-gradient(180deg, var(--gold-champagne), var(--gold) 50%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.entrance-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    letter-spacing: 0.06em;
    color: rgba(232, 224, 208, 0.7);
    max-width: 540px;
    line-height: 1.6;
}

.entrance-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.credential-stamp {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-champagne);
    padding: 8px 16px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 999px;
    box-shadow:
        inset 0 -1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(245, 230, 184, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.4);
}

.entrance-scrollcue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    animation: cue-pulse 2.4s ease-in-out infinite;
}

@keyframes cue-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.cue-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.55);
}

/* ============ 2. SITUATION ROOM ============ */
.section-situation {
    background:
        linear-gradient(180deg, var(--obsidian) 0%, #0c0c0c 50%, var(--obsidian) 100%);
    padding-bottom: calc(var(--section-pad-y) * 1.2);
}

.situation-grid {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.panel {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: var(--panel-gradient);
    box-shadow: var(--inflated-shadow);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transform-style: preserve-3d;
}

.panel.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.panel:hover {
    box-shadow:
        0 2px 4px rgba(212, 175, 55, 0.30),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 32px 64px rgba(0, 0, 0, 0.65),
        inset 0 -2px 8px rgba(0, 0, 0, 0.30),
        inset 0 2px 8px rgba(245, 230, 184, 0.16);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 230, 184, 0.4), rgba(212, 175, 55, 0.15) 35%, rgba(139, 105, 20, 0.5) 70%, rgba(245, 230, 184, 0.25));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 12%;
    right: 12%;
    height: 30%;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 230, 184, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.panel-tall {
    grid-column: span 2;
    grid-row: span 2;
}

.panel-wide {
    grid-column: span 3;
    grid-row: span 2;
}

.panel-square {
    grid-column: span 2;
    grid-row: span 2;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.18);
}

.panel-number {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--gold);
}

.panel-status {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(232, 224, 208, 0.55);
    padding: 4px 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.5);
}

.panel-icon {
    position: relative;
    height: 100px;
    margin: 0.5rem 0;
    display: grid;
    place-items: center;
}

/* Alliance icon — overlapping circles */
.panel-icon-alliance {
    height: 110px;
}

.alliance-circle {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(212, 175, 55, 0.25),
        inset 0 -3px 8px rgba(139, 105, 20, 0.6),
        inset 0 3px 8px rgba(245, 230, 184, 0.5);
    mix-blend-mode: screen;
}

.alliance-circle-a {
    transform: translateX(-22px);
    animation: alliance-drift-a 6s ease-in-out infinite;
}

.alliance-circle-b {
    transform: translateX(22px);
    animation: alliance-drift-b 6s ease-in-out infinite;
}

.alliance-circle-c {
    width: 44px;
    height: 44px;
    transform: translate(0, 26px);
    opacity: 0.8;
    animation: alliance-drift-c 7s ease-in-out infinite;
}

@keyframes alliance-drift-a {
    0%, 100% { transform: translateX(-22px); }
    50% { transform: translateX(-16px); }
}

@keyframes alliance-drift-b {
    0%, 100% { transform: translateX(22px); }
    50% { transform: translateX(16px); }
}

@keyframes alliance-drift-c {
    0%, 100% { transform: translate(0, 26px); }
    50% { transform: translate(0, 22px); }
}

/* Protocol icon — hexagons */
.panel-icon-protocol {
    height: 110px;
}

.protocol-hex {
    width: 76px;
    height: 76px;
    background: var(--gold-gradient);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        0 4px 8px rgba(212, 175, 55, 0.3);
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: hex-rotate 18s linear infinite;
}

.protocol-hex-b {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-amber));
    transform: translate(20px, 12px);
    animation: hex-rotate 18s linear infinite reverse;
    opacity: 0.85;
}

@keyframes hex-rotate {
    to { transform: rotate(360deg); }
}

.panel-icon-protocol .protocol-hex-b {
    animation-name: hex-rotate-b;
}

@keyframes hex-rotate-b {
    from { transform: translate(20px, 12px) rotate(0deg); }
    to { transform: translate(20px, 12px) rotate(-360deg); }
}

/* Summit / Sovereignty icon — radial burst */
.panel-icon-summit {
    height: 110px;
}

.summit-burst {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background:
        conic-gradient(var(--gold) 0deg, transparent 15deg, var(--gold) 30deg, transparent 45deg, var(--gold) 60deg, transparent 75deg, var(--gold) 90deg, transparent 105deg, var(--gold) 120deg, transparent 135deg, var(--gold) 150deg, transparent 165deg, var(--gold) 180deg, transparent 195deg, var(--gold) 210deg, transparent 225deg, var(--gold) 240deg, transparent 255deg, var(--gold) 270deg, transparent 285deg, var(--gold) 300deg, transparent 315deg, var(--gold) 330deg, transparent 345deg);
    -webkit-mask: radial-gradient(circle, transparent 24%, #000 25%, #000 100%);
    mask: radial-gradient(circle, transparent 24%, #000 25%, #000 100%);
    position: absolute;
    animation: seal-rotate 22s linear infinite;
    opacity: 0.9;
}

.summit-core {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow:
        0 0 0 2px rgba(10, 10, 10, 0.8),
        0 0 0 3px rgba(212, 175, 55, 0.5),
        0 0 18px rgba(212, 175, 55, 0.6),
        inset 0 -2px 5px rgba(139, 105, 20, 0.6),
        inset 0 2px 5px rgba(245, 230, 184, 0.6);
    z-index: 1;
}

/* Council icon — six dots in a ring */
.panel-icon-council {
    height: 110px;
    width: 110px;
    margin: 0.5rem auto;
}

.council-ring {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    animation: seal-rotate 30s linear infinite;
}

.council-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold-gradient-soft);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.5),
        inset 0 -2px 3px rgba(139, 105, 20, 0.6),
        inset 0 1px 3px rgba(245, 230, 184, 0.5);
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    transform-origin: center;
}

.council-dot:nth-child(1) { transform: rotate(0deg) translateY(-42px); }
.council-dot:nth-child(2) { transform: rotate(60deg) translateY(-42px); }
.council-dot:nth-child(3) { transform: rotate(120deg) translateY(-42px); }
.council-dot:nth-child(4) { transform: rotate(180deg) translateY(-42px); }
.council-dot:nth-child(5) { transform: rotate(240deg) translateY(-42px); }
.council-dot:nth-child(6) { transform: rotate(300deg) translateY(-42px); }

.panel-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 1.875rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-champagne);
    line-height: 1;
}

.panel-body {
    font-size: 0.95rem;
    color: rgba(232, 224, 208, 0.78);
    line-height: 1.7;
}

.panel-filigree {
    margin-top: auto;
    height: 8px;
    background-image:
        repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    background-size: 100% 1px, 60px 8px;
    background-repeat: no-repeat, repeat-x;
    background-position: center bottom, center;
    opacity: 0.55;
}

.situation-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.55);
}

.footer-tick {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============ 3. TREATY CHAMBER ============ */
.section-treaty {
    background:
        linear-gradient(180deg, var(--obsidian) 0%, #0d0a05 50%, var(--obsidian) 100%);
    overflow: hidden;
    padding-right: 0;
}

.section-treaty .section-header {
    padding-right: var(--section-pad-x);
}

.treaty-progress {
    width: calc(100% - var(--section-pad-x));
    height: 2px;
    background: rgba(212, 175, 55, 0.1);
    margin: 0 0 2rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
}

.treaty-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--scroll-progress, 0%);
    background: var(--gold-gradient);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
    transition: width 0.1s linear;
    border-radius: 999px;
}

.treaty-rail {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 1.5rem 0 3rem;
    padding-right: var(--section-pad-x);
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
}

.treaty-rail::-webkit-scrollbar {
    height: 6px;
}

.treaty-rail::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 999px;
}

.treaty-rail::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 999px;
}

.treaty-rail.is-grabbing {
    cursor: grabbing;
}

.treaty-card {
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 400px;
    width: 360px;
    padding: 2.25rem 2rem;
    border-radius: 20px;
    background: linear-gradient(170deg, #1c1810 0%, #14110a 60%, #0c0a06 100%);
    box-shadow: var(--inflated-shadow);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.treaty-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 230, 184, 0.35), rgba(212, 175, 55, 0.1) 30%, rgba(139, 105, 20, 0.4) 70%, rgba(245, 230, 184, 0.2));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.treaty-card:hover {
    transform: translateY(-6px);
}

.treaty-wax {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, var(--gold-champagne) 0%, var(--gold) 30%, var(--gold-deep) 100%);
    box-shadow:
        0 0 0 3px rgba(10, 10, 10, 0.9),
        0 0 0 4px rgba(212, 175, 55, 0.4),
        0 8px 18px rgba(0, 0, 0, 0.6),
        inset 0 -3px 8px rgba(139, 105, 20, 0.6),
        inset 0 3px 8px rgba(245, 230, 184, 0.5);
    position: relative;
    margin-bottom: 0.5rem;
}

.treaty-wax::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px dashed rgba(10, 10, 10, 0.4);
}

.treaty-wax::after {
    content: 'D·B';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(10, 10, 10, 0.7);
}

.treaty-numeral {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-amber);
}

.treaty-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-champagne);
    line-height: 1.1;
}

.treaty-body {
    font-size: 0.95rem;
    color: rgba(232, 224, 208, 0.75);
    line-height: 1.7;
    flex: 1;
}

.treaty-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.18);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.55);
}

.treaty-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem var(--section-pad-x) 2rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
}

.cue-arrow {
    color: var(--gold);
    font-size: 1rem;
    animation: cue-arrow-pulse 2s ease-in-out infinite;
}

.cue-arrow:last-child {
    animation-delay: 1s;
}

@keyframes cue-arrow-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

/* ============ 4. SHADOW PROTOCOL ============ */
.section-shadow {
    background:
        radial-gradient(ellipse at center, #0a0a0a 0%, #050505 100%);
    overflow: hidden;
    position: relative;
    --shadow-gold-opacity: 0.55;
}

.section-shadow.is-active {
    --shadow-gold-opacity: 0.15;
}

.mist-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mist-particle {
    position: absolute;
    bottom: -10%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(232, 224, 208, 0.4);
    box-shadow: 0 0 8px rgba(232, 224, 208, 0.3);
    opacity: 0;
    animation: mist-drift 12s linear infinite;
    filter: blur(0.5px);
}

.mist-particle:nth-child(1)  { left: 5%;  animation-delay: 0s;    animation-duration: 14s; }
.mist-particle:nth-child(2)  { left: 12%; animation-delay: 1.2s;  animation-duration: 16s; }
.mist-particle:nth-child(3)  { left: 18%; animation-delay: 2.4s;  animation-duration: 13s; }
.mist-particle:nth-child(4)  { left: 25%; animation-delay: 3.6s;  animation-duration: 18s; }
.mist-particle:nth-child(5)  { left: 32%; animation-delay: 4.8s;  animation-duration: 15s; }
.mist-particle:nth-child(6)  { left: 38%; animation-delay: 0.6s;  animation-duration: 17s; }
.mist-particle:nth-child(7)  { left: 45%; animation-delay: 1.8s;  animation-duration: 12s; }
.mist-particle:nth-child(8)  { left: 52%; animation-delay: 3s;    animation-duration: 14s; }
.mist-particle:nth-child(9)  { left: 58%; animation-delay: 4.2s;  animation-duration: 19s; }
.mist-particle:nth-child(10) { left: 65%; animation-delay: 5.4s;  animation-duration: 13s; }
.mist-particle:nth-child(11) { left: 72%; animation-delay: 0.3s;  animation-duration: 16s; }
.mist-particle:nth-child(12) { left: 78%; animation-delay: 1.5s;  animation-duration: 15s; }
.mist-particle:nth-child(13) { left: 85%; animation-delay: 2.7s;  animation-duration: 14s; }
.mist-particle:nth-child(14) { left: 92%; animation-delay: 3.9s;  animation-duration: 17s; }
.mist-particle:nth-child(15) { left: 8%;  animation-delay: 5.1s;  animation-duration: 18s; width: 3px; height: 3px; }
.mist-particle:nth-child(16) { left: 42%; animation-delay: 6s;    animation-duration: 14s; width: 3px; height: 3px; }
.mist-particle:nth-child(17) { left: 68%; animation-delay: 7s;    animation-duration: 16s; width: 5px; height: 5px; }
.mist-particle:nth-child(18) { left: 88%; animation-delay: 8s;    animation-duration: 13s; width: 3px; height: 3px; }

@keyframes mist-drift {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50vh) translateX(20px);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(-15px);
    }
}

.shadow-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.shadow-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, var(--shadow-gold-opacity));
    transition: color 2s ease;
}

.shadow-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 224, 208, 0.4);
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(212, 175, 55, calc(var(--shadow-gold-opacity) * 0.5));
}

.heartbeat-stage {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 1rem 0;
}

.heartbeat-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0;
}

.heartbeat-ring-1 {
    inset: 30%;
    animation: heartbeat-pulse 4s ease-out infinite;
}

.heartbeat-ring-2 {
    inset: 30%;
    animation: heartbeat-pulse 4s ease-out infinite;
    animation-delay: 1.3s;
}

.heartbeat-ring-3 {
    inset: 30%;
    animation: heartbeat-pulse 4s ease-out infinite;
    animation-delay: 2.6s;
}

@keyframes heartbeat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.heartbeat-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow:
        0 0 0 3px rgba(10, 10, 10, 0.8),
        0 0 0 4px rgba(212, 175, 55, 0.6),
        0 0 22px rgba(212, 175, 55, 0.7),
        inset 0 -2px 4px rgba(139, 105, 20, 0.6),
        inset 0 2px 4px rgba(245, 230, 184, 0.6);
    animation: dot-beat 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes dot-beat {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    8% { transform: scale(1.18); filter: brightness(1.4); }
    16% { transform: scale(1); filter: brightness(1); }
    24% { transform: scale(1.12); filter: brightness(1.25); }
    32% { transform: scale(1); filter: brightness(1); }
}

.shadow-body {
    color: rgba(232, 224, 208, 0.55);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.85;
    max-width: 560px;
}

.shadow-cipher {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, var(--shadow-gold-opacity));
    margin-top: 1rem;
    transition: color 2s ease;
}

/* ============ 5. DOSSIER FOOTER ============ */
.section-dossier {
    background: var(--obsidian);
    min-height: auto;
    padding: var(--section-pad-y) var(--section-pad-x);
}

.dossier-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
    border-radius: 24px;
    background: var(--panel-gradient);
    box-shadow: var(--inflated-shadow);
    position: relative;
    overflow: hidden;
}

.dossier-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 230, 184, 0.4), rgba(212, 175, 55, 0.15) 35%, rgba(139, 105, 20, 0.5) 70%, rgba(245, 230, 184, 0.25));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dossier-faceted-border {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background: var(--gold-gradient);
    clip-path: polygon(0 50%, 12% 0, 28% 50%, 44% 0, 60% 50%, 76% 0, 92% 50%, 100% 50%, 92% 100%, 76% 50%, 60% 100%, 44% 50%, 28% 100%, 12% 50%, 0 50%);
    opacity: 0.7;
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.dossier-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dossier-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
}

.dossier-value {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--gold-champagne);
}

.dossier-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.18);
}

.dossier-stamp {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow:
        0 0 0 2px rgba(10, 10, 10, 0.9),
        0 0 0 3px rgba(212, 175, 55, 0.4),
        inset 0 -1px 3px rgba(139, 105, 20, 0.6),
        inset 0 1px 2px rgba(245, 230, 184, 0.6);
}

.dossier-line {
    flex: 1;
    max-width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .situation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .panel-tall { grid-column: span 2; }
    .panel-wide { grid-column: span 4; }
    .panel-square { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root {
        --rail-width: 0px;
    }

    html {
        scroll-padding-bottom: 78px;
    }

    body {
        padding-bottom: 78px;
    }

    .nav-rail {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 78px;
        flex-direction: row;
        padding: 0 1rem;
        gap: 0;
        border-right: none;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
        background: linear-gradient(180deg, var(--onyx), var(--obsidian));
        justify-content: space-between;
    }

    .nav-emblem {
        display: none;
    }

    .nav-cipher {
        display: none;
    }

    .nav-medallions {
        flex-direction: row;
        gap: 0;
        flex: 1;
        justify-content: space-around;
    }

    .medallion {
        width: 44px;
        height: 44px;
    }

    .medallion-tooltip {
        display: none;
    }

    .stage {
        margin-left: 0;
        width: 100%;
    }

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

    .panel-tall, .panel-wide, .panel-square {
        grid-column: span 1;
        grid-row: span 1;
    }

    .panel {
        min-height: 280px;
    }

    .treaty-card {
        min-width: 280px;
        width: 290px;
    }

    .entrance-credentials {
        gap: 0.5rem;
    }

    .credential-stamp {
        font-size: 0.6rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad-x: 1.25rem;
        --section-pad-y: 4rem;
    }

    .seal-stage {
        width: 220px;
        height: 220px;
    }

    .panel {
        padding: 1.5rem;
    }

    .panel-icon {
        height: 90px;
    }
}
