/* ============================================================
   gamelicensor.info — Frutiger Aero licensing authority
   Earth tones, marble, glass, translucent bubbles, zigzag panels
   ============================================================ */

:root {
    --deep-mahogany: #3d2e1f;
    --warm-umber: #4a3f33;
    --antique-bronze: #8b7355;
    --parchment-cream: #f5f0e6;
    --sandstone: #d4c4a8;
    --terracotta-whisper: #c49a6c;
    --moss-undertone: #7a8b6e;
    --aero-sky: #a8c4d8;
    --marble-vein: #9e9589;
    --ivory-glow: #faf8f2;
    --footer-earth: #5c4a32;

    --font-display: "Barlow Condensed", "Inter", sans-serif;
    --font-body: "Source Serif 4", "Lato", Georgia, serif;
    --font-accent: "Barlow", "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--parchment-cream);
    background-image:
        radial-gradient(ellipse 1200px 600px at 15% 10%, rgba(168, 196, 216, 0.14), transparent 60%),
        radial-gradient(ellipse 900px 500px at 85% 40%, rgba(196, 154, 108, 0.08), transparent 60%),
        radial-gradient(ellipse 1100px 700px at 50% 90%, rgba(122, 139, 110, 0.08), transparent 60%);
    color: var(--warm-umber);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.72;
    min-height: 100vh;
    overflow-x: hidden;
}

em {
    font-style: italic;
}

strong {
    font-weight: 600;
    color: var(--deep-mahogany);
}

/* ============================================================
   GLASS HEADER BAR
   ============================================================ */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(245, 240, 230, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 115, 85, 0.22);
    z-index: 100;
    box-shadow:
        0 1px 0 rgba(250, 248, 242, 0.6) inset,
        0 10px 30px -20px rgba(61, 46, 31, 0.25);
}

@supports not (backdrop-filter: blur(20px)) {
    .glass-header {
        background: var(--parchment-cream);
    }
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep-mahogany);
    font-size: 1.18rem;
}

.brand-mark {
    color: var(--deep-mahogany);
}

.brand-tld {
    color: var(--antique-bronze);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-meta {
    font-family: var(--font-accent);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.12em;
    color: var(--antique-bronze);
    font-size: 0.78rem;
    display: none;
}

@media (min-width: 720px) {
    .header-meta {
        display: inline;
    }
}

.registry-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--antique-bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(250, 248, 242, 0.95), rgba(245, 240, 230, 0.7) 60%, rgba(212, 196, 168, 0.5));
    box-shadow:
        inset 0 -3px 8px rgba(139, 115, 85, 0.18),
        inset 0 2px 6px rgba(250, 248, 242, 0.9),
        0 2px 6px rgba(61, 46, 31, 0.12);
    transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.registry-badge:hover {
    transform: rotate(-8deg) scale(1.05);
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.page {
    padding-top: 64px;
    position: relative;
}

/* ============================================================
   HERO SHELF — 62% / 38% asymmetric split
   ============================================================ */
.hero-shelf {
    position: relative;
    display: grid;
    grid-template-columns: 62% 38%;
    min-height: calc(100vh - 64px);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    padding: clamp(4rem, 15vh, 9rem) clamp(2rem, 5vw, 5vw) 4rem clamp(1.25rem, 5vw, 5vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    z-index: 2;
}

.eyebrow {
    font-family: var(--font-accent);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.16em;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    color: var(--antique-bronze);
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--deep-mahogany);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.96;
    margin: 0;
    max-width: 12ch;
}

.hero-headline em {
    font-family: var(--font-body);
    font-style: italic;
    text-transform: lowercase;
    font-weight: 400;
    color: var(--antique-bronze);
    letter-spacing: 0;
    font-size: 0.72em;
    padding: 0 0.2em;
}

.hero-sub {
    font-family: var(--font-body);
    color: var(--warm-umber);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.68;
    max-width: 46ch;
    margin: 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.meta-line {
    font-family: var(--font-accent);
    font-variant: small-caps;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--antique-bronze);
    font-size: 0.8rem;
}

.meta-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--moss-undertone);
    box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.18);
}

/* Hero marble slab — right 38% */
.hero-slab {
    position: relative;
    height: 85vh;
    align-self: start;
    margin-top: 0;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    box-shadow:
        inset 1px 0 0 rgba(250, 248, 242, 0.7),
        -12px 0 40px -30px rgba(61, 46, 31, 0.35);
}

.slab-gloss {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg,
            rgba(250, 248, 242, 0.55) 0%,
            rgba(250, 248, 242, 0.18) 22%,
            rgba(250, 248, 242, 0) 45%,
            rgba(168, 196, 216, 0.08) 65%,
            rgba(250, 248, 242, 0) 100%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.slab-mark {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1rem;
    color: var(--antique-bronze);
    opacity: 0.75;
}

/* ============================================================
   MARBLE TEXTURES
   Each surface uses layered radial/conic gradients.
   ============================================================ */
.marble {
    position: absolute;
    inset: 0;
    background-color: var(--parchment-cream);
}

.marble-slab {
    background-image:
        radial-gradient(ellipse 300px 180px at 20% 10%, rgba(158, 149, 137, 0.38), transparent 60%),
        radial-gradient(ellipse 200px 500px at 80% 30%, rgba(139, 115, 85, 0.22), transparent 65%),
        radial-gradient(ellipse 400px 120px at 40% 60%, rgba(158, 149, 137, 0.28), transparent 60%),
        radial-gradient(ellipse 160px 400px at 60% 80%, rgba(139, 115, 85, 0.18), transparent 60%),
        conic-gradient(from 120deg at 30% 40%, rgba(212, 196, 168, 0.2), rgba(245, 240, 230, 0) 30%, rgba(158, 149, 137, 0.16) 60%, rgba(245, 240, 230, 0) 90%),
        linear-gradient(135deg, var(--parchment-cream) 0%, var(--sandstone) 100%);
    background-size: 600px 500px, 400px 800px, 700px 300px, 350px 700px, 800px 800px, 100% 100%;
    background-blend-mode: multiply, multiply, multiply, multiply, overlay, normal;
}

.marble-card-a {
    background-image:
        radial-gradient(ellipse 180px 80px at 20% 30%, rgba(158, 149, 137, 0.3), transparent 55%),
        radial-gradient(ellipse 120px 200px at 80% 70%, rgba(139, 115, 85, 0.18), transparent 60%),
        radial-gradient(ellipse 300px 100px at 50% 10%, rgba(212, 196, 168, 0.35), transparent 65%),
        linear-gradient(145deg, var(--parchment-cream), var(--sandstone) 80%);
    background-size: 400px 300px, 300px 500px, 600px 200px, 100% 100%;
}

.marble-card-b {
    background-image:
        radial-gradient(ellipse 200px 120px at 70% 20%, rgba(139, 115, 85, 0.22), transparent 60%),
        radial-gradient(ellipse 140px 240px at 30% 70%, rgba(158, 149, 137, 0.3), transparent 60%),
        conic-gradient(from 40deg at 60% 60%, rgba(212, 196, 168, 0.25), rgba(245, 240, 230, 0) 30%, rgba(158, 149, 137, 0.2) 70%, rgba(245, 240, 230, 0) 100%),
        linear-gradient(110deg, var(--sandstone), var(--parchment-cream) 70%);
    background-size: 500px 400px, 350px 600px, 700px 700px, 100% 100%;
}

.marble-card-c {
    background-image:
        radial-gradient(ellipse 160px 300px at 50% 50%, rgba(158, 149, 137, 0.28), transparent 60%),
        radial-gradient(ellipse 240px 80px at 25% 85%, rgba(139, 115, 85, 0.2), transparent 60%),
        radial-gradient(ellipse 120px 120px at 85% 15%, rgba(196, 154, 108, 0.18), transparent 65%),
        linear-gradient(160deg, var(--parchment-cream), var(--sandstone) 100%);
    background-size: 400px 700px, 600px 250px, 350px 350px, 100% 100%;
}

.marble-card-d {
    background-image:
        radial-gradient(ellipse 220px 90px at 30% 20%, rgba(212, 196, 168, 0.35), transparent 60%),
        radial-gradient(ellipse 160px 220px at 75% 55%, rgba(158, 149, 137, 0.28), transparent 60%),
        radial-gradient(ellipse 140px 140px at 20% 80%, rgba(139, 115, 85, 0.2), transparent 60%),
        conic-gradient(from 200deg at 50% 30%, rgba(122, 139, 110, 0.12), rgba(245, 240, 230, 0) 30%, rgba(158, 149, 137, 0.15) 65%, rgba(245, 240, 230, 0) 100%),
        linear-gradient(125deg, var(--parchment-cream), var(--sandstone));
    background-size: 500px 300px, 400px 550px, 380px 380px, 700px 700px, 100% 100%;
}

.marble-card-e {
    background-image:
        radial-gradient(ellipse 280px 100px at 60% 75%, rgba(139, 115, 85, 0.22), transparent 60%),
        radial-gradient(ellipse 130px 260px at 20% 30%, rgba(158, 149, 137, 0.3), transparent 60%),
        radial-gradient(ellipse 200px 80px at 80% 10%, rgba(212, 196, 168, 0.3), transparent 60%),
        linear-gradient(95deg, var(--sandstone), var(--parchment-cream) 90%);
    background-size: 650px 260px, 360px 620px, 500px 220px, 100% 100%;
}

.marble-card-f {
    background-image:
        radial-gradient(ellipse 150px 200px at 45% 45%, rgba(158, 149, 137, 0.3), transparent 60%),
        radial-gradient(ellipse 200px 90px at 15% 15%, rgba(139, 115, 85, 0.2), transparent 60%),
        radial-gradient(ellipse 170px 110px at 85% 85%, rgba(212, 196, 168, 0.3), transparent 60%),
        conic-gradient(from 80deg at 40% 70%, rgba(158, 149, 137, 0.2), rgba(245, 240, 230, 0) 30%, rgba(196, 154, 108, 0.12) 65%, rgba(245, 240, 230, 0) 100%),
        linear-gradient(175deg, var(--parchment-cream), var(--sandstone));
    background-size: 400px 550px, 500px 240px, 450px 300px, 650px 650px, 100% 100%;
}

/* ============================================================
   FRUTIGER AERO BUBBLES
   ============================================================ */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(168, 196, 216, 0.5),
        rgba(245, 240, 230, 0.15));
    box-shadow:
        inset 0 -4px 12px rgba(255, 255, 255, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.4),
        0 6px 24px -8px rgba(61, 46, 31, 0.2);
    pointer-events: none;
}

.bubble::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 18%;
    width: 34%;
    height: 22%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(250, 248, 242, 0.75), rgba(250, 248, 242, 0));
    filter: blur(1px);
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: 10%;
    right: 18%;
    width: 22%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(250, 248, 242, 0.35), rgba(250, 248, 242, 0));
    filter: blur(1px);
}

@keyframes aeroFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
    100% {
        transform: translateY(12px) scale(0.97);
    }
}

@keyframes aeroFloatReverse {
    0% {
        transform: translateY(10px) scale(0.98);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        transform: translateY(-14px) scale(1);
    }
}

.bubble.b1,
.bubble.b2,
.bubble.b3,
.bubble.b4,
.bubble.b5,
.bubble.drift-bubble,
.bubble.fb1,
.bubble.fb2,
.bubble.fb3,
.bubble.fb4,
.bubble.fb5 {
    animation: aeroFloat 8s ease-in-out infinite alternate;
}

/* Hero bubble cluster at 62%/38% split point */
.hero-bubbles {
    position: absolute;
    top: 18%;
    left: calc(62% - 110px);
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 3;
}

.b1 { width: 180px; height: 180px; top: 40px; left: 60px; animation-duration: 9s; }
.b2 { width: 110px; height: 110px; top: 0; left: 160px; animation-duration: 7.5s; animation-delay: -2s;
      background: radial-gradient(circle at 30% 30%, rgba(122, 139, 110, 0.32), rgba(245, 240, 230, 0.12)); }
.b3 { width: 72px; height: 72px; top: 200px; left: 30px; animation-duration: 8.4s; animation-delay: -1s;
      background: radial-gradient(circle at 30% 30%, rgba(196, 154, 108, 0.35), rgba(245, 240, 230, 0.12)); }
.b4 { width: 52px; height: 52px; top: 240px; left: 210px; animation-duration: 10s; animation-delay: -3s; }
.b5 { width: 40px; height: 40px; top: 150px; left: 260px; animation-duration: 6.8s; animation-delay: -4s; }

/* Drift bubbles in connectors */
.drift-bubble {
    width: 60px;
    height: 60px;
    top: 50%;
    pointer-events: none;
    animation-duration: 9s;
}
.db1 { left: 18%; width: 72px; height: 72px; }
.db2 { right: 22%; left: auto; width: 56px; height: 56px; animation-duration: 10s; animation-delay: -2s;
       background: radial-gradient(circle at 30% 30%, rgba(122, 139, 110, 0.32), rgba(245, 240, 230, 0.12)); }
.db3 { left: 62%; width: 48px; height: 48px; animation-duration: 7.5s; animation-delay: -1s; }

/* ============================================================
   CONNECTORS between panels
   ============================================================ */
.connector {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: visible;
}

.connector svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.connector-line {
    transition: stroke-dashoffset 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.connector.revealed .connector-line {
    stroke-dashoffset: 0;
}

.book-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(250, 248, 242, 0.95), rgba(245, 240, 230, 0.7) 70%, rgba(212, 196, 168, 0.4));
    box-shadow:
        inset 0 -3px 8px rgba(139, 115, 85, 0.18),
        inset 0 2px 6px rgba(250, 248, 242, 0.9),
        0 4px 14px -6px rgba(61, 46, 31, 0.25);
    border: 1px solid rgba(139, 115, 85, 0.35);
    opacity: 0;
    transition: opacity 800ms ease 400ms;
}

.connector.revealed .book-icon {
    opacity: 1;
}

/* ============================================================
   DISCLOSURE PANELS
   ============================================================ */
.disclosure {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.panel-left > .panel-glass {
    justify-self: start;
    margin-left: clamp(1rem, 8vw, 8vw);
    margin-right: auto;
}

.panel-right > .panel-glass {
    justify-self: end;
    margin-right: clamp(1rem, 8vw, 8vw);
    margin-left: auto;
}

.panel-glass {
    position: relative;
    width: min(65vw, 900px);
    max-width: 100%;
    padding: clamp(1.8rem, 3.5vw, 3.2rem);
    border-radius: 16px;
    background:
        linear-gradient(155deg, rgba(250, 248, 242, 0.88), rgba(245, 240, 230, 0.72) 55%, rgba(212, 196, 168, 0.35));
    border: 1px solid rgba(250, 248, 242, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(250, 248, 242, 0.9),
        inset 0 -1px 0 rgba(139, 115, 85, 0.18),
        0 30px 60px -40px rgba(61, 46, 31, 0.35),
        0 8px 20px -12px rgba(61, 46, 31, 0.18);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

.panel-left > .panel-glass {
    transform: translateX(-60px);
}

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

.panel-glass::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    border-radius: 16px 16px 60% 60% / 16px 16px 30% 30%;
    background: linear-gradient(180deg, rgba(250, 248, 242, 0.65), rgba(250, 248, 242, 0));
    pointer-events: none;
}

@media (max-width: 820px) {
    .panel-left > .panel-glass,
    .panel-right > .panel-glass {
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.panel-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.12em;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: var(--antique-bronze);
    line-height: 1.2;
    padding-top: 0.4rem;
}

.roman-badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--antique-bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--antique-bronze);
    font-size: 1.05rem;
    background: radial-gradient(circle at 30% 25%, rgba(250, 248, 242, 0.9), rgba(245, 240, 230, 0.4));
    box-shadow:
        inset 0 -2px 6px rgba(139, 115, 85, 0.12),
        inset 0 2px 6px rgba(250, 248, 242, 0.8);
}

.panel-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--deep-mahogany);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    line-height: 1.02;
    margin: 0 0 1.4rem;
}

.panel-body p {
    margin: 0 0 1.1rem;
    color: var(--warm-umber);
}

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

.drop-cap {
    float: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.6em;
    line-height: 0.9;
    padding: 0.08em 0.18em 0 0;
    color: var(--deep-mahogany);
}

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 720px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid rgba(139, 115, 85, 0.35);
    padding-left: 1.1rem;
}

.timeline li {
    position: relative;
    margin-bottom: 1rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--antique-bronze);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.timeline .era {
    font-family: var(--font-accent);
    font-variant: small-caps;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--antique-bronze);
    display: block;
}

.timeline p {
    margin: 0.15rem 0 0;
    font-size: 0.97em;
    line-height: 1.6;
}

/* Footnote superscript markers */
sup.fn {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.62em;
    color: var(--antique-bronze);
    cursor: help;
    padding: 0 0.2em;
    border-radius: 4px;
    transition: background 250ms, color 250ms;
}

sup.fn:hover {
    background: rgba(168, 196, 216, 0.28);
    color: var(--deep-mahogany);
}

/* ============================================================
   MARGINALIA (rotated annotations)
   ============================================================ */
.marginalia {
    position: absolute;
    font-family: var(--font-accent);
    font-variant: small-caps;
    font-weight: 500;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--antique-bronze);
    white-space: nowrap;
    opacity: 0.8;
}

.marginalia-right {
    top: 50%;
    right: -1.5rem;
    transform: translate(100%, -50%) rotate(-90deg);
    transform-origin: left center;
}

.marginalia-left {
    top: 50%;
    left: -1.5rem;
    transform: translate(-100%, -50%) rotate(-90deg);
    transform-origin: right center;
}

.marginalia-bottom {
    bottom: -1.75rem;
    right: clamp(1rem, 5vw, 5vw);
    position: absolute;
}

@media (max-width: 1000px) {
    .marginalia-right,
    .marginalia-left {
        display: none;
    }
}

/* ============================================================
   REGISTRY — staggered overlapping cards
   ============================================================ */
.registry {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.registry-header {
    position: relative;
    max-width: 680px;
    margin-left: clamp(1rem, 6vw, 5vw);
    margin-bottom: 2.5rem;
}

.registry-header .panel-title {
    margin: 0.4rem 0 0.8rem;
}

.registry-lede {
    margin: 0;
    font-style: italic;
    color: var(--warm-umber);
    max-width: 54ch;
}

.roman-register {
    position: absolute;
    top: 0;
    right: -2rem;
}

.card-scatter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(40px, auto);
    gap: 0;
    min-height: 900px;
}

.reg-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.4rem 1.2rem;
    border-radius: 14px;
    background: var(--sandstone);
    border: 1px solid rgba(139, 115, 85, 0.25);
    box-shadow:
        0 18px 40px -28px rgba(61, 46, 31, 0.45),
        0 4px 10px -6px rgba(61, 46, 31, 0.2),
        inset 0 1px 0 rgba(250, 248, 242, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition:
        transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.registry.revealed .reg-card {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger via transition-delay */
.registry.revealed .card-01 { transition-delay: 0ms; }
.registry.revealed .card-02 { transition-delay: 90ms; }
.registry.revealed .card-03 { transition-delay: 180ms; }
.registry.revealed .card-04 { transition-delay: 270ms; }
.registry.revealed .card-05 { transition-delay: 360ms; }
.registry.revealed .card-06 { transition-delay: 450ms; }
.registry.revealed .card-07 { transition-delay: 540ms; }
.registry.revealed .card-08 { transition-delay: 630ms; }

.reg-card:hover {
    transform: translateY(-4px) rotate(0.2deg);
    box-shadow:
        0 28px 50px -24px rgba(61, 46, 31, 0.55),
        0 6px 14px -4px rgba(61, 46, 31, 0.25),
        inset 0 1px 0 rgba(250, 248, 242, 0.8);
    z-index: 10;
}

.card-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    background:
        linear-gradient(180deg,
            rgba(250, 248, 242, 0.85) 0%,
            rgba(250, 248, 242, 0.35) 60%,
            rgba(250, 248, 242, 0) 100%);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    pointer-events: none;
    z-index: 2;
}

.reg-card .marble {
    inset: 0;
    z-index: 0;
    opacity: 0.82;
    border-radius: 14px;
}

.reg-card > *:not(.marble):not(.card-gloss) {
    position: relative;
    z-index: 1;
}

.card-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--antique-bronze);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--deep-mahogany);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    margin: 0;
    line-height: 1.08;
}

.card-body {
    margin: 0;
    font-size: 0.92em;
    line-height: 1.58;
    color: var(--warm-umber);
}

.card-stamp {
    margin-top: auto;
    font-family: var(--font-accent);
    font-variant: small-caps;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--antique-bronze);
    align-self: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.25);
    width: 100%;
    text-align: right;
}

/* Staggered card placement — overlapping, imperfect grid */
.card-01 { grid-column: 1 / span 4;  grid-row: 1 / span 4;  transform: translate(0, 0) rotate(-1.1deg); }
.card-02 { grid-column: 4 / span 4;  grid-row: 2 / span 4;  transform: translate(0, 10px) rotate(0.8deg); z-index: 2; }
.card-03 { grid-column: 8 / span 4;  grid-row: 1 / span 4;  transform: translate(-15px, 0) rotate(-0.6deg); }
.card-04 { grid-column: 2 / span 4;  grid-row: 4 / span 4;  transform: translate(20px, -12px) rotate(1.2deg); z-index: 2; }
.card-05 { grid-column: 6 / span 4;  grid-row: 5 / span 4;  transform: translate(-18px, 0) rotate(-0.9deg); }
.card-06 { grid-column: 9 / span 4;  grid-row: 4 / span 4;  transform: translate(0, 20px) rotate(0.6deg); z-index: 2; }
.card-07 { grid-column: 1 / span 4;  grid-row: 7 / span 4;  transform: translate(10px, 0) rotate(-0.8deg); }
.card-08 { grid-column: 5 / span 4;  grid-row: 8 / span 4;  transform: translate(-8px, -18px) rotate(1.0deg); z-index: 2; }

.registry.revealed .card-01 { transform: translate(0, 0) rotate(-1.1deg); }
.registry.revealed .card-02 { transform: translate(0, 10px) rotate(0.8deg); }
.registry.revealed .card-03 { transform: translate(-15px, 0) rotate(-0.6deg); }
.registry.revealed .card-04 { transform: translate(20px, -12px) rotate(1.2deg); }
.registry.revealed .card-05 { transform: translate(-18px, 0) rotate(-0.9deg); }
.registry.revealed .card-06 { transform: translate(0, 20px) rotate(0.6deg); }
.registry.revealed .card-07 { transform: translate(10px, 0) rotate(-0.8deg); }
.registry.revealed .card-08 { transform: translate(-8px, -18px) rotate(1.0deg); }

.registry .reg-card {
    transform: translateY(30px);
}

@media (max-width: 960px) {
    .card-scatter {
        grid-template-columns: repeat(6, 1fr);
        min-height: auto;
        gap: 1rem;
    }
    .reg-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        transform: none !important;
    }
    .registry.revealed .reg-card {
        transform: none !important;
    }
}

/* ============================================================
   COLOPHON FOOTER
   ============================================================ */
.colophon {
    position: relative;
    min-height: 40vh;
    background: var(--footer-earth);
    color: var(--parchment-cream);
    padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 6vw, 5rem) 3rem;
    overflow: hidden;
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 115, 85, 0.4);
    box-shadow: inset 0 40px 80px -40px rgba(0, 0, 0, 0.3);
}

.colophon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 248, 242, 0.35), transparent);
}

.footer-bubbles {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
}

.fb1 { width: 100px; height: 100px; top: -10px; left: 14%; animation-duration: 9s; }
.fb2 { width: 68px; height: 68px; top: 30px; left: 30%; animation-duration: 7.2s; animation-delay: -1s;
       background: radial-gradient(circle at 30% 30%, rgba(196, 154, 108, 0.4), rgba(245, 240, 230, 0.12)); }
.fb3 { width: 130px; height: 130px; top: -30px; left: 50%; animation-duration: 10s; animation-delay: -3s; }
.fb4 { width: 78px; height: 78px; top: 20px; left: 68%; animation-duration: 8.4s; animation-delay: -2s;
       background: radial-gradient(circle at 30% 30%, rgba(122, 139, 110, 0.4), rgba(245, 240, 230, 0.12)); }
.fb5 { width: 54px; height: 54px; top: 50px; left: 82%; animation-duration: 7.8s; animation-delay: -4s; }

.colophon-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 4rem;
    z-index: 2;
}

.colophon-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: rgba(245, 240, 230, 0.7);
    display: block;
    margin-bottom: 1.2rem;
}

.colophon-quote {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--parchment-cream);
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 auto 2rem;
    max-width: 22ch;
    quotes: "\201C" "\201D";
}

.colophon-quote em {
    font-family: var(--font-body);
    font-style: italic;
    text-transform: lowercase;
    font-weight: 400;
    color: var(--terracotta-whisper);
    letter-spacing: 0;
    font-size: 0.85em;
    padding: 0 0.15em;
}

.colophon-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-family: var(--font-accent);
    font-variant: small-caps;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: rgba(245, 240, 230, 0.68);
}

.colophon-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--terracotta-whisper);
}

/* ============================================================
   FOOTNOTE TOOLTIP CARD
   ============================================================ */
.footnote-card {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    width: min(320px, 80vw);
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 12px;
    background: rgba(245, 240, 230, 0.95);
    border: 1px solid rgba(139, 115, 85, 0.35);
    box-shadow:
        0 20px 40px -20px rgba(61, 46, 31, 0.5),
        inset 0 1px 0 rgba(250, 248, 242, 0.9);
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition:
        opacity 400ms ease,
        max-height 400ms ease,
        transform 400ms ease;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.footnote-card.is-open {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
}

.footnote-marble {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background-image:
        radial-gradient(ellipse 120px 60px at 20% 30%, rgba(158, 149, 137, 0.2), transparent 60%),
        radial-gradient(ellipse 90px 140px at 80% 70%, rgba(139, 115, 85, 0.14), transparent 60%),
        linear-gradient(140deg, rgba(245, 240, 230, 0.9), rgba(212, 196, 168, 0.35));
    background-size: 260px 200px, 200px 300px, 100% 100%;
    pointer-events: none;
    z-index: -1;
}

.footnote-label {
    font-family: var(--font-accent);
    font-variant: small-caps;
    font-weight: 500;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--antique-bronze);
    display: block;
    margin-bottom: 0.35rem;
}

.footnote-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--warm-umber);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
    .hero-shelf {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-copy {
        padding: 6rem 1.5rem 3rem;
    }
    .hero-slab {
        height: 40vh;
        margin: 0 1rem 2rem;
        border-radius: 18px;
    }
    .hero-bubbles {
        left: auto;
        right: 0;
        top: 70%;
        width: 260px;
        height: 220px;
    }
    .b1 { width: 120px; height: 120px; }
    .b2 { width: 78px; height: 78px; }
    .b3 { width: 54px; height: 54px; }
    .b4, .b5 { width: 38px; height: 38px; }
    .connector {
        height: 100px;
    }
}
