/* moot.ing - Avant-Garde Editorial Provocation */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.75;
    color: #1A1714;
    background: #F2EDE4;
    overflow-x: hidden;
}

/* ===== Paper Grain Texture ===== */
.paper-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Navigation Sigil ===== */
.nav-sigil {
    position: fixed;
    top: 2rem;
    left: 2vw;
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-sigil svg {
    display: block;
}

/* ===== Navigation Overlay ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: #F2EDE4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms linear;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-content {
    text-align: left;
}

.nav-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    color: #1A1714;
    line-height: 1.1;
    cursor: pointer;
    transition: color 150ms linear;
}

.nav-item:hover {
    color: #C13628;
}

/* ===== Gavel Progress Line ===== */
.gavel-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #C13628;
    width: 0%;
    z-index: 90;
    transition: width 100ms linear;
}

/* ===== Ghost Words ===== */
.ghost-word {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(20rem, 40vw, 50vw);
    color: #1A1714;
    opacity: 0.05;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 0;
}

.ghost-word-1 { top: 10%; left: -5%; }
.ghost-word-2 { top: 5%; right: -10%; }
.ghost-word-3 { top: 15%; left: -8%; }
.ghost-word-4 { top: 20%; right: -5%; }
.ghost-word-5 { top: 10%; left: 5%; }

/* ===== Margin Annotations ===== */
.margin-annotation {
    position: absolute;
    left: 2vw;
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7E7B76;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ===== Chambers ===== */
.chamber {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ===== Diagonal Slash Dividers ===== */
.diagonal-slash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #7E7B76;
    transform: rotate(-7deg);
    transform-origin: left center;
    opacity: 0.3;
}

/* ===== Chamber 1: Call to Order ===== */
.chamber-1 {
    background: #F2EDE4;
    justify-content: center;
}

.chamber-content {
    text-align: center;
    z-index: 1;
    width: 100%;
}

.hero-split {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-top,
.hero-bottom {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #1A1714;
    line-height: 1;
    letter-spacing: 0;
}

.gavel-line {
    width: 100vw;
    height: 2px;
    background: #C13628;
    margin: 0.5rem 0;
}

.gavel-line-overlap {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 5;
}

/* ===== Chamber 2 & 4: Proposition / Opposition Grid ===== */
.chamber-2 { background: #F2EDE4; }
.chamber-4 { background: #F2EDE4; }

.chamber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

.proposition {
    padding: 10vh 4vw 10vh 8vw;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proposition.revealed {
    opacity: 1;
    transform: translateX(0);
}

.opposition {
    padding: 10vh 8vw 10vh 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms, transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms;
}

.opposition.revealed {
    opacity: 1;
    transform: translateX(0);
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #1A1714;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 2rem;
}

.body-text p {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.75;
    color: #1A1714;
    margin-bottom: 1.25rem;
}

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

.body-text-light p {
    color: #F2EDE4;
}

.opposition-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.6;
    color: #2B3A4E;
    max-width: 80%;
}

/* ===== Chamber 3: Point of Contention ===== */
.chamber-3 {
    background: #F2EDE4;
}

.contention-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    position: relative;
}

.panel-light {
    background: #F2EDE4;
    padding: 10vh 3vw 10vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.panel-light.revealed {
    opacity: 1;
    transform: translateX(0);
}

.panel-dark {
    background: #2D2A26;
    padding: 10vh 8vw 10vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms, transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms;
}

.panel-dark.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Redaction Bars ===== */
.redaction-bar {
    position: absolute;
    height: 8px;
    background: #1A1714;
    mix-blend-mode: multiply;
    left: 3vw;
}

/* ===== Chamber 5: The Vote ===== */
.chamber-5 {
    background: #F2EDE4;
    flex-direction: column;
    justify-content: center;
}

.vote-container {
    display: flex;
    width: 100%;
    min-height: 60vh;
    z-index: 1;
}

.vote-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: flex-grow 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.vote-aye {
    background: #2B3A4E;
}

.vote-nay {
    background: #C13628;
}

.vote-container:hover .vote-aye:hover {
    flex-grow: 1.5;
}

.vote-container:hover .vote-nay:hover {
    flex-grow: 1.5;
}

.vote-container:hover .vote-option:not(:hover) {
    flex-grow: 0.67;
}

.vote-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    color: #F2EDE4;
    letter-spacing: 0;
}

/* ===== Colophon ===== */
.colophon {
    text-align: center;
    padding: 4vh 2rem;
    z-index: 1;
}

.colophon-text {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7E7B76;
}

/* ===== Reveal Animation ===== */
[data-reveal] {
    opacity: 0;
}

[data-reveal].revealed {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .chamber-grid,
    .contention-zone {
        grid-template-columns: 1fr;
    }

    .proposition,
    .opposition {
        padding: 6vh 1.5rem;
    }

    .panel-light,
    .panel-dark {
        padding: 6vh 1.5rem;
    }

    .opposition-text {
        max-width: 100%;
    }

    .margin-annotation {
        display: none;
    }

    .ghost-word {
        font-size: clamp(8rem, 30vw, 20rem);
    }

    .vote-container {
        flex-direction: column;
    }

    .gavel-line {
        width: 100%;
    }
}
