:root {
    --ink: #0b0a09;
    --charcoal: #171512;
    --stone: #2a2622;
    --bronze: #b8895a;
    --gold: #c9a15a;
    --gold-bright: #e8c583;
    --brass: #9c7a3f;
    --patina: #4f6b5c;
    --marble: #e9e2d3;
    --paper: #f2ece1;
    --muted: rgba(242,236,225,0.62);
    --muted-2: rgba(242,236,225,0.42);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0; min-height: 100%; background: var(--ink); color: var(--paper);
    font-family: 'Inter', system-ui, sans-serif; cursor: none;
}
body.in-experience { overflow: hidden; height: 100%; }
img, .btn, button { cursor: none; }
@media (hover: none) { html, body, .btn, button { cursor: auto; } }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ══════════════════ Custom cursor: museum spotlight + brass lens ══════════════════ */
#custom-cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* Warm light pool that follows the cursor, as if a spotlight is being carried through the galleries */
#cc-glow {
    position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,161,90,0.10) 0%, rgba(201,161,90,0.045) 35%, transparent 70%);
    will-change: transform; transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.4s ease;
    mix-blend-mode: screen;
}
#cc-glow.cc-hover { width: 560px; height: 560px; }

#cc-dot {
    position: fixed; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold-bright); will-change: transform; box-shadow: 0 0 8px 1px rgba(232,197,131,0.8);
}

/* Brass compass-lens ring: rotates gently, widens like a magnifying glass over hoverables */
#cc-ring {
    position: fixed; top: 0; left: 0; width: 46px; height: 46px; will-change: transform;
    transition: width 0.32s var(--ease-soft), height 0.32s var(--ease-soft), opacity 0.3s ease;
}
#cc-ring svg { width: 100%; height: 100%; overflow: visible; animation: ccRingSpin 22s linear infinite; transform-origin: 50% 50%; }
#cc-ring circle { fill: none; stroke: rgba(201,161,90,0.55); stroke-width: 1; }
#cc-ring circle.cc-inner { stroke: rgba(201,161,90,0.28); }
#cc-ring line { stroke: rgba(201,161,90,0.5); stroke-width: 1; }
@keyframes ccRingSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#cc-ring.cc-hover { width: 78px; height: 78px; }
#cc-ring.cc-hover circle { stroke: var(--gold-bright); }
#cc-ring.cc-click { width: 34px; height: 34px; }

#cc-label {
    position: fixed; top: 0; left: 0; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold-bright); opacity: 0; white-space: nowrap; will-change: transform, opacity;
    transition: opacity 0.3s ease; text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
#cc-label.cc-hover { opacity: 0.85; }

@media (hover: none) { #custom-cursor { display: none; } }

/* ══════════════════ Floating cursor artifacts ══════════════════ */
#cursor-artifacts { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }
.cursor-artifact {
    position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform, opacity;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55)) sepia(0.15);
    opacity: 0;
}
.cursor-artifact svg { display: block; }
.cursor-artifact.behind { z-index: 9996; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55)) sepia(0.15) blur(0.4px) brightness(0.85); }
.cursor-artifact.front { z-index: 9999; }

/* Hover-reveal artifact tucked beside buttons/cards */
.hover-artifact {
    position: absolute; top: -46px; right: 6px; width: 40px; height: 40px; pointer-events: none;
    opacity: 0; transform: translateY(6px) scale(0.8) rotate(-8deg); z-index: 5;
    transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)) sepia(0.12);
}
[data-hover]:hover .hover-artifact { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }

/* ══════════════════ Atmosphere canvas / rays / grain ══════════════════ */
#atmosphere { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.7; }
#light-rays {
    position: fixed; inset: -10%; z-index: 1; pointer-events: none; opacity: 0.35; mix-blend-mode: screen;
    background: repeating-conic-gradient(from 200deg at 50% -10%, rgba(201,161,90,0.06) 0deg 2.4deg, transparent 2.4deg 8deg);
    will-change: transform; transition: transform 0.6s var(--ease-soft);
}
#grain-overlay {
    position: fixed; inset: 0; z-index: 9997; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════════ Engraved / carved heading reveal ══════════════════ */
.carve-text { position: relative; }
.carve-text .carve-word { display: inline-block; opacity: 0; transform: translateY(0.2em); filter: blur(6px); }
.carve-text.carved .carve-word {
    animation: carveIn 1.1s var(--ease-soft) forwards;
}
@keyframes carveIn {
    0% { opacity: 0; filter: blur(8px); transform: translateY(0.25em); text-shadow: 0 0 0 rgba(0,0,0,0); }
    55% { opacity: 1; filter: blur(0.4px); text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 -1px 0 rgba(255,255,255,0.06); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); text-shadow: none; }
}

/* ══════════════════ Marble / brass texture surfaces ══════════════════ */
.marble-surface {
    background-image:
        radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,0.05), transparent 55%),
        radial-gradient(90% 70% at 90% 100%, rgba(255,255,255,0.035), transparent 60%),
        repeating-linear-gradient(115deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 60px);
}

/* ══════════════════ Shared building blocks ══════════════════ */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 999px; padding: 16px 32px; font-size: 14px; font-weight: 600;
    letter-spacing: 0.02em; transition: transform 0.2s var(--ease-soft), box-shadow 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
    font-family: inherit; will-change: transform;
}
.btn-gold {
    background-image: linear-gradient(155deg, rgba(232,197,131,0.88), rgba(201,161,90,0.85) 60%, rgba(156,122,63,0.9)), url('../assets/img/texture-brass.webp');
    background-size: cover, 200% 200%; background-position: center, center; background-blend-mode: normal, overlay;
    color: #17140f; box-shadow: 0 10px 34px rgba(201,161,90,0.22);
}
.btn-gold:hover { box-shadow: 0 16px 46px rgba(201,161,90,0.42); }
.btn-outline { background: transparent; border: 1px solid rgba(242,236,225,0.25); color: var(--paper); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: rgba(242,236,225,0.06); border: 1px solid rgba(201,161,90,0.3); color: var(--paper); }
.btn-ghost:hover { background: rgba(201,161,90,0.16); }
.btn-small { padding: 11px 22px; font-size: 13px; }

.glass-card {
    position: relative; background: rgba(23,21,18,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201,161,90,0.18); border-radius: 18px; padding: 30px 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    transition: transform 0.45s var(--ease-soft), border-color 0.4s ease, box-shadow 0.45s var(--ease-soft);
}
.glass-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(201,161,90,0.35), transparent 40%, transparent 60%, rgba(201,161,90,0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(201,161,90,0.4); box-shadow: 0 28px 64px rgba(0,0,0,0.45); }
/* Brass corner ticks — like a museum vitrine label */
.glass-card::after {
    content: ''; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px;
    border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); opacity: 0.55; pointer-events: none;
}

.section {
    position: relative; z-index: 2; padding: 130px max(24px, calc((100vw - var(--maxw)) / 2));
    background-image: radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,0.035), transparent 55%), radial-gradient(90% 70% at 90% 100%, rgba(255,255,255,0.025), transparent 60%);
}
.section-dark {
    background-color: rgba(0,0,0,0.12);
    background-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../assets/img/texture-marble.webp'), radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,0.03), transparent 55%);
    background-blend-mode: normal, luminosity, normal;
    background-size: auto, 900px 900px, auto;
    background-position: center, center, center;
    background-repeat: no-repeat, repeat, no-repeat;
}
.section-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; margin: 0 0 20px; }
.section-lede { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 620px; margin: 0 0 50px; }

.reveal, .reveal-up { will-change: transform, opacity; }

/* ══════════════════ Nav ══════════════════ */
#site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px max(24px, calc((100vw - var(--maxw)) / 2));
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
#site-nav.nav-scrolled {
    background: rgba(11,10,9,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,161,90,0.14); padding-top: 16px; padding-bottom: 16px;
}
.brand { font-family: 'Playfair Display', serif; font-size: 18px; letter-spacing: 2px; }
.brand em { font-style: italic; color: var(--gold); }
#nav-links { display: flex; gap: 34px; }
#nav-links a { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); transition: color 0.2s ease; }
#nav-links a:hover { color: var(--paper); }
@media (max-width: 860px) { #nav-links { display: none; } }

/* ══════════════════ Hero ══════════════════ */
#hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse at 25% 15%, rgba(201,161,90,0.16), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(184,137,90,0.13), transparent 60%),
        linear-gradient(180deg, rgba(5,4,3,0.55) 0%, rgba(11,10,9,0.72) 55%, rgba(20,16,11,0.92) 100%),
        url('../assets/img/hero-rotunda.webp');
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, 50% 35%;
}
.hero-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.5), transparent 60%); z-index: 1; }
.hero-rays {
    position: absolute; inset: -20%; z-index: 0; opacity: 0.5;
    background: repeating-conic-gradient(from 200deg at 50% -10%, rgba(201,161,90,0.05) 0deg 3deg, transparent 3deg 9deg);
    animation: raysDrift 60s linear infinite;
}
@keyframes raysDrift { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#hero-content { position: relative; z-index: 2; max-width: 760px; text-align: center; padding: 40px 24px; transition: transform 0.5s var(--ease-soft); will-change: transform; }
.eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin: 0 0 22px; }
#hero-content h1 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(42px, 7.4vw, 82px); line-height: 1.04; margin: 0 0 24px; }
#hero-content h1 em { font-style: italic; color: var(--gold); }
.mask { display: inline-block; overflow: hidden; vertical-align: top; }
.mask > span { display: inline-block; }
#hero-sub { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 560px; margin: 0 auto 38px; }
#hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
#hero-hint { font-size: 12.5px; color: var(--muted-2); }

#scroll-cue {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2);
}
#scroll-cue span { width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0%, 100% { transform: scaleY(0.6); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ══════════════════ Card grid (Why MuseumVerse) ══════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card-index { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 22px; }
.glass-card h3 { font-size: 17px; margin: 16px 0 10px; font-weight: 600; }
.glass-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ══════════════════ Split (3D Experience) ══════════════════ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feature-list { margin: 26px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.feature-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.split-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.mock-glow { position: absolute; width: 60%; height: 60%; background: radial-gradient(circle, rgba(201,161,90,0.22), transparent 70%); filter: blur(10px); z-index: 0; }
.mock-panel {
    position: relative; z-index: 1; width: 320px; padding: 26px 24px;
    background-color: rgba(23,21,18,0.68);
    background-image: linear-gradient(rgba(23,21,18,0.86), rgba(23,21,18,0.86)), url('../assets/img/texture-paper.webp');
    background-size: cover, 340px 340px; background-blend-mode: normal, soft-light; background-repeat: no-repeat, repeat;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201,161,90,0.3); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s var(--ease);
}
.split-visual:hover .mock-panel { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }
.mock-tag { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.mock-panel h4 { font-family: 'Playfair Display', serif; font-size: 20px; line-height: 1.2; margin: 0 0 16px; }
.mock-meta { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(242,236,225,0.12); border-bottom: 1px solid rgba(242,236,225,0.12); margin-bottom: 14px; }
.mock-meta span { display: flex; flex-direction: column; font-size: 12px; }
.mock-meta em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-bottom: 2px; }
.mock-desc { font-size: 12.5px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.mock-actions { display: flex; gap: 10px; }
.mock-actions span { font-size: 11px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(201,161,90,0.35); color: var(--muted); }

/* ══════════════════ Featured Museums ══════════════════ */
.museum-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 20px; }
.museum-card-lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .museum-grid { grid-template-columns: repeat(2, 1fr); } .museum-card-lg { grid-column: span 2; grid-row: span 1; height: 320px; } }
@media (max-width: 600px) { .museum-grid { grid-template-columns: 1fr; } .museum-card-lg { grid-column: span 1; } }
.museum-card {
    position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(201,161,90,0.15);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.museum-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.museum-card::before {
    content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,161,90,0.28); border-radius: 12px;
    z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-soft);
}
.museum-card:hover::before { opacity: 1; }
.museum-media { position: absolute; inset: 0; background-size: 140% 140%; background-position: 50% 50%; filter: saturate(0.85); }
.museum-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,0) 30%, rgba(11,10,9,0.92) 100%); }
.museum-info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.museum-info h3 { font-family: 'Playfair Display', serif; font-size: 19px; margin: 0 0 4px; }
.museum-info p { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: 0.02em; }
.grand-gallery { background: linear-gradient(135deg, #4a3a24, #1c150e); }
.natural-history { background-image: url('../assets/img/natural-history.webp'); background-size: cover; background-position: 50% 35%; }
.arms-armor { background-image: url('../assets/img/arms-armor.webp'); background-size: cover; background-position: 50% 30%; }
.modern-tech { background-image: url('../assets/img/modern-tech.webp'); background-size: cover; background-position: 50% 40%; }

/* ══════════════════ Benefits ══════════════════ */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-item h4 { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 18px; margin: 0 0 10px; }
.benefit-item p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ══════════════════ Testimonials ══════════════════ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial p { font-size: 15px; line-height: 1.7; font-family: 'Playfair Display', serif; font-style: italic; margin: 0 0 18px; }
.testimonial cite { font-size: 12px; color: var(--muted-2); font-style: normal; }

/* ══════════════════ Pricing ══════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
    position: relative; padding: 38px 30px; border-radius: 20px; border: 1px solid rgba(201,161,90,0.18);
    background: rgba(23,21,18,0.5); display: flex; flex-direction: column; gap: 14px;
    transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(201,161,90,0.4); }
.price-card-featured { background: linear-gradient(165deg, rgba(201,161,90,0.14), rgba(23,21,18,0.6)); border-color: var(--gold); }
.price-badge { position: absolute; top: -13px; left: 30px; background: var(--gold); color: #17140f; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 6px 0 0; }
.price { font-size: 34px; font-weight: 600; margin: 0; }
.price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.price-card li { font-size: 13px; color: var(--muted); padding-left: 16px; position: relative; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.price-card .btn { margin-top: auto; width: 100%; }

/* ══════════════════ Contact ══════════════════ */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.form-row input, .form-row textarea {
    background: rgba(0,0,0,0.25); border: 1px solid rgba(242,236,225,0.15); border-radius: 10px;
    padding: 13px 14px; color: var(--paper); font-family: inherit; font-size: 14px; resize: vertical;
    transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-status { font-size: 13px; color: var(--gold); min-height: 16px; margin: 0; }

/* ══════════════════ Footer ══════════════════ */
#site-footer {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    padding: 40px max(24px, calc((100vw - var(--maxw)) / 2)); border-top: 1px solid rgba(242,236,225,0.08);
}
#site-footer p { font-size: 12px; color: var(--muted-2); margin: 0; }

/* ══════════════════ Site / experience swap ══════════════════ */
#site { position: relative; z-index: 2; }
#site.site-hidden { display: none; }
#experience-root { display: none; }
#experience-root.experience-active { display: block; }

/* ══════════════════ 3D experience chrome ══════════════════ */
#app { position: fixed; inset: 0; }
#app canvas { display: block; }

#experience-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 32px; pointer-events: none;
}
#experience-header #brand { font-family: 'Playfair Display', serif; font-size: 18px; letter-spacing: 2px; pointer-events: auto; }
#experience-header #brand em { font-style: italic; color: var(--gold); }
#hud { font-size: 12px; letter-spacing: 0.5px; color: var(--muted); margin: 0; pointer-events: none; }
#experience-exit {
    pointer-events: auto; background: rgba(23,21,18,0.55); backdrop-filter: blur(10px);
    border: 1px solid rgba(201,161,90,0.3); color: var(--paper); border-radius: 999px;
    padding: 9px 18px; font-size: 12px; letter-spacing: 0.3px; font-family: inherit;
}
#experience-exit:hover { background: rgba(201,161,90,0.2); }

/* ── Loading screen ── */
#loading-screen {
    position: fixed; inset: 0; z-index: 200; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
#loading-screen {
    position: fixed; inset: 0; z-index: 200; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
.loader-door {
    position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
    background-color: var(--ink);
    background-image: linear-gradient(160deg, rgba(23,21,18,0.55), rgba(11,10,9,0.75) 70%), url('../assets/img/loading-doors.webp');
    background-size: 200% 100%;
    transition: transform 1.1s var(--ease);
}
#loader-door-left { left: 0; transform-origin: left center; background-position: 0% center; }
#loader-door-right { right: 0; transform-origin: right center; background-position: 100% center; }
#loading-screen.loader-doors-open #loader-door-left { transform: translateX(-100%); }
#loading-screen.loader-doors-open #loader-door-right { transform: translateX(100%); }
#loading-screen.loader-doors-open #loader-content { opacity: 0; transform: scale(1.05); transition: opacity 0.5s ease, transform 0.5s ease; }

#loader-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
#loader-wordmark { font-family: 'Playfair Display', serif; font-size: 30px; letter-spacing: 3px; margin: 0 0 18px; }
#loader-wordmark em { font-style: italic; color: var(--gold); }
#loader-message { font-size: 13px; letter-spacing: 1px; color: var(--muted); margin: 0 0 20px; min-height: 18px; }
#loader-bar { width: 220px; height: 2px; background: rgba(242,236,225,0.15); border-radius: 2px; overflow: hidden; margin: 0 auto; }
#loader-bar-fill { height: 100%; width: 0%; background: var(--gold); transition: width 0.3s ease; }
#loader-percent-wrap { margin: 14px 0 0; font-size: 12px; letter-spacing: 1px; color: var(--muted-2); }

/* ── Exhibit info panel ── */
#exhibit-panel {
    position: fixed; right: 28px; top: 50%; transform: translate(24px, -50%);
    width: 380px; max-width: calc(100vw - 56px); max-height: 82vh; overflow-y: auto;
    padding: 30px 28px 26px;
    scrollbar-width: thin; scrollbar-color: rgba(201,161,90,0.4) transparent;
}
#exhibit-close {
    position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(242,236,225,0.2); background: rgba(0,0,0,0.2); color: var(--paper);
    font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
#exhibit-close:hover { background: rgba(201,161,90,0.25); transform: rotate(90deg); }
#exhibit-tag { font-size: 10px; letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; margin: 0 0 8px; }
#exhibit-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 16px; padding: 12px 0; border-top: 1px solid rgba(242,236,225,0.12); border-bottom: 1px solid rgba(242,236,225,0.12); }
#exhibit-meta span { display: flex; flex-direction: column; font-size: 12px; color: var(--paper); }
#exhibit-meta em { font-style: normal; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
#exhibit-overview { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.exhibit-section { margin-bottom: 16px; }
.exhibit-section h3 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: var(--gold); margin: 0 0 6px; }
.exhibit-section p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; }
#exhibit-facts { margin: 18px 0; }
#exhibit-facts h3, #exhibit-related h3 { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--paper); margin: 0 0 10px; }
#exhibit-facts ul { margin: 0; padding: 0; }
#exhibit-facts li { font-size: 12.5px; color: var(--muted); line-height: 1.6; padding-left: 14px; position: relative; margin-bottom: 6px; }
#exhibit-facts li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chips span { font-size: 11px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,161,90,0.35); color: var(--muted); }
#exhibit-panel {
    background-color: rgba(23,21,18,0.6);
    background-image: linear-gradient(rgba(23,21,18,0.88), rgba(23,21,18,0.88)), url('../assets/img/texture-paper.webp');
    background-size: cover, 340px 340px; background-blend-mode: normal, soft-light; background-repeat: no-repeat, repeat;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(201,161,90,0.25); border-radius: 16px;
    z-index: 30;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
#exhibit-panel.exhibit-panel-visible { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
#exhibit-title { font-family: 'Playfair Display', serif; font-size: 24px; margin: 0 0 4px; line-height: 1.15; }

@media (max-width: 640px) {
    #exhibit-panel { left: 16px; right: 16px; bottom: 120px; top: auto; transform: translateY(24px); width: auto; }
    #exhibit-panel.exhibit-panel-visible { transform: translateY(0); }
}

/* ── Mobile joystick ── */
#mobile-controls { position: fixed; bottom: 32px; left: 32px; z-index: 30; }
#joystick-base {
    width: 96px; height: 96px; border-radius: 50%;
    background: rgba(242,236,225,0.08); border: 1px solid rgba(201,161,90,0.3);
    display: flex; align-items: center; justify-content: center; touch-action: none;
}
#joystick-knob {
    width: 42px; height: 42px; border-radius: 50%; background: var(--gold);
    transition: transform 0.05s linear;
}

/* ══════════════════ Responsive: tame effects on small / touch screens ══════════════════ */
@media (max-width: 700px) {
    #cursor-artifacts, #cc-glow, #light-rays { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #cursor-artifacts, #light-rays, .hero-rays { display: none; }
    .carve-text .carve-word { animation: none !important; opacity: 1; filter: none; transform: none; }
}
