/* politics.day — Memphis-Deco Jewel Tone Design */
/* Color Palette:
   Obsidian Ink: #0d0d1a
   Parliamentary Sapphire: #1a237e
   Imperial Emerald: #00695c
   Coronation Amethyst: #6a1b9a
   Sovereign Ruby: #b71c1c
   Regal Topaz: #f9a825
   Parchment White: #f5f0e8
   Marble Gray: #9e9e9e
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d0d1a;
    color: #f5f0e8;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   BORDER PILASTERS — Primary Visual Feature
   ========================================= */

.border-pilaster {
    position: fixed;
    top: 0;
    width: 32px;
    height: 100vh;
    z-index: 100;
    background: repeating-linear-gradient(
        180deg,
        #b71c1c 0px, #b71c1c 2px,
        transparent 2px, transparent 16px,
        #f9a825 16px, #f9a825 18px,
        transparent 18px, transparent 32px,
        #00695c 32px, #00695c 34px,
        transparent 34px, transparent 48px,
        #6a1b9a 48px, #6a1b9a 50px,
        transparent 50px, transparent 64px
    );
    animation: pilaster-drift 20s linear infinite;
}

.border-pilaster--left {
    left: 0;
}

.border-pilaster--right {
    right: 0;
}

.border-pilaster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px, transparent 60px,
        #f9a825 60px, #f9a825 68px,
        transparent 68px, transparent 124px,
        #b71c1c 124px, #b71c1c 132px,
        transparent 132px, transparent 188px
    );
    opacity: 0.3;
    animation: pilaster-drift-reverse 15s linear infinite;
}

.border-pilaster::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f9a825;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    box-shadow:
        0 -128px 0 #b71c1c,
        0 -64px 0 #00695c,
        0 64px 0 #6a1b9a,
        0 128px 0 #b71c1c,
        0 -256px 0 #f9a825,
        0 -192px 0 #6a1b9a,
        0 192px 0 #00695c,
        0 256px 0 #f9a825;
    animation: pilaster-dots-drift 20s linear infinite;
}

@keyframes pilaster-drift {
    from { background-position-y: 0; }
    to { background-position-y: 64px; }
}

@keyframes pilaster-drift-reverse {
    from { background-position-y: 0; }
    to { background-position-y: -188px; }
}

@keyframes pilaster-dots-drift {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(64px); }
}

/* =========================================
   DOMAIN WATERMARK
   ========================================= */

.domain-watermark {
    position: fixed;
    top: 24px;
    left: 56px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f5f0e8;
    opacity: 0.3;
    z-index: 200;
}

/* =========================================
   CONTENT COLUMN
   ========================================= */

.content-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* =========================================
   ACT SECTIONS
   ========================================= */

.act {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.8s ease;
}

.act-inner {
    width: 100%;
    padding: 80px 0;
}

/* =========================================
   ACT I — THE PREAMBLE
   ========================================= */

.act-1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-headline {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f0e8;
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9e9e9e;
    text-align: center;
    margin-top: 24px;
    position: relative;
    z-index: 5;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #b71c1c;
    opacity: 0.5;
}

.shape.circle {
    border-radius: 50%;
    background: #f9a825;
    opacity: 0.45;
}

.shape.squiggle {
    width: 100px;
    height: 25px;
    color: #00695c;
    opacity: 0.5;
}

.shape-1 { top: 12%; left: 8%; animation: float-1 18s ease-in-out infinite; border-bottom-color: #b71c1c; }
.shape-2 { top: 20%; right: 15%; width: 28px; height: 28px; animation: float-2 22s ease-in-out infinite; }
.shape-3 { top: 35%; left: 5%; animation: float-3 20s ease-in-out infinite; color: #00695c; }
.shape-4 { bottom: 30%; right: 10%; animation: float-4 25s ease-in-out infinite; border-bottom-color: #6a1b9a; transform: rotate(45deg); }
.shape-5 { bottom: 15%; left: 12%; width: 18px; height: 18px; animation: float-5 19s ease-in-out infinite; background: #6a1b9a; }
.shape-6 { top: 60%; right: 8%; animation: float-6 23s ease-in-out infinite; color: #b71c1c; }
.shape-7 { top: 45%; left: 15%; width: 12px; height: 12px; animation: float-7 17s ease-in-out infinite; background: #f9a825; }
.shape-8 { top: 75%; right: 20%; animation: float-8 21s ease-in-out infinite; border-bottom-color: #00695c; transform: rotate(-30deg); }
.shape-9 { bottom: 40%; right: 25%; width: 48px; height: 48px; animation: float-9 26s ease-in-out infinite; background: #b71c1c; opacity: 0.3; }
.shape-10 { bottom: 25%; left: 20%; animation: float-10 24s ease-in-out infinite; color: #6a1b9a; }
.shape-11 { top: 10%; right: 30%; animation: float-11 16s ease-in-out infinite; border-bottom-color: #f9a825; transform: rotate(20deg); }
.shape-12 { bottom: 8%; right: 35%; width: 22px; height: 22px; animation: float-12 28s ease-in-out infinite; background: #00695c; opacity: 0.4; }

@keyframes float-1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(15px, -20px) rotate(5deg); } }
@keyframes float-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 15px); } }
@keyframes float-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(25px, -10px); } }
@keyframes float-4 { 0%, 100% { transform: translate(0, 0) rotate(45deg); } 50% { transform: translate(-15px, 20px) rotate(50deg); } }
@keyframes float-5 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -25px); } }
@keyframes float-6 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 10px); } }
@keyframes float-7 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 15px); } }
@keyframes float-8 { 0%, 100% { transform: translate(0, 0) rotate(-30deg); } 50% { transform: translate(-10px, -20px) rotate(-25deg); } }
@keyframes float-9 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, 20px); } }
@keyframes float-10 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, -15px); } }
@keyframes float-11 { 0%, 100% { transform: translate(0, 0) rotate(20deg); } 50% { transform: translate(20px, 10px) rotate(25deg); } }
@keyframes float-12 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 25px); } }

/* =========================================
   SECTION HEADINGS
   ========================================= */

.section-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f0e8;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #b71c1c, #f9a825, #00695c);
    margin: 16px auto 0;
}

/* =========================================
   BODY TEXT
   ========================================= */

.body-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.75;
    color: #f5f0e8;
    margin-bottom: 32px;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* =========================================
   PULL QUOTES
   ========================================= */

.pull-quote {
    margin: 48px 0;
    padding: 32px 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pq-triangle {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #b71c1c;
    margin-top: 8px;
}

.pq-circle {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f9a825;
    margin-top: 12px;
}

.pull-quote blockquote {
    flex: 1;
}

.pull-quote blockquote p {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.4;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.squiggle-underline {
    width: 100%;
    height: 20px;
    display: block;
}

.squiggle-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease-out;
}

.squiggle-path.animated {
    stroke-dashoffset: 0;
}

/* =========================================
   CURVE TRANSITIONS
   ========================================= */

.curve-transition {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    position: relative;
    overflow: visible;
}

.curve-transition svg {
    display: block;
    width: 100vw;
    height: 120px;
    margin-left: calc(-50vw + 50%);
}

.flow-curve {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-out;
}

.flow-curve.animated {
    stroke-dashoffset: 0;
}

/* =========================================
   ACT II — THE ARGUMENT
   ========================================= */

.act-2 {
    min-height: 100vh;
}

.act-2 .act-inner {
    padding: 100px 0;
}

/* =========================================
   ACT III — THE EVIDENCE
   ========================================= */

.act-3 {
    min-height: 100vh;
}

.evidence-composition {
    margin-top: 32px;
}

/* Tension Field — Abstract force visualization */
.tension-field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    height: 200px;
}

.force {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
}

.force-bar {
    width: 8px;
    height: var(--bar-height, 50%);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.force-left .force-bar:nth-child(1) { background: #b71c1c; }
.force-left .force-bar:nth-child(2) { background: #f9a825; }
.force-left .force-bar:nth-child(3) { background: #00695c; }
.force-left .force-bar:nth-child(4) { background: #6a1b9a; }
.force-left .force-bar:nth-child(5) { background: #b71c1c; }

.force-right .force-bar:nth-child(1) { background: #6a1b9a; }
.force-right .force-bar:nth-child(2) { background: #00695c; }
.force-right .force-bar:nth-child(3) { background: #f9a825; }
.force-right .force-bar:nth-child(4) { background: #b71c1c; }
.force-right .force-bar:nth-child(5) { background: #6a1b9a; }

.tension-center {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.tension-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tension-circle-outer {
    width: 120px;
    height: 120px;
    border-color: #f9a825;
    animation: pulse-outer 4s ease-in-out infinite;
}

.tension-circle-mid {
    width: 80px;
    height: 80px;
    border-color: #00695c;
    animation: pulse-mid 3s ease-in-out infinite;
}

.tension-circle-inner {
    width: 40px;
    height: 40px;
    border-color: #b71c1c;
    animation: pulse-inner 2.5s ease-in-out infinite;
}

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

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

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

.evidence-caption {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem) !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9e9e9e !important;
    text-align: center;
    margin-bottom: 48px !important;
}

/* Constellation */
.constellation {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
}

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.constellation-node {
    position: absolute;
    border-radius: 50%;
    animation: node-pulse 3s ease-in-out infinite;
}

.node-1 { width: 16px; height: 16px; background: #f9a825; top: 14%; left: 10%; animation-delay: 0s; }
.node-2 { width: 24px; height: 24px; background: #00695c; top: 22%; left: 47%; animation-delay: 0.5s; }
.node-3 { width: 12px; height: 12px; background: #b71c1c; top: 10%; right: 10%; animation-delay: 1s; }
.node-4 { width: 20px; height: 20px; background: #6a1b9a; top: 46%; left: 22%; animation-delay: 1.5s; }
.node-5 { width: 14px; height: 14px; background: #f9a825; bottom: 25%; left: 35%; animation-delay: 2s; }
.node-6 { width: 18px; height: 18px; background: #b71c1c; bottom: 12%; right: 22%; animation-delay: 0.8s; }
.node-7 { width: 10px; height: 10px; background: #00695c; top: 46%; right: 28%; animation-delay: 1.2s; }

@keyframes node-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* =========================================
   ACT IV — THE REBUTTAL
   ========================================= */

.act-4 {
    min-height: 100vh;
}

.rebuttal-block {
    padding: 48px 32px;
    margin-bottom: 32px;
    position: relative;
    border-radius: 2px;
}

.rebuttal-emerald {
    background: #00695c;
}

.rebuttal-sapphire {
    background: #1a237e;
}

.rebuttal-amethyst {
    background: #6a1b9a;
}

.rebuttal-border-top,
.rebuttal-border-bottom {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #f9a825 0px, #f9a825 12px,
        transparent 12px, transparent 20px,
        #b71c1c 20px, #b71c1c 32px,
        transparent 32px, transparent 40px
    );
    position: absolute;
    left: 0;
    right: 0;
}

.rebuttal-border-top {
    top: 0;
    animation: border-shift 6s linear infinite;
}

.rebuttal-border-bottom {
    bottom: 0;
    animation: border-shift 6s linear infinite reverse;
}

@keyframes border-shift {
    from { background-position-x: 0; }
    to { background-position-x: 40px; }
}

/* Glow at corners */
.rebuttal-block::before,
.rebuttal-block::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f9a825;
    box-shadow: 0 0 12px 4px rgba(249, 168, 37, 0.4);
}

.rebuttal-block::before {
    top: -4px;
    left: -4px;
}

.rebuttal-block::after {
    bottom: -4px;
    right: -4px;
}

/* =========================================
   ACT V — THE VERDICT
   ========================================= */

.act-5 {
    min-height: 100vh;
}

.act-5 .act-inner {
    max-width: 480px;
    margin: 0 auto;
}

.verdict-statement {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.5;
    text-align: center;
    color: #f5f0e8;
    letter-spacing: 0.05em;
}

.verdict-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin: 0 0.15em;
}

.verdict-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Closing Ornament */
.closing-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 64px;
}

.ornament-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 17px solid #b71c1c;
}

.ornament-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f9a825;
}

/* =========================================
   BACKGROUND COLOR TRANSITIONS
   ========================================= */

body {
    transition: background-color 1s ease;
}

body.bg-act-1 { background-color: #0d0d1a; }
body.bg-act-2 { background-color: #0d1a1a; }
body.bg-act-3 { background-color: #1a0d1a; }
body.bg-act-4 { background-color: #0d0d1a; }
body.bg-act-5 { background-color: #0d0d1a; }

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

@media (max-width: 768px) {
    .border-pilaster {
        width: 16px;
    }

    .domain-watermark {
        left: 28px;
        font-size: 0.65rem;
    }

    .content-column {
        padding: 0 40px;
    }

    .tension-field {
        height: 150px;
        gap: 12px;
    }

    .tension-center {
        width: 80px;
        height: 80px;
    }

    .tension-circle-outer {
        width: 80px;
        height: 80px;
    }

    .tension-circle-mid {
        width: 56px;
        height: 56px;
    }

    .tension-circle-inner {
        width: 28px;
        height: 28px;
    }

    .rebuttal-block {
        padding: 32px 20px;
    }

    .pull-quote {
        flex-direction: column;
        gap: 12px;
    }

    .constellation {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .border-pilaster {
        width: 10px;
    }

    .content-column {
        padding: 0 28px;
    }

    .domain-watermark {
        left: 18px;
    }

    .force-bar {
        width: 5px;
    }
}