/* =====================================================
   MECHANIC PARTY — A Mechanical Congress
   Eight tilted plates, one vertical spine.
   ===================================================== */

/* ------------- TOKENS / PALETTE ------------- */
:root {
    --paper-base: #f3e6c8;       /* primary background — honey-cream */
    --deep-honey: #c79a3e;       /* accent fields, plate edges */
    --burnt-amber: #8a4f17;      /* headline ink, dominant text */
    --iron-black: #1a1411;       /* spine, slab numerals */
    --linen-highlight: #fbf3df;  /* plate sub-fields, callout boxes */
    --rust-ink: #b8401a;         /* the wedge — used 3x site-wide */
    --ochre-mid: #a87832;        /* secondary annotations */
    --smoke-grey: #5a4a3c;       /* marginalia, technical labels */

    --spine-x: 38.2%;            /* golden-section gridline */

    --font-display: "Roboto Slab", "Roboto", "IBM Plex Serif", Georgia, serif;
    --font-sub: "Zilla Slab", "Roboto Slab", "IBM Plex Serif", serif;
    --font-body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "Inter", ui-monospace, SFMono-Regular, Menlo, monospace;

    --easing-slow: cubic-bezier(0.22, 1, 0.36, 1);
    --easing-press: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--paper-base);
    color: var(--iron-black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    position: relative;
    min-height: 100vh;
    padding-right: 64px; /* leave room for marginalia column */
}

/* Inline SVG defs are positioned off-screen via inline style */
.svg-defs { width: 0; height: 0; pointer-events: none; }

/* ------------- PAPER OVERLAY (coarse noise) ------------- */
.paper-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: multiply;
    opacity: 0.42;
    background-image:
        radial-gradient(ellipse at 13% 18%, rgba(138, 79, 23, 0.10) 0%, transparent 42%),
        radial-gradient(ellipse at 82% 71%, rgba(168, 120, 50, 0.12) 0%, transparent 48%),
        radial-gradient(ellipse at 51% 92%, rgba(90, 74, 60, 0.08) 0%, transparent 38%);
    filter: url(#paper-grain-coarse);
}

/* additional fine grain layered as a second background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background-image:
        repeating-radial-gradient(circle at 7% 23%, rgba(26, 20, 17, 0.012) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 73% 41%, rgba(138, 79, 23, 0.010) 0 1px, transparent 1px 4px),
        repeating-radial-gradient(circle at 41% 81%, rgba(199, 154, 62, 0.014) 0 1px, transparent 1px 2px);
    mix-blend-mode: multiply;
    opacity: 0.7;
}

/* ------------- THE SPINE — single 1px honey-ink rule ------------- */
.spine {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--spine-x);
    width: 1px;
    background: var(--iron-black);
    opacity: 0.62;
    z-index: 4;
    pointer-events: none;
}

/* ------------- MARGINALIA GLOSS COLUMN ------------- */
.marginalia {
    position: fixed;
    top: 0;
    right: 0;
    width: 64px;
    height: 100vh;
    background: linear-gradient(to left, rgba(199, 154, 62, 0.06), transparent);
    border-left: 1px solid rgba(26, 20, 17, 0.18);
    z-index: 9;
    overflow: hidden;
    pointer-events: none;
}

.marginalia-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transform-origin: center;
    padding: 80px 0 80px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--smoke-grey);
    text-transform: uppercase;
    line-height: 64px;
    will-change: transform;
}

.marginalia-track .gloss { display: inline-block; padding: 0 10px; }
.marginalia-track .gloss-sep {
    display: inline-block;
    color: var(--deep-honey);
    font-weight: 700;
    padding: 0 12px;
    transform: rotate(90deg);
    font-size: 13px;
}

/* ------------- PLATE — base ------------- */
.plate {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: -6vh;       /* overlap with previous */
    padding: 14vh 8vw 16vh;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--paper-base);
}

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

/* asymmetric clip-path polygons — non-symmetrical four-point coords.
   Each plate has a unique parallelogram silhouette. */
.plate-1 { clip-path: polygon(0% 0%, 100% 0%, 100% 92%, 0% 100%); background: var(--paper-base); }
.plate-2 { clip-path: polygon(0% 6%, 100% 0%, 100% 96%, 0% 100%); background: var(--linen-highlight); }
.plate-3 { clip-path: polygon(0% 4%, 100% 12%, 100% 96%, 0% 88%); background: var(--paper-base); }
.plate-4 { clip-path: polygon(0% 8%, 100% 0%, 100% 100%, 0% 92%); background: var(--linen-highlight); }
.plate-5 { clip-path: polygon(0% 0%, 100% 14%, 100% 88%, 0% 96%); background: var(--paper-base); }
.plate-6 { clip-path: polygon(0% 8%, 100% 2%, 100% 100%, 0% 92%); background: var(--linen-highlight); }
.plate-7 { clip-path: polygon(0% 4%, 100% 12%, 100% 96%, 0% 100%); background: var(--paper-base); }
.plate-8 { clip-path: polygon(0% 8%, 100% 8%, 100% 100%, 0% 100%); background: var(--linen-highlight); }

/* The grain layer overlay per plate (inside the clip) */
.plate-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    mix-blend-mode: multiply;
    background-image:
        repeating-linear-gradient(
            12deg,
            rgba(168, 120, 50, 0.12) 0px,
            transparent 1px,
            transparent 3px,
            rgba(138, 79, 23, 0.08) 4px
        ),
        radial-gradient(ellipse at 23% 28%, rgba(90, 74, 60, 0.18) 0%, transparent 36%),
        radial-gradient(ellipse at 78% 64%, rgba(168, 120, 50, 0.14) 0%, transparent 42%);
}
.plate-grain.heavy {
    opacity: 0.35;
}

/* ------------- PLATE STAMP (header label) ------------- */
.plate-stamp {
    position: relative;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--smoke-grey);
    text-transform: uppercase;
    margin-bottom: 4vh;
    padding-left: 4px;
    border-bottom: 1px solid rgba(26, 20, 17, 0.22);
    padding-bottom: 6px;
    width: max-content;
    max-width: 92%;
}

/* ------------- PLATE NUMERAL — hero typography ------------- */
.plate-numeral {
    position: absolute;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: 0.78;
    letter-spacing: -0.04em;
    color: var(--iron-black);
    font-variant-numeric: lining-nums tabular-nums;
    transform-origin: center;
    transition: transform 800ms var(--easing-slow);
    will-change: transform;
    user-select: none;
}

.plate-1 .plate-numeral { left: calc(var(--spine-x) - 3vw); top: 14vh; }
.plate-2 .plate-numeral { left: calc(var(--spine-x) - 6vw); top: 12vh; }
.plate-3 .plate-numeral { left: calc(var(--spine-x) + 2vw); top: 10vh; color: var(--burnt-amber); }
.plate-4 .plate-numeral { left: calc(var(--spine-x) - 4vw); top: 8vh; }
.plate-5 .plate-numeral { left: calc(var(--spine-x) - 5vw); top: 12vh; }
.plate-6 .plate-numeral { left: calc(var(--spine-x) - 6vw); top: 8vh; }
.plate-7 .plate-numeral { left: calc(var(--spine-x) - 4vw); top: 14vh; }
.plate-8 .plate-numeral {
    position: relative;
    left: auto;
    top: auto;
    margin-left: calc(var(--spine-x) - 8vw);
    margin-bottom: 1vh;
    display: block;
    color: var(--burnt-amber);
}

.rust-numeral { color: var(--burnt-amber); }

/* ------------- PLATE HEADLINE ------------- */
.plate-headline {
    position: relative;
    z-index: 3;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.6rem, 5.4vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.018em;
    color: var(--burnt-amber);
    max-width: 18ch;
    margin-top: 18vh;
    margin-left: calc(var(--spine-x) + 2vw);
}

.plate-headline em {
    color: var(--iron-black);
    font-style: italic;
    font-weight: 900;
}

.plate-headline.tight { margin-top: 14vh; }
.plate-headline.polemic { margin-left: 4vw; max-width: 14ch; margin-top: 12vh; }
.plate-headline.straight {
    text-align: left;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--iron-black);
    margin-left: calc(var(--spine-x) - 8vw);
    margin-top: 4vh;
    max-width: 22ch;
}

/* the one Rust-Ink emphasis span on plate III */
.plate-headline em.rust { color: var(--rust-ink); font-style: italic; }

/* ------------- BODY BLOCK ------------- */
.body-block {
    position: relative;
    z-index: 3;
    max-width: 38ch;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.62;
    color: var(--iron-black);
}

.body-block p { margin-bottom: 1em; }
.body-block .lead {
    font-family: var(--font-sub);
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--burnt-amber);
}
.body-block em {
    font-style: italic;
    font-weight: 500;
    color: var(--burnt-amber);
}
.body-block .footnote-line {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--smoke-grey);
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(26, 20, 17, 0.18);
    padding-top: 6px;
    margin-top: 1.4em;
}
.body-block .rust-emph {
    color: var(--rust-ink);
    font-weight: 500;
    font-style: italic;
}
.body-block.body-upper-right {
    margin-left: auto;
    margin-right: 4vw;
    margin-top: -6vh;
}
.body-block.body-lower-left {
    margin-top: 8vh;
    margin-left: 6vw;
}
.body-block.compact {
    margin-top: 4vh;
    margin-left: 4vw;
    max-width: 34ch;
}

/* ============================================================
   PLATE I — MANIFEST
   ============================================================ */
.plate-1 {
    min-height: 100vh;
    padding-top: 18vh;
}

.manifest-mark {
    position: relative;
    z-index: 3;
    margin-top: 6vh;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: normal;
    font-size: clamp(4.5rem, 18vw, 17rem);
    line-height: 0.84;
    letter-spacing: -0.045em;
    color: var(--iron-black);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.18em;
}
.wordmark .word { display: inline-block; }
.wordmark .diamond {
    color: var(--rust-ink); /* USE 1/3 of rust-ink — diamond on wordmark */
    font-size: 0.62em;
    transform: translateY(-0.08em);
    font-weight: 400;
}

.manifest-meta {
    margin-top: 2.4vh;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--smoke-grey);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-left: 4px;
    border-top: 1px solid rgba(26, 20, 17, 0.4);
    padding-top: 12px;
    max-width: 78%;
}
.manifest-meta .meta-sep { color: var(--deep-honey); font-weight: 700; }

/* The Rosette — brand mark, top-right of plate I */
.rosette-wrap {
    position: absolute;
    top: 8vh;
    right: 6vw;
    width: clamp(160px, 22vw, 280px);
    height: clamp(160px, 22vw, 280px);
    z-index: 3;
    will-change: transform;
}
.rosette-wrap svg { display: block; width: 100%; height: 100%; }
.rosette-caption {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--smoke-grey);
    text-align: center;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    bottom: 6vh;
    left: calc(var(--spine-x) + 2vw);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--burnt-amber);
}
.scroll-cue .cue-line { font-size: 18px; animation: cue-bob 2.8s ease-in-out infinite; }
@keyframes cue-bob {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.55; }
}

/* ============================================================
   PLATE III — RUST WEDGE
   ============================================================ */
.wedge-wrap {
    position: absolute;
    z-index: 1;
    width: 32vw;
    min-width: 280px;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    top: 18vh;
    right: -3vw;
    transform: rotate(28deg);
    transform-origin: center;
    pointer-events: none;
}
.wedge-wrap svg { display: block; width: 100%; height: 100%; }
#wedgePoly {
    transform-origin: center;
    transform: scale(0.05);
    opacity: 0;
    transition: transform 1.2s var(--easing-slow), opacity 0.6s ease-in;
}
.plate-3.in-view #wedgePoly {
    transform: scale(1);
    opacity: 1;
}

/* ============================================================
   PLATE IV — CAM SPECIMEN
   ============================================================ */
.specimen {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.specimen-cam {
    margin: 6vh auto 4vh;
    width: clamp(420px, 56vw, 720px);
    max-width: 92%;
    text-align: center;
    filter: url(#specimen-grain) drop-shadow(0 1px 0 rgba(26,20,17,0.12));
}

.specimen-caption {
    margin-top: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-style: normal;
    font-variant: small-caps;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--smoke-grey);
    text-transform: uppercase;
    text-align: center;
}
.specimen-caption.big { font-size: 13px; letter-spacing: 0.22em; }

/* Linkage specimen — drifts in lower-right */
.specimen-linkage {
    position: absolute;
    z-index: 2;
    bottom: 12vh;
    right: 5vw;
    width: clamp(220px, 28vw, 360px);
    will-change: transform;
}
.specimen-linkage svg { display: block; width: 100%; height: auto; }

/* Pulley specimen — drifts on plate V */
.specimen-pulley {
    position: absolute;
    z-index: 2;
    bottom: 14vh;
    right: 6vw;
    width: clamp(140px, 18vw, 220px);
    will-change: transform;
}
.specimen-pulley svg { display: block; width: 100%; height: auto; }

/* Ratchet specimen — plate VI */
.specimen-ratchet {
    position: absolute;
    z-index: 2;
    top: 32vh;
    right: 6vw;
    width: clamp(180px, 22vw, 280px);
    will-change: transform;
}
.specimen-ratchet svg { display: block; width: 100%; height: auto; }
.specimen-ratchet #ratchetWheel {
    transform-origin: 100px 100px;
    animation: ratchet-tick 8s steps(12) infinite;
}
@keyframes ratchet-tick {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hexagonal cluster — plate VII */
.specimen-hex {
    margin: 6vh auto;
    width: clamp(380px, 50vw, 560px);
    max-width: 92%;
    text-align: center;
    filter: url(#specimen-grain);
}
.specimen-hex svg { display: block; width: 100%; height: auto; }

/* ============================================================
   PLATE V — GENEALOGY LIST
   ============================================================ */
.genealogy-list {
    list-style: none;
    margin: 6vh 0 0 calc(var(--spine-x) + 2vw);
    max-width: 50ch;
    position: relative;
    z-index: 3;
    counter-reset: gen;
}

.genealogy-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas:
        "num name"
        "num note";
    gap: 4px 16px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(26, 20, 17, 0.25);
    align-items: baseline;
}
.g-num {
    grid-area: num;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--burnt-amber);
    letter-spacing: -0.01em;
    line-height: 1;
}
.g-name {
    grid-area: name;
    font-family: var(--font-sub);
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--iron-black);
    line-height: 1.1;
}
.g-note {
    grid-area: note;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--smoke-grey);
    line-height: 1.45;
}

/* ============================================================
   PLATE VI — METHOD MICRO-PLATES
   ============================================================ */
.micro-plate-grid {
    margin-top: 6vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 24px;
    margin-left: 4vw;
    margin-right: 4vw;
    position: relative;
    z-index: 3;
}

.micro-plate {
    background: var(--paper-base);
    border: 1px solid rgba(26, 20, 17, 0.25);
    padding: 18px 18px 22px;
    transform: rotate(var(--mp-tilt, 0));
    box-shadow: 4px 6px 0 rgba(26, 20, 17, 0.08);
    position: relative;
    transition: transform 600ms var(--easing-slow);
    clip-path: polygon(0% 4%, 100% 0%, 100% 96%, 0% 100%);
}
.micro-plate:hover {
    transform: rotate(calc(var(--mp-tilt, 0) - 1deg)) translateY(-2px);
}
.micro-plate::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--deep-honey);
}
.mp-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--burnt-amber);
    line-height: 1;
    letter-spacing: -0.02em;
}
.mp-title {
    font-family: var(--font-sub);
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--iron-black);
    line-height: 1.15;
    margin: 6px 0 8px;
}
.micro-plate p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--smoke-grey);
}

/* ============================================================
   PLATE VIII — SIGNATURE
   ============================================================ */
.plate-orthogonal {
    background: var(--linen-highlight);
}

.signature-block {
    position: relative;
    z-index: 3;
    margin: 4vh 0 0 calc(var(--spine-x) - 8vw);
    max-width: 56ch;
}

.sig-prose {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.62;
    color: var(--iron-black);
    margin-bottom: 1em;
}
.sig-prose em {
    font-style: italic;
    font-weight: 500;
    color: var(--burnt-amber);
}

.sig-line {
    margin: 4vh 0 3vh;
    padding-top: 3vh;
}
.sig-rule {
    height: 1px;
    width: 100%;
    background: var(--iron-black);
    margin-bottom: 14px;
}
.sig-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--iron-black);
    letter-spacing: -0.01em;
}
.sig-meta {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--smoke-grey);
    text-transform: uppercase;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.sig-meta .dot { color: var(--deep-honey); }

.colophon {
    margin-top: 3vh;
    padding: 18px 0;
    border-top: 1px solid rgba(26, 20, 17, 0.4);
    border-bottom: 1px solid rgba(26, 20, 17, 0.4);
}
.colophon-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--smoke-grey);
}
.col-label {
    color: var(--burnt-amber);
    font-weight: 700;
}
.col-value { color: var(--iron-black); font-weight: 500; }

.end-mark {
    margin-top: 4vh;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--smoke-grey);
}
.end-glyph {
    font-size: 18px;
    color: var(--iron-black);
}

/* ============================================================
   REGISTRATION MARKS (printer's crosses)
   ============================================================ */
.reg-mark {
    position: absolute;
    z-index: 4;
    opacity: 0.46;
    pointer-events: none;
}
.reg-tl { top: 18px; left: 18px; }
.reg-tr { top: 18px; right: 80px; } /* 64 marginalia + 16 inset */
.reg-bl { bottom: 18px; left: 18px; }
.reg-br { bottom: 18px; right: 80px; }

/* ============================================================
   COMPASS MARKER (rotates backward through cardinals)
   ============================================================ */
.compass {
    position: absolute;
    z-index: 4;
    opacity: 0.78;
    pointer-events: none;
}

.plate-1 .compass { bottom: 18vh; right: 8vw; }
.plate-2 .compass { top: 14vh; left: 6vw; }
.plate-3 .compass { bottom: 12vh; left: 5vw; }
.plate-4 .compass { top: 18vh; right: 8vw; }
.plate-5 .compass { top: 22vh; left: 6vw; }
.plate-6 .compass { bottom: 16vh; left: 6vw; }
.plate-7 .compass { top: 12vh; right: 12vw; }
.plate-8 .compass { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    body { padding-right: 48px; }
    .marginalia { width: 48px; }
    .marginalia-track { font-size: 9px; line-height: 48px; }
    .reg-tr, .reg-br { right: 60px; }

    .plate { padding: 12vh 6vw 14vh; }
    .plate-headline { margin-left: calc(var(--spine-x) + 1vw); max-width: 14ch; }
    .body-block.body-upper-right { margin-right: 2vw; margin-top: 4vh; }
    .body-block.body-lower-left { margin-left: 2vw; }
    .specimen-linkage, .specimen-pulley, .specimen-ratchet {
        position: relative;
        margin: 6vh auto;
        right: auto; left: auto; bottom: auto; top: auto;
    }
    .rosette-wrap { width: 160px; height: 160px; right: 4vw; top: 4vh; }
    .signature-block { margin-left: 2vw; }
    .colophon-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
    body { padding-right: 36px; font-size: 15px; }
    .marginalia { width: 36px; }
    .marginalia-track { font-size: 8px; line-height: 36px; }
    .reg-tr, .reg-br { right: 50px; }

    .wordmark { font-size: clamp(3rem, 14vw, 8rem); }
    .plate-headline { font-size: clamp(2rem, 7vw, 3.5rem); margin-left: 4vw; }
    .plate-numeral { font-size: clamp(6rem, 28vw, 12rem); }

    .plate-1 .plate-numeral,
    .plate-2 .plate-numeral,
    .plate-3 .plate-numeral,
    .plate-4 .plate-numeral,
    .plate-5 .plate-numeral,
    .plate-6 .plate-numeral,
    .plate-7 .plate-numeral { left: 4vw; }

    .body-block { max-width: 100%; }
    .genealogy-list { margin-left: 4vw; }
    .genealogy-list li { grid-template-columns: 44px 1fr; }
    .micro-plate-grid { grid-template-columns: 1fr; margin-left: 2vw; margin-right: 2vw; }
    .scroll-cue { left: 4vw; }

    .spine { left: 38.2%; }
}

/* ============================================================
   REDUCED MOTION — freeze all counter-animations,
   preserve diagonal layout
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .marginalia-track { transform: rotate(180deg) !important; }
    .rosette-wrap { transform: none !important; }
    .specimen-ratchet #ratchetWheel { animation: none; }
    .specimen-linkage, .specimen-pulley, .specimen-ratchet { transform: none !important; }
    .plate-numeral { transition: none; }
    [data-compass] svg { transform: none !important; }
    .scroll-cue .cue-line { animation: none; }
    #wedgePoly { transform: scale(1); opacity: 1; }
}
