/* =============================================================
   politics.quest — retro-futuristic / cold-war constructivist
   Palette:
     Background cream  #F2E8D5
     Constructivist red #C41E3A
     Deep navy         #0A1628
     Steel gray        #5C6370
     Accent gold       #D4A030
     Text on light     #1A1A1A
     Text on dark      #F2E8D5
   ============================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1A1A;
    background-color: #F2E8D5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
   Mission Header (fixed, top)
   ============================================================= */
.mission-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    background: rgba(242, 232, 213, 0.92);
    border-bottom: 2px solid #0A1628;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A1628;
}

.mission-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 18px;
    height: 18px;
    background: #C41E3A;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: rotate(-6deg);
}

.brand-text {
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.mission-coordinates {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coord-label {
    color: #5C6370;
}

.coord-value {
    color: #C41E3A;
    font-variant-numeric: tabular-nums;
    min-width: 64px;
    display: inline-block;
}

.coord-divider {
    color: #5C6370;
    opacity: 0.6;
}

/* =============================================================
   Vertical Dot Navigation (fixed, right)
   ============================================================= */
.dot-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
}

.dot-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border: 2px solid #0A1628;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.dot::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 220ms ease;
}

.dot:hover {
    transform: scale(1.25);
}

.dot:hover::before {
    border-color: #C41E3A;
}

.dot.active {
    background: #C41E3A;
    border-color: #C41E3A;
}

.dot.active::before {
    border-color: #C41E3A;
}

.dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0A1628;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    background: #F2E8D5;
    padding: 4px 8px;
    border: 1px solid #0A1628;
}

.dot:hover .dot-label,
.dot.active .dot-label {
    opacity: 1;
    transform: translate(-4px, -50%);
}

/* =============================================================
   Quest Stack & Diagonal Sections
   ============================================================= */
.quest-stack {
    display: block;
    position: relative;
    padding-top: 0;
}

.diag-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 140px 80px 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #1A1A1A;
    background-color: #F2E8D5;
    margin-top: -60px;
    transition: opacity 600ms ease;
}

.diag-section:first-of-type {
    margin-top: 0;
}

/* Diagonal clip-paths — alternating directions create the zigzag */
.diag-section--down {
    /* tilts down-right (top-left high, top-right low) */
    clip-path: polygon(0% 0%, 100% 7%, 100% 93%, 0% 100%);
}

.diag-section--up {
    /* tilts up-right (top-left low, top-right high) */
    clip-path: polygon(0% 7%, 100% 0%, 100% 100%, 0% 93%);
}

.diag-section--inverse {
    background-color: #0A1628;
    color: #F2E8D5;
}

.diag-section--final {
    min-height: 110vh;
    padding-bottom: 220px;
}

.quest-stack > section:first-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 93%, 0% 100%);
}

.quest-stack > section:last-child {
    clip-path: polygon(0% 7%, 100% 0%, 100% 100%, 0% 100%);
}

/* =============================================================
   Section Content Layout (split-screen 50/50)
   ============================================================= */
.diag-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    width: 100%;
    max-width: 1400px;
}

.diag-content--reverse .diag-left {
    order: 1;
}

.diag-content--reverse .diag-right {
    order: 2;
}

.diag-content--single {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
}

.diag-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    position: relative;
}

.diag-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    position: relative;
}

/* =============================================================
   Typography
   ============================================================= */
.dateline {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C41E3A;
    padding-left: 22px;
    position: relative;
}

.dateline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #C41E3A;
    transform: translateY(-50%);
}

.dateline--inverse {
    color: #D4A030;
}

.dateline--inverse::before {
    background: #D4A030;
}

.display-headline {
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 10vw, 160px);
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0A1628;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.display-headline--inverse {
    color: #F2E8D5;
}

.display-headline--centered {
    align-items: center;
    text-align: center;
}

.head-line {
    display: block;
    transform-origin: left center;
}

.head-line--accent {
    color: #C41E3A;
    transform: translateX(0.05em);
}

.display-headline--inverse .head-line--accent {
    color: #D4A030;
}

.head-line--strikethrough {
    color: #5C6370;
    text-decoration: line-through;
    text-decoration-thickness: 6px;
    text-decoration-color: #C41E3A;
    text-decoration-skip-ink: none;
}

.head-line--mono {
    transform: none;
}

.overline {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5C6370;
    border-bottom: 2px solid #5C6370;
    padding-bottom: 8px;
    margin-bottom: 6px;
    width: fit-content;
}

.overline--inverse {
    color: #D4A030;
    border-bottom-color: #D4A030;
}

.body-block {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: inherit;
    max-width: 56ch;
}

.diag-section--inverse .body-block {
    color: #F2E8D5;
}

/* =============================================================
   Structural struts (architectural beams)
   ============================================================= */
.strut {
    height: 4px;
    background: #C41E3A;
    width: 240px;
    margin-top: 20px;
    transform-origin: left center;
}

.strut--left {
    transform: rotate(-3deg) translateX(-60px);
    width: 320px;
}

.strut--right {
    transform: rotate(3deg) translateX(-30px);
    width: 320px;
    background: #D4A030;
}

.strut--inverse {
    background: #D4A030;
}

/* =============================================================
   Watermark mission counters
   ============================================================= */
.watermark {
    position: absolute;
    left: 60px;
    bottom: 40px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 280px;
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: #0A1628;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.watermark--right {
    left: auto;
    right: 60px;
    color: #F2E8D5;
    opacity: 0.06;
}

/* =============================================================
   Constructivist Star Motif
   ============================================================= */
.constructivist-star {
    position: absolute;
    background: #C41E3A;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 1;
}

.star--gold {
    background: #D4A030;
}

.star--md {
    width: 80px;
    height: 80px;
}

.star--lg {
    width: 160px;
    height: 160px;
}

.star--xl {
    width: 260px;
    height: 260px;
}

.star--xxl {
    width: 380px;
    height: 380px;
}

.star--top-right {
    top: 8%;
    right: -40px;
    transform: rotate(8deg);
    opacity: 0.92;
}

.star--top-left {
    top: 10%;
    left: -60px;
    transform: rotate(-12deg);
    opacity: 0.95;
}

.star--bottom-left {
    bottom: 6%;
    left: -50px;
    transform: rotate(-8deg);
    opacity: 0.95;
}

.star--mid-right {
    top: 50%;
    right: 6%;
    transform: translateY(-50%) rotate(14deg);
    opacity: 0.85;
}

.star--mid-left {
    top: 38%;
    left: 4%;
    transform: rotate(-6deg);
    opacity: 0.9;
}

.star--centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.12;
}

/* =============================================================
   Orbit / Concentric circles motif
   ============================================================= */
.orbit {
    position: relative;
    width: 180px;
    height: 180px;
    margin-top: 20px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid #5C6370;
    transform: translate(-50%, -50%);
}

.orbit-ring--1 {
    width: 60px;
    height: 60px;
    border-color: #C41E3A;
    border-width: 2px;
}

.orbit-ring--2 {
    width: 110px;
    height: 110px;
    border-color: #5C6370;
    border-width: 1px;
    border-style: dashed;
}

.orbit-ring--3 {
    width: 170px;
    height: 170px;
    border-color: #5C6370;
    border-width: 1px;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #C41E3A;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: translate(-50%, -50%);
}

/* =============================================================
   Section Meta (corner data ticker)
   ============================================================= */
.section-meta {
    position: absolute;
    bottom: 60px;
    right: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5C6370;
    z-index: 4;
}

.section-meta--inverse {
    color: #D4A030;
}

.meta-line {
    border-right: 2px solid currentColor;
    padding-right: 10px;
}

/* =============================================================
   Chevron transition marker
   ============================================================= */
.chevron-marker {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    z-index: 4;
    animation: chevron-bob 2.4s ease-in-out infinite;
}

.chevron-marker svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #C41E3A;
    stroke-width: 3;
    stroke-linecap: square;
    stroke-linejoin: miter;
    transform: rotate(180deg);
}

@keyframes chevron-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* =============================================================
   Axiom List (Doctrine section)
   ============================================================= */
.axiom-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 4px;
}

.axiom {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    align-items: baseline;
    border-left: 4px solid #D4A030;
    padding-left: 20px;
}

.axiom-num {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #D4A030;
    letter-spacing: 0.04em;
}

.axiom-text {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #F2E8D5;
}

/* =============================================================
   Phase List (Trajectory section)
   ============================================================= */
.phase-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 2px solid #0A1628;
}

.phase {
    display: grid;
    grid-template-columns: 80px 140px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(10, 22, 40, 0.18);
    align-items: baseline;
}

.phase-mark {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #C41E3A;
    letter-spacing: 0.04em;
}

.phase-title {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0A1628;
}

.phase-desc {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #1A1A1A;
}

/* =============================================================
   Lever Grid (Machinery section)
   ============================================================= */
.lever-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.lever {
    border: 2px solid #D4A030;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(212, 160, 48, 0.04);
    transform: skewX(-4deg);
    transition: transform 240ms ease, background-color 240ms ease;
}

.lever:hover {
    transform: skewX(-4deg) translateY(-4px);
    background: rgba(212, 160, 48, 0.12);
}

.lever-id {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #C41E3A;
    transform: skewX(4deg);
}

.lever-name {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #F2E8D5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: skewX(4deg);
}

/* =============================================================
   Summons (final section)
   ============================================================= */
.summons-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
    padding: 60px 0;
}

.summons-line {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #F2E8D5;
    max-width: 50ch;
}

.signature-bar {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 2px solid #D4A030;
    padding-top: 20px;
    margin-top: 20px;
}

.sig-stamp {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A030;
    border: 1px solid #D4A030;
    padding: 6px 14px;
    transform: rotate(-1deg);
}

.sig-stamp:nth-child(2) {
    transform: rotate(1deg);
}

.sig-stamp:nth-child(3) {
    transform: rotate(-0.5deg);
}

/* =============================================================
   Progress beam (bottom)
   ============================================================= */
.progress-beam {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(10, 22, 40, 0.12);
    z-index: 50;
}

.beam-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #C41E3A;
    transition: width 120ms linear;
}

/* =============================================================
   Slide-reveal entrance animation
   ============================================================= */
.diag-section .diag-left,
.diag-section .diag-right,
.diag-section .summons-block {
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.diag-section[data-direction="left"] .diag-left {
    transform: translateX(-80px);
}

.diag-section[data-direction="left"] .diag-right {
    transform: translateX(40px);
}

.diag-section[data-direction="right"] .diag-left {
    transform: translateX(80px);
}

.diag-section[data-direction="right"] .diag-right {
    transform: translateX(-40px);
}

.diag-section .summons-block {
    transform: translateY(40px);
}

.diag-section.is-revealed .diag-left,
.diag-section.is-revealed .diag-right,
.diag-section.is-revealed .summons-block {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Star + watermark subtle entrance */
.diag-section .constructivist-star {
    transition: opacity 900ms ease 200ms, transform 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 200ms;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
    .diag-section {
        padding: 120px 32px 140px;
    }

    .diag-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .diag-content--reverse .diag-left,
    .diag-content--reverse .diag-right {
        order: initial;
    }

    .display-headline {
        font-size: clamp(54px, 14vw, 100px);
    }

    .watermark {
        font-size: 180px;
        left: 24px;
        bottom: 24px;
    }

    .watermark--right {
        right: 24px;
    }

    .section-meta {
        right: 32px;
        bottom: 30px;
    }

    .lever-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .star--xxl {
        width: 260px;
        height: 260px;
    }

    .mission-coordinates .coord-label,
    .mission-coordinates .coord-divider {
        display: none;
    }
}

@media (max-width: 600px) {
    .mission-header {
        padding: 14px 18px;
    }

    .brand-text {
        font-size: 14px;
    }

    .dot-nav {
        right: 10px;
    }

    .diag-section {
        padding: 110px 22px 130px;
    }

    .display-headline {
        font-size: clamp(44px, 16vw, 80px);
    }

    .phase {
        grid-template-columns: 60px 1fr;
    }

    .phase-title {
        grid-column: 1 / -1;
    }

    .phase-desc {
        grid-column: 1 / -1;
    }

    .lever-grid {
        grid-template-columns: 1fr;
    }

    .signature-bar {
        gap: 12px;
    }
}
