/* ============================================================
   causality.club — A Salon of Cause & Effect
   Retro-futuristic luxury-premium horizontal scroll experience
   ============================================================ */

:root {
    --void: #0e0b1a;
    --indigo: #1a1435;
    --gold: #d4af37;
    --teal: #00cfc8;
    --coral: #ff6f61;
    --lavender: #b8a9c9;
    --fog: #eae6f0;
    --iridescent: linear-gradient(135deg, #00cfc8 0%, #d4af37 50%, #ff6f61 100%);
    --iridescent-vertical: linear-gradient(180deg, #00cfc8, #d4af37, #ff6f61, #00cfc8);
    --shadow-soft: 0 20px 60px rgba(0, 207, 200, 0.12);
    --shadow-deep: 0 30px 80px rgba(14, 11, 26, 0.6);
    --ease-swift: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--void);
    color: var(--fog);
    font-family: 'Quicksand', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(26, 20, 53, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 207, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 70%),
        var(--void);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, transparent 0 2px, rgba(184, 169, 201, 0.02) 2px 3px),
        repeating-linear-gradient(25deg, transparent 0 2px, rgba(0, 207, 200, 0.015) 2px 3px);
    pointer-events: none;
    z-index: 2;
}

/* ------------------------------------------------------------
   Main horizontal scroll
   ------------------------------------------------------------ */

main#main-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
}

main#main-scroll::-webkit-scrollbar {
    display: none;
}

main#main-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.panel {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6vh 8vw;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(26, 20, 53, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 207, 200, 0.05) 0%, transparent 55%),
        var(--void);
}

.panel + .panel::before {
    content: '';
    position: absolute;
    top: 12vh;
    bottom: 12vh;
    left: 0;
    width: 2px;
    background: var(--iridescent-vertical);
    background-size: 100% 300%;
    animation: shimmer 8s linear infinite;
    opacity: 0.45;
    z-index: 3;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 300%; }
}

/* ------------------------------------------------------------
   Panel indicators (top pills)
   ------------------------------------------------------------ */

.panel-indicators {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(14, 11, 26, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 999px;
    border: 1px solid rgba(184, 169, 201, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.indicator {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--lavender);
    cursor: pointer;
    transition: all 0.4s var(--ease-swift);
}

.indicator:hover {
    color: var(--fog);
    border-color: rgba(0, 207, 200, 0.3);
    background: rgba(0, 207, 200, 0.06);
}

.indicator.active {
    color: var(--void);
    background: linear-gradient(135deg, var(--gold), var(--coral));
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    font-weight: 600;
}

/* ------------------------------------------------------------
   Progress bar (bottom)
   ------------------------------------------------------------ */

.progress-container {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 70vw);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    color: var(--lavender);
    text-transform: uppercase;
}

.progress-track {
    width: 100%;
    height: 2px;
    background: rgba(184, 169, 201, 0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--iridescent);
    border-radius: 2px;
    transition: width 0.15s linear;
    box-shadow: 0 0 12px rgba(0, 207, 200, 0.6);
}

/* ------------------------------------------------------------
   Bubble layer (shared)
   ------------------------------------------------------------ */

.bubble-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -80px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(234, 230, 240, 0.35) 0%, rgba(0, 207, 200, 0.18) 35%, rgba(212, 175, 55, 0.08) 70%, transparent 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        inset 0 0 12px rgba(0, 207, 200, 0.2),
        0 0 12px rgba(0, 207, 200, 0.1);
    animation: floatUp var(--duration, 12s) linear var(--delay, 0s) infinite;
    opacity: 0;
    mix-blend-mode: screen;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 22%;
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 70%);
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(0.75);
        opacity: 0;
    }
    12% {
        opacity: var(--bubble-opacity, 0.35);
    }
    50% {
        transform: translateY(-55vh) translateX(var(--wander, 30px)) scale(1);
    }
    85% {
        opacity: var(--bubble-opacity, 0.35);
    }
    100% {
        transform: translateY(-115vh) translateX(calc(var(--wander, 30px) * -0.5)) scale(1.1);
        opacity: 0;
    }
}

/* ------------------------------------------------------------
   Tilt-3D cards
   ------------------------------------------------------------ */

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.6s var(--ease-swift), box-shadow 0.6s var(--ease-swift);
    will-change: transform;
}

/* ------------------------------------------------------------
   Nature silhouettes
   ------------------------------------------------------------ */

.nature-silhouette {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.12;
}

.nature-silhouette.leaf-ginkgo {
    width: 160px;
    height: 200px;
    background: var(--lavender);
    clip-path: polygon(50% 0%, 28% 12%, 12% 30%, 4% 52%, 10% 72%, 22% 86%, 40% 96%, 50% 100%, 60% 96%, 78% 86%, 90% 72%, 96% 52%, 88% 30%, 72% 12%);
    bottom: 6vh;
    left: 6vw;
    transform: rotate(-12deg);
}

.nature-silhouette.leaf-fern {
    width: 180px;
    height: 220px;
    background: var(--teal);
    clip-path: polygon(50% 0%, 44% 10%, 32% 14%, 40% 22%, 30% 28%, 42% 34%, 28% 42%, 42% 50%, 26% 58%, 44% 66%, 28% 74%, 46% 82%, 32% 90%, 50% 100%, 68% 90%, 54% 82%, 72% 74%, 56% 66%, 74% 58%, 58% 50%, 72% 42%, 58% 34%, 70% 28%, 60% 22%, 68% 14%, 56% 10%);
    bottom: 5vh;
    left: 5vw;
    transform: rotate(8deg);
    opacity: 0.1;
}

.nature-silhouette.leaf-lily {
    width: 200px;
    height: 120px;
    background: var(--lavender);
    clip-path: polygon(50% 100%, 20% 80%, 5% 55%, 10% 30%, 25% 15%, 50% 0%, 75% 15%, 90% 30%, 95% 55%, 80% 80%);
    bottom: 8vh;
    left: 7vw;
    transform: rotate(-4deg);
    opacity: 0.11;
}

.nature-silhouette.small {
    width: 100px;
    height: 130px;
    opacity: 0.08;
}

.nature-silhouette.leaf-lily.small {
    width: 140px;
    height: 86px;
}

.nature-silhouette.top-right {
    top: 10vh;
    right: 5vw;
    bottom: auto;
    left: auto;
    transform: rotate(28deg);
}

.nature-silhouette.bottom-left {
    bottom: 6vh;
    left: 5vw;
    top: auto;
    right: auto;
}

/* ------------------------------------------------------------
   Panel 1: The Threshold
   ------------------------------------------------------------ */

.panel-threshold {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(0, 207, 200, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 20, 53, 0.6) 0%, transparent 80%),
        var(--void);
}

.threshold-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}

.eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    padding: 10px 26px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.04);
}

.brand-mark {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 11vw, 10rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
    background: linear-gradient(135deg, var(--fog) 0%, var(--gold) 45%, var(--coral) 80%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 60px rgba(0, 207, 200, 0.2);
    display: flex;
    gap: 0.02em;
    justify-content: center;
    flex-wrap: wrap;
    transform: perspective(1200px) rotateX(0) rotateY(0);
    transition: transform 0.35s var(--ease-swift);
}

.brand-letter {
    display: inline-block;
    transition: transform 0.5s var(--ease-swift), filter 0.5s var(--ease-swift);
}

.brand-letter:hover {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    transform: translateY(-4px) scale(1.05);
}

.threshold-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: var(--lavender);
    max-width: 620px;
    line-height: 1.7;
    font-style: italic;
}

.threshold-prompt {
    position: relative;
    padding: 2.2rem 3rem;
    margin-top: 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(26, 20, 53, 0.85) 0%, rgba(14, 11, 26, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    max-width: 720px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

.threshold-prompt::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: var(--iridescent);
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shimmerBorder 10s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes shimmerBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.prompt-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.prompt-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    color: var(--fog);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.threshold-scroll-cue {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--lavender);
    margin-top: 1.4rem;
    animation: cuePulse 2.8s ease-in-out infinite;
}

.threshold-scroll-cue .arrow {
    color: var(--gold);
    font-size: 1.1rem;
    animation: arrowDrift 2.2s ease-in-out infinite;
}

@keyframes arrowDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes cuePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ------------------------------------------------------------
   Panel: Dialectic (2-5)
   ------------------------------------------------------------ */

.panel-dialectic {
    background:
        radial-gradient(ellipse at 0% 50%, rgba(0, 207, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(255, 111, 97, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(26, 20, 53, 0.6) 0%, transparent 70%),
        var(--void);
    padding: 8vh 6vw;
    gap: 3.5vh;
    justify-content: flex-start;
}

.panel-header {
    position: relative;
    z-index: 4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2vh;
}

.panel-header.centered {
    text-align: center;
}

.panel-number {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
}

.panel-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    letter-spacing: 0.01em;
    color: var(--fog);
    line-height: 1.05;
}

.panel-kicker {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 0.98rem;
    color: var(--lavender);
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}

.dialectic-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 2.2rem;
    width: 100%;
    max-width: 1400px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.dialectic-half {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    padding: 2.6rem 2.4rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(26, 20, 53, 0.7) 0%, rgba(14, 11, 26, 0.8) 100%);
    border: 1px solid rgba(184, 169, 201, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.dialectic-half.thesis {
    text-align: right;
    align-items: flex-end;
    border-left: 1px solid rgba(0, 207, 200, 0.25);
}

.dialectic-half.antithesis {
    text-align: left;
    align-items: flex-start;
    border-right: 1px solid rgba(255, 111, 97, 0.25);
}

.dialectic-half::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(0, 207, 200, 0.05) 0%, transparent 55%);
}

.dialectic-half.antithesis::before {
    background: radial-gradient(circle at 70% 30%, rgba(255, 111, 97, 0.05) 0%, transparent 55%);
}

.half-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
}

.thesis .half-label {
    color: var(--teal);
    background: rgba(0, 207, 200, 0.08);
    border: 1px solid rgba(0, 207, 200, 0.25);
}

.antithesis .half-label {
    color: var(--coral);
    background: rgba(255, 111, 97, 0.08);
    border: 1px solid rgba(255, 111, 97, 0.3);
}

.half-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    letter-spacing: -0.02em;
    color: var(--fog);
    line-height: 1.1;
}

.half-body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--lavender);
    max-width: 42ch;
}

.half-body--emphasis {
    font-weight: 600;
    color: var(--fog);
    font-style: italic;
    border-top: 1px solid rgba(184, 169, 201, 0.15);
    padding-top: 1rem;
    margin-top: 0.3rem;
}

.half-byline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 0.4rem;
    font-style: normal;
}

/* Iridescent divider between halves */
.iridescent-divider {
    position: relative;
    width: 2px;
    height: 100%;
    background: var(--iridescent-vertical);
    background-size: 100% 300%;
    animation: shimmer 8s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 207, 200, 0.3), 0 0 40px rgba(212, 175, 55, 0.15);
}

.iridescent-divider::before,
.iridescent-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
}

.iridescent-divider::before { top: -6px; }
.iridescent-divider::after { bottom: -6px; background: var(--coral); box-shadow: 0 0 16px rgba(255, 111, 97, 0.7); }

/* ------------------------------------------------------------
   Panel 6: Causation Stream
   ------------------------------------------------------------ */

.panel-stream {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 207, 200, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(255, 111, 97, 0.06) 0%, transparent 50%),
        var(--void);
    justify-content: flex-start;
    gap: 4vh;
}

.stream-container {
    position: relative;
    z-index: 4;
    width: 96%;
    max-width: 1600px;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stream-line {
    filter: drop-shadow(0 0 6px rgba(0, 207, 200, 0.55));
    animation: streamDash 18s linear infinite;
}

@keyframes streamDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -400; }
}

.stream-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stream-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, var(--teal) 45%, var(--gold) 100%);
    box-shadow: 0 0 14px rgba(0, 207, 200, 0.8), 0 0 28px rgba(212, 175, 55, 0.4);
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.stream-nodes {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
}

.stream-node {
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    transform: translate(-50%, -50%) perspective(1200px);
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.4rem 1rem;
    background: linear-gradient(135deg, rgba(26, 20, 53, 0.9) 0%, rgba(14, 11, 26, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.5s var(--ease-swift), box-shadow 0.5s var(--ease-swift), border-color 0.5s var(--ease-swift);
}

.stream-node:hover {
    border-color: rgba(0, 207, 200, 0.5);
    box-shadow: 0 20px 50px rgba(0, 207, 200, 0.25);
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--iridescent);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 207, 200, 0.4);
    flex-shrink: 0;
}

.node-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--void);
}

.node-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 2;
}

.icon-seed::before {
    background: radial-gradient(circle at 50% 60%, var(--gold) 12%, transparent 18%);
    clip-path: polygon(50% 20%, 65% 40%, 65% 70%, 50% 85%, 35% 70%, 35% 40%);
    background: var(--gold);
    inset: 30%;
}
.icon-spark::before {
    background: var(--coral);
    clip-path: polygon(50% 10%, 60% 40%, 90% 50%, 60% 60%, 50% 90%, 40% 60%, 10% 50%, 40% 40%);
    inset: 20%;
}
.icon-leaf::before {
    background: var(--teal);
    clip-path: polygon(50% 10%, 80% 35%, 85% 65%, 50% 90%, 15% 65%, 20% 35%);
    inset: 22%;
}
.icon-flame::before {
    background: linear-gradient(180deg, var(--coral), var(--gold));
    clip-path: polygon(50% 10%, 70% 30%, 75% 55%, 65% 75%, 50% 90%, 35% 75%, 25% 55%, 30% 30%);
    inset: 22%;
}
.icon-drop::before {
    background: var(--teal);
    clip-path: polygon(50% 10%, 75% 45%, 80% 70%, 50% 90%, 20% 70%, 25% 45%);
    inset: 24%;
}
.icon-river::before {
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
    clip-path: polygon(10% 45%, 25% 35%, 45% 55%, 65% 40%, 85% 55%, 92% 45%, 92% 65%, 85% 70%, 65% 60%, 45% 70%, 25% 55%, 10% 65%);
    inset: 18%;
}

.node-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
}

.node-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    color: var(--lavender);
    font-style: italic;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   Panel 7: Amphitheater
   ------------------------------------------------------------ */

.panel-amphitheater {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 207, 200, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 111, 97, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, var(--indigo) 0%, var(--void) 80%);
    justify-content: flex-start;
    gap: 3vh;
}

.amphitheater-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 2.4rem;
    width: 100%;
    max-width: 1500px;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.podium {
    padding: 2.6rem 2.4rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(26, 20, 53, 0.85) 0%, rgba(14, 11, 26, 0.85) 100%);
    border: 1px solid rgba(184, 169, 201, 0.18);
    box-shadow: var(--shadow-deep);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.podium::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--iridescent-vertical);
    background-size: 100% 300%;
    animation: shimmer 8s linear infinite;
    opacity: 0.6;
}

.podium-left {
    text-align: right;
    align-items: flex-end;
}

.podium-left::before {
    right: 0;
}

.podium-right {
    text-align: left;
    align-items: flex-start;
}

.podium-right::before {
    left: 0;
}

.podium-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
}

.podium-quote {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 1.9vw, 1.75rem);
    color: var(--fog);
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-style: italic;
}

.podium-body {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--lavender);
    max-width: 46ch;
}

.podium-signature {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--teal);
    text-transform: uppercase;
    margin-top: auto;
}

.amphitheater-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    height: 100%;
}

.converge-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    animation: converge 3.5s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.converge-ring.delayed {
    animation-delay: 1.75s;
}

@keyframes converge {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
        border-color: rgba(0, 207, 200, 0.6);
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
        border-color: rgba(255, 111, 97, 0.4);
    }
}

.converge-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--iridescent);
    box-shadow:
        0 0 20px rgba(0, 207, 200, 0.7),
        0 0 40px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 3;
    animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(212, 175, 55, 0.9), 0 0 60px rgba(0, 207, 200, 0.5); }
}

.converge-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    z-index: 3;
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   Panel 8: Resolution
   ------------------------------------------------------------ */

.panel-resolution {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 207, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 111, 97, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--void) 0%, var(--indigo) 50%, var(--void) 100%);
}

.resolution-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    text-align: center;
    padding: 3.5rem 3.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(26, 20, 53, 0.8) 0%, rgba(14, 11, 26, 0.85) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-deep), 0 0 80px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.resolution-content::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: var(--iridescent);
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shimmerBorder 12s linear infinite;
    pointer-events: none;
}

.resolution-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.38em;
    color: var(--teal);
    text-transform: uppercase;
}

.resolution-statement {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.3;
    color: var(--fog);
    letter-spacing: -0.015em;
    font-style: italic;
}

.resolution-sub {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    color: var(--lavender);
    line-height: 1.7;
    max-width: 560px;
    font-style: italic;
}

.resolution-seal {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.6);
    background:
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 111, 97, 0.15) 0%, transparent 60%),
        rgba(14, 11, 26, 0.85);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(0, 207, 200, 0.15);
    animation: sealRotate 18s linear infinite;
}

.seal-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(184, 169, 201, 0.4);
}

@keyframes sealRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.seal-center {
    position: relative;
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
    letter-spacing: -0.05em;
}

.resolution-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--lavender);
    text-transform: uppercase;
    margin-top: 0.8rem;
}

.resolution-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    .panel {
        padding: 6vh 6vw;
    }

    .dialectic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .iridescent-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral), var(--teal));
        background-size: 300% 100%;
    }

    .dialectic-half.thesis,
    .dialectic-half.antithesis {
        text-align: left;
        align-items: flex-start;
    }

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

    .amphitheater-center {
        min-height: 160px;
    }

    .podium-left {
        text-align: left;
        align-items: flex-start;
    }

    .panel-indicators {
        gap: 4px;
        padding: 6px 8px;
    }

    .indicator {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .brand-mark {
        font-size: clamp(2.4rem, 13vw, 5rem);
    }

    .stream-node {
        width: 130px;
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .threshold-prompt {
        padding: 1.6rem 1.4rem;
    }

    .resolution-content {
        padding: 2rem 1.5rem;
    }

    .panel-dialectic,
    .panel-amphitheater {
        padding: 10vh 5vw 14vh;
    }
}
