@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=IBM+Plex+Mono:wght@300;400;500&family=Noto+Serif+KR:wght@200;300;400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ==========================================================================
   ULTRA ARTS (ultra-arts.com) — Unified Design System (Theme 07 + 08 + 09)
   - 07 Midnight Observatory : 64K Optical Loupe, X/Y Rulers, FOV, Star Table
   - 08 Marble & Bronze      : Neoclassical Arches, Pilasters, Medallions, Colonnade
   - 09 Immersive Cinema     : Full-Viewport Reel, Ambient Glow, Justified Grid, Zoom Strip
   ========================================================================== */

:root {
  /* Default Signature Identity: Daylight Carrara Marble, Travertine Stone, Patinated Bronze & Verdigris (08)
     Contrasted with Midnight Prussian Observatory Chambers (07) and Anamorphic Cinema Stages (09)
     — Completely distinct from ultra-gallery.com's dark-obsidian & gold storefront */
  --bg: #f3efe8;
  --bg2: #eae4d8;
  --bg3: #ded6c7;
  --surface: rgba(255, 253, 249, 0.76);
  --surface-elev: rgba(250, 246, 239, 0.96);
  --arch-bg: linear-gradient(180deg, #e3dbce, #d5cbb9);
  --sill-bg: linear-gradient(180deg, #f8f5ef, #dbd1c1);
  --pil-bg: repeating-linear-gradient(90deg, #ede7dd 0 3px, #d2c8b8 3px 4px, #f8f4ee 4px 6px);
  --text: #231f1b;
  --soft: #4a433b;
  --muted: #7a7065;
  --accent: #7e5c32;       /* Patinated Bronze */
  --accent-d: #593f1f;     /* Deep Cast Bronze */
  --accent-l: #9e7847;     /* Burnished Bronze */
  --plat: #436e63;         /* Verdigris Patina */
  --patina: #436e63;
  --line: rgba(126, 92, 50, 0.22);
  --line2: rgba(126, 92, 50, 0.42);
  --hdr-bg: rgba(243, 239, 232, 0.94);
  --serif: "Cormorant Garamond", "Noto Serif KR", serif;
  --cin: "Cinzel", "Cormorant Garamond", "Noto Serif KR", serif;
  --kserif: "Noto Serif KR", "Cormorant Garamond", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1400px;
}

/* Chamber 07: Embedded Midnight Prussian Observatory Section inside Daylight Marble Page */
.chamber-07 {
  --bg: #0a1222;
  --bg2: #0d172b;
  --bg3: #12203a;
  --surface: rgba(14, 24, 44, 0.84);
  --surface-elev: rgba(18, 31, 56, 0.95);
  --text: #e5ebf3;
  --soft: #b8c3d4;
  --muted: #8290a6;
  --accent: #c8d6ea;
  --accent-d: #94a8c4;
  --accent-l: #ffffff;
  --line: rgba(196, 210, 230, 0.18);
  --line2: rgba(196, 210, 230, 0.36);
  background:
    radial-gradient(1100px 600px at 80% 0%, rgba(92, 132, 196, 0.18), transparent 65%),
    linear-gradient(180deg, #09101f 0%, #0d172b 100%) !important;
  color: var(--text);
}

/* Chamber 09: Embedded Anamorphic Darkroom Cinema Section */
.chamber-09 {
  --bg: #060608;
  --bg2: #0c0c10;
  --bg3: #14141a;
  --surface: rgba(18, 18, 22, 0.86);
  --surface-elev: rgba(24, 24, 30, 0.96);
  --text: #ecebe8;
  --soft: rgba(236, 235, 232, 0.74);
  --muted: rgba(236, 235, 232, 0.48);
  --accent: #d8d5ce;
  --accent-d: #9e9b94;
  --accent-l: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line2: rgba(255, 255, 255, 0.26);
  background: #060608 !important;
  color: var(--text);
}

/* Pure Theme 07: Midnight Observatory */
html[data-ua-theme="07"] {
  --bg: #0a1222;
  --bg2: #0c1629;
  --bg3: #101c33;
  --surface: rgba(12, 22, 41, 0.82);
  --surface-elev: rgba(16, 28, 51, 0.95);
  --arch-bg: linear-gradient(180deg, #13213c, #0a1222);
  --sill-bg: linear-gradient(180deg, #d4dbe5, #7e8b9f);
  --pil-bg: repeating-linear-gradient(90deg, #14223d 0 3px, #0b1426 3px 4px, #1c2e50 4px 6px);
  --text: #e3e8f0;
  --soft: #b9c2d0;
  --muted: #8792a5;
  --accent: #d4dbe5;
  --accent-d: #9fb0c7;
  --accent-l: #ffffff;
  --plat: #d4dbe5;
  --patina: #a9c8dc;
  --line: rgba(196, 206, 222, 0.16);
  --line2: rgba(196, 206, 222, 0.34);
  --hdr-bg: rgba(10, 18, 34, 0.88);
}

/* Pure Theme 08: Marble & Bronze (Neoclassical Daylight) */
html[data-ua-theme="08"] {
  --bg: #f2eee7;
  --bg2: #e9e3d9;
  --bg3: #ddd5c8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-elev: rgba(246, 242, 236, 0.95);
  --arch-bg: linear-gradient(180deg, #e2dacd, #d6cdbe);
  --sill-bg: linear-gradient(180deg, #f6f2ec, #ddd4c6);
  --pil-bg: repeating-linear-gradient(90deg, #ece6dc 0 3px, #d3c9ba 3px 4px, #f7f3ed 4px 6px);
  --text: #2a2520;
  --soft: #4d453d;
  --muted: #7d7368;
  --accent: #8a673a;
  --accent-d: #654a27;
  --accent-l: #b8935c;
  --plat: #654a27;
  --patina: #4e7a6f;
  --line: rgba(138, 103, 58, 0.26);
  --line2: rgba(138, 103, 58, 0.44);
  --hdr-bg: rgba(242, 238, 231, 0.92);
}

/* Pure Theme 09: Immersive Cinema Black */
html[data-ua-theme="09"] {
  --bg: #050505;
  --bg2: #0b0b0c;
  --bg3: #141416;
  --surface: rgba(14, 14, 16, 0.82);
  --surface-elev: rgba(20, 20, 22, 0.95);
  --arch-bg: linear-gradient(180deg, #18181b, #09090b);
  --sill-bg: linear-gradient(180deg, #ecebe8, #787774);
  --pil-bg: repeating-linear-gradient(90deg, #161618 0 3px, #09090a 3px 4px, #222226 4px 6px);
  --text: #ecebe8;
  --soft: rgba(236, 235, 232, 0.72);
  --muted: rgba(236, 235, 232, 0.45);
  --accent: #ecebe8;
  --accent-d: #a1a09d;
  --accent-l: #ffffff;
  --plat: #ecebe8;
  --patina: #a1a09d;
  --line: rgba(255, 255, 255, 0.11);
  --line2: rgba(255, 255, 255, 0.24);
  --hdr-bg: rgba(5, 5, 5, 0.88);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color 0.45s ease, color 0.45s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(100, 130, 185, 0.14), transparent 60%),
    radial-gradient(900px 600px at 10% 45%, rgba(200, 166, 108, 0.08), transparent 60%);
}
html[data-ua-theme="08"] body::before {
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 65%, rgba(214, 204, 188, 0.38), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}
.mono {
  font-family: var(--mono);
  font-weight: 300;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.cin {
  font-family: var(--cin);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ==========================================================================
   08 · Classical Ornaments & Dividers
   ========================================================================== */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--accent);
}
.orn::before,
.orn::after {
  content: "";
  height: 1px;
  width: 76px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.orn::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}
.orn i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  display: block;
}

/* ==========================================================================
   ULTRA ARTS Architectural Frame UI/UX (100% Distinct from Ultra Gallery):
   1) Top Monumental Entablature & Perforated Museum Ticket Pass (NO top link row!)
   2) Left Fixed Fluted Pilaster Wing Rail (Vertical Roman Numerals I–X)
   3) Floating Bottom 5-Act Observatory & Cinema HUD Dock
   4) Full-Screen 3-Chamber Architectural Mega-Drawer (08 / 07 / 09 Wings)
   5) Bottom 10-Arch Monumental Colophon & Telemetry Ledger
   ========================================================================== */
@media (min-width: 1121px) {
  body {
    padding-left: 62px;
    padding-bottom: 84px;
  }
}
@media (max-width: 1120px) {
  body {
    padding-bottom: 82px;
  }
}

.ua-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line2);
  box-shadow: 0 10px 32px -18px rgba(20, 16, 12, 0.22);
}
.ua-entablature {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 18px;
  padding: 10px 0;
}
.ua-entablature-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Engraved Salon Index Trigger Plaque */
.ua-index-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--surface-elev), var(--bg2));
  color: var(--text);
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ua-index-trigger:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ua-index-trigger .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.ua-index-trigger .bars i {
  display: block;
  height: 1.5px;
  background: var(--accent);
  width: 100%;
}
.ua-index-trigger .bars i:nth-child(2) {
  width: 72%;
}
.ua-index-trigger em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 6px;
  background: var(--accent);
  color: #fbf8f2;
  letter-spacing: 0.08em;
}
html[data-ua-theme="07"] .ua-index-trigger em,
html[data-ua-theme="09"] .ua-index-trigger em {
  color: #080d18;
}

.ua-cur-wing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(126, 92, 50, 0.07);
  font-family: var(--kserif);
  font-size: 12.5px;
  color: var(--soft);
}
.ua-cur-wing-badge b {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* Custom 20-Language Popover Trigger & Matrix */
.ua-lang-wrap {
  position: relative;
}
.ua-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line2);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.ua-lang-btn:hover {
  border-color: var(--accent);
}
.ua-lang-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 420px;
  max-width: 92vw;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 120;
}
.ua-lang-popover.open {
  display: grid;
}
.ua-lang-opt {
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font-size: 11px;
  transition: all 0.2s;
}
.ua-lang-opt:hover,
.ua-lang-opt.on {
  border-color: var(--accent);
  background: rgba(126, 92, 50, 0.14);
}
.ua-lang-opt b {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
}
.ua-lang-opt span {
  display: block;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Pediment with Integrated 3-Chamber Dial */
.ua-pediment-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.ua-logo-center {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ua-logo-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cin);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: 0.36em;
  color: var(--text);
}
.ua-logo-title svg {
  stroke: var(--accent);
}
.ua-chamber-dial {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line2);
  background: var(--surface);
  border-radius: 999px;
}
.ua-chamber-dial button {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: all 0.25s ease;
}
.ua-chamber-dial button.on {
  background: var(--accent);
  color: #fbf8f2;
  font-weight: 500;
}
html[data-ua-theme="07"] .ua-chamber-dial button.on,
html[data-ua-theme="09"] .ua-chamber-dial button.on {
  color: #080d18;
}

/* Right Wing: Perforated Museum Admission Ticket Pass */
.ua-entablature-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ua-ticket-pass {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--surface-elev), var(--bg2));
  position: relative;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.22);
}
.ua-ticket-pass::before,
.ua-ticket-pass::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line2);
  pointer-events: none;
}
.ua-ticket-pass::before { left: -5px; }
.ua-ticket-pass::after { right: -5px; }
.ua-ticket-stub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text);
  border-right: 1px dashed var(--line2);
  transition: background 0.25s ease;
  white-space: nowrap;
}
.ua-ticket-stub:last-child {
  border-right: 0;
}
.ua-ticket-stub:hover {
  background: rgba(126, 92, 50, 0.12);
}
.ua-ticket-stub b {
  color: var(--accent);
  font-weight: 500;
}
.ua-ticket-stub .vault-cnt {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fbf8f2;
  font-size: 10px;
  font-weight: 500;
}
html[data-ua-theme="07"] .ua-ticket-stub .vault-cnt,
html[data-ua-theme="09"] .ua-ticket-stub .vault-cnt {
  color: #080d18;
}

/* ==========================================================================
   Left Vertical Fluted Pilaster Wing Rail (#ua-pilaster-rail)
   ========================================================================== */
.ua-pilaster-rail {
  position: fixed;
  left: 0;
  top: 78px;
  bottom: 0;
  width: 62px;
  z-index: 65;
  background: var(--pil-bg);
  border-right: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  box-shadow: 6px 0 24px -14px rgba(0, 0, 0, 0.25);
}
.ua-rail-cap {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line2);
}
.ua-rail-nodes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
}
.ua-rail-node {
  position: relative;
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--soft);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}
html[data-ua-theme="07"] .ua-rail-node,
html[data-ua-theme="09"] .ua-rail-node {
  background: rgba(14, 22, 38, 0.65);
}
.ua-rail-node:hover,
.ua-rail-node.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fbf8f2;
  font-weight: 600;
}
html[data-ua-theme="07"] .ua-rail-node:hover,
html[data-ua-theme="07"] .ua-rail-node.active,
html[data-ua-theme="09"] .ua-rail-node:hover,
html[data-ua-theme="09"] .ua-rail-node.active {
  color: #080d18;
}
.ua-rail-node .rail-tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 13px;
  background: #0a1222;
  color: #eef2f8;
  border: 1px solid rgba(200, 166, 108, 0.55);
  font-family: var(--kserif);
  font-size: 12.5px;
  font-weight: 400;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: all 0.22s ease;
  z-index: 95;
}
.ua-rail-node .rail-tip b {
  font-family: var(--cin);
  color: #e5cb99;
  margin-right: 7px;
  letter-spacing: 0.12em;
}
.ua-rail-node:hover .rail-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.ua-rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
}
.ua-rail-topbtn {
  width: 34px;
  height: 26px;
  border: 1px solid var(--line2);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.ua-rail-topbtn:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   Floating Bottom 5-Act Cinema & Observatory HUD Dock (#ua-bottom-dock)
   ========================================================================== */
.ua-bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(10, 18, 34, 0.94);
  color: #e8eef7;
  border: 1px solid rgba(200, 166, 108, 0.48);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}
.ua-dock-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  color: rgba(232, 238, 247, 0.76);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.ua-dock-act .act-rn {
  font-family: var(--cin);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #d8b57c;
  padding: 2px 5px;
  border: 1px solid rgba(216, 181, 124, 0.35);
}
.ua-dock-act .act-lbl {
  font-family: var(--kserif);
  font-size: 13px;
  font-weight: 400;
}
.ua-dock-act:hover,
.ua-dock-act.active {
  color: #ffffff;
  border-color: rgba(216, 181, 124, 0.65);
  background: linear-gradient(180deg, rgba(200, 166, 108, 0.24), rgba(200, 166, 108, 0.06));
}
.ua-dock-act.active .act-rn {
  background: #d8b57c;
  color: #09101f;
  font-weight: 600;
}
.ua-dock-sep {
  width: 1px;
  height: 24px;
  background: rgba(200, 166, 108, 0.28);
  margin: 0 4px;
  flex-shrink: 0;
}
.ua-dock-allbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 181, 124, 0.45);
  background: rgba(216, 181, 124, 0.12);
  color: #f3dfb9;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ua-dock-allbtn:hover {
  background: rgba(216, 181, 124, 0.26);
}
.ua-dock-docent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #9e7847, #6e4f26);
  color: #fbf8f2;
  font-family: var(--cin);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.ua-dock-docent:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   Full-Screen 3-Chamber Architectural Mega-Drawer (#ua-grand-drawer)
   ========================================================================== */
.ua-grand-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8, 13, 24, 0.94);
  color: #e8eef7;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 56px);
}
.ua-grand-drawer.open {
  display: flex;
}
.ua-gd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(200, 166, 108, 0.32);
  flex-wrap: wrap;
}
.ua-gd-chambers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.ua-gd-chamber {
  border: 1px solid rgba(200, 166, 108, 0.28);
  padding: 26px;
  background: rgba(16, 26, 46, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ua-gd-chamber.ch-08 {
  background: linear-gradient(180deg, rgba(243, 239, 232, 0.1), rgba(16, 26, 46, 0.75));
}
.ua-gd-chamber.ch-09 {
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.88), rgba(20, 20, 28, 0.85));
}
.ua-gd-wing-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(200, 166, 108, 0.2);
  background: rgba(8, 13, 24, 0.55);
  transition: all 0.25s ease;
}
.ua-gd-wing-link:hover,
.ua-gd-wing-link.active {
  border-color: #d8b57c;
  background: rgba(200, 166, 108, 0.16);
  transform: translateX(4px);
}
.ua-gd-wing-link .w-rn {
  height: 36px;
  border-radius: 18px 18px 2px 2px;
  border: 1px solid rgba(216, 181, 124, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--cin);
  font-size: 12px;
  color: #e5cb99;
}
.ua-gd-wing-link .w-title {
  font-family: var(--kserif);
  font-size: 15px;
  color: #f4f6fa;
}
.ua-gd-wing-link .w-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.ua-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--line2);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--surface);
  transition: all 0.32s ease;
  white-space: nowrap;
}
.ua-btn:hover {
  border-color: var(--accent);
  background: rgba(126, 92, 50, 0.1);
}
.ua-btn.solid {
  background: linear-gradient(180deg, #8e6b3e, #654925);
  color: #fbf7f0;
  border-color: #553c1d;
  font-weight: 500;
}
html[data-ua-theme="07"] .ua-btn.solid,
html[data-ua-theme="09"] .ua-btn.solid {
  background: linear-gradient(135deg, var(--accent-l), var(--accent));
  color: #080d18;
  border-color: var(--accent);
}
.ua-btn.solid:hover {
  filter: brightness(1.08);
}
.ua-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
}
.ua-mnav {
  display: none;
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.ua-mnav.open { max-height: 520px; }
.ua-mnav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--kserif);
  font-size: 16px;
}

/* ==========================================================================
   Section Headers (07 § Index + 08 Roman Numerals + 09 Editorial Side Note)
   ========================================================================== */
.ua-sec {
  padding: clamp(84px, 10vw, 132px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.ua-sec.band {
  background: linear-gradient(180deg, rgba(200, 166, 108, 0.045), rgba(10, 18, 34, 0.02));
}
.ua-shead {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 58px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.ua-shead .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  border-top: 1px solid var(--line2);
  padding-top: 10px;
  align-self: start;
}
.ua-shead h2 {
  font-family: var(--kserif);
  font-weight: 200;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.24;
  color: var(--text);
}
.ua-shead h2 span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.6em;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.ua-shead .more-link {
  font-size: 13px;
  color: var(--soft);
  border-bottom: 1px solid var(--line2);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.ua-shead .more-link:hover {
  color: var(--accent-l);
  border-color: var(--accent);
}

/* ==========================================================================
   07 · Midnight Observatory Scope, Rulers & Optical Loupe
   ========================================================================== */
.scope {
  position: relative;
  padding: 26px 0 0 26px;
}
.ruler-x, .ruler-y {
  position: absolute;
  pointer-events: none;
}
.ruler-x {
  left: 26px;
  right: 0;
  top: 0;
  height: 22px;
  background:
    linear-gradient(90deg, var(--line2) 0 1px, transparent 1px) 0 100% / 25% 12px repeat-x,
    linear-gradient(90deg, var(--line) 0 1px, transparent 1px) 0 100% / 5% 6px repeat-x;
  border-bottom: 1px solid var(--line2);
}
.ruler-y {
  top: 26px;
  bottom: 0;
  left: 0;
  width: 22px;
  background:
    linear-gradient(180deg, var(--line2) 0 1px, transparent 1px) 100% 0 / 12px 25% repeat-y,
    linear-gradient(180deg, var(--line) 0 1px, transparent 1px) 100% 0 / 6px 5% repeat-y;
  border-right: 1px solid var(--line2);
}
.ruler-x span {
  position: absolute;
  top: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  transform: translateX(4px);
}
.plate {
  position: relative;
  overflow: hidden;
  background: #050a14;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  cursor: crosshair;
}
.plate img { width: 100%; height: auto; display: block; }
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(212, 219, 229, 0.22);
  pointer-events: none;
}
.loupe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--d);
  height: var(--d);
  --d: 216px;
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1.5px var(--accent-l),
    0 0 0 7px rgba(8, 13, 24, 0.62),
    0 0 0 8px rgba(212, 219, 229, 0.38),
    0 18px 50px rgba(0, 0, 0, 0.68);
  transition: left 2.8s cubic-bezier(.65, 0, .35, 1), top 2.8s cubic-bezier(.65, 0, .35, 1), background-position 2.8s cubic-bezier(.65, 0, .35, 1);
  will-change: left, top;
  pointer-events: none;
}
.loupe.manual {
  transition: none !important;
}
.loupe::before, .loupe::after {
  content: "";
  position: absolute;
  background: var(--accent-l);
}
.loupe::before {
  left: 50%;
  top: -14px;
  width: 1px;
  height: 10px;
  box-shadow: 0 calc(var(--d) + 18px) 0 var(--accent-l);
}
.loupe::after {
  top: 50%;
  left: -14px;
  height: 1px;
  width: 10px;
  box-shadow: calc(var(--d) + 18px) 0 0 var(--accent-l);
}
.loupe .tag {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-l);
  background: rgba(8, 13, 24, 0.85);
  padding: 4px 8px;
  border: 1px solid var(--line2);
}
.loupe.flip .tag {
  left: auto;
  right: calc(100% + 16px);
}
.obs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding-left: 26px;
}
.obs-bar .lbl {
  font-family: var(--kserif);
  font-weight: 300;
  font-size: 14.5px;
  color: var(--soft);
  transition: opacity 0.45s;
}
.obs-bar .lbl b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-right: 12px;
}
.obs-bar .dots {
  display: flex;
  gap: 7px;
}
.obs-bar .dots button {
  width: 18px;
  height: 6px;
  padding: 2px 0;
  background: none;
}
.obs-bar .dots button i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--line2);
  transition: all 0.4s;
}
.obs-bar .dots button.on {
  width: 30px;
}
.obs-bar .dots button.on i {
  background: var(--accent-l);
}

/* ==========================================================================
   08 · Neoclassical Arched Niches, Pilasters & Bronze Medallions
   ========================================================================== */
.tri-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.32fr) 30px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: end;
}
.niche {
  position: relative;
  text-align: center;
  display: block;
}
.arch {
  position: relative;
  border-radius: 999px 999px 0 0;
  padding: 10px 10px 0;
  background: var(--arch-bg);
  box-shadow: inset 0 0 0 1px var(--line2), 0 16px 40px -20px rgba(0, 0, 0, 0.55);
}
.arch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: var(--bg);
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  z-index: 3;
}
.arch .in {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #141210;
  aspect-ratio: var(--ar, 0.74);
}
.arch .in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--op, 50% 30%);
  transition: transform 2s cubic-bezier(.2, .6, .2, 1);
}
.arch .in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 14px 28px -6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(200, 166, 108, 0.32);
  pointer-events: none;
}
.niche:hover .arch .in img {
  transform: scale(1.04);
}
.sill {
  height: 14px;
  margin: 0 -10px;
  background: var(--sill-bg);
  border: 1px solid var(--line2);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.55);
}
.plaque {
  margin: 16px auto 0;
  max-width: 300px;
}
.plaque .t {
  font-family: var(--kserif);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text);
}
.plaque .e {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 3px;
  text-transform: uppercase;
}
.plaque .a {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.pil {
  align-self: stretch;
  position: relative;
  margin: 28px 0 14px;
}
.pil .sh {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 14px;
  bottom: 16px;
  background: var(--pil-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pil::before, .pil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: var(--sill-bg);
  border: 1px solid var(--line2);
}
.pil::before { top: 0; height: 14px; border-radius: 2px 2px 0 0; }
.pil::after { bottom: 0; height: 16px; }

/* 08 · Conic-Bronze Artist Medallions */
.meds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 30px;
}
.med {
  text-align: center;
  display: block;
}
.coin {
  width: min(172px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 210deg, #6f5129, #dfc08a, #8a673a, #4d361a, #c8a66c, #6f5129);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.75);
  transition: transform 0.5s ease;
}
.med:hover .coin {
  transform: translateY(-4px);
}
.coin > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg);
}
.coin span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center 28%;
  filter: saturate(0.92);
  transition: filter 0.5s, transform 0.8s;
}
.med:hover .coin span {
  filter: saturate(1.08);
}
.med h3 {
  font-family: var(--cin);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-top: 20px;
  color: var(--accent-l);
  text-transform: uppercase;
}
html[data-ua-theme="08"] .med h3 { color: var(--accent-d); }
.med .ko {
  font-family: var(--kserif);
  font-size: 16px;
  font-weight: 400;
  margin-top: 4px;
}
.med .yr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   09 · Immersive Cinema Stage, Justified Program Grid & 7-Step Zoom Strip
   ========================================================================== */
.cinema-stage {
  position: relative;
  height: 82vh;
  min-height: 540px;
  max-height: 860px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line2);
  isolation: isolate;
}
.cinema-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
.cinema-slide.on {
  opacity: 1;
  pointer-events: auto;
}
.cinema-slide .amb {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(52px) saturate(1.2) brightness(0.42);
  opacity: 0.7;
}
.cinema-slide .media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cinema-slide .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ua-drift 34s ease-in-out infinite alternate;
}
.cinema-slide.contain .media img {
  object-fit: contain;
  max-height: 88%;
  width: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}
@keyframes ua-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.6%, -0.4%, 0); }
}
.cinema-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.72) 100%);
}
.cinema-cap {
  position: absolute;
  z-index: 3;
  left: 36px;
  bottom: 36px;
  max-width: min(540px, calc(100% - 72px));
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(6, 10, 18, 0.76), rgba(6, 10, 18, 0.28));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ecebe8;
}
.cinema-cap .idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent-l);
  margin-bottom: 6px;
  display: flex;
  gap: 14px;
}
.cinema-cap h3 {
  font-family: var(--kserif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
}
.cinema-cap .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(236, 235, 232, 0.78);
  margin-top: 2px;
}
.cinema-cap .meta {
  font-size: 12.5px;
  color: rgba(236, 235, 232, 0.68);
  margin-top: 8px;
}
.cinema-ctrl {
  position: absolute;
  z-index: 3;
  right: 36px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ecebe8;
}
.cinema-segs {
  display: flex;
  gap: 6px;
}
.cinema-segs button {
  width: 26px;
  height: 14px;
  position: relative;
}
.cinema-segs button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.35s;
}
.cinema-segs button.cur::before {
  background: var(--accent-l);
  height: 2px;
}

/* 09 · Justified True-Proportion Rows */
.program {
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.prow {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.pw {
  flex: var(--ar) 1 0;
  min-width: 0;
  position: relative;
  display: block;
}
.pw .fr {
  position: relative;
  background: #060b14;
  overflow: hidden;
  border: 1px solid var(--line);
}
/* 07 Corner Reticles on Hover */
.pw .fr::before,
.pw .fr::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent-l);
  opacity: 0;
  transition: opacity 0.45s;
  z-index: 2;
  pointer-events: none;
}
.pw .fr::before { left: 6px; top: 6px; border-right: 0; border-bottom: 0; }
.pw .fr::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.pw:hover .fr::before,
.pw:hover .fr::after { opacity: 1; }
.pw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(.2, .6, .2, 1), opacity 0.6s;
  opacity: 0.94;
}
.pw:hover img {
  transform: scale(1.03);
  opacity: 1;
}
.pw figcaption {
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
}
.pw .t {
  font-family: var(--kserif);
  font-size: 15.5px;
  font-weight: 400;
}
.pw .a {
  font-size: 12.5px;
  color: var(--soft);
}
.pw .m {
  font-size: 11.5px;
  color: var(--muted);
  grid-column: 1;
}
.pw .r {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line2);
  padding: 2px 7px;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .pw .r { color: var(--accent-d); }

/* 09 · 7-Step Progressive Zoom Strip */
.zoomstrip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.zt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zt .win {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #080d18;
  border: 1px solid var(--line2);
}
.zt .win img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--ox, 31%) var(--oy, 56%);
  transform: scale(var(--z, 1));
  transition: transform 2s cubic-bezier(.2, .6, .2, 1);
}
.zt:hover .win img {
  transform: scale(calc(var(--z, 1) * 1.06));
}
.zt .lab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.zt .lab b {
  font-family: var(--cin);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .zt .lab b { color: var(--accent-d); }
.zt .lab span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.zt .bar {
  height: 1.5px;
  background: var(--line);
  position: relative;
}
.zt .bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
}
.zt p {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

/* ==========================================================================
   07 · Star-Catalogue Artist Table & 12-Category Observatory Cells
   ========================================================================== */
.cat-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 52px;
  border-top: 1px solid var(--line2);
}
.arow {
  display: grid;
  grid-template-columns: 48px 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s, padding-left 0.35s;
}
.arow:hover {
  background: linear-gradient(90deg, rgba(200, 166, 108, 0.07), transparent);
  padding-left: 6px;
}
.arow .n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.arow .eye {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px var(--line2), 0 0 0 5px var(--bg), 0 0 0 6px var(--line);
}
.arow .nm {
  font-family: var(--kserif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.35;
}
.arow .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--soft);
}
.arow .mv {
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.65;
}
.arow .mv b {
  display: block;
  font-weight: 400;
  color: var(--soft);
}

/* 07 + 08 · 12 Categories Grid */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line2);
  border-left: 1px solid var(--line);
}
.cat-cell {
  position: relative;
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s;
  overflow: hidden;
}
.cat-cell:hover {
  background: rgba(200, 166, 108, 0.06);
}
.cat-cell .c {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-cell .c i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.4s;
}
.cat-cell .c i::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--line2);
  transition: background 0.4s;
}
.cat-cell:hover .c i { border-color: var(--accent); }
.cat-cell:hover .c i::after { background: var(--accent); }
.cat-cell h4 {
  font-family: var(--kserif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  margin-top: 24px;
}
.cat-cell p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 6px;
}

/* ==========================================================================
   08 ·Arched Licensing Tiers + 07 · 10-Bar Gauge
   ========================================================================== */
.tiers-arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: end;
}
.tier-arch {
  position: relative;
  text-align: center;
  border: 1px solid var(--line2);
  border-radius: 999px 999px 0 0;
  padding: 68px 26px 32px;
  background: var(--surface);
  transition: transform 0.35s, border-color 0.35s;
}
.tier-arch::before {
  content: "";
  position: absolute;
  inset: 7px 7px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.tier-arch.feat {
  padding-top: 88px;
  border-color: var(--accent);
  background: var(--surface-elev);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.65);
}
.tier-arch .badge {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--cin);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--accent-l);
  white-space: nowrap;
}
html[data-ua-theme="08"] .tier-arch .badge { color: var(--accent-d); }
.tier-arch .rn {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.tier-arch .lat {
  font-family: var(--cin);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.18em;
  margin-top: 8px;
  color: var(--text);
}
.tier-arch .ko {
  font-family: var(--kserif);
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}
.tier-arch .mx {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  margin-top: 18px;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .tier-arch .mx { color: var(--accent-d); }
.tier-arch .mx small {
  font-size: 0.52em;
  color: var(--muted);
  margin-right: 3px;
}
.tier-arch .lim {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px 14px;
}
.tier-arch .lim b {
  font-family: var(--cin);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  margin-left: 6px;
}
.gauge {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: 18px 0 6px;
}
.gauge i {
  height: 4px;
  background: var(--line);
}
.gauge i.on {
  background: var(--accent);
}
.tier-arch ul {
  list-style: none;
  margin-top: 16px;
  text-align: left;
}
.tier-arch li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}
.tier-arch li:last-child { border-bottom: 0; }
.tier-arch li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   Bottom Monumental 10-Arch Colophon & Telemetry Ledger (Distinct from Ultra Gallery)
   ========================================================================== */
.ua-colophon {
  padding: 88px 0 96px;
  border-top: 2px solid var(--line2);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(126, 92, 50, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg3) 100%);
  position: relative;
  z-index: 1;
}
html[data-ua-theme="07"] .ua-colophon,
html[data-ua-theme="09"] .ua-colophon {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(200, 166, 108, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.ua-colophon-head {
  text-align: center;
  margin-bottom: 42px;
}
.ua-colophon-arcade {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 52px;
}
.ua-mini-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px 16px;
  border-radius: 999px 999px 4px 4px;
  border: 1px solid var(--line2);
  background: var(--surface-elev);
  transition: all 0.3s ease;
  position: relative;
}
.ua-mini-arch:hover,
.ua-mini-arch.active {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.25);
}
.ua-mini-arch .ma-rn {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--bg);
}
.ua-mini-arch.active .ma-rn {
  background: var(--accent);
  color: #fbf8f2;
}
html[data-ua-theme="07"] .ua-mini-arch.active .ma-rn,
html[data-ua-theme="09"] .ua-mini-arch.active .ma-rn {
  color: #080d18;
}
.ua-mini-arch .ma-title {
  font-family: var(--kserif);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}
.ua-mini-arch .ma-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 5px;
}

.ua-colophon-ledger {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 36px;
  padding: 36px;
  border: 1px solid var(--line2);
  background: var(--surface);
}
.ua-colophon-manifesto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.ua-colophon-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ua-tele-cell {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.ua-tele-cell span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.ua-tele-cell b {
  font-family: var(--cin);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.ua-tele-cell small {
  font-size: 11px;
  color: var(--accent);
}
.ua-colophon-plinth {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .ua-pilaster-rail { display: none; }
  .ua-cur-wing-badge { display: none; }
  .ua-gd-chambers { grid-template-columns: 1fr; }
  .ua-colophon-arcade { grid-template-columns: repeat(5, 1fr); }
  .ua-colophon-ledger { grid-template-columns: 1fr; }
  .ua-colophon-manifesto { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .tri-stage { grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; }
  .tri-stage .pil { display: none; }
  .meds-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-table { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-arch-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .zoomstrip { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .ua-shead { grid-template-columns: 1fr auto; }
  .ua-shead .idx { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ua-entablature { grid-template-columns: auto 1fr auto; gap: 8px; }
  .ua-ticket-stub.hide-sm { display: none; }
  .ua-colophon-arcade { grid-template-columns: repeat(2, 1fr); }
  .ua-colophon-telemetry { grid-template-columns: 1fr 1fr; }
  .tri-stage { grid-template-columns: 1fr; gap: 36px; }
  .prow { flex-direction: column; }
  .pw { width: 100%; }
  .cats-grid { grid-template-columns: 1fr; }
  .tiers-arch-grid { grid-template-columns: 1fr; }
  .zoomstrip { grid-template-columns: repeat(2, 1fr); }
  .cinema-cap { left: 16px; right: 16px; bottom: 78px; }
  .cinema-ctrl { left: 16px; right: 16px; bottom: 18px; justify-content: space-between; }
}


/* ==========================================================================
   Additional 07 + 08 + 09 Structural Components
   - 07 Optical Scale (1K–64K) + 4K Field-of-View (FOV) Nested Rectangles
   - 08 7-Step Classical Colonnade + Rembrandt 64K Detail Arch
   - 07 4-Column Observatory Masonry with Corner Reticles
   - 08/09 Tabulae & Plinth
   - Subpage Architectural Hero & Scroll Reveal
   ========================================================================== */

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* Subpage Architectural Hero */
.ua-page-hero {
  position: relative;
  padding: clamp(56px, 7.5vw, 96px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.ua-page-hero .orn {
  justify-content: flex-start;
  margin-bottom: 18px;
}
.ua-page-hero .orn::before { display: none; }
.ua-page-hero .kicker {
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}
.ua-page-hero h1 {
  font-family: var(--kserif);
  font-weight: 200;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 12px;
}
.ua-page-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .ua-page-hero h1 em { color: var(--accent-d); }
.ua-page-hero .lead {
  max-width: 720px;
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--soft);
  line-height: 1.82;
}
.ua-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ua-page-meta div b {
  display: block;
  font-family: var(--cin);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .ua-page-meta div b { color: var(--accent-d); }
.ua-page-meta div span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Filter Pill Bar */
.ua-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.ua-pills button {
  padding: 8px 18px;
  border: 1px solid var(--line2);
  font-size: 12.5px;
  color: var(--soft);
  letter-spacing: 0.04em;
  transition: all 0.28s;
}
.ua-pills button:hover,
.ua-pills button.on {
  border-color: var(--accent);
  background: rgba(200, 166, 108, 0.14);
  color: var(--accent-l);
}
html[data-ua-theme="08"] .ua-pills button.on {
  background: var(--accent);
  color: #fbf7f0;
}

/* 07 · Optical Scale & 4K Field-of-View (FOV) */
.grad-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.scale {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line2);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.scale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
  background: linear-gradient(90deg, var(--line2) 0 1px, transparent 1px) 0 0 / calc(100% / 35) 100% repeat-x;
}
.rstep {
  position: relative;
  padding: 16px 12px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 186px;
  transition: border-color 0.35s, transform 0.35s;
}
.rstep:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.rstep::before {
  content: "";
  position: absolute;
  top: -27px;
  left: -1px;
  width: 1px;
  height: 27px;
  background: var(--accent);
}
.rstep.hi {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(200, 166, 108, 0.14), rgba(14, 22, 38, 0.4));
}
.rstep .k {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.rstep .px {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.rstep .bar {
  margin: 18px 0 14px;
  height: 46px;
  display: flex;
  align-items: flex-end;
}
.rstep .bar i {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--accent-l), rgba(200, 166, 108, 0.18));
  height: var(--h);
}
.rstep .pr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}
.rstep .use {
  font-size: 11.5px;
  color: var(--soft);
  margin-top: 4px;
  line-height: 1.4;
}

.fov {
  position: relative;
  border: 1px solid var(--line2);
  padding: 20px;
  background: var(--surface);
}
.fov-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #060b14;
}
.fov-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fov-img .rect {
  position: absolute;
  border: 1px dashed rgba(229, 203, 153, 0.72);
  pointer-events: none;
}
.fov-img .rect span {
  position: absolute;
  left: 6px;
  top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--accent-l);
  background: rgba(8, 13, 24, 0.78);
  padding: 1px 5px;
}
.fov .cap {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--soft);
  gap: 12px;
}

/* 08 · 7-Step Classical Colonnade */
.res-split {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 54px;
  align-items: stretch;
}
.colonnade {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 28px 18px 0;
  border-bottom: 2px solid var(--accent);
  background: linear-gradient(180deg, transparent, rgba(200, 166, 108, 0.07));
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pillar .pr {
  font-family: var(--cin);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent-l);
  margin-bottom: 8px;
}
html[data-ua-theme="08"] .pillar .pr { color: var(--accent-d); }
.pillar .col {
  width: 100%;
  height: var(--h);
  position: relative;
  background: var(--pil-bg);
  border-left: 1px solid var(--line2);
  border-right: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 10px;
  transition: filter 0.35s;
}
.pillar:hover .col { filter: brightness(1.12); }
.pillar .col::before,
.pillar .col::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  height: 7px;
  background: var(--sill-bg);
  border: 1px solid var(--line2);
}
.pillar .col::before { top: -7px; }
.pillar .col::after { bottom: -1px; }
.pillar.hi .col {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pillar .k {
  font-family: var(--cin);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.pillar .px {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}
.pillar .lb {
  font-size: 11.5px;
  color: var(--soft);
  margin-top: 10px;
  padding-bottom: 12px;
  line-height: 1.35;
}

/* 07 · 4-Column Observatory Masonry */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.mcol {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.mcol:nth-child(2) { margin-top: 38px; }
.mcol:nth-child(4) { margin-top: 22px; }
.wcard {
  position: relative;
  display: block;
}
.wcard .frame {
  position: relative;
  overflow: hidden;
  background: #060b14;
  padding: 9px;
  border: 1px solid var(--line);
  transition: border-color 0.45s, transform 0.55s;
}
.wcard .frame::before,
.wcard .frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-l);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
  z-index: 2;
}
.wcard .frame::before { left: 3px; top: 3px; border-right: 0; border-bottom: 0; }
.wcard .frame::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }
.wcard:hover .frame {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.wcard:hover .frame::before,
.wcard:hover .frame::after { opacity: 1; }
.wcard img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.wcard:hover img { transform: scale(1.03); }
.wcard .cap {
  padding-top: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: baseline;
}
.wcard .t {
  font-family: var(--kserif);
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
}
.wcard .res {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-l);
  border: 1px solid var(--line2);
  padding: 2px 6px;
}
html[data-ua-theme="08"] .wcard .res { color: var(--accent-d); }
.wcard .sub {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
}

/* 08/09 · Tabulae & Plinth */
.tabulae {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tabula {
  padding: 26px 26px 28px;
  border: 1px solid var(--line2);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.tabula .hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tabula .hd span {
  font-family: var(--cin);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.tabula .hd b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent-l);
}
html[data-ua-theme="08"] .tabula .hd b { color: var(--accent-d); }
.tabula h4 {
  font-family: var(--kserif);
  font-weight: 400;
  font-size: 17.5px;
}
.tabula p {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.72;
}

.plinth {
  margin-top: 36px;
  padding: 36px 42px;
  border: 1px solid var(--line2);
  background: linear-gradient(90deg, rgba(200, 166, 108, 0.12), rgba(14, 22, 38, 0.45));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.plinth h3 {
  font-family: var(--kserif);
  font-weight: 300;
  font-size: 23px;
}
.plinth p {
  font-size: 14px;
  color: var(--soft);
  margin-top: 6px;
}

@media (max-width: 1120px) {
  .grad-grid, .res-split { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .mcol:nth-child(even) { margin-top: 0; }
  .tabulae { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .masonry { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(2, 1fr); }
  .colonnade { overflow-x: auto; min-width: 540px; }
  .plinth { padding: 26px 22px; }
}


/* ==========================================================================
   ULTRA ARTS Functional Modals, Search Bars, Acquisition Studio & Docent
   (Pure 07 + 08 + 09 Design System — Zero Ultra Gallery Clutter)
   ========================================================================== */
.ua-util-bar-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ua-select {
  padding: 4px 10px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.ua-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.ua-pill-btn:hover {
  border-color: var(--accent);
  background: rgba(126, 92, 50, 0.1);
}
.ua-pill-btn b {
  color: var(--accent);
  font-weight: 500;
}

/* Search & Filter Toolbar in 08/07 Style */
.ua-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid var(--line2);
  background: var(--surface);
  margin-bottom: 36px;
}
.ua-input {
  padding: 10px 16px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  min-width: 240px;
  outline: none;
}
.ua-input:focus {
  border-color: var(--accent);
}

/* Modal Backdrop & Dialog */
.ua-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 12, 20, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.ua-modal-backdrop.open {
  display: flex;
}
.ua-modal {
  position: relative;
  width: min(1060px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line2);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
  padding: clamp(24px, 3.6vw, 44px);
}
.ua-modal.narrow {
  width: min(480px, 100%);
}
.ua-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
}
.ua-modal-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Acquisition Studio Grid inside Modal / Artwork Page */
.ua-acq-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 36px;
  align-items: start;
}
.ua-res-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ua-res-opt {
  padding: 10px 8px;
  border: 1px solid var(--line2);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}
.ua-res-opt.on {
  border-color: var(--accent);
  background: rgba(126, 92, 50, 0.15);
}
.ua-res-opt b {
  display: block;
  font-family: var(--cin);
  font-size: 14px;
  color: var(--text);
}
.ua-res-opt span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.ua-res-opt em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: var(--accent);
  margin-top: 3px;
}

/* Docent Floating Trigger & Drawer */
.ua-docent-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 11px 18px;
  border: 1px solid var(--line2);
  background: var(--surface-elev);
  color: var(--text);
  font-family: var(--cin);
  font-size: 11px;
  letter-spacing: 0.18em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ua-docent-btn:hover {
  border-color: var(--accent);
}
.ua-docent-drawer {
  position: fixed;
  right: 24px;
  bottom: 74px;
  z-index: 95;
  width: min(380px, calc(100vw - 48px));
  background: var(--bg);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
}
.ua-docent-drawer.open {
  display: flex;
}
@media (max-width: 900px) {
  .ua-acq-grid { grid-template-columns: 1fr; }
  .ua-res-selector { grid-template-columns: repeat(2, 1fr); }
}
