:root {
    --electric-magenta: #E6185B;
    --vivid-cyan: #18B8E6;
    --acid-chartreuse: #A8E618;
    --charcoal-concrete: #2A2A2E;
    --warm-concrete: #D9D4CC;
    --off-black: #1A1A1D;
    --soft-cream: #F0EDE6;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--charcoal-concrete);
    color: var(--off-black);
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Concrete Texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px;
    pointer-events: none;
    z-index: 1;
}

/* Typography */
.display-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 9vw, 7.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--soft-cream);
    margin-bottom: 2rem;
}

.heading-cyan { color: var(--vivid-cyan); }
.heading-magenta { color: var(--electric-magenta); }
.heading-gradient {
    background: linear-gradient(135deg, var(--electric-magenta) 0%, var(--vivid-cyan) 50%, var(--acid-chartreuse) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--vivid-cyan);
    margin-top: 1rem;
}

.tag-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--acid-chartreuse);
    display: block;
    margin-bottom: 2rem;
}

.tag-magenta { color: var(--electric-magenta); }

.body-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    max-width: 50ch;
    margin-bottom: 1.5rem;
}

.body-text strong {
    font-weight: 700;
}

.text-cream { color: var(--soft-cream); }
.text-center { text-align: center; max-width: 55ch; margin-left: auto; margin-right: auto; }

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.section-axiom { min-height: 100vh; }
.section-proposition { min-height: 150vh; }
.section-synthesis { min-height: 80vh; }
.section-contradiction { min-height: 120vh; }
.section-qed { min-height: 100vh; }

/* Split Panels */
.split-panel {
    display: flex;
    align-items: center;
    padding: clamp(3rem, 6vw, 6rem);
    position: relative;
}

.panel-thesis {
    flex: 0 0 55%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(24,184,230,0.08) 0%, transparent 70%),
        repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px,
        var(--charcoal-concrete);
    color: var(--soft-cream);
}

.panel-antithesis {
    flex: 0 0 45%;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(230,24,91,0.1) 0%, transparent 70%),
        repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px,
        var(--warm-concrete);
    color: var(--off-black);
}

.panel-swapped-left {
    flex: 0 0 55%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(230,24,91,0.12) 0%, transparent 70%),
        repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px,
        var(--warm-concrete);
}

.panel-swapped-right {
    flex: 0 0 45%;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(168,230,24,0.08) 0%, transparent 70%),
        repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px,
        var(--charcoal-concrete);
    color: var(--soft-cream);
}

.panel-inner {
    position: relative;
    z-index: 5;
    width: 100%;
}

.intense {
    transform: rotate(-1deg);
}

/* Divider Line */
.divider-line {
    width: 6px;
    background: linear-gradient(180deg,
        var(--electric-magenta) 0%,
        var(--vivid-cyan) 40%,
        var(--acid-chartreuse) 70%,
        var(--electric-magenta) 100%
    );
    flex-shrink: 0;
    position: relative;
}

.divider-line::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    background: var(--electric-magenta);
    border-radius: 0 0 2px 2px;
    animation: drip-fall 3s ease-in infinite;
}

@keyframes drip-fall {
    0% { top: 10%; opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* Synthesis Full Width */
.synthesis-full, .qed-full {
    width: 100%;
    padding: clamp(4rem, 8vw, 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(168,230,24,0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(230,24,91,0.03) 0%, rgba(24,184,230,0.03) 50%, rgba(168,230,24,0.03) 100%),
        repeating-conic-gradient(#0000 0% 25%, #0001 0% 50%) 0 0 / 4px 4px,
        var(--charcoal-concrete);
    color: var(--soft-cream);
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid currentColor;
    opacity: 0.08;
    color: var(--vivid-cyan);
}

.t1 { top: 15%; left: 10%; animation: shape-drift-1 30s ease-in-out infinite; color: var(--vivid-cyan); }
.t2 { bottom: 20%; right: 15%; animation: shape-drift-2 25s ease-in-out infinite; color: var(--acid-chartreuse); border-left-width: 40px; border-right-width: 40px; border-bottom-width: 70px; }
.t3 { top: 10%; right: 20%; animation: shape-drift-1 35s ease-in-out infinite; color: var(--electric-magenta); opacity: 0.06; }
.t4 { bottom: 15%; left: 8%; animation: shape-drift-2 28s ease-in-out infinite; color: var(--acid-chartreuse); opacity: 0.1; }

.circle {
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.12;
}

.c1 { width: 120px; height: 120px; top: 30%; right: 10%; color: var(--electric-magenta); animation: shape-drift-2 22s ease-in-out infinite; }
.c2 { width: 80px; height: 80px; top: 20%; right: 30%; color: var(--vivid-cyan); animation: shape-drift-1 26s ease-in-out infinite; }

.hexagon {
    width: 60px;
    height: 60px;
    background: currentColor;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.08;
}

.h1 { top: 60%; left: 10%; color: var(--acid-chartreuse); animation: shape-drift-1 20s ease-in-out infinite; }
.h2 { bottom: 25%; right: 15%; color: var(--vivid-cyan); animation: shape-drift-2 32s ease-in-out infinite; }

.hex-cluster {
    position: relative;
    width: 120px;
    height: 100px;
    margin-bottom: 3rem;
}

.hc1 { position: absolute; top: 0; left: 0; color: var(--electric-magenta); width: 50px; height: 50px; opacity: 0.2; }
.hc2 { position: absolute; top: 0; right: 0; color: var(--vivid-cyan); width: 50px; height: 50px; opacity: 0.2; }
.hc3 { position: absolute; bottom: 0; left: 35px; color: var(--acid-chartreuse); width: 50px; height: 50px; opacity: 0.2; }

/* Spray Halo */
.spray-halo {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(230,24,91,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Chevron */
.chevron-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
}

.chev {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--acid-chartreuse);
    border-bottom: 3px solid var(--acid-chartreuse);
    transform: rotate(45deg);
    opacity: 0.6;
    animation: chevron-bounce 2s ease-in-out infinite;
}

.chev:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.4;
}

@keyframes chevron-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* Shape Animations */
@keyframes shape-drift-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -10px) rotate(5deg); }
    50% { transform: translate(-10px, 15px) rotate(-3deg); }
    75% { transform: translate(8px, 8px) rotate(2deg); }
}

@keyframes shape-drift-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-12px, 8px) rotate(-4deg); }
    50% { transform: translate(10px, -12px) rotate(6deg); }
    75% { transform: translate(-8px, -5px) rotate(-2deg); }
}

/* Spray Text Animation */
.spray-text .char {
    display: inline-block;
    opacity: 0;
    transform: scale(2.5) rotate(var(--char-rot, 0deg));
    filter: blur(8px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spray-text.sprayed .char {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
}

/* Hover-Lift */
.body-text {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Domain Tag */
.domain-tag {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--acid-chartreuse);
    margin-top: 3rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
    }
    .split-panel {
        flex: none;
        min-height: 50vh;
    }
    .divider-line {
        width: 100%;
        height: 4px;
    }
    .divider-line::after {
        display: none;
    }
    .intense {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .triangle, .circle, .hexagon { animation: none; }
    .chev { animation: none; }
    .divider-line::after { animation: none; }
    .spray-text .char {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}
