/* =====================================================================
   nfth.ing — Holographic Y2K-Futurism Gallery
   Palette: #0a0a14 · #ffd700 · #c0c0c0 · #7b2ff7 · #00f5d4
            #1a1a2e · #ff006e · #2d2d4e
   Type:    Orbitron / Exo 2 / Fira Code
   ===================================================================== */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --void:        #0a0a14;
    --gallery:     #1a1a2e;
    --indigo:      #2d2d4e;
    --violet:      #7b2ff7;
    --gold:        #ffd700;
    --pink:        #ff006e;
    --cyan:        #00f5d4;
    --silver:      #c0c0c0;
    --white:       #ffffff;

    --font-display: 'Orbitron', system-ui, sans-serif;
    --font-body:    'Exo 2', system-ui, sans-serif;
    --font-mono:    'Fira Code', ui-monospace, monospace;

    --rail-w: 56px;
    --chrome-h: 48px;
}

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

html, body {
    height: 100%;
}

body {
    background: var(--void);
    color: var(--white);
    font-family: var(--font-body);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =====================================================================
   1. SCAN LINES — global digital-screen overlay
   ===================================================================== */
.scan-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.022) 0px,
        rgba(255, 255, 255, 0.022) 1px,
        transparent 1px,
        transparent 4px
    );
    animation: scanDrift 9s linear infinite;
    mix-blend-mode: screen;
}

@keyframes scanDrift {
    0%   { background-position-y: 0px; }
    100% { background-position-y: 200px; }
}

/* Subtle vignette across whole viewport */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 80;
    background:
        radial-gradient(ellipse at center, transparent 0%, transparent 55%, rgba(10, 10, 20, 0.55) 100%),
        radial-gradient(ellipse at 70% 30%, rgba(123, 47, 247, 0.06), transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 245, 212, 0.04), transparent 55%);
}

/* =====================================================================
   2. SITE CHROME (top bar)
   ===================================================================== */
.site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--chrome-h);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.85), rgba(10, 10, 20, 0.4) 70%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.chrome-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--silver);
}

.chrome-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: rotateGrad 6s linear infinite;
}

.chrome-text {
    color: var(--white);
}

.chrome-meta {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--silver);
}

.chrome-meta-item {
    opacity: 0.75;
}

.chrome-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cyan);
    opacity: 0.95;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 6px var(--pink);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

@media (max-width: 720px) {
    .chrome-meta-item:not(.chrome-live) { display: none; }
}

/* =====================================================================
   3. PROGRESS BAR
   ===================================================================== */
.progress-bar-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    background: rgba(192, 192, 192, 0.05);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    background-size: 200% 100%;
    transition: width 0.12s linear;
    animation: rotateGrad 6s linear infinite;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.progress-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.progress-ticks .ptick {
    position: absolute;
    top: -4px;
    width: 1px;
    height: 11px;
    background: rgba(192, 192, 192, 0.35);
}

@keyframes rotateGrad {
    to { --angle: 360deg; }
}

/* =====================================================================
   4. GALLERY CONTAINER (horizontal scroll)
   ===================================================================== */
.gallery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-container::-webkit-scrollbar { display: none; }

/* Common exhibit base */
.exhibit {
    flex-shrink: 0;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--chrome-h) + 2rem) 4rem 4rem;
}

.single-exhibit { width: 90vw; }
.pair-exhibit   { width: 90vw; gap: 2.5rem; }
.vault-exhibit  { width: 100vw; }

/* =====================================================================
   5. HERO — Prismatic Entry
   ===================================================================== */
.hero-exhibit {
    width: 100vw;
    flex-direction: column;
    overflow: hidden;
    padding: calc(var(--chrome-h) + 3rem) 6vw 5rem;
}

.holographic-bg {
    position: absolute;
    inset: -10%;
    background: conic-gradient(
        from var(--angle),
        var(--gold) 0%,
        var(--violet) 25%,
        var(--cyan) 50%,
        var(--pink) 75%,
        var(--gold) 100%
    );
    opacity: 0.28;
    filter: blur(60px);
    animation: rotateGrad 12s linear infinite;
    z-index: 0;
}

.holographic-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(10, 10, 20, 0.85) 95%),
        linear-gradient(180deg, rgba(10, 10, 20, 0.35), transparent 30%, transparent 70%, rgba(10, 10, 20, 0.55));
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(192, 192, 192, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 192, 192, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-stack {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
    max-width: 880px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 0.45rem 1rem;
    border: 1px solid rgba(0, 245, 212, 0.4);
    border-radius: 999px;
    background: rgba(0, 245, 212, 0.05);
}

.hero-emblem {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.chrome-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    background: linear-gradient(
        135deg,
        var(--silver) 0%,
        var(--gold) 22%,
        var(--white) 45%,
        var(--silver) 65%,
        var(--gold) 85%,
        var(--white) 100%
    );
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: chromeShift 4s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
}

.chrome-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: rotateGrad 8s linear infinite;
    pointer-events: none;
}

@keyframes chromeShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--silver);
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 240px;
    color: var(--gold);
    margin: 0.4rem 0;
}

.hero-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-divider-mark {
    font-size: 0.7rem;
    opacity: 0.85;
}

.hero-blurb {
    max-width: 620px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--silver);
    font-weight: 300;
}

.hero-foot {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--violet);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: scrollPulse 2.4s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.45; transform: translateX(0); }
    50%      { opacity: 1;    transform: translateX(6px); }
}

.hero-token {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--silver);
    opacity: 0.5;
}

/* Hero corner brackets */
.hero-corners { position: absolute; inset: calc(var(--chrome-h) + 1.5rem) 1.5rem 1.5rem; pointer-events: none; z-index: 2; }
.hero-corners .hc {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    opacity: 0.55;
}
.hero-corners .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-corners .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-corners .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-corners .br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* =====================================================================
   6. GAP SECTIONS (between exhibits)
   ===================================================================== */
.gap-section {
    flex-shrink: 0;
    width: 10vw;
    min-width: 110px;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: calc(var(--chrome-h) + 2rem) 0 2rem;
}

.gap-line {
    width: 1px;
    height: 50vh;
    background: linear-gradient(180deg, transparent, var(--silver), var(--gold), var(--silver), transparent);
    opacity: 0.5;
}

.gap-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.gap-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--silver);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.6;
}

/* =====================================================================
   7. CERTIFICATE FRAMES
   ===================================================================== */
.certificate-frame {
    position: relative;
    border: 1px solid var(--silver);
    padding: 4px;
    max-width: 640px;
    width: 100%;
    background: rgba(10, 10, 20, 0.4);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.certificate-frame.wide { max-width: 980px; }

.certificate-frame::before {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.certificate-frame::after {
    content: '';
    position: absolute;
    inset: -7px;
    pointer-events: none;
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    animation: rotateGrad 6s linear infinite;
    transition: opacity 0.6s ease;
}

.certificate-frame:hover::after,
.exhibit.in-view .certificate-frame::after {
    opacity: 0.55;
}

/* L-shaped corner ornaments */
.cert-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gold);
    z-index: 2;
}
.cert-corner.tl { top: -2px;  left: -2px;  border-top: 1px solid; border-left: 1px solid; }
.cert-corner.tr { top: -2px;  right: -2px; border-top: 1px solid; border-right: 1px solid; }
.cert-corner.bl { bottom: -2px; left: -2px; border-bottom: 1px solid; border-left: 1px solid; }
.cert-corner.br { bottom: -2px; right: -2px; border-bottom: 1px solid; border-right: 1px solid; }

.exhibit-content {
    position: relative;
    padding: 3.2rem 3rem 2.6rem;
    background: linear-gradient(135deg, rgba(45, 45, 78, 0.55), rgba(26, 26, 46, 0.55));
    overflow: hidden;
}

.exhibit-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(192, 192, 192, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 192, 192, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.exhibit-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 4.8rem;
    color: var(--violet);
    opacity: 0.18;
    position: absolute;
    top: 0.4rem;
    right: 1.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
}

.exhibit-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.exhibit-content h2,
.holo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: 0.02em;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--silver) 0%, var(--gold) 35%, var(--white) 55%, var(--silver) 80%, var(--gold) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: chromeShift 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.holo-text.small { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

.exhibit-content p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--silver);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.exhibit-content p.lead {
    font-size: 1.08rem;
    color: var(--white);
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.meta-list {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0.9rem 1rem;
    border-top: 1px dashed rgba(192, 192, 192, 0.25);
    border-bottom: 1px dashed rgba(192, 192, 192, 0.25);
    position: relative;
    z-index: 2;
}

.meta-list.compact { margin: 0.8rem 0; padding: 0.6rem 0.8rem; }

.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.25rem 0;
    letter-spacing: 0.05em;
}

.ml-key { color: var(--silver); opacity: 0.7; text-transform: uppercase; letter-spacing: 0.22em; }
.ml-val { color: var(--cyan); text-align: right; }

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.18);
    position: relative;
    z-index: 2;
}

.cert-footer.wide-footer {
    margin: 1rem 3rem 1.6rem;
}

.token-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--silver);
    opacity: 0.45;
    letter-spacing: 0.12em;
    display: inline-block;
}

.cert-seal {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* =====================================================================
   8. PAIRED EXHIBIT (45vw each)
   ===================================================================== */
.pair-exhibit {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: calc(var(--chrome-h) + 2rem) 4vw 4rem;
}

.paired-card {
    position: relative;
    flex: 1 1 0;
    max-width: 42vw;
    border: 1px solid var(--silver);
    padding: 4px;
    background: rgba(10, 10, 20, 0.4);
    display: flex;
}

.paired-card::before {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.paired-content {
    position: relative;
    flex: 1;
    padding: 2.4rem 2.2rem 2rem;
    background: linear-gradient(135deg, rgba(45, 45, 78, 0.55), rgba(26, 26, 46, 0.55));
    display: flex;
    flex-direction: column;
}

.paired-content .exhibit-number { font-size: 3.2rem; }

.bid-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1rem 0 1.4rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 0, 110, 0.08);
    border: 1px solid rgba(255, 0, 110, 0.3);
    position: relative;
    z-index: 2;
}

.bid-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--silver);
    opacity: 0.7;
}

.bid-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.04em;
    flex: 1;
}

.bid-pulse {
    width: 14px;
    height: 14px;
    position: relative;
}

.bid-pulse span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 10px var(--pink);
    animation: bidPing 1.8s ease-out infinite;
}

@keyframes bidPing {
    0%   { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.paired-content .token-id {
    margin-top: auto;
}

/* =====================================================================
   9. SPLIT EXHIBIT (Permanence)
   ===================================================================== */
.exhibit-content.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.4rem;
    padding: 3rem 3rem 2rem;
}

.split-left, .split-right {
    position: relative;
    z-index: 2;
}

.split-left .exhibit-number {
    position: relative;
    top: auto;
    right: auto;
    font-size: 3.2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.hash-stack {
    border: 1px solid rgba(0, 245, 212, 0.25);
    padding: 1rem 1.1rem;
    background: rgba(0, 245, 212, 0.04);
    position: relative;
}

.hash-stack::before {
    content: 'BLOCK · 12,041,338';
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--void);
    padding: 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--cyan);
}

.hash-row {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(192, 192, 192, 0.12);
}
.hash-row:last-child { border-bottom: none; }

.hash-key {
    color: var(--silver);
    opacity: 0.65;
    letter-spacing: 0.22em;
}

.hash-val {
    color: var(--gold);
    text-align: right;
    font-feature-settings: "tnum";
}

/* =====================================================================
   10. ARTIFACT PLATE (Cultural)
   ===================================================================== */
.artifact-content {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 2rem;
    padding: 2.8rem 2.6rem 2.2rem;
    align-items: center;
}

.artifact-plate {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 1px solid var(--gold);
    background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.18), rgba(10, 10, 20, 0.9));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-prism {
    position: absolute;
    inset: -20%;
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    opacity: 0.35;
    filter: blur(40px);
    animation: rotateGrad 10s linear infinite;
}

.plate-glyph {
    position: relative;
    z-index: 2;
    width: 75%;
    height: 75%;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.4));
    animation: plateFloat 8s ease-in-out infinite;
}

@keyframes plateFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-8px) rotate(0.6deg); }
}

.artifact-text {
    position: relative;
    z-index: 2;
}

.artifact-text .exhibit-number {
    position: relative;
    top: auto;
    right: auto;
    font-size: 3rem;
    display: block;
    margin-bottom: 0.4rem;
}

/* =====================================================================
   11. VAULT DOOR
   ===================================================================== */
.vault-exhibit {
    width: 100vw;
    padding: calc(var(--chrome-h) + 3rem) 6vw 4rem;
    background:
        radial-gradient(ellipse at center, rgba(45, 45, 78, 0.5), transparent 60%),
        var(--void);
}

.vault-door {
    position: relative;
    width: min(820px, 90vw);
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(192, 192, 192, 0.18), rgba(255, 215, 0, 0.18), rgba(192, 192, 192, 0.18));
    border-image: linear-gradient(135deg, var(--silver), var(--gold), var(--silver)) 1;
    border-style: solid;
    border-width: 6px;
    box-shadow:
        0 0 80px rgba(255, 215, 0, 0.18),
        inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.vault-rivets {
    position: absolute;
    inset: 18px;
    pointer-events: none;
}
.vault-rivets span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--silver), #555 70%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.vault-rivets span:nth-child(1) { top: 12px;  left: 12px;  }
.vault-rivets span:nth-child(2) { top: 12px;  right: 12px; }
.vault-rivets span:nth-child(3) { bottom: 12px; left: 12px; }
.vault-rivets span:nth-child(4) { bottom: 12px; right: 12px; }
.vault-rivets span:nth-child(5) { top: 12px; left: 50%; transform: translateX(-50%); }
.vault-rivets span:nth-child(6) { bottom: 12px; left: 50%; transform: translateX(-50%); }
.vault-rivets span:nth-child(7) { top: 50%;  left: 12px;  transform: translateY(-50%); }
.vault-rivets span:nth-child(8) { top: 50%;  right: 12px; transform: translateY(-50%); }

.vault-inner {
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(26, 26, 46, 0.95)),
        radial-gradient(ellipse at 50% 0%, rgba(123, 47, 247, 0.2), transparent 60%);
    padding: 3rem 3rem 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    overflow: hidden;
}

.vault-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 215, 0, 0.025) 0px, rgba(255, 215, 0, 0.025) 1px, transparent 1px, transparent 5px);
    pointer-events: none;
}

.vault-dial {
    width: 90px;
    height: 90px;
    color: var(--gold);
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}

.vault-dial svg { width: 100%; height: 100%; }

.dial-pointer {
    transform-origin: 60px 60px;
    animation: dialSpin 14s ease-in-out infinite;
}

@keyframes dialSpin {
    0%   { transform: rotate(0deg); }
    35%  { transform: rotate(120deg); }
    65%  { transform: rotate(60deg); }
    100% { transform: rotate(360deg); }
}

.vault-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(0, 245, 212, 0.4);
    background: rgba(0, 245, 212, 0.05);
}

.vault-title {
    font-size: clamp(2rem, 5vw, 3.6rem) !important;
    margin: 0.4rem 0 0.6rem !important;
}

.vault-blurb {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--silver);
    font-weight: 300;
}

.vault-meta {
    width: 100%;
    max-width: 560px;
    margin: 1.4rem 0 1rem;
    border-top: 1px dashed rgba(255, 215, 0, 0.25);
    border-bottom: 1px dashed rgba(255, 215, 0, 0.25);
    padding: 1rem 0.6rem;
}

.vm-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.3rem 0;
    text-align: left;
}

.vm-key {
    color: var(--gold);
    letter-spacing: 0.26em;
    opacity: 0.85;
}

.vm-val {
    color: var(--silver);
    text-align: right;
    flex: 1;
}

.vault-key {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0.6rem 0 0.4rem;
}

.key-line {
    flex: 1;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.vault-token {
    font-size: 0.7rem;
    opacity: 0.7;
    color: var(--gold);
    letter-spacing: 0.18em;
}

/* =====================================================================
   12. SIDE RAIL NAV
   ===================================================================== */
.side-rail {
    position: fixed;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 96;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.5rem;
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(192, 192, 192, 0.12);
}

.rail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rail-dot {
    appearance: none;
    background: transparent;
    border: 1px solid var(--silver);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.rail-dot:hover {
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.rail-dot.active {
    background: conic-gradient(from var(--angle), var(--gold), var(--violet), var(--cyan), var(--pink), var(--gold));
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    animation: rotateGrad 6s linear infinite;
    transform: scale(1.25);
}

.rail-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--silver);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(10, 10, 20, 0.8);
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rail-dot:hover::after { opacity: 1; }

.rail-arrow {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(192, 192, 192, 0.3);
    color: var(--silver);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.rail-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

@media (max-width: 720px) {
    .side-rail { right: 0.5rem; padding: 0.5rem 0.35rem; }
    .rail-dot::after { display: none; }
    .rail-arrow { width: 24px; height: 24px; }
}

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
    .single-exhibit, .pair-exhibit { width: 95vw; }
    .pair-exhibit { flex-direction: column; gap: 1.2rem; padding: calc(var(--chrome-h) + 2rem) 5vw 3rem; }
    .paired-card { max-width: 100%; }
    .exhibit-content.split { grid-template-columns: 1fr; gap: 1.4rem; }
    .artifact-content { grid-template-columns: 1fr; gap: 1.2rem; }
    .artifact-plate { max-width: 240px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .exhibit { padding: calc(var(--chrome-h) + 1.5rem) 1.2rem 2rem; }
    .exhibit-content { padding: 2.2rem 1.6rem 1.8rem; }
    .exhibit-number { font-size: 3.4rem; }
    .gap-section { width: 14vw; min-width: 84px; }
    .hero-stack { gap: 1rem; }
    .vault-inner { padding: 2rem 1.2rem 1.6rem; }
    .vm-row { flex-direction: column; gap: 0.2rem; }
    .vm-val { text-align: left; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}
