/* ===========================
   political.day — styles.css
   Bauhaus × Civic Architecture
   =========================== */

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

:root {
    --marble-white: #eae6e1;
    --parliamentary-slate: #2b3a4a;
    --deep-civic-blue: #1a2634;
    --iron-ink: #1c1c1e;
    --weathered-stone: #6b7280;
    --dissent-vermillion: #c23c2a;
    --faded-vermillion: #d4695c;
    --oxidized-iron: #3d3d3f;
    --muted-stone: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--iron-ink);
    background: var(--marble-white);
    overflow-x: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background: var(--dissent-vermillion);
    z-index: 1000;
    transition: none;
}

/* Stratum Base */
.stratum {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 6vw, 96px) clamp(32px, 6vw, 120px);
}

/* Noise Texture Overlays */
.stratum::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

.stratum-1::before {
    opacity: 0.04;
}

.stratum-2::before,
.stratum-3::before {
    opacity: 0.06;
}

.stratum-4::before {
    opacity: 0.04;
}

.stratum-5::before {
    opacity: 0.06;
}

.stratum-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

/* Animate elements */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Section 1 — The Preamble
   =========================== */
.stratum-1 {
    background-color: var(--marble-white);
    align-items: flex-start;
    padding-top: 20vh;
}

.colonnade {
    position: absolute;
    left: clamp(16px, 3vw, 48px);
    top: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.colonnade span {
    width: 1px;
    height: 100%;
    background: var(--oxidized-iron);
    opacity: 0.2;
}

.marble-vein {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.vein-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawVein 8s ease-in-out forwards;
}

@keyframes drawVein {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 12rem);
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--iron-ink);
}

.hero-rule {
    width: 100%;
    height: 4px;
    background: var(--dissent-vermillion);
    margin: clamp(16px, 2vw, 32px) 0;
}

.hero-manifesto {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--weathered-stone);
    max-width: 50%;
}

/* ===========================
   Section 2 — Weight of Process
   =========================== */
.stratum-2 {
    background-color: var(--parliamentary-slate);
}

.section-glyph {
    position: absolute;
    right: clamp(32px, 6vw, 120px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: clamp(6rem, 15vw, 18rem);
    color: var(--marble-white);
    opacity: 0.08;
    z-index: 2;
    line-height: 1;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.stratum:hover .section-glyph {
    opacity: 0.25;
}

.stratum-2 .section-heading,
.stratum-3 .section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
    color: var(--marble-white);
    margin-bottom: clamp(16px, 2vw, 32px);
}

.stratum-2 .section-body,
.stratum-3 .section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--muted-stone);
    max-width: 42ch;
    margin-bottom: clamp(24px, 3vw, 48px);
}

.pull-quote {
    border-left: 4px solid var(--dissent-vermillion);
    padding-left: clamp(16px, 2vw, 32px);
    max-width: 42ch;
}

.pull-quote p {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--marble-white);
}

/* ===========================
   Section 3 — Architecture of Debate
   =========================== */
.stratum-3 {
    background-color: var(--deep-civic-blue);
}

.stratum-3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 80px);
}

.col-right {
    margin-top: 6rem;
}

.mid-rule {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--oxidized-iron);
    z-index: 2;
}

/* ===========================
   Section 4 — The Record
   =========================== */
.stratum-4 {
    background-color: var(--marble-white);
}

.section-glyph-dark {
    color: var(--iron-ink);
    opacity: 0.05;
}

.stratum:hover .section-glyph-dark {
    opacity: 0.15;
}

.document-block {
    position: relative;
    border: 2px solid var(--oxidized-iron);
    padding: clamp(24px, 3vw, 48px);
    max-width: 720px;
}

.document-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--iron-ink);
}

.dm-annotation {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--weathered-stone);
}

.corner-mark {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--dissent-vermillion);
}

.corner-tl { top: -4px; left: -4px; }
.corner-tr { top: -4px; right: -4px; }
.corner-bl { bottom: -4px; left: -4px; }
.corner-br { bottom: -4px; right: -4px; }

/* ===========================
   Section 5 — The Coda
   =========================== */
.stratum-5 {
    background-color: var(--parliamentary-slate);
    min-height: 50vh;
    flex-direction: column;
    justify-content: center;
}

.coda-rule {
    width: 100%;
    height: 1px;
    background: var(--oxidized-iron);
    margin-bottom: clamp(24px, 3vw, 48px);
}

.coda-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--weathered-stone);
    margin-bottom: clamp(12px, 1.5vw, 24px);
}

.coda-closing {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted-stone);
    max-width: 42ch;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .hero-manifesto {
        max-width: 100%;
    }

    .stratum-3-grid {
        grid-template-columns: 1fr;
    }

    .col-right {
        margin-top: 2rem;
    }

    .section-glyph {
        font-size: clamp(4rem, 20vw, 10rem);
        right: clamp(16px, 4vw, 32px);
    }
}
