/* ========================================
   causality.club - Pop-Art Intellectual Salon
   Colors: #0d2137 #00e5c7 #1a3a5c #ff6b9d #132d4a #0d7377 #8ba8c4 #ffd23f #0b1628 #0a1628
   Fonts: Playfair Display, Source Serif 4, Space Mono, Inter
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #0b1628;
    color: #8ba8c4;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---------- Sections (Stacked Full-Viewport) ---------- */
.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section--thesis {
    background: #0a1628;
}

.section--evidence {
    background: #0d2137;
}

.section--arena {
    background: #0b1628;
}

.section--verdict {
    background: #132d4a;
}

/* ---------- Typography ---------- */
.thesis-title {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: clamp(48px, 10vw, 140px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #00e5c7;
    text-align: left;
    position: relative;
}

.title-line {
    display: block;
}

.title-line--2 {
    color: #ff6b9d;
    font-size: 0.6em;
    letter-spacing: 0.05em;
}

.section-heading {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: clamp(36px, 6vw, 90px);
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    position: relative;
    display: inline-block;
}

.evidence-heading {
    color: #00e5c7;
}

.arena-heading {
    color: #ffd23f;
}

.verdict-heading {
    color: #ff6b9d;
}

/* Underline-draw effect on headings */
.section-heading::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: currentColor;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-heading.is-visible::after {
    width: 100%;
}

.section-intro {
    font-family: "Source Serif 4", serif;
    font-size: clamp(16px, 2vw, 22px);
    color: #8ba8c4;
    max-width: 680px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ---------- Thesis (Hero) Content ---------- */
.thesis-content {
    position: relative;
    z-index: 2;
    padding: 2rem 6vw;
    max-width: 900px;
    width: 100%;
}

.thesis-tagline {
    font-family: "Space Mono", monospace;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #ffd23f;
    margin-top: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thesis-subtitle {
    margin-top: 1.5rem;
}

.subtitle-text {
    font-family: "Source Serif 4", serif;
    font-size: clamp(16px, 2vw, 22px);
    color: #8ba8c4;
    line-height: 1.6;
}

/* ---------- CTA Links ---------- */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: "Space Mono", monospace;
    font-size: 14px;
    color: #00e5c7;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.cta-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b9d;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-link:hover::after {
    width: 100%;
}

.cta-link:hover {
    color: #ff6b9d;
}

.cta-link--verdict {
    color: #ffd23f;
}

.cta-link--verdict:hover {
    color: #00e5c7;
}

.cta-link--verdict::after {
    background: #00e5c7;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-link:hover .cta-arrow {
    transform: translateY(4px);
}

.cta-link:hover .cta-arrow--up {
    transform: translateY(-4px);
}

/* ---------- Organic Blobs ---------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
    animation: blob-drift 20s ease-in-out infinite alternate;
}

.blob--thesis-left {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0d7377 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob--thesis-right {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    opacity: 0.2;
    animation-duration: 18s;
    animation-delay: -5s;
}

.blob--evidence-bg {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #0d7377 0%, transparent 70%);
    top: 20%;
    right: -15%;
    opacity: 0.15;
    animation-duration: 22s;
}

.blob--arena-left {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
    top: 10%;
    left: -10%;
    opacity: 0.15;
    animation-duration: 20s;
}

.blob--arena-right {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffd23f 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    opacity: 0.12;
    animation-duration: 24s;
    animation-delay: -8s;
}

.blob--verdict-center {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0d7377 0%, #00e5c7 30%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: blob-drift-center 30s ease-in-out infinite alternate;
}

@keyframes blob-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(15px, -10px) scale(1.02); }
}

@keyframes blob-drift-center {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Ben-Day Dot Overlay ---------- */
.ben-day-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #1a3a5c 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.ben-day-overlay--verdict {
    background-image: radial-gradient(circle, #ff6b9d 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.08;
}

/* ---------- Causal Connectors ---------- */
.causal-connector {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 120px;
    z-index: 5;
    pointer-events: none;
}

.connector-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease;
}

.causal-connector.is-visible .connector-path {
    stroke-dashoffset: 0;
}

/* ---------- Evidence Chain ---------- */
.evidence-content {
    position: relative;
    z-index: 2;
    padding: 6vh 6vw;
    max-width: 900px;
    width: 100%;
}

.evidence-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.chain-node {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.chain-node.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chain-node--2 .node-card,
.chain-node--4 .node-card {
    margin-left: auto;
}

.node-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: #00e5c7;
    margin-top: 1.2rem;
    box-shadow: 0 0 12px rgba(0, 229, 199, 0.5);
    position: relative;
}

.node-dot--highlight {
    background: #ffd23f;
    box-shadow: 0 0 16px rgba(255, 210, 63, 0.6);
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.node-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 199, 0.3);
    animation: dot-pulse 2s ease-in-out infinite;
}

.node-dot--highlight::after {
    border-color: rgba(255, 210, 63, 0.3);
    width: 34px;
    height: 34px;
}

@keyframes dot-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.node-card {
    max-width: 600px;
    width: 100%;
}

.chain-connector-vert {
    width: 4px;
    height: 60px;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chain-connector-vert.is-visible {
    opacity: 1;
}

.chain-connector-vert svg {
    width: 100%;
    height: 100%;
}

/* ---------- Speech Bubbles ---------- */
.speech-bubble {
    background: #132d4a;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    position: relative;
    border: 1px solid rgba(0, 229, 199, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: radial-gradient(circle, rgba(26, 58, 92, 0.4) 1px, transparent 1px);
    background-size: 12px 12px;
}

.speech-bubble:hover {
    border-color: rgba(0, 229, 199, 0.4);
    box-shadow: 0 4px 30px rgba(0, 229, 199, 0.1);
}

.bubble-label {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00e5c7;
    display: block;
    margin-bottom: 0.5rem;
}

.node-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #00e5c7;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.node-text {
    font-family: "Source Serif 4", serif;
    font-size: clamp(15px, 1.6vw, 18px);
    color: #8ba8c4;
    line-height: 1.7;
}

/* ---------- Arena (Debate) ---------- */
.arena-content {
    position: relative;
    z-index: 2;
    padding: 6vh 4vw;
    width: 100%;
    max-width: 1200px;
}

.debate-arena {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

.debate-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.debate-column--pro {
    align-items: flex-end;
    text-align: right;
}

.debate-column--con {
    align-items: flex-start;
    text-align: left;
}

.debate-header {
    margin-bottom: 1rem;
}

.debate-position {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.3rem;
}

.debate-header--pro .debate-position {
    color: #00e5c7;
}

.debate-header--con .debate-position {
    color: #ff6b9d;
}

.debate-stance {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.02em;
}

.debate-header--pro .debate-stance {
    color: #00e5c7;
}

.debate-header--con .debate-stance {
    color: #ff6b9d;
}

.debate-speech {
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.debate-speech--pro {
    transform: translateX(-30px);
}

.debate-speech--con {
    transform: translateX(30px);
}

.debate-speech.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.speech-bubble--debate-pro {
    background: rgba(0, 229, 199, 0.06);
    border: 1px solid rgba(0, 229, 199, 0.2);
    border-radius: 16px 16px 4px 16px;
    padding: 1.2rem 1.5rem;
    background-image: radial-gradient(circle, rgba(0, 229, 199, 0.08) 1px, transparent 1px);
    background-size: 10px 10px;
}

.speech-bubble--debate-con {
    background: rgba(255, 107, 157, 0.06);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 1.2rem 1.5rem;
    background-image: radial-gradient(circle, rgba(255, 107, 157, 0.08) 1px, transparent 1px);
    background-size: 10px 10px;
}

.speech-bubble--debate-pro p,
.speech-bubble--debate-con p {
    font-family: "Source Serif 4", serif;
    font-size: clamp(14px, 1.4vw, 17px);
    color: #8ba8c4;
    line-height: 1.65;
    font-style: italic;
}

.speech-attribution {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #8ba8c4;
    opacity: 0.6;
    display: block;
    margin-top: 0.6rem;
}

/* Debate Divider */
.debate-divider {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.divider-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ffd23f 20%, #ffd23f 80%, transparent);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.divider-glow {
    width: 60px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 210, 63, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.divider-label {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 18px;
    color: #ffd23f;
    position: relative;
    z-index: 1;
    background: #0b1628;
    padding: 0.5rem 0;
    text-shadow: 0 0 20px rgba(255, 210, 63, 0.5);
}

/* ---------- Verdict ---------- */
.verdict-content {
    position: relative;
    z-index: 2;
    padding: 6vh 6vw;
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.verdict-statement {
    margin: 3rem 0;
}

.verdict-quote {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(22px, 3.5vw, 42px);
    color: #ffd23f;
    line-height: 1.4;
    letter-spacing: -0.01em;
    position: relative;
    padding: 2rem 0;
}

.verdict-quote::before {
    content: "\201C";
    position: absolute;
    top: -0.3em;
    left: -0.15em;
    font-size: 4em;
    color: #ff6b9d;
    opacity: 0.3;
    font-family: "Playfair Display", serif;
    line-height: 1;
}

.verdict-quote p {
    position: relative;
}

.verdict-invitation {
    font-family: "Source Serif 4", serif;
    font-size: clamp(16px, 2vw, 22px);
    color: #8ba8c4;
    margin-bottom: 2rem;
}

.verdict-cta {
    margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 168, 196, 0.15);
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: #8ba8c4;
    opacity: 0.5;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-separator {
    opacity: 0.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .debate-arena {
        flex-direction: column;
        gap: 2rem;
    }

    .debate-column--pro {
        align-items: flex-start;
        text-align: left;
    }

    .debate-divider {
        width: 100%;
        height: 60px;
        flex-direction: row;
    }

    .divider-line {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, #ffd23f 20%, #ffd23f 80%, transparent);
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .divider-glow {
        width: 100%;
        height: 60px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .thesis-content {
        padding: 2rem 5vw;
    }

    .evidence-content,
    .arena-content,
    .verdict-content {
        padding: 4vh 5vw;
    }

    .speech-bubble--debate-pro {
        border-radius: 16px 16px 16px 4px;
    }

    .debate-speech--pro,
    .debate-speech--con {
        max-width: 100%;
    }

    .chain-node {
        flex-direction: column;
        align-items: flex-start;
    }

    .chain-node--2 .node-card,
    .chain-node--4 .node-card {
        margin-left: 0;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ---------- Additional Design Colors ---------- */
/* #00FFE0 bright cyan accent, #E8F0F8 light text */

.thesis-title::selection {
    background: #00FFE0;
    color: #0b1628;
}

::selection {
    background: #00FFE0;
    color: #0b1628;
}

.node-dot--highlight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FFE0;
    transform: translate(-50%, -50%);
}

.verdict-quote p {
    color: #E8F0F8;
}

.debate-stance {
    text-shadow: none;
}

/* Space Grotesk as UI/accent font */
.bubble-label {
    font-family: "Space Grotesk", "Space Mono", monospace;
}

.debate-position {
    font-family: "Space Grotesk", "Space Mono", monospace;
}

.divider-label {
    font-family: "Space Grotesk", "Space Mono", monospace;
}

.cta-link {
    font-family: "Space Grotesk", "Space Mono", monospace;
}

.thesis-tagline {
    font-family: "Space Grotesk", "Space Mono", monospace;
}

.site-footer {
    font-family: "Space Grotesk", "Space Mono", monospace;
}
