/* ==========================================================================
   《翊天機・越臺九極畫宮》 — THE SOVEREIGN PAVILION OF VIET–TAIWAN ART
   Museum-Grade Private Exhibition Stylesheet (Zero External Dependencies)
   Palette: Deep Lacquer Obsidian · Brushed Antique 24K Gold · Cinnabar Seal · Archival Ivory
   ========================================================================== */

:root {
  --obs-deep: #070709;
  --obs-wall: #0c0d10;
  --obs-plinth: #121318;
  --obs-card: #16181e;
  --gold-antique: #c8a454;
  --gold-luminous: #e8cf91;
  --gold-dim: rgba(200, 164, 84, 0.24);
  --gold-hairline: rgba(200, 164, 84, 0.14);
  --cinnabar: #a6262a;
  --cinnabar-glow: rgba(166, 38, 42, 0.55);
  --jade-mist: #1f5c48;
  --jade-soft: #96d9be;
  --ivory: #f2ece0;
  --ivory-muted: #a69e8e;
  --ivory-faint: #6f695d;
  --font-serif: "Times New Roman", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-calligraphy: "DFKai-SB", "BiauKai", "KaiTi", "STKaiti", "Noto Serif TC", "Times New Roman", serif;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans", sans-serif;
  --spot-x: 50%;
  --spot-y: 30%;
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(200, 164, 84, 0.30); color: #faf3e2; }

html {
  scroll-behavior: smooth;
  background-color: var(--obs-deep);
}

body {
  margin: 0;
  padding: 0;
  background: var(--obs-deep);
  color: var(--ivory);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Museum 2700K Tracklight Ambient Spotlight following pointer */
.museum-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    680px circle at var(--spot-x) var(--spot-y),
    rgba(232, 207, 145, 0.065),
    rgba(200, 164, 84, 0.018) 42%,
    transparent 72%
  );
  transition: opacity 0.4s ease;
}

/* Subtle archival grain veil */
.archival-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.032;
  background-image:
    radial-gradient(rgba(255, 245, 220, 0.5) 0.6px, transparent 0.6px),
    radial-gradient(rgba(200, 164, 84, 0.4) 0.5px, transparent 0.5px);
  background-size: 28px 28px, 41px 41px;
  background-position: 0 0, 13px 17px;
}

/* ==========================================================================
   1. THE VELVET SEAL THRESHOLD (10-Second Unforgettable Opening Ritual)
   ========================================================================== */
.velvet-threshold {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at 50% 42%, #141216 0%, #070709 68%, #040405 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.15s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.velvet-threshold.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.threshold-frame {
  position: relative;
  max-width: 820px;
  width: 100%;
  padding: 48px 36px;
  border: 1px solid rgba(200, 164, 84, 0.22);
  background: rgba(10, 10, 13, 0.72);
}

.threshold-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200, 164, 84, 0.1);
  pointer-events: none;
}

.threshold-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin-bottom: 16px;
}

.threshold-han {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.38rem, 3.1vw, 2.55rem);
  color: var(--gold-luminous);
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  font-weight: 500;
}

.threshold-vn {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  color: var(--ivory);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-weight: 400;
}

.threshold-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ivory-muted);
  letter-spacing: 0.06em;
  margin: 0 0 32px;
}

.threshold-greeting {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  color: #e5dcc9;
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.75;
}

/* Interactive Breathing Cinnabar Imperial Seal */
.seal-ritual-btn {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  background: linear-gradient(145deg, #b8292f 0%, #8e1c20 100%);
  border: 2px solid rgba(242, 224, 184, 0.72);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  padding: 10px;
  box-shadow: 0 0 0 0 var(--cinnabar-glow), 0 14px 40px rgba(0, 0, 0, 0.8);
  animation: sealBreathe 3.6s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.seal-ritual-btn::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(246, 232, 200, 0.52);
  border-radius: 2px;
  pointer-events: none;
}

.seal-ritual-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 42px rgba(184, 41, 47, 0.65), 0 18px 46px rgba(0, 0, 0, 0.85);
}

.seal-ritual-btn span {
  font-family: var(--font-calligraphy);
  font-size: 1.65rem;
  line-height: 1;
  color: #f8eed8;
  font-weight: 700;
  user-select: none;
}

@keyframes sealBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 38, 42, 0.48), 0 14px 40px rgba(0, 0, 0, 0.78); }
  50% { box-shadow: 0 0 0 18px rgba(166, 38, 42, 0), 0 18px 48px rgba(0, 0, 0, 0.9); }
}

.threshold-cta-hint {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-luminous);
  margin: 0 0 14px;
}

.threshold-skip {
  background: none;
  border: none;
  color: var(--ivory-faint);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 8px 14px;
  min-height: 44px;
  transition: color 0.2s ease;
}
.threshold-skip:hover { color: var(--ivory-muted); }

/* ==========================================================================
   2. SOVEREIGN MUSEUM TOP BAR (Minimal, Quiet Luxury)
   ========================================================================== */
.pavilion-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 7, 9, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-hairline);
  padding: 0 clamp(16px, 3vw, 44px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-monogram {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
  flex-shrink: 0;
}

.mini-seal {
  width: 30px;
  height: 30px;
  background: var(--cinnabar);
  border: 1px solid rgba(242, 224, 184, 0.65);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-calligraphy);
  font-size: 0.95rem;
  color: #f8eed8;
  font-weight: 700;
}

.nav-title-stack strong {
  display: block;
  font-family: var(--font-calligraphy);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--gold-luminous);
  font-weight: 500;
}

.nav-title-stack span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.hall-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hall-nav-links a {
  text-decoration: none;
  color: var(--ivory-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.24s ease;
  white-space: nowrap;
}

.hall-nav-links a:hover,
.hall-nav-links a.active {
  color: var(--gold-luminous);
  border-color: var(--gold-dim);
  background: rgba(200, 164, 84, 0.08);
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

.museum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.museum-btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold-dim);
}
.museum-btn-ghost:hover {
  border-color: var(--gold-luminous);
  color: var(--gold-luminous);
  background: rgba(200, 164, 84, 0.08);
}

.museum-btn-gold {
  background: linear-gradient(135deg, #dfc078 0%, #b58d3c 100%);
  color: #0b0b0d;
  border: 1px solid #efd89b;
}
.museum-btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(200, 164, 84, 0.28);
}

.museum-btn-subtle {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory-muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0 14px;
  font-size: 0.73rem;
}
.museum-btn-subtle:hover,
.museum-btn-subtle.active {
  color: var(--gold-luminous);
  border-color: var(--gold-dim);
  background: rgba(200, 164, 84, 0.1);
}

@media (max-width: 1280px) {
  .hall-nav-links { display: none; }
}

@media (max-width: 720px) {
  .nav-title-stack span { display: none; }
  .museum-btn { padding: 0 12px; font-size: 0.72rem; letter-spacing: 0.08em; }
  .hide-mobile { display: none !important; }
}

/* ==========================================================================
   3. EXHIBITION ATRIUM & CURATOR'S MANIFESTO (Lưu Bạch ≥ 45%)
   ========================================================================== */
.pavilion-main {
  position: relative;
  z-index: 5;
}

.atrium-hero {
  min-height: calc(100vh - 70px);
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(20px, 4vw, 56px) clamp(64px, 10vh, 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

@media (max-width: 960px) {
  .atrium-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }
}

.atrium-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin: 0 0 18px;
}

.atrium-han {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.5rem, 2.75vw, 2.65rem);
  color: var(--gold-luminous);
  letter-spacing: 0.09em;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 500;
}

.atrium-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  color: var(--ivory);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.atrium-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory-muted);
  margin: 0 0 32px;
}

.gold-rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-antique), transparent);
  margin: 0 0 30px;
}

.manifesto-copy p {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: #dcd4c3;
  line-height: 1.86;
  margin: 0 0 18px;
}

.manifesto-copy strong {
  color: var(--gold-luminous);
  font-weight: 600;
}

.atrium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Signature Hero Plinth Artwork */
.atrium-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-plinth {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  background: radial-gradient(circle at 50% 0%, rgba(232, 207, 145, 0.14), rgba(14, 15, 19, 0.92) 66%);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.hero-plinth:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 207, 145, 0.55);
}

.hero-plinth::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-luminous), transparent);
}

.hero-plinth canvas {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
}

.hero-plaque {
  margin-top: 22px;
  text-align: center;
}

.hero-plaque-lot {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-antique);
}

.hero-plaque-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ivory);
  margin: 4px 0 2px;
}

.hero-plaque-spec {
  font-size: 0.78rem;
  color: var(--ivory-muted);
}

/* ==========================================================================
   4. FOUR SOVEREIGN HALLS (TỨ ĐIỆN: KHỞI · THỪA · CHUYỂN · HỢP)
   ========================================================================== */
.hall-section {
  position: relative;
  border-top: 1px solid var(--gold-hairline);
  padding: clamp(72px, 11vh, 130px) clamp(18px, 4vw, 56px);
}

.hall-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.hall-header {
  max-width: 820px;
  margin: 0 auto clamp(56px, 9vh, 96px);
  text-align: center;
}

.hall-chapter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin-bottom: 14px;
}

.hall-chapter::before,
.hall-chapter::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
}

.hall-han {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--gold-luminous);
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  font-weight: 500;
}

.hall-vn {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--ivory);
  margin: 0 0 6px;
  font-weight: 400;
}

.hall-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ivory-faint);
  letter-spacing: 0.06em;
  margin: 0 0 22px;
}

.hall-epigraph {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #e4dac5;
  margin: 0;
}

/* Monumental Solo Plinth per Artwork (1 Painting per Exhibition Bay — Never Crowded) */
.lot-exhibition {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(44px, 7vh, 84px) 0;
  border-top: 1px solid rgba(200, 164, 84, 0.09);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.lot-exhibition.revealed {
  opacity: 1;
  transform: translateY(0);
}

.lot-exhibition:first-of-type {
  border-top: none;
  padding-top: 0;
}

.lot-exhibition.alt-layout .lot-stage-col { order: 2; }
.lot-exhibition.alt-layout .lot-provenance-col { order: 1; }

@media (max-width: 960px) {
  .lot-exhibition {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lot-exhibition.alt-layout .lot-stage-col,
  .lot-exhibition.alt-layout .lot-provenance-col {
    order: initial;
  }
}

/* Museum Wall Frame Plinth */
.lot-wall-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 207, 145, 0.11) 0%, #0d0e12 58%, #090a0d 100%);
  border: 1px solid var(--gold-hairline);
  padding: clamp(22px, 3.6vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.lot-wall-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 207, 145, 0.5), transparent);
}

.lot-wall-stage:hover {
  border-color: rgba(200, 164, 84, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.lot-canvas-frame {
  position: relative;
  display: inline-block;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88), 0 4px 18px rgba(0, 0, 0, 0.65);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lot-wall-stage:hover .lot-canvas-frame {
  transform: scale(1.015);
}

.lot-canvas-frame canvas {
  display: block;
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
}

.lot-stage-hint {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.lot-view-switch {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Provenance & Catalogue Raisonné Plaque */
.lot-provenance-col {
  padding: 6px 0;
}

.provenance-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gold-hairline);
}

.lot-catalogue-id {
  font-size: 0.73rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-antique);
  font-weight: 600;
}

.lot-status-pill {
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade-soft);
  border: 1px solid rgba(150, 217, 190, 0.28);
  background: rgba(31, 92, 72, 0.14);
  padding: 4px 10px;
  border-radius: 2px;
}

.lot-status-pill.unique {
  color: var(--gold-luminous);
  border-color: rgba(232, 207, 145, 0.45);
  background: rgba(200, 164, 84, 0.12);
}

.lot-calligraphy-mark {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  color: var(--gold-luminous);
  letter-spacing: 0.16em;
  margin: 0 0 6px;
  font-weight: 500;
}

.lot-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  color: var(--ivory);
  font-weight: 400;
  line-height: 1.38;
  margin: 0 0 16px;
}

.lot-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #e6ddc9;
  padding-left: 16px;
  border-left: 2px solid var(--gold-antique);
  margin: 0 0 22px;
  line-height: 1.65;
}

.lot-curatorial-note {
  font-size: 0.92rem;
  color: #c7bfb0;
  line-height: 1.78;
  margin: 0 0 22px;
}

/* Archival Provenance Table */
.provenance-ledger {
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
  padding: 14px 0;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

@media (max-width: 520px) {
  .provenance-ledger { grid-template-columns: 1fr; }
}

.prov-field span {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 2px;
}

.prov-field strong {
  display: block;
  font-size: 0.83rem;
  color: var(--ivory);
  font-weight: 500;
}

.edition-lock-line {
  font-size: 0.76rem;
  color: var(--ivory-muted);
  margin: -12px 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lot-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   5. PRIVATE VIEWING ROOM MODAL (1-1 Fullscreen · Loupe 2.8× · Real Lighting)
   ========================================================================== */
.viewing-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.viewing-modal.open { display: flex; }

.viewing-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 10, 0.94);
  border-bottom: 1px solid var(--gold-hairline);
  padding: 12px clamp(16px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viewing-body {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 1020px) {
  .viewing-body { grid-template-columns: 1fr; }
}

.viewing-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewing-canvas-box {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(232, 207, 145, 0.11), #090a0d 68%);
  border: 1px solid var(--gold-dim);
  padding: clamp(16px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  overflow: hidden;
  user-select: none;
}

.viewing-canvas-box canvas#viewingCanvas {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92);
  transition: filter 0.25s ease;
}

/* 2.8x Macro Material Magnifier Loupe */
.material-loupe {
  position: fixed;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 2px solid var(--gold-luminous);
  box-shadow: 0 0 0 4px rgba(10, 10, 12, 0.85), 0 20px 55px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  display: none;
  z-index: 180;
  overflow: hidden;
  background: #0a0a0c;
}

.material-loupe.active { display: block; }

.material-loupe canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.loupe-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 7, 9, 0.85);
  border: 1px solid var(--gold-dim);
  color: var(--gold-luminous);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.viewing-controls-panel {
  background: var(--obs-plinth);
  border: 1px solid var(--gold-hairline);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viewing-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.viewing-control-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-antique);
}

.lighting-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
  max-width: 440px;
}

.lighting-slider-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--gold-antique);
  cursor: pointer;
}

.viewing-room-subbar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--gold-hairline);
}

.viewing-room-subbar.visible { display: flex; }

/* Right Column inside Private Viewing Room */
.viewing-dossier {
  background: var(--obs-plinth);
  border: 1px solid var(--gold-hairline);
  padding: 26px 26px 28px;
}

.dossier-section-title {
  font-size: 0.71rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade-soft);
  margin: 20px 0 8px;
}

.dossier-text {
  font-size: 0.9rem;
  color: #d6cebe;
  line-height: 1.75;
  margin: 0;
}

.pigment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pigment-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
  color: var(--ivory-muted);
}

.pigment-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   6. PRIVATE ACQUISITION SALON DRAWER (Tín Thành — 4-Field VIP Screening)
   ========================================================================== */
.salon-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: flex-end;
}

.salon-backdrop.open { display: flex; }

.salon-drawer {
  width: min(520px, 100vw);
  height: 100%;
  background: linear-gradient(180deg, #121318 0%, #0b0c0f 100%);
  border-left: 1px solid var(--gold-dim);
  padding: 28px 26px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.salon-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-hairline);
}

.salon-header h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-luminous);
}

.salon-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin-bottom: 7px;
}

.salon-field input,
.salon-field select,
.salon-field textarea {
  width: 100%;
  background: #181a21;
  color: var(--ivory);
  border: 1px solid rgba(200, 164, 84, 0.25);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.salon-field input:focus,
.salon-field select:focus,
.salon-field textarea:focus {
  outline: none;
  border-color: var(--gold-luminous);
}

.inquiry-card-preview {
  background: #161513;
  border: 1px solid var(--gold-dim);
  padding: 16px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: #e7decb;
  line-height: 1.68;
  white-space: pre-wrap;
}

/* ==========================================================================
   7. PRIVATE INVITATION & TRI-PILLAR CLOSING EPILOGUE
   ========================================================================== */
.epilogue-section {
  border-top: 1px solid var(--gold-dim);
  background: radial-gradient(circle at 50% 100%, rgba(200, 164, 84, 0.08), var(--obs-deep) 66%);
  padding: clamp(72px, 11vh, 130px) clamp(20px, 4vw, 56px) 56px;
  text-align: center;
}

.epilogue-box {
  max-width: 820px;
  margin: 0 auto;
}

.epilogue-invitation {
  font-family: var(--font-serif);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  color: #dfd6c4;
  line-height: 1.88;
  margin: 0 auto 34px;
}

.tri-pillar-monument {
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid var(--gold-hairline);
}

.tri-han {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  color: var(--gold-luminous);
  letter-spacing: 0.18em;
  margin: 0 0 12px;
}

.tri-vn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--ivory-muted);
  margin: 0 auto 28px;
  max-width: 720px;
}

.colophon-line {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ivory-faint);
  margin: 0;
}

/* Museum Quiet Toast */
.museum-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 220;
  background: rgba(15, 16, 20, 0.95);
  border: 1px solid var(--gold-antique);
  color: var(--gold-luminous);
  padding: 13px 20px;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.78);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.museum-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. THE MAISON — 10 COLLECTIONS × 8 WORKS = 80 FOUNDATION MONUMENT
   ========================================================================== */
.maison-banner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 56px) 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--gold-hairline);
}

.maison-banner-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maison-banner-tag {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-antique);
}

.maison-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  color: var(--ivory);
  margin: 0;
  font-weight: 400;
}

.maison-roadmap-section {
  border-top: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, #090a0d 0%, #0c0d12 50%, #070709 100%);
  padding: clamp(64px, 10vh, 112px) clamp(18px, 4vw, 56px);
}

.maison-roadmap-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 38px;
}

@media (max-width: 1180px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .collections-grid { grid-template-columns: 1fr; }
}

.col-card {
  position: relative;
  background: rgba(18, 19, 24, 0.85);
  border: 1px solid var(--gold-hairline);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.col-card.interactive {
  cursor: pointer;
}

.col-card.interactive:hover {
  border-color: var(--gold-antique);
  transform: translateY(-3px);
  background: rgba(24, 25, 32, 0.96);
}

.col-card.active {
  border-color: var(--gold-luminous);
  background: linear-gradient(160deg, rgba(200, 164, 84, 0.14), rgba(16, 17, 22, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.col-card.upcoming {
  opacity: 0.68;
}

.col-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.col-roman {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-antique);
  font-weight: 700;
}

.col-badge {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid rgba(150, 217, 190, 0.32);
  color: var(--jade-soft);
  background: rgba(31, 92, 72, 0.18);
}

.col-badge.upcoming {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ivory-faint);
  background: transparent;
}

.col-han {
  font-family: var(--font-calligraphy);
  font-size: 1.3rem;
  color: var(--gold-luminous);
  letter-spacing: 0.14em;
  margin: 2px 0 0;
}

.col-name {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--ivory);
  margin: 0;
  line-height: 1.38;
}

.col-music {
  font-size: 0.73rem;
  color: var(--ivory-muted);
  margin: 0;
  line-height: 1.45;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   9. THE MAISON SALON AUDIO SUITE (Floating Museum Pentatonic Music Bar)
   ========================================================================== */
.maison-audio-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 120;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-dim);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
  max-width: calc(100vw - 40px);
  transition: border-color 0.25s ease;
}

.maison-audio-bar:hover {
  border-color: rgba(232, 207, 145, 0.52);
}

.audio-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: 18px;
  flex-shrink: 0;
}

.audio-eq span {
  width: 3px;
  height: 5px;
  background: var(--gold-antique);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.maison-audio-bar.playing .audio-eq span:nth-child(1) {
  animation: eqPulse 1.1s ease-in-out infinite;
}
.maison-audio-bar.playing .audio-eq span:nth-child(2) {
  animation: eqPulse 0.85s ease-in-out 0.2s infinite;
}
.maison-audio-bar.playing .audio-eq span:nth-child(3) {
  animation: eqPulse 1.25s ease-in-out 0.4s infinite;
}

@keyframes eqPulse {
  0%, 100% { height: 5px; opacity: 0.55; }
  50% { height: 17px; opacity: 1; background: var(--gold-luminous); }
}

.audio-track-info {
  min-width: 0;
}

.audio-track-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-antique);
}

.audio-track-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 164, 84, 0.26);
  color: var(--gold-luminous);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.audio-ctrl-btn:hover {
  background: rgba(200, 164, 84, 0.16);
  border-color: var(--gold-luminous);
}

.audio-ctrl-btn.primary-play {
  background: linear-gradient(135deg, #dfc078, #b58d3c);
  color: #0b0b0d;
  border-color: #efd89b;
}

.audio-vol-slider {
  width: 64px;
  accent-color: var(--gold-antique);
  cursor: pointer;
}

@media (max-width: 640px) {
  .maison-audio-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 12px;
    gap: 10px;
  }
  .audio-vol-slider { display: none; }
  .audio-track-title { max-width: 150px; }
}

