:root {
    /* Space Grotesk** Grotesk* Grotes* Grotes crisp contemporary labels */
    --assembly-ink: #07111F;
    --vellum-glow: #E9E0C8;
    --objection-red: #D73A31;
    --coalition-cyan: #48C7B8;
    --ballot-violet: #5D4A8E;
    --brass-stamp: #B88A3A;
    --paper-shadow: #7B735F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--assembly-ink);
    color: var(--vellum-glow);
    font-family: "Space Grotesk", Inter, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: -3;
    background:
        radial-gradient(circle at 16% 22%, rgba(93, 74, 142, .36), transparent 31%),
        radial-gradient(circle at 84% 64%, rgba(72, 199, 184, .14), transparent 29%),
        linear-gradient(123deg, #07111F 0%, #0a1627 52%, #07111F 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: .33;
    background-image:
        linear-gradient(30deg, rgba(233,224,200,.035) 12%, transparent 12.5%, transparent 87%, rgba(233,224,200,.035) 87.5%, rgba(233,224,200,.035)),
        linear-gradient(150deg, rgba(233,224,200,.035) 12%, transparent 12.5%, transparent 87%, rgba(233,224,200,.035) 87.5%, rgba(233,224,200,.035)),
        linear-gradient(30deg, rgba(233,224,200,.035) 12%, transparent 12.5%, transparent 87%, rgba(233,224,200,.035) 87.5%, rgba(233,224,200,.035)),
        linear-gradient(150deg, rgba(233,224,200,.035) 12%, transparent 12.5%, transparent 87%, rgba(233,224,200,.035) 87.5%, rgba(233,224,200,.035));
    background-position: 0 0, 0 0, 34px 60px, 34px 60px;
    background-size: 68px 120px;
}

.paper-dust {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    background-image:
        radial-gradient(circle, rgba(233,224,200,.32) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(184,138,58,.18) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(72,199,184,.15) 0 1px, transparent 1.5px);
    background-size: 137px 173px, 211px 199px, 307px 251px;
    animation: dustDrift 19s linear infinite;
    opacity: .38;
}

.agenda-tray {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: grid;
    gap: 10px;
    padding: 12px 9px;
    background: rgba(7,17,31,.68);
    border: 1px solid rgba(233,224,200,.18);
    box-shadow: inset 0 0 28px rgba(72,199,184,.08), 0 22px 70px rgba(0,0,0,.35);
    clip-path: polygon(15% 0, 100% 0, 100% 91%, 82% 100%, 0 100%, 0 10%);
}

.agenda-token {
    width: 62px;
    height: 34px;
    color: var(--vellum-glow);
    background: rgba(233,224,200,.07);
    border: 1px solid rgba(184,138,58,.48);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    transform: rotate(-4deg);
    transition: transform .45s ease, background .45s ease, color .45s ease, border-color .45s ease;
}

.agenda-token:nth-child(even) { transform: rotate(5deg); }
.agenda-token.active,
.agenda-token:hover {
    color: #07111F;
    background: var(--coalition-cyan);
    border-color: var(--coalition-cyan);
    transform: rotate(0deg) translateX(-9px);
}

.assembly-story { width: 100%; }

.station {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 6vw 9vw;
    isolation: isolate;
}

.station::before {
    content: attr(data-station);
    position: absolute;
    left: 4vw;
    top: 9vh;
    font-family: "IBM Plex Mono", monospace;
    color: rgba(233,224,200,.09);
    font-size: clamp(5rem, 18vw, 16rem);
    font-weight: 600;
    z-index: -1;
}

.tilted-table,
.station-board {
    position: relative;
    width: min(1120px, 88vw);
    min-height: min(720px, 78vh);
    border: 1px solid rgba(233,224,200,.18);
    background:
        linear-gradient(114deg, rgba(233,224,200,.08), rgba(233,224,200,.02) 44%, rgba(72,199,184,.05)),
        rgba(7,17,31,.78);
    box-shadow: 0 32px 100px rgba(0,0,0,.54), inset 0 0 100px rgba(72,199,184,.055);
    overflow: hidden;
}

.tilted-table {
    transform: rotate(-8deg);
    clip-path: polygon(5% 0, 95% 3%, 100% 78%, 85% 100%, 0 94%, 0 14%);
}

.tilted-table > * { transform: rotate(8deg); }

.hero-table::before,
.station-board::before {
    content: "";
    position: absolute;
    inset: 22px;
    opacity: .42;
    background:
        linear-gradient(90deg, rgba(233,224,200,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(233,224,200,.06) 1px, transparent 1px);
    background-size: 74px 74px;
    clip-path: polygon(0 5%, 92% 0, 100% 82%, 76% 100%, 4% 94%);
}

.title-fragments {
    position: absolute;
    left: 9%;
    top: 23%;
    display: flex;
    align-items: baseline;
    gap: 11px;
    z-index: 4;
}

.title-piece {
    display: inline-block;
    font-family: "Newsreader", serif;
    font-weight: 800;
    font-size: clamp(4.8rem, 12vw, 11rem);
    line-height: .8;
    padding: .02em .08em .09em;
    color: var(--vellum-glow);
    background: rgba(233,224,200,.075);
    border: 1px solid rgba(233,224,200,.18);
    text-shadow: 0 0 18px rgba(72,199,184,.22);
    clip-path: polygon(8% 0, 92% 0, 100% 39%, 91% 52%, 100% 65%, 90% 100%, 0 94%, 3% 54%, 0 45%);
    animation: titleSettle 1.8s cubic-bezier(.2,.9,.25,1) both;
}
.p1 { transform: translateY(18px) rotate(-7deg); }
.p2 { transform: translateY(-6px) rotate(3deg); animation-delay: .08s; }
.p3 { color: var(--objection-red); transform: translateY(22px) rotate(12deg); animation-delay: .14s; }
.p4 { transform: translateY(7px) rotate(-3deg); animation-delay: .2s; }

.empty-notch,
.final-notch {
    position: absolute;
    right: 12%;
    bottom: 19%;
    width: 250px;
    height: 154px;
    border: 2px dashed rgba(72,199,184,.8);
    background: rgba(72,199,184,.045);
    box-shadow: 0 0 42px rgba(72,199,184,.24), inset 0 0 34px rgba(72,199,184,.1);
    clip-path: polygon(4% 7%, 61% 0, 75% 21%, 100% 21%, 96% 88%, 39% 100%, 22% 76%, 0 74%);
    display: grid;
    place-items: center;
    color: var(--coalition-cyan);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: notchPulse 2.8s ease-in-out infinite;
}

.hero-caption,
.serial,
.closing-stamp { position: absolute; letter-spacing: .11em; }
.mono { font-family: "IBM Plex Mono", monospace; }
.italic { font-family: "Fraunces", serif; font-style: italic; }
.hero-caption { left: 11%; bottom: 12%; color: var(--paper-shadow); font-size: 12px; }

.border-svg { position: absolute; inset: 5%; width: 90%; height: 82%; z-index: 2; overflow: visible; }
.red-draw,
.map-redline {
    fill: none;
    stroke: var(--objection-red);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 920;
    stroke-dashoffset: 920;
    filter: drop-shadow(0 0 4px rgba(215,58,49,.35));
    animation: drawBorder 2.8s .35s cubic-bezier(.55,.02,.2,1) forwards, tremble 2.2s 3s ease-in-out infinite;
}
.cyan-draw,
.map-cyanline {
    fill: none;
    stroke: var(--coalition-cyan);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 680;
    stroke-dashoffset: 680;
    opacity: .84;
    animation: seamTry 3.3s 1.4s ease-in-out infinite;
}
.cyan-draw.alt { animation-delay: 1.7s; }

.stamp-mark {
    position: absolute;
    right: 26%;
    top: 17%;
    z-index: 5;
    padding: 12px 22px;
    color: rgba(184,138,58,.82);
    border: 3px double rgba(184,138,58,.72);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    letter-spacing: .2em;
    transform: rotate(-18deg) scale(1.4);
    opacity: 0;
    animation: stampPress 1.2s 1.5s cubic-bezier(.17,.84,.44,1) forwards;
}

.piece,
.hex,
.motive-piece,
.coalition-piece {
    cursor: pointer;
    transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .45s ease, box-shadow .45s ease;
}
.piece:hover,
.hex:hover,
.motive-piece:hover,
.coalition-piece:hover {
    transform: translateY(-10px) rotate(var(--hover-rotate, 4deg)) scale(1.04);
    filter: saturate(1.25);
    box-shadow: 0 0 34px rgba(72,199,184,.22);
}

.cluster-piece {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    font-family: "Fraunces", serif;
    font-style: italic;
    font-size: 21px;
    color: var(--vellum-glow);
    border: 1px solid rgba(233,224,200,.22);
    backdrop-filter: blur(2px);
}
.piece-a { left: 13%; top: 12%; width: 160px; height: 125px; background: rgba(93,74,142,.56); clip-path: polygon(0 14%, 45% 0, 60% 17%, 100% 12%, 89% 82%, 52% 100%, 39% 84%, 0 92%); --hover-rotate: -8deg; }
.piece-b { right: 23%; top: 43%; width: 154px; height: 145px; background: rgba(72,199,184,.24); clip-path: polygon(12% 0, 100% 8%, 92% 38%, 77% 48%, 98% 65%, 86% 100%, 4% 90%, 0 30%); }
.piece-c { left: 42%; bottom: 11%; width: 178px; height: 118px; background: rgba(184,138,58,.35); clip-path: polygon(10% 9%, 50% 0, 68% 16%, 100% 20%, 88% 88%, 36% 100%, 24% 79%, 0 72%); --hover-rotate: 10deg; }

.station-board {
    padding: clamp(32px, 5vw, 72px);
    clip-path: polygon(7% 0, 100% 0, 96% 89%, 77% 100%, 0 94%, 0 13%);
}
.board-left { margin-right: auto; transform: rotate(-3deg); }
.board-right { margin-left: auto; transform: rotate(3deg); }
.full-fracture { width: min(1220px, 90vw); transform: rotate(-1deg); clip-path: polygon(0 8%, 20% 0, 100% 4%, 93% 47%, 100% 88%, 70% 100%, 0 92%, 6% 51%); }

.chapter-tab {
    position: relative;
    z-index: 2;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
    padding: 8px 15px;
    color: var(--assembly-ink);
    background: var(--brass-stamp);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.chapter-tab span { color: var(--objection-red); font-weight: 600; }

h2 {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 0 22px;
    font-family: "Newsreader", serif;
    font-size: clamp(3.2rem, 7vw, 8.4rem);
    line-height: .9;
    font-weight: 760;
    letter-spacing: -.055em;
}

.vellum-note {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 20px 24px;
    color: rgba(7,17,31,.9);
    background: rgba(233,224,200,.82);
    box-shadow: 15px 15px 0 rgba(123,115,95,.15);
    font-size: clamp(1rem, 1.55vw, 1.25rem);
    line-height: 1.55;
    clip-path: polygon(0 0, 92% 0, 100% 18%, 98% 100%, 7% 95%);
}

.claim-honeycomb {
    position: absolute;
    right: 8%;
    bottom: 12%;
    width: 430px;
    height: 330px;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.hex {
    position: absolute;
    display: grid;
    place-items: center;
    width: 150px;
    height: 130px;
    clip-path: polygon(24% 0, 78% 0, 100% 50%, 78% 100%, 23% 100%, 0 50%);
    border: 1px solid rgba(233,224,200,.28);
    color: var(--vellum-glow);
    font-family: "Fraunces", serif;
    font-style: italic;
    font-size: 22px;
}
.claim-one { left: 35px; top: 8px; background: rgba(93,74,142,.72); }
.claim-two { left: 160px; top: 72px; background: rgba(72,199,184,.33); }
.claim-three { left: 45px; top: 150px; background: rgba(215,58,49,.42); }
.claim-four { left: 192px; top: 202px; background: rgba(184,138,58,.45); }
.evidence-slip {
    position: absolute;
    right: 34%;
    bottom: 10%;
    z-index: 4;
    max-width: 300px;
    color: var(--vellum-glow);
    font-size: 25px;
    transform: rotate(-8deg);
}

.district-map {
    position: absolute;
    right: 2%;
    bottom: 4%;
    width: min(700px, 60vw);
    height: auto;
}
.district { stroke: rgba(233,224,200,.24); stroke-width: 2; transition: transform .7s ease, opacity .7s ease; transform-origin: center; }
.d1 { fill: rgba(93,74,142,.66); animation: acetateShift 7s ease-in-out infinite; }
.d2 { fill: rgba(72,199,184,.25); animation: acetateShift 8s -1s ease-in-out infinite reverse; }
.d3 { fill: rgba(184,138,58,.32); animation: acetateShift 9s -2s ease-in-out infinite; }
.d4 { fill: rgba(215,58,49,.25); animation: acetateShift 6.5s -3s ease-in-out infinite reverse; }
.map-redline { animation-delay: .2s; }
.map-cyanline { animation-delay: 1s; }
.serial { right: 10%; top: 16%; color: var(--paper-shadow); font-size: 12px; }

.motive-board { overflow: visible; }
.motive-wheel {
    position: absolute;
    right: 11%;
    top: 18%;
    width: 420px;
    height: 420px;
    border: 1px dashed rgba(72,199,184,.38);
    border-radius: 50%;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.motive-wheel::before {
    content: "";
    position: absolute;
    inset: 28%;
    border: 1px solid rgba(184,138,58,.5);
    border-radius: 50%;
}
.motive-piece {
    position: absolute;
    width: 170px;
    height: 96px;
    border: 1px solid rgba(233,224,200,.24);
    color: var(--vellum-glow);
    font-family: "Fraunces", serif;
    font-style: italic;
    font-size: 20px;
    background: rgba(93,74,142,.58);
    clip-path: polygon(0 15%, 72% 0, 100% 38%, 83% 100%, 14% 91%);
}
.m1 { left: 124px; top: -15px; }
.m2 { right: -36px; top: 161px; background: rgba(72,199,184,.24); }
.m3 { left: 126px; bottom: -13px; background: rgba(184,138,58,.4); }
.m4 { left: -45px; top: 162px; background: rgba(215,58,49,.34); }
.compass-missing {
    position: absolute;
    right: 20%;
    bottom: 13%;
    color: rgba(233,224,200,.42);
    font-family: "Newsreader", serif;
    font-size: 44px;
    letter-spacing: .14em;
}

.registration-track {
    position: absolute;
    inset: 44% 8% auto;
    height: 220px;
    border-top: 2px solid rgba(233,224,200,.12);
    border-bottom: 2px solid rgba(233,224,200,.12);
}
.registration-arm {
    position: absolute;
    left: 0;
    top: -40px;
    width: 78px;
    height: 300px;
    z-index: 5;
    background: linear-gradient(90deg, rgba(184,138,58,.18), rgba(184,138,58,.62), rgba(184,138,58,.18));
    border: 1px solid rgba(184,138,58,.7);
    box-shadow: 0 0 28px rgba(184,138,58,.18);
    transform: translateX(var(--arm-x, 0px)) skewX(-8deg);
    transition: transform .12s linear;
}
.registration-arm span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: #07111F;
    letter-spacing: .18em;
}
.coalition-piece {
    position: absolute;
    top: 47px;
    display: grid;
    place-items: center;
    width: 250px;
    height: 135px;
    color: var(--vellum-glow);
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: 1px solid rgba(233,224,200,.24);
}
.coalition-piece.left { left: 8%; background: rgba(93,74,142,.64); clip-path: polygon(0 0, 76% 0, 100% 50%, 75% 100%, 6% 91%); }
.coalition-piece.bridge { left: 39%; background: rgba(72,199,184,.24); clip-path: polygon(0 20%, 39% 0, 100% 8%, 89% 88%, 35% 100%, 0 80%); animation: bridgeTremble 2.2s ease-in-out infinite; }
.coalition-piece.right { right: 8%; background: rgba(215,58,49,.31); clip-path: polygon(23% 0, 100% 7%, 94% 92%, 24% 100%, 0 50%); }

.amendment-stack {
    position: absolute;
    right: 10%;
    bottom: 17%;
    width: min(580px, 52vw);
}
.amendment-strip {
    min-height: 72px;
    margin: 18px 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(7,17,31,.9);
    background: rgba(233,224,200,.82);
    border-left: 8px solid var(--objection-red);
    box-shadow: 12px 12px 0 rgba(123,115,95,.14);
    clip-path: polygon(0 0, 97% 0, 100% 50%, 96% 100%, 3% 92%);
}
.amendment-strip b { font-family: "Fraunces", serif; font-style: italic; font-size: 24px; font-weight: 520; }
.strip-one { transform: rotate(-3deg); }
.strip-two { transform: rotate(2deg) translateX(30px); border-left-color: var(--coalition-cyan); }
.strip-three { transform: rotate(-1deg) translateX(-18px); border-left-color: var(--brass-stamp); }
.wax-seal {
    position: absolute;
    left: 15%;
    bottom: 16%;
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--objection-red);
    color: rgba(233,224,200,.88);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: .12em;
    box-shadow: inset 0 0 30px rgba(7,17,31,.35), 0 0 0 8px rgba(215,58,49,.18);
    transform: rotate(-13deg);
}

.open-board { text-align: left; transform: rotate(1.4deg); }
.open-board .vellum-note { max-width: 600px; }
.final-notch {
    right: 16%;
    bottom: 24%;
    width: 330px;
    height: 214px;
}
.floating-open-piece {
    position: absolute;
    right: 19%;
    bottom: 39%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 235px;
    height: 175px;
    color: var(--assembly-ink);
    background: rgba(72,199,184,.82);
    font-family: "Newsreader", serif;
    font-size: 42px;
    line-height: .9;
    font-weight: 760;
    clip-path: polygon(5% 0, 55% 5%, 70% 25%, 100% 19%, 91% 88%, 46% 100%, 31% 77%, 0 82%);
    animation: hoverOpen 4.4s ease-in-out infinite;
}
.closing-stamp { left: 9%; bottom: 10%; color: var(--brass-stamp); font-size: 12px; }

.interpretation-panel {
    position: fixed;
    left: 28px;
    bottom: 26px;
    z-index: 25;
    width: min(430px, calc(100vw - 130px));
    min-height: 74px;
    padding: 16px 18px;
    color: rgba(7,17,31,.92);
    background: rgba(233,224,200,.9);
    border: 1px solid rgba(184,138,58,.56);
    box-shadow: 12px 14px 0 rgba(123,115,95,.24);
    font-family: "Fraunces", serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.3;
    clip-path: polygon(0 0, 96% 0, 100% 24%, 98% 100%, 8% 93%);
    transform: rotate(-1.5deg);
    transition: opacity .35s ease, transform .35s ease;
}
.interpretation-panel.is-active { transform: rotate(0deg) translateY(-8px); }

@keyframes dustDrift { to { background-position: 137px 173px, -211px 199px, 307px -251px; } }
@keyframes titleSettle { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@keyframes drawBorder { to { stroke-dashoffset: 0; } }
@keyframes seamTry { 0%, 100% { stroke-dashoffset: 680; opacity: .25; } 45%, 58% { stroke-dashoffset: 0; opacity: 1; } 70% { stroke-dashoffset: -80; opacity: .35; } }
@keyframes tremble { 0%, 100% { transform: translate(0,0); } 30% { transform: translate(1px,-1px); } 62% { transform: translate(-1px,1px); } }
@keyframes stampPress { 0% { opacity: 0; transform: rotate(-18deg) scale(1.4); } 55% { opacity: .95; transform: rotate(-18deg) scale(.88); } 100% { opacity: .48; transform: rotate(-18deg) scale(1); } }
@keyframes notchPulse { 0%, 100% { box-shadow: 0 0 28px rgba(72,199,184,.18), inset 0 0 28px rgba(72,199,184,.08); } 50% { box-shadow: 0 0 62px rgba(72,199,184,.42), inset 0 0 45px rgba(72,199,184,.18); } }
@keyframes acetateShift { 0%, 100% { transform: translate(0,0) rotate(0deg); opacity: .86; } 50% { transform: translate(9px,-7px) rotate(1deg); opacity: .68; } }
@keyframes bridgeTremble { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(.6deg); } }
@keyframes hoverOpen { 0%,100% { transform: translateY(0) rotate(-6deg); box-shadow: 0 0 28px rgba(72,199,184,.26); } 50% { transform: translateY(-26px) rotate(4deg); box-shadow: 0 0 70px rgba(72,199,184,.48); } }

@media (max-width: 900px) {
    .agenda-tray { right: 8px; }
    .station { padding: 9vw 72px 9vw 5vw; }
    .tilted-table, .station-board { width: 100%; min-height: 82vh; }
    .title-fragments { flex-wrap: wrap; top: 17%; }
    .title-piece { font-size: clamp(3.4rem, 18vw, 7rem); }
    .claim-honeycomb, .motive-wheel, .district-map, .amendment-stack { position: relative; right: auto; bottom: auto; top: auto; width: 100%; margin-top: 28px; }
    .motive-wheel { transform: scale(.76); transform-origin: left top; margin-bottom: -80px; }
    .registration-track { position: relative; inset: auto; margin-top: 45px; }
    .coalition-piece { width: 34%; font-size: 11px; }
    .coalition-piece.left { left: 0; }
    .coalition-piece.bridge { left: 33%; }
    .coalition-piece.right { right: 0; }
    .final-notch, .floating-open-piece { right: 9%; }
}
