/* ============================================================
   a6c.quest — An Atlas of Longings, Vol. I
   Tooled-leather atlas, full-bleed, fade-reveal-only.
   Palette: #7a2e1f #1f5a3a #1f3a7a #b08d3c #2a1810 #f3e6c8
            #5a3821 #6b2a1a
   ============================================================ */

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

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

body {
    font-family: "Sorts Mill Goudy", "Cormorant Garamond", Georgia, serif;
    color: #2a1810;
    background-color: #7a2e1f;
    line-height: 1.62;
    font-size: 17px;
    /* Procedural leather background built from layered gradients */
    background-image:
        /* edge vignette */
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(26,14,8,0.42) 100%),
        /* large mottling */
        radial-gradient(circle at 18% 22%, rgba(42,24,16,0.35) 0%, transparent 38%),
        radial-gradient(circle at 82% 14%, rgba(90,56,33,0.32) 0%, transparent 40%),
        radial-gradient(circle at 28% 78%, rgba(42,24,16,0.30) 0%, transparent 42%),
        radial-gradient(circle at 72% 82%, rgba(90,56,33,0.30) 0%, transparent 38%),
        /* fine grain via repeating gradients */
        repeating-radial-gradient(circle at 17% 33%, rgba(42,24,16,0.06) 0px, transparent 2px),
        repeating-radial-gradient(circle at 73% 67%, rgba(255,225,180,0.04) 0px, transparent 2px),
        /* leather base */
        linear-gradient(180deg, #7a2e1f 0%, #6b2a1a 100%);
    background-attachment: fixed;
    background-size: cover, cover, cover, cover, cover, 4px 4px, 4px 4px, cover;
    cursor: none;
}

/* Procedural noise overlay using SVG data URI */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0.55 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    mix-blend-mode: multiply;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.09  0 0 0 0 0.04  0 0 0 0.4 0'/></filter><rect width='800' height='800' filter='url(%23m)'/></svg>");
    opacity: 0.45;
    mix-blend-mode: multiply;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
   OPENING TITLE OVERLAY
   ============================================================ */
.opening-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0604;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 1400ms ease, visibility 0s linear 1400ms;
}

.opening-overlay.lit {
    background: transparent;
}

.opening-overlay.faded {
    opacity: 0;
    visibility: hidden;
}

.opening-inner {
    text-align: center;
    color: #b08d3c;
    opacity: 0;
    transition: opacity 1600ms ease 600ms, filter 1600ms ease 600ms;
    filter: blur(12px);
    padding: 0 6vw;
}

.opening-overlay.lit .opening-inner {
    opacity: 1;
    filter: blur(0);
}

.opening-mark { margin-bottom: 1.5rem; opacity: 0.85; }

.opening-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(3rem, 7vw, 6.25rem);
    letter-spacing: -0.015em;
    line-height: 0.95;
    color: #b08d3c;
    text-shadow: 0 0 24px rgba(176, 141, 60, 0.22);
}

.opening-rule {
    width: clamp(220px, 30vw, 400px);
    margin: 1.4rem auto 1.6rem;
    opacity: 0.75;
}
.opening-rule svg { width: 100%; height: 14px; display: block; }

.opening-sub {
    font-family: "IM Fell English SC", "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    letter-spacing: 0.12em;
    color: #b08d3c;
    margin-bottom: 1.5rem;
}

.opening-credit {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #b08d3c;
    opacity: 0.78;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================================
   RIBBON NAVIGATION
   ============================================================ */
.ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 56px;
    height: 100vh;
    z-index: 100;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 8%, transparent 92%, rgba(0,0,0,0.25) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.18) 0%, transparent 12%, transparent 88%, rgba(0,0,0,0.18) 100%),
        linear-gradient(180deg, #1f5a3a 0%, #174529 50%, #1f5a3a 100%);
    border-right: 1px solid rgba(176, 141, 60, 0.45);
    border-left: 1px solid rgba(0,0,0,0.4);
    box-shadow:
        inset 0 0 16px rgba(0,0,0,0.35),
        2px 0 8px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0;
}

.ribbon-stitch-top, .ribbon-stitch-bottom {
    width: 80%;
    height: 0;
    border-top: 1px dashed #b08d3c;
    opacity: 0.7;
    margin: 0;
}
.ribbon-stitch-top { margin-bottom: 16px; }
.ribbon-stitch-bottom { margin-top: 16px; }

.ribbon-list {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.ribbon-item {
    cursor: none;
    height: 11vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: filter 400ms ease;
}

.ribbon-label {
    font-family: "IM Fell English SC", "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #b08d3c;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    opacity: 0.78;
    transition: opacity 400ms ease, color 400ms ease, text-shadow 400ms ease;
    text-shadow: 0 0 0 transparent;
}

.ribbon-item:hover .ribbon-label {
    opacity: 1;
    color: #f3e6c8;
    text-shadow: 0 0 8px rgba(243, 230, 200, 0.4);
}

.ribbon-item.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8%;
    bottom: 8%;
    width: 0;
    border-left: 1.5px dashed #b08d3c;
    opacity: 1;
    animation: stitch-march 4s linear infinite;
}

@keyframes stitch-march {
    0%   { background-position: 0 0; }
    100% { background-position: 0 14px; }
}

.ribbon-item.active .ribbon-label {
    opacity: 1;
    color: #f3e6c8;
}

/* ============================================================
   ATLAS BODY
   ============================================================ */
.atlas {
    position: relative;
    z-index: 5;
    margin-left: 56px;
    width: calc(100vw - 56px);
}

/* ============================================================
   PLATE
   ============================================================ */
.plate {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 56px 48px;
    opacity: 0;
    filter: blur(18px) saturate(0.4);
    transition: opacity 2200ms cubic-bezier(0.22, 0.61, 0.36, 1),
                filter   2200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.plate.is-revealed {
    opacity: 1;
    filter: blur(0) saturate(1);
}

.plate-frame {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 112px);
    border: 3px solid #2a1810;
    outline: 1px solid #2a1810;
    outline-offset: 6px;
    box-shadow:
        inset 0 0 0 1px rgba(176, 141, 60, 0.18),
        inset 0 0 60px rgba(26, 14, 8, 0.45);
    padding: 64px 72px 80px 72px;
    background-image:
        /* leaf-and-vine band between borders, faint */
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 18px,
            rgba(176, 141, 60, 0.05) 18px,
            rgba(176, 141, 60, 0.05) 20px
        );
    overflow: hidden;
}

/* Plate frame inner ornament — leaf/vine band */
.plate-frame::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(176, 141, 60, 0.25);
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'><g fill='none' stroke='%23b08d3c' stroke-width='0.5' opacity='0.4'><path d='M0,20 Q20,10 40,20 T80,20'/><ellipse cx='14' cy='15' rx='4' ry='2' transform='rotate(-20 14 15)' fill='%231f5a3a' fill-opacity='0.3'/><ellipse cx='30' cy='25' rx='4' ry='2' transform='rotate(20 30 25)' fill='%231f5a3a' fill-opacity='0.3'/><ellipse cx='50' cy='15' rx='4' ry='2' transform='rotate(-20 50 15)' fill='%231f5a3a' fill-opacity='0.3'/><ellipse cx='66' cy='25' rx='4' ry='2' transform='rotate(20 66 25)' fill='%231f5a3a' fill-opacity='0.3'/></g></svg>");
    background-repeat: repeat-x;
    background-position: top, bottom;
    background-size: 80px 40px;
}

/* Faint scratches across plate */
.plate-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'><g fill='none' stroke='%232a1810' stroke-linecap='round' opacity='0.14'><path d='M40,140 Q400,160 800,150 Q1100,148 1180,156' stroke-width='0.6' stroke-dasharray='2 6 1 12 3 8'/><path d='M30,420 Q300,408 700,430 Q1000,440 1170,432' stroke-width='0.5' stroke-dasharray='1 9 2 14 1 7'/><path d='M50,680 Q400,672 900,690 Q1080,700 1180,696' stroke-width='0.7' stroke-dasharray='3 11 1 6 2 9'/></g></svg>");
    background-size: cover;
}

/* Slight off-axis tilt of frame to feel hand-laid */
.plate:nth-child(odd) .plate-frame  { transform: rotate(-0.18deg); }
.plate:nth-child(even) .plate-frame { transform: rotate(0.22deg); }

/* Corners */
.corner {
    position: absolute;
    width: 70px; height: 70px;
    z-index: 4;
    pointer-events: none;
}
.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; }
.corner-bl { bottom: 8px; left: 8px; }
.corner-br { bottom: 8px; right: 8px; }

/* Banderole (top) */
.banderole {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 14px 24px;
    margin: 0 0 32px 0;
    color: #b08d3c;
    font-family: "IM Fell English SC", "Cormorant Garamond", serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    border-top: 1px solid rgba(176,141,60,0.55);
    border-bottom: 1px solid rgba(176,141,60,0.55);
    background:
        linear-gradient(90deg, transparent 0%, rgba(176,141,60,0.07) 50%, transparent 100%);
}

.banderole-mid {
    flex: 1;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: none;
    color: #b08d3c;
    text-shadow: 0 0 12px rgba(176,141,60,0.18);
}

.banderole-side {
    flex: 0 0 auto;
}

/* Plate grid: 62/38 */
.plate-grid {
    display: grid;
    grid-template-columns: 62fr 38fr;
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 3;
}

/* Per-plate hue accents (verdigris/lapis fields) */
.plate#plate-2 .track-margin { background: linear-gradient(180deg, rgba(31,90,58,0.10), rgba(31,90,58,0.04)); }
.plate#plate-3 .track-margin { background: linear-gradient(180deg, rgba(31,58,122,0.10), rgba(31,58,122,0.04)); }
.plate#plate-4 .track-margin { background: linear-gradient(180deg, rgba(31,58,122,0.12), rgba(31,90,58,0.04)); }
.plate#plate-5 .track-margin { background: linear-gradient(180deg, rgba(31,90,58,0.12), rgba(31,58,122,0.04)); }
.plate#plate-6 .track-margin { background: linear-gradient(180deg, rgba(107,42,26,0.10), rgba(31,90,58,0.04)); }
.plate#plate-7 .track-margin { background: linear-gradient(180deg, rgba(176,141,60,0.10), rgba(31,90,58,0.04)); }
.plate#plate-1 .track-margin { background: linear-gradient(180deg, rgba(31,90,58,0.10), rgba(176,141,60,0.04)); }

/* ============================================================
   MAIN TRACK
   ============================================================ */
.track-main {
    position: relative;
    padding-right: 24px;
    transform: rotate(-0.12deg);
}

.cartouche-svg {
    position: absolute;
    width: 130px; height: auto;
    top: -12px;
    right: 12px;
    opacity: 0.96;
    filter: drop-shadow(0 4px 10px rgba(26,14,8,0.45));
    z-index: 2;
}

.cartouche-numeral {
    position: absolute;
    top: 80px;
    right: 56px;
    z-index: 3;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 38px;
    color: #1f3a7a;
    text-shadow: 0 1px 0 #b08d3c;
}

.plate-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(3rem, 6.4vw, 6.25rem);
    line-height: 0.95;
    letter-spacing: -0.015em;
    color: #b08d3c;
    text-shadow:
        0 1px 0 rgba(42,24,16,0.85),
        0 0 16px rgba(176,141,60,0.18);
    margin-bottom: 1.6rem;
    max-width: 80%;
}

.epigraph {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: #f3e6c8;
    line-height: 1.4;
    margin-bottom: 2.2rem;
    padding-left: 24px;
    border-left: 1px solid rgba(176,141,60,0.5);
    max-width: 88%;
}

.epigraph-attr {
    font-family: "IM Fell English SC", serif;
    font-style: normal;
    letter-spacing: 0.1em;
    font-size: 0.78em;
    color: #b08d3c;
    text-transform: uppercase;
}

.body-copy {
    font-family: "Sorts Mill Goudy", Georgia, serif;
    font-size: 17px;
    line-height: 1.62;
    color: #f3e6c8;
    margin-bottom: 1.6rem;
    max-width: 60ch;
    text-align: justify;
    hyphens: auto;
}

.body-copy em { color: #f3e6c8; font-style: italic; }
.body-copy sup.footnote { color: #b08d3c; font-weight: 700; font-size: 0.7em; padding: 0 0.15em; }

.dropcap-wrap {
    position: relative;
    float: left;
    width: 92px;
    height: 92px;
    margin: 6px 16px 0 0;
    shape-outside: circle(46px at 46px 46px);
}

.dropcap-circle {
    position: absolute;
    inset: 0;
    width: 92px; height: 92px;
}

.dropcap-circle .dropcap-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1800ms ease-out;
}

.plate.is-revealed .dropcap-circle .dropcap-path {
    stroke-dashoffset: 0;
}

.dropcap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    font-family: "UnifrakturMaguntia", "Cormorant Garamond", serif;
    font-size: 64px;
    line-height: 1;
    color: #b08d3c;
    text-shadow: 0 0 12px rgba(176,141,60,0.25);
    pointer-events: none;
}

.body-text { display: block; }

.hand-script {
    font-family: "Pinyon Script", "Cormorant Garamond", cursive;
    font-size: 22px;
    color: #6b2a1a;
    line-height: 1.4;
    margin: 1.6rem 0;
    transform: rotate(-1.2deg);
    padding-left: 32px;
    opacity: 0.92;
    text-shadow: 0 1px 0 rgba(243, 230, 200, 0.06);
}

/* Tipped-in specimen plate */
.specimen {
    position: absolute;
    width: 110px;
    height: auto;
    bottom: 24px;
    right: -28px;
    opacity: 0.78;
    transform: rotate(-8deg);
    padding: 14px 12px 22px 12px;
    background: linear-gradient(180deg, #f3e6c8 0%, #e6d3a8 100%);
    border: 0.5px solid rgba(42,24,16,0.4);
    box-shadow:
        0 6px 14px rgba(26,14,8,0.5),
        0 1px 0 rgba(255,255,255,0.18) inset;
    z-index: 4;
}
.specimen::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px dashed rgba(42,24,16,0.5);
    pointer-events: none;
}
.specimen.specimen-fern { right: -18px; bottom: 36px; transform: rotate(6deg); width: 70px; }
.specimen.specimen-fig  { right: -28px; bottom: 18px; transform: rotate(-12deg); width: 130px; }
.specimen.specimen-ivy  { right: -22px; bottom: 30px; transform: rotate(7deg);  width: 130px; }
.specimen.specimen-oak  { right: -18px; bottom: 24px; transform: rotate(-9deg); width: 96px; }
.specimen.specimen-ginkgo { right: -22px; bottom: 22px; transform: rotate(5deg); width: 124px; }
.specimen.specimen-laurel { right: -16px; bottom: 22px; transform: rotate(-6deg); width: 78px; }
.specimen.specimen-laurel-2 { right: -16px; bottom: 22px; transform: rotate(8deg); width: 84px; }

/* ============================================================
   MARGINALIA TRACK
   ============================================================ */
.track-margin {
    position: relative;
    padding: 24px 20px;
    border-left: 1px solid rgba(176,141,60,0.4);
    border-right: 1px solid rgba(176,141,60,0.2);
    transform: rotate(0.18deg);
}

.margin-note {
    position: relative;
    margin-bottom: 1.8rem;
    padding: 12px 14px 12px 38px;
    border: 1px solid rgba(176,141,60,0.55);
    background:
        linear-gradient(180deg, rgba(243,230,200,0.92) 0%, rgba(230,211,168,0.86) 100%);
    color: #2a1810;
    box-shadow:
        0 2px 6px rgba(26,14,8,0.35),
        0 0 0 3px rgba(122,46,31,0.04) inset;
    transition: box-shadow 600ms ease;
    cursor: none;
}

.margin-note:nth-child(1) { transform: rotate(-0.6deg); }
.margin-note:nth-child(2) { transform: rotate(0.4deg); }
.margin-note:nth-child(3) { transform: rotate(-0.3deg); }
.margin-note:nth-child(4) { transform: rotate(0.5deg); }
.margin-note:nth-child(5) { transform: rotate(-0.4deg); }
.margin-note:nth-child(6) { transform: rotate(0.2deg); }

.margin-note .key {
    position: absolute;
    left: 10px; top: 12px;
    font-family: "IM Fell English SC", serif;
    color: #b08d3c;
    font-size: 14px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.margin-note h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 17px;
    color: #5a3821;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.margin-note p {
    font-family: "Sorts Mill Goudy", Georgia, serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2a1810;
}

.margin-note p em { color: #6b2a1a; font-style: italic; }

.margin-note.is-hovered {
    box-shadow:
        0 2px 6px rgba(26,14,8,0.35),
        0 0 0 2px rgba(176,141,60,0.6),
        0 0 14px rgba(176,141,60,0.35);
}

.margin-note-foot {
    background: transparent;
    border: none;
    border-top: 1px dashed rgba(176,141,60,0.5);
    box-shadow: none;
    padding-top: 14px;
    color: #f3e6c8;
}
.margin-note-foot::before { display: none; }
.margin-note-foot .key { color: #b08d3c; top: 16px; }
.margin-note-foot p {
    font-style: italic;
    color: #f3e6c8;
    font-size: 13.5px;
    line-height: 1.55;
}
.margin-note-foot p em { color: #f3e6c8; }
.margin-note-foot p sup { color: #b08d3c; font-weight: 700; }

/* ============================================================
   FOLIO NUMBER
   ============================================================ */
.folio {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: 32px;
    color: #b08d3c;
    letter-spacing: 0.06em;
    z-index: 5;
    text-shadow: 0 1px 0 #2a1810;
}

/* ============================================================
   FLOATING LEAF SPECIMENS (drifting)
   ============================================================ */
.floating-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}
.floating-leaf svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.14;
    filter: brightness(0.6) sepia(0.3);
}
.floating-leaf.leaf-a { top: 12%; left: 36%; width: 140px; height: 140px; transform: rotate(-22deg); }
.floating-leaf.leaf-b { bottom: 14%; left: 28%; width: 110px; height: 110px; transform: rotate(34deg); }

.plate#plate-2 .floating-leaf.leaf-a { top: 22%; left: 42%; width: 120px; }
.plate#plate-2 .floating-leaf.leaf-b { bottom: 22%; left: 22%; width: 130px; }
.plate#plate-3 .floating-leaf.leaf-a { top: 14%; left: 30%; width: 140px; }
.plate#plate-3 .floating-leaf.leaf-b { bottom: 12%; left: 32%; width: 120px; }
.plate#plate-4 .floating-leaf.leaf-a { top: 18%; left: 46%; width: 110px; }
.plate#plate-4 .floating-leaf.leaf-b { bottom: 16%; left: 18%; width: 140px; }
.plate#plate-5 .floating-leaf.leaf-a { top: 16%; left: 48%; width: 110px; }
.plate#plate-5 .floating-leaf.leaf-b { bottom: 12%; left: 20%; width: 130px; }
.plate#plate-6 .floating-leaf.leaf-a { top: 18%; left: 38%; width: 120px; }
.plate#plate-6 .floating-leaf.leaf-b { bottom: 18%; left: 24%; width: 130px; }
.plate#plate-7 .floating-leaf.leaf-a { top: 12%; left: 30%; width: 130px; }
.plate#plate-7 .floating-leaf.leaf-b { bottom: 14%; left: 36%; width: 120px; }

/* ============================================================
   GARLAND DIVIDER (between plates)
   ============================================================ */
.garland-divider {
    position: relative;
    width: 100%;
    height: 56px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='56' viewBox='0 0 400 56'><g fill='%231f5a3a' stroke='%23b08d3c' stroke-width='0.4'><path d='M0,28 Q200,4 400,28' fill='none' stroke='%23b08d3c' stroke-width='0.6'/><ellipse cx='30'  cy='24' rx='10' ry='4' transform='rotate(-22 30 24)'/><ellipse cx='62'  cy='20' rx='10' ry='4' transform='rotate(-15 62 20)'/><ellipse cx='98'  cy='16' rx='12' ry='4' transform='rotate(-8 98 16)'/><ellipse cx='138' cy='12' rx='12' ry='4' transform='rotate(-2 138 12)'/><ellipse cx='180' cy='10' rx='12' ry='4' transform='rotate(2 180 10)'/><ellipse cx='220' cy='10' rx='12' ry='4' transform='rotate(-2 220 10)'/><ellipse cx='262' cy='12' rx='12' ry='4' transform='rotate(2 262 12)'/><ellipse cx='302' cy='16' rx='12' ry='4' transform='rotate(8 302 16)'/><ellipse cx='338' cy='20' rx='10' ry='4' transform='rotate(15 338 20)'/><ellipse cx='370' cy='24' rx='10' ry='4' transform='rotate(22 370 24)'/><circle cx='200' cy='28' r='4' fill='%23b08d3c' stroke='none'/><circle cx='100' cy='28' r='1.5' fill='%23b08d3c' stroke='none'/><circle cx='300' cy='28' r='1.5' fill='%23b08d3c' stroke='none'/></g></svg>");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 400px 56px;
    opacity: 0.78;
}

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
    margin-top: 40px;
    padding: 24px 60px 60px 60px;
    text-align: center;
    color: #f3e6c8;
}

.colophon-rule { width: 50%; margin: 0 auto 20px; }
.colophon-rule svg { width: 100%; height: 14px; display: block; opacity: 0.7; }

.colophon-text {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 60ch;
    margin: 0 auto;
    opacity: 0.86;
}

.colophon-text em { color: #b08d3c; font-style: italic; }

/* ============================================================
   QUILL CURSOR
   ============================================================ */
.quill-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-2px, -2px);
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.quill-cursor svg {
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}
.quill-cursor.is-anno {
    transform: translate(-2px, -2px) rotate(12deg);
}
.ink-drop {
    position: absolute;
    bottom: -6px;
    left: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2a1810;
    opacity: 0;
    transition: opacity 280ms ease, transform 280ms ease;
}
.quill-cursor.is-anno .ink-drop {
    opacity: 0.9;
    transform: translateY(2px) scale(1.2);
}

/* ============================================================
   STAGGERED SUB-ELEMENT FADE-IN
   (opacity + blur only, no translation)
   ============================================================ */
.plate .cartouche-svg,
.plate .cartouche-numeral,
.plate .plate-title,
.plate .epigraph,
.plate .body-copy,
.plate .hand-script,
.plate .specimen,
.plate .margin-note {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 1000ms ease, filter 1000ms ease;
}

.plate.is-revealed .cartouche-svg     { transition-delay: 400ms;  opacity: 0.96; filter: blur(0); }
.plate.is-revealed .cartouche-numeral { transition-delay: 500ms;  opacity: 1;    filter: blur(0); }
.plate.is-revealed .plate-title       { transition-delay: 800ms;  opacity: 1;    filter: blur(0); }
.plate.is-revealed .epigraph          { transition-delay: 1200ms; opacity: 1;    filter: blur(0); }
.plate.is-revealed .body-copy         { transition-delay: 1600ms; opacity: 1;    filter: blur(0); }
.plate.is-revealed .hand-script       { transition-delay: 2000ms; opacity: 0.92; filter: blur(0); }
.plate.is-revealed .specimen          { transition-delay: 2200ms; opacity: 0.78; filter: blur(0); }

.plate.is-revealed .margin-note:nth-child(1) { transition-delay: 1800ms; opacity: 1; filter: blur(0); }
.plate.is-revealed .margin-note:nth-child(2) { transition-delay: 2200ms; opacity: 1; filter: blur(0); }
.plate.is-revealed .margin-note:nth-child(3) { transition-delay: 2600ms; opacity: 1; filter: blur(0); }
.plate.is-revealed .margin-note:nth-child(4) { transition-delay: 3000ms; opacity: 1; filter: blur(0); }
.plate.is-revealed .margin-note:nth-child(5) { transition-delay: 3400ms; opacity: 1; filter: blur(0); }
.plate.is-revealed .margin-note:nth-child(6) { transition-delay: 3800ms; opacity: 1; filter: blur(0); }

/* breathing gold ring for hovered annotations' linked text */
.body-text.is-linked {
    background:
        radial-gradient(ellipse at center, rgba(176,141,60,0.22) 0%, transparent 70%);
    box-shadow: 0 0 0 1px rgba(176,141,60,0.5);
    animation: gold-breathe 3.2s ease-in-out infinite;
    border-radius: 2px;
    padding: 0 4px;
}

@keyframes gold-breathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(176,141,60,0.4); }
    50%      { box-shadow: 0 0 16px 2px rgba(176,141,60,0.9); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .ribbon { width: 40px; }
    .atlas { margin-left: 40px; width: calc(100vw - 40px); }
    .ribbon-label { font-size: 9px; letter-spacing: 0.12em; }
    .plate { padding: 32px 18px; }
    .plate-frame { padding: 40px 24px 56px 24px; }
    .plate-grid { grid-template-columns: 1fr; gap: 32px; }
    .plate-title { font-size: clamp(2.2rem, 8vw, 3.4rem); max-width: 100%; }
    .cartouche-svg { width: 90px; right: 0; }
    .cartouche-numeral { right: 32px; top: 64px; font-size: 28px; }
    .specimen { display: none; }
    .quill-cursor { display: none; }
    body { cursor: auto; }
    .ribbon-item { cursor: pointer; }
    .margin-note { cursor: pointer; }
}
