@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond/CormorantGaramond-Latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit/Outfit-Latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans KR';
  src: url('/assets/fonts/ibm-plex-sans-kr/IBMPlexSansKR-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans KR';
  src: url('/assets/fonts/ibm-plex-sans-kr/IBMPlexSansKR-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   ARKPIA ARCHITECTURAL GALLERY DESIGN SYSTEM
   Zero AI-template tropes: sharp 0-2px geometry, true neutral gallery tones,
   hairline dividers, unobstructed art plates, restrained editorial typography.
   ========================================================================== */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans-en: 'Outfit', sans-serif;
  --font-sans: 'IBM Plex Sans KR', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --accent: #FF5E00;
  --accent-hover: #E55300;
  --accent-text: #FF7A2F;
  --accent-ink: #0E0E0E;
  --gold: #C9A96E;

  /* Dark Gallery — True Neutral Obsidian & Gallery Charcoal (No generic Tailwind slate-blue) */
  --bg: #0A0B0D;
  --bg-elev: #111316;
  --bg-elev-2: #171A1F;
  --bg-paper: #0D0F12;
  --bg-paper-alt: #121418;
  --ink: #F2F1ED;
  --ink-muted: #A4A39D;
  --ink-soft: #8F8E88;
  --paper-ink: #F2F1ED;
  --paper-muted: #A4A39D;
  --border: rgba(242, 241, 237, 0.11);
  --border-strong: rgba(242, 241, 237, 0.22);
  --paper-border: rgba(242, 241, 237, 0.1);
  --card-stage-dark: #101215;
  --card-stage-neutral: #15171B;
  --card-stage-light: #E8E4DC;
  --rank-stroke: rgba(242, 241, 237, 0.22);
  --rank-stroke-hover: #F2F1ED;
  --header-bg-solid: #0A0B0D;

  --gutter: clamp(20px, 4.2vw, 64px);
  --header-h: 68px;
  --r: 2px;
}

/* ARKPIA Signature Hybrid (Default): 75% Warm Gallery White + 25% Deep Ark Blue Stages */
html[data-theme="hybrid"] {
  --bg: #F6F4EF;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #ECE8E0;
  --bg-paper: #F6F4EF;
  --bg-paper-alt: #EFECE5;
  --ark-deep: #0B1D2D;
  --ark-deep-2: #081521;
  --ink: #141413;
  --ink-muted: #4E4D48;
  --ink-soft: #5E5C56;
  --accent-text: #C84600;
  --paper-ink: #141413;
  --paper-muted: #4E4D48;
  --border: rgba(20, 20, 19, 0.12);
  --border-strong: rgba(20, 20, 19, 0.26);
  --paper-border: rgba(20, 20, 19, 0.11);
  --card-stage-dark: #101A24;
  --card-stage-neutral: #EAE6DE;
  --card-stage-light: #F1EEE7;
  --rank-stroke: rgba(11, 29, 45, 0.2);
  --rank-stroke-hover: #0B1D2D;
  --header-bg-solid: #F6F4EF;
}

html[data-scope="open"] [data-future-only] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  font-size: 13px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   01. HEADER — QUIET MUSEUM NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  background-color: rgba(8, 21, 33, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 241, 237, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  color: #F2F1ED;
}
.site-header.is-scrolled {
  background-color: var(--header-bg-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--border);
}
html[data-theme="hybrid"] .site-header.is-scrolled { color: #141413; }
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 25px; width: auto; }
.brand-logo .logo-black { display: none; }
html[data-theme="hybrid"] .site-header.is-scrolled .logo-white { display: none; }
html[data-theme="hybrid"] .site-header.is-scrolled .logo-black { display: block; }

.header-left { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 44px); min-width: 0; overflow: hidden; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.primary-nav a {
  font-size: 13.5px;
  font-weight: 400;
  opacity: 0.72;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: opacity 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
.primary-nav a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor;
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.search-shell {
  display: flex;
  align-items: center;
  height: 36px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: width 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  width: 36px;
}
.search-shell.is-open {
  width: clamp(190px, 19vw, 260px);
  border-bottom-color: currentColor;
  padding-right: 4px;
}
.search-shell:focus-within {
  border-bottom-color: var(--accent);
}
.search-shell input {
  width: 100%; min-width: 0; border: 0; background: transparent;
  font-size: 13px; outline: none; padding: 0 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.search-shell.is-open input { opacity: 1; pointer-events: auto; }
.search-shell input::placeholder { color: currentColor; opacity: 0.5; }
.search-clear {
  border: 0; background: transparent; cursor: pointer; font-size: 17px;
  line-height: 1; padding: 0 4px; opacity: 0.65;
}
.search-clear:hover { opacity: 1; }

.icon-trigger {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; position: relative;
  opacity: 0.85; transition: opacity 0.2s ease;
}
.icon-trigger:hover { opacity: 1; }
.icon-trigger svg { width: 18px; height: 18px; }

.count-pill {
  position: absolute; top: 3px; right: 1px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--font-sans-en); font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

.header-ghost-btn {
  height: 36px; padding: 0 13px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.26);
  background: transparent;
  font-size: 12.5px; font-weight: 400; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.header-ghost-btn:hover { border-color: currentColor; }
.space-mini-count {
  font-family: var(--font-sans-en); font-size: 11px; opacity: 0.72;
}
html[data-theme="hybrid"] .site-header.is-scrolled .header-ghost-btn {
  border-color: rgba(20, 20, 19, 0.24);
}
.header-cta-btn {
  height: 36px; padding: 0 16px; border-radius: var(--r);
  border: 0; background: #F2F1ED; color: #0A0B0D;
  font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header-cta-btn:hover { background: var(--accent); color: #FFFFFF; }
html[data-theme="hybrid"] .site-header.is-scrolled .header-cta-btn {
  background: #141413; color: #F6F4EF;
}
html[data-theme="hybrid"] .site-header.is-scrolled .header-cta-btn:hover {
  background: var(--accent); color: #FFFFFF;
}

.mobile-menu-btn {
  display: none; width: 38px; height: 38px; padding: 12px 7px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.mobile-menu-btn span { display: block; height: 1.5px; width: 100%; background: currentColor; }

/* ==========================================================================
   02. FULL-BLEED EXHIBITION HERO (UNCLUTTERED MONUMENTAL TYPE)
   ========================================================================== */
.billboard {
  position: relative;
  width: 100%;
  min-height: clamp(580px, 84svh, 800px);
  background: #081521;
  color: #F2F1ED;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.billboard-stage { position: absolute; inset: 0; z-index: -2; }
.billboard-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.billboard-slide.is-active { opacity: 1; }
.billboard-slide img { width: 100%; height: 100%; object-fit: cover; }

.billboard-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.88) 0%, rgba(10, 11, 13, 0.56) 40%, rgba(10, 11, 13, 0.14) 74%, rgba(10, 11, 13, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 11, 13, 0.96) 0%, rgba(10, 11, 13, 0.45) 26%, transparent 56%);
}
html[data-theme="hybrid"] .billboard-scrim {
  background:
    linear-gradient(90deg, rgba(8, 22, 35, 0.9) 0%, rgba(8, 22, 35, 0.6) 40%, rgba(8, 22, 35, 0.14) 74%, rgba(8, 22, 35, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 22, 35, 0.92) 0%, rgba(8, 22, 35, 0.42) 26%, transparent 56%);
}

.billboard-overlay {
  width: 100%;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(40px, 6.5vh, 68px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.billboard-copy { max-width: 600px; min-width: 0; }
.billboard-caption {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(242, 241, 237, 0.68);
  margin-bottom: 12px;
}
.billboard-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.billboard-title.is-ko {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.billboard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  font-size: 13.5px;
  color: rgba(242, 241, 237, 0.8);
}
.billboard-artist-link {
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  cursor: pointer; background: transparent; border: 0; padding: 0;
}
.billboard-artist-link:hover { text-decoration-color: var(--accent); }
.billboard-serial {
  font-family: var(--font-sans-en);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 241, 237, 0.56);
}
.billboard-logline {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(242, 241, 237, 0.82);
  max-width: 510px;
}
.billboard-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-hero-play {
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--r);
  border: 1px solid #F2F1ED;
  background: #F2F1ED;
  color: #0A0B0D;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-hero-play:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.btn-hero-glass {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.32);
  background: rgba(10, 11, 13, 0.36);
  color: #F2F1ED;
  font-size: 13.5px;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-hero-glass svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-hero-glass[aria-pressed="true"] svg { fill: currentColor; }
.btn-hero-glass:hover { background: rgba(242, 241, 237, 0.12); border-color: #F2F1ED; }
.btn-hero-glass[aria-pressed="true"] { border-color: var(--accent); color: #FFFFFF; background: rgba(255, 94, 0, 0.18); }

.billboard-switcher {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0;
}
.switcher-thumbs { display: flex; gap: 8px; }
.switcher-thumb {
  width: 82px; height: 50px; padding: 0; border-radius: 0;
  overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.24);
  background: #0A0B0D; cursor: pointer; opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.switcher-thumb img { width: 100%; height: 100%; object-fit: cover; }
.switcher-thumb:hover { opacity: 0.9; }
.switcher-thumb.is-active { opacity: 1; border-color: #FFFFFF; }

.switcher-nav { display: inline-flex; align-items: center; gap: 10px; }
.switcher-counter {
  font-family: var(--font-sans-en); font-size: 12px; letter-spacing: 0.14em;
  color: rgba(242, 241, 237, 0.72);
}
.square-nav {
  width: 34px; height: 34px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.26); background: rgba(10, 11, 13, 0.45);
  color: #F2F1ED; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.square-nav:hover { border-color: #FFFFFF; background: rgba(242, 241, 237, 0.12); }
.square-nav svg { width: 15px; height: 15px; }

/* ==========================================================================
   03. STICKY EDITORIAL INDEX BAR (FLAT HAIRLINE TABS, NO PILL BUBBLES)
   ========================================================================== */
.taste-ribbon {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--header-h);
}
.taste-ribbon-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 var(--gutter); min-height: 50px;
}
.taste-chips {
  display: flex; align-items: stretch; gap: 22px;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.taste-chips::-webkit-scrollbar { display: none; }

.taste-chip {
  flex-shrink: 0;
  height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.taste-chip:hover { color: var(--ink); }
.taste-chip.is-active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

.filter-drawer-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.filter-drawer-btn:hover { border-color: var(--ink); }
.filter-drawer-btn svg { width: 14px; height: 14px; }
.filter-badge {
  min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--font-sans-en); font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Home Preview Notice Bar & Dedicated Live Originals Section */
.preview-notice-bar {
  background: var(--bg-paper-alt);
  border-bottom: 1px solid var(--border);
  padding: 11px var(--gutter);
}
.preview-notice-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px;
}
.preview-notice-inner p {
  margin: 0; font-size: 12.5px; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.preview-notice-inner strong { color: var(--ink); font-weight: 600; }
.preview-notice-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.preview-notice-link {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px;
}
.preview-notice-link:hover { color: var(--ink); }
.preview-notice-cta {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--accent-text); white-space: nowrap;
}
.preview-notice-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.rail-band--live {
  background: var(--bg-elev);
  padding-bottom: 0;
}
.live-section-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}
.live-count-note { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; }
.demo-boundary-bar {
  margin-top: 32px;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg-paper-alt);
  font-size: 12px;
  color: var(--ink-soft);
}

/* Asymmetric Editorial Curated Grid (Cures Flatness with Magazine Drama) */
.curated-editorial-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: stretch;
}
.curated-anchor-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.curated-anchor-stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  background: var(--card-stage-dark);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.curated-anchor-stage img {
  max-width: 100%; max-height: 410px; object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.34));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.curated-anchor-card:hover .curated-anchor-stage img { transform: scale(1.025); }
.curated-anchor-body {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.curated-anchor-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--ink-muted);
}
.curated-anchor-body h3 {
  margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 500; line-height: 1.12; color: var(--ink); cursor: pointer;
}
.curated-anchor-body h3:hover { text-decoration: underline; text-underline-offset: 4px; }
.curated-anchor-body p {
  margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-muted);
}
.curated-anchor-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.curated-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.curated-sub-grid .art-card { flex: none; width: 100%; }

/* ==========================================================================
   04. ARCHITECTURAL BANDS & EDITORIAL HEADERS (NO REPETITIVE ALL-CAPS KICKERS)
   ========================================================================== */
.rail-band {
  padding: clamp(44px, 5.2vw, 72px) 0;
  position: relative;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 52px);
}
.rail-band--primary { background: var(--bg); }
.rail-band--paper { background: var(--bg-paper); color: var(--paper-ink); }
.rail-band--alt { background: var(--bg-paper-alt); color: var(--paper-ink); }
.rail-band--rank { background: var(--bg-elev); color: var(--ink); }
.rail-band--personal, .rail-band--foryou { background: var(--bg-paper-alt); }
.rail-band--filtered { background: var(--bg-paper-alt); }
.rail-band--artists { background: var(--bg-paper-alt); }
.rail-band--museums { background: var(--bg-paper); }
html[data-theme="hybrid"] .rail-band--museums {
  background: #0D1F30;
  color: #F4F3EE;
  --bg: #0D1F30;
  --bg-elev: #12283C;
  --ink: #F4F3EE;
  --ink-muted: #B2C4D4;
  --ink-soft: #93ACC0;
  --paper-ink: #F4F3EE;
  --paper-muted: #B2C4D4;
  --border: rgba(244, 243, 238, 0.14);
  --paper-border: rgba(244, 243, 238, 0.14);
  --border-strong: rgba(244, 243, 238, 0.32);
  --card-stage-neutral: #142B40;
  --accent-text: #FF8743;
}
.rail-band--auctions { background: var(--bg); }
html[data-theme="hybrid"] .rail-band--auctions {
  background: #091825;
  color: #F4F3EE;
  --bg: #091825;
  --ink: #F4F3EE;
  --ink-muted: #A6BAC9;
  --ink-soft: #88A0B3;
  --border: rgba(244, 243, 238, 0.14);
  --border-strong: rgba(244, 243, 238, 0.3);
  --card-stage-neutral: #102436;
}

.rail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  margin-bottom: 26px;
}
.rail-heading-group { min-width: 0; }
.rail-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.rail-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.rail-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.text-action-btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 400; color: var(--ink-muted);
  padding: 6px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-action-btn:hover { color: var(--ink); border-bottom-color: currentColor; }

.line-action-btn {
  height: 36px; padding: 0 15px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.line-action-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.following-note { font-size: 12.5px; color: var(--ink-muted); }
button.following-note {
  border: 1px solid var(--border);
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
button.following-note:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

/* Flat Underline Editorial Tabs */
.editorial-tabs {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}
.ed-tab {
  padding: 8px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--ink-muted);
  font-size: 13px; font-weight: 400; cursor: pointer; white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ed-tab:hover { color: var(--ink); }
.ed-tab.is-active { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }

/* Horizontal Track */
.rail-viewport { position: relative; }
.rail-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 12px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }

.rail-paddle {
  position: absolute;
  top: 4px;
  bottom: 76px;
  width: 44px;
  z-index: 10;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #F2F1ED;
  background: rgba(10, 11, 13, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.rail-viewport:hover .rail-paddle, .rail-paddle:focus-visible { opacity: 1; }
.rail-paddle:hover { background: rgba(10, 11, 13, 0.94); }
.rail-paddle--prev { left: 0; }
.rail-paddle--next { right: 0; }

/* ==========================================================================
   05. ARTWORK PLATE — UNOBSTRUCTED CANVAS, SHARP EDGES, CATALOGUE CAPTION
   ========================================================================== */
.art-card {
  flex: 0 0 clamp(232px, 20vw, 286px);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
}

.art-card-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
  background: var(--card-stage-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
}
.art-card-stage[data-tone="light"] { background: var(--card-stage-light); }
.art-card-stage[data-tone="dark"] { background: var(--card-stage-dark); }
.art-card-stage-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.art-card-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.art-card:hover .art-card-stage img { transform: scale(1.022); }

/* Restrained Save Button — revealed cleanly on hover or when saved (never clutters resting artwork) */
.card-save-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: 0;
  background: rgba(10, 11, 13, 0.62);
  color: #F2F1ED;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.art-card:hover .card-save-btn,
.art-card:focus-within .card-save-btn,
.card-save-btn[aria-pressed="true"] { opacity: 1; }
.card-save-btn svg { width: 15px; height: 15px; }
.card-save-btn[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.card-save-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Single Quiet Hover Utility Strip */
.card-hover-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 11, 13, 0.88);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}
.art-card:hover .card-hover-bar, .art-card:focus-within .card-hover-bar {
  opacity: 1; pointer-events: auto;
}
.card-quick-btn {
  min-height: 36px; border: 0; background: transparent;
  color: #F2F1ED; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.card-quick-btn + .card-quick-btn { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.card-quick-btn:hover { background: var(--accent); color: #FFFFFF; }

.art-card-meta {
  padding: 14px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.art-card-artist {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.art-card-title-btn {
  text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.38;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-card-title-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-card-sub {
  font-size: 12px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-card-provenance-line {
  margin-top: 4px;
  font-family: var(--font-sans-en);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.living-event-line {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--accent-text);
  font-weight: 500;
}

/* ==========================================================================
   06. EDITORIAL TOP 10 RANK RAIL (SERIF EXHIBITION NUMERALS)
   ========================================================================== */
.rail-track--rank { gap: 28px; }
.rank-item { flex: 0 0 clamp(282px, 23vw, 326px); scroll-snap-align: start; position: relative; }
.rank-item--artist { flex: 0 0 clamp(340px, 28vw, 396px); display: flex; }
.rank-item--artist .rank-stage-wrap { display: flex; width: 100%; }
.rank-item .art-card { flex: none; width: 100%; }
.rank-stage-wrap { position: relative; padding-left: 56px; isolation: isolate; }
.rank-stage-wrap > .art-card-stage,
.rank-stage-wrap > .artist-card { position: relative; z-index: 1; flex: none; width: 100%; height: 100%; }
.art-card--ranked .art-card-meta { padding-left: 56px; }
.rank-numeral {
  position: absolute;
  left: -4px;
  bottom: -10px;
  font-family: var(--font-serif);
  font-size: clamp(114px, 9.4vw, 146px);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rank-stroke);
  pointer-events: none; user-select: none; z-index: 0;
  transition: -webkit-text-stroke-color 0.25s ease;
}
.rank-item--artist .rank-numeral { bottom: 6px; }
.rank-item:hover .rank-numeral { -webkit-text-stroke-color: var(--rank-stroke-hover); }
.rank-item[data-rank="10"] .rank-numeral { font-size: clamp(86px, 7.2vw, 108px); left: -10px; }

/* ==========================================================================
   07. SPATIAL DISCOVERY STAGE (CLEAN ARCHITECTURAL VIEWPORT)
   ========================================================================== */
.rail-band--spatial {
  background: #0D0F12;
  color: #F2F1ED;
  --ink: #F2F1ED;
  --ink-muted: #9D9C96;
  --border: rgba(242, 241, 237, 0.12);
  --border-strong: rgba(242, 241, 237, 0.26);
}
html[data-theme="hybrid"] .rail-band--spatial {
  background: #0B1D2D;
  color: #F4F3EE;
  --bg: #0B1D2D;
  --ink: #F4F3EE;
  --ink-muted: #A6BAC9;
  --border: rgba(244, 243, 238, 0.14);
  --border-strong: rgba(244, 243, 238, 0.3);
}
html[data-theme="hybrid"] .rail-band--spatial .spatial-work-summary p,
html[data-theme="hybrid"] .rail-band--spatial .spatial-work-counter { color: #A6BAC9; }
html[data-theme="hybrid"] .rail-band--spatial .spatial-work-chip small,
html[data-theme="hybrid"] .rail-band--spatial .room-thumb-btn small { color: #8FA6B8; }
html[data-theme="hybrid"] .rail-band--spatial .spatial-work-chip img { background: #12283B; }
.spatial-shell { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.spatial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(290px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}
.spatial-stage-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.spatial-stage-wrap { position: relative; }
.spatial-stage-wrap .room-stage { --stage-max-h: 540px; }

.spatial-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 12;
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 11, 13, 0.66); color: #FFFFFF;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.spatial-arrow:hover { background: #FFFFFF; color: #0A0B0D; border-color: #FFFFFF; }
.spatial-arrow--prev { left: 14px; }
.spatial-arrow--next { right: 14px; }

.spatial-info-panel {
  border-top: 1px solid rgba(242, 241, 237, 0.16);
  border-bottom: 1px solid rgba(242, 241, 237, 0.16);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spatial-source-tabs {
  display: flex; gap: 18px; border-bottom: 1px solid rgba(242, 241, 237, 0.12);
}
.spatial-source-tab {
  padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: #9D9C96; font-size: 13px; font-weight: 400; cursor: pointer;
}
.spatial-source-tab.is-active { color: #FFFFFF; font-weight: 500; border-bottom-color: var(--accent); }

.spatial-filter-row { display: flex; gap: 14px; flex-wrap: wrap; }
.spatial-mini-pill {
  padding: 0 0 4px; border: 0; border-bottom: 1px solid transparent;
  background: transparent; color: #8F8E88; font-size: 12.5px; cursor: pointer;
}
.spatial-mini-pill.is-active { color: #F2F1ED; border-bottom-color: #F2F1ED; }

.spatial-work-summary { padding-top: 14px; border-top: 1px solid rgba(242, 241, 237, 0.1); }
.spatial-work-counter {
  font-family: var(--font-sans-en); font-size: 11px; letter-spacing: 0.1em; color: #9D9C96;
}
.spatial-work-summary h3 {
  margin: 6px 0 4px;
  font-family: var(--font-serif); font-size: 28px; font-weight: 500; line-height: 1.15; color: #FFFFFF;
}
.spatial-work-summary p { margin: 0 0 12px; font-size: 13px; color: #A6A59F; }
.spatial-cta-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }

.spatial-thumb-reel {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin;
}
.spatial-work-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(242, 241, 237, 0.12); background: transparent;
  color: #C9C8C2; cursor: pointer; text-align: left;
  transition: border-color 0.18s ease;
}
.spatial-work-chip:hover { border-color: rgba(242, 241, 237, 0.36); }
.spatial-work-chip.is-active { border-color: var(--accent); color: #FFFFFF; background: rgba(255, 255, 255, 0.04); }
.spatial-work-chip img { width: 38px; height: 38px; object-fit: contain; background: #171A1F; padding: 2px; }
.spatial-work-chip strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; }
.spatial-work-chip small { display: block; font-size: 11px; color: #8A8983; white-space: nowrap; }

/* ==========================================================================
   08. COLOR WALK — MUSEUM PIGMENT SAMPLE PLATES (NO SAAS CIRCLE ORB CARDS)
   ========================================================================== */
.color-spectrum-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--gutter) 24px;
}
.color-swatch-btn {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--paper-border);
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease;
}
.color-swatch-btn:hover { border-color: var(--border-strong); }
.color-swatch-btn.is-active { border-color: var(--ink); }
.swatch-plate {
  width: 100%;
  height: 44px;
  display: block;
}
.swatch-caption {
  padding: 10px 12px;
  background: var(--bg-elev);
}
.swatch-caption strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.swatch-caption small { display: block; font-size: 11px; color: var(--paper-muted); margin-top: 2px; }
.color-swatch-btn.is-active .swatch-caption strong { color: var(--accent-text); }

/* ==========================================================================
   09. ARTIST SERIES — CRISP FRAMED MONOGRAPH CARDS
   ========================================================================== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0 var(--gutter);
}
.series-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.series-card:hover { border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(11, 29, 45, 0.06); }
.series-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.series-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.series-strip[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.series-strip-cell {
  aspect-ratio: 4 / 5;
  background: var(--card-stage-neutral);
  padding: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.series-strip-cell img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.series-card:hover .series-strip-cell img { transform: scale(1.03); }
.series-meta-line { font-size: 11.5px; color: var(--ink-muted); }
.series-card h3 { margin: 4px 0 6px; font-size: 16.5px; font-weight: 500; }
.series-card p { margin: 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; }
.series-ep-line {
  font-size: 11.5px; color: var(--ink-soft); margin-top: auto;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ==========================================================================
   10. CURATED THEME COLLECTIONS (CRISP GALLERY CARDS)
   ========================================================================== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0 var(--gutter);
}
.collection-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 12px 12px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.collection-card:hover { border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(11, 29, 45, 0.06); }
.collection-collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.collection-collage img {
  width: 100%; height: 100%; object-fit: contain;
  background: var(--card-stage-neutral); padding: 4px;
  transition: transform 0.5s ease;
}
.collection-card:hover .collection-collage img { transform: scale(1.03); }
.collection-collage img:first-child { grid-row: 1 / 3; }
.collection-meta h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: var(--paper-ink); }
.collection-card:hover .collection-meta h3 { text-decoration: underline; text-underline-offset: 3px; }
.collection-meta p { margin: 0; font-size: 12.5px; color: var(--paper-muted); line-height: 1.5; }

/* ==========================================================================
   11. ARTISTS — DISTINCT ARCHITECTURAL MONOGRAPH CARDS (CLEAR SEPARATION)
   ========================================================================== */
.rail-band--artists { background: var(--bg-paper-alt); }
.artist-card {
  flex: 0 0 clamp(296px, 24.5vw, 352px);
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.artist-card:hover { border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(11, 29, 45, 0.08); }
.artist-card-cover {
  position: relative;
  height: 112px;
  background: var(--card-stage-dark);
  overflow: hidden;
  cursor: pointer;
}
.artist-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.84);
  transition: transform 0.55s ease;
}
.artist-card:hover .artist-card-cover img { transform: scale(1.035); }
.artist-card-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.artist-top {
  display: flex; align-items: flex-end; gap: 13px;
  margin-top: -28px; position: relative; z-index: 2;
}
.artist-avatar {
  width: 64px; height: 64px; overflow: hidden; flex-shrink: 0; cursor: pointer;
  background: var(--card-stage-neutral);
  border: 3px solid var(--bg-elev);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.artist-identity { min-width: 0; flex: 1; padding-top: 30px; }
.artist-name-btn {
  border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--ink); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.artist-name-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.artist-city { font-size: 12px; color: var(--ink-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-statement {
  margin: 0; font-size: 12.8px; line-height: 1.62; color: var(--ink-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.artist-mini-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.artist-mini-thumb {
  aspect-ratio: 1; overflow: hidden;
  background: var(--card-stage-neutral); border: 1px solid var(--border); padding: 5px; cursor: pointer;
}
.artist-mini-thumb img { width: 100%; height: 100%; object-fit: contain; }
.artist-footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.artist-source-label { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; }
.btn-follow {
  height: 32px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-follow:hover { border-color: var(--ink); }
.btn-follow[aria-pressed="true"] { background: #0B1D2D; border-color: #0B1D2D; color: #FFFFFF; }
html[data-theme="cinema"] .btn-follow[aria-pressed="true"] { background: #F2F1ED; border-color: #F2F1ED; color: #0A0B0D; }

/* ==========================================================================
   12. WORLD MUSEUMS — EXHIBITION PLATES + CATALOGUE DIPTYCH BRIDGE
   ========================================================================== */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 var(--gutter);
}
.exhibition-card {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exhibition-plate {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141920;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exhibition-plate img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.exhibition-card:hover .exhibition-plate img { transform: scale(1.03); }
.exhibition-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--ink-soft);
}
.exhibition-copy h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.exhibition-card:hover .exhibition-copy h3 { text-decoration: underline; text-underline-offset: 4px; }
.exhibition-copy p { margin: 0; font-size: 12.5px; color: var(--ink-muted); }

.museum-bridge-block {
  margin-top: 44px;
  padding: 36px var(--gutter) 0;
  border-top: 1px solid var(--paper-border);
}
.museum-bridge-head { margin-bottom: 22px; }
.museum-bridge-head h3 { margin: 0 0 6px; font-size: clamp(18px, 1.8vw, 23px); font-weight: 400; }
.museum-bridge-head p { margin: 0; font-size: 13px; color: var(--paper-muted); }

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.bridge-card {
  border-top: 1px solid var(--paper-border);
  padding: 16px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.bridge-theme { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.bridge-pair {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  gap: 14px;
}
.bridge-divider { background: var(--paper-border); }
.bridge-side {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: 0; background: transparent; padding: 0; color: inherit; min-width: 0;
}
.bridge-side--clickable { cursor: pointer; }
.bridge-side--clickable:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bridge-thumb {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--card-stage-neutral); padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.bridge-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bridge-tag { font-size: 11px; color: var(--paper-muted); }
.bridge-tag--certified { color: var(--accent-text); font-weight: 500; }
.bridge-side strong { font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.bridge-reason { margin: 0; font-size: 12.5px; color: var(--paper-muted); line-height: 1.6; }

/* ==========================================================================
   13. LIVE AUCTIONS — AUCTION HOUSE LOT SHEET TYPOGRAPHY
   ========================================================================== */
.auction-card {
  flex: 0 0 clamp(300px, 28vw, 370px);
  scroll-snap-align: start;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.auction-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--card-stage-neutral);
  overflow: hidden; cursor: pointer;
}
.auction-media img {
  position: absolute; inset: 16px;
  width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain;
}
.auction-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.auction-status-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--font-sans-en); font-size: 11px; letter-spacing: 0.08em;
}
.auction-status-tag { color: var(--gold); font-weight: 600; }
.auction-timer { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.auction-body h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.auction-artist { font-size: 12.5px; color: var(--ink-muted); margin-top: -8px; }
.auction-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.auction-metric { padding: 0 8px 0 0; }
.auction-metric + .auction-metric { border-left: 1px solid var(--border); padding-left: 10px; }
.auction-metric span { display: block; font-size: 11px; color: var(--ink-soft); }
.auction-metric strong { display: block; font-family: var(--font-sans-en); font-size: 12.5px; font-weight: 500; margin-top: 2px; color: var(--ink); }
.auction-metric strong.is-gold { color: var(--gold); }
.btn-auction {
  min-height: 40px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; margin-top: auto;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-auction:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.filtered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  padding: 0 var(--gutter);
}
.filtered-grid .art-card { flex: none; width: 100%; }

/* ==========================================================================
   14. ARCHITECTURAL PROVENANCE COLOPHON & ARTIST INVITATION (NO 01-04 SAAS CARDS)
   ========================================================================== */
.colophon-band {
  padding: clamp(56px, 6.5vw, 88px) var(--gutter);
  background: var(--bg-paper-alt);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 52px);
}
.colophon-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.colophon-lead h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.colophon-lead p { margin: 0 0 24px; font-size: 14px; color: var(--ink-muted); line-height: 1.7; max-width: 420px; }
.colophon-seal-row { display: flex; align-items: center; gap: 14px; }
.colophon-seal-row img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.privacy-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-muted); cursor: pointer; }
.privacy-toggle input { width: 15px; height: 15px; accent-color: var(--accent); }

.provenance-ledger {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.provenance-ledger > div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.provenance-ledger > div:last-child { border-bottom: 1px solid var(--border); }
.provenance-ledger dt {
  font-family: var(--font-sans-en);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.provenance-ledger dd {
  margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.55;
}

.artist-invite-strip {
  padding-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.artist-invite-strip h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.artist-invite-strip p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.artist-invite-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-solid-orange {
  min-height: 42px; padding: 0 22px; border-radius: var(--r); border: 0;
  background: var(--accent); color: #FFFFFF;
  font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-solid-orange:hover { background: var(--accent-hover); }

.btn-line-quiet {
  min-height: 42px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--border-strong); color: var(--ink);
  font-size: 13.5px; display: inline-flex; align-items: center;
  transition: border-color 0.2s ease;
}
.btn-line-quiet:hover { border-color: var(--ink); }

.site-footer {
  padding: 36px var(--gutter) 72px;
  background: #0A0B0D;
  color: #8A8983;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
html[data-theme="hybrid"] .site-footer {
  background: #081521;
  color: #A6BAC9;
}
html[data-theme="hybrid"] .footer-meta {
  color: #93A9B9;
  border-top-color: rgba(244, 243, 238, 0.12);
}
.footer-brand img { height: 22px; width: auto; margin-bottom: 8px; }
.footer-brand p { margin: 0; font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12.5px; }
.footer-links a:hover { color: #F2F1ED; }
.footer-meta { margin: 0; width: 100%; font-size: 11.5px; color: #8A8983; padding-top: 16px; border-top: 1px solid rgba(242, 241, 237, 0.08); }

/* ==========================================================================
   15. MODALS, ROOM INSTALLATION ENGINE & 3D SCULPTURE PLACEMENT
   ========================================================================== */
.cinema-modal {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100svh - 36px);
  padding: 0;
  border: 1px solid rgba(242, 241, 237, 0.14);
  border-radius: var(--r);
  background: #0D0F12;
  color: #F2F1ED;
  --bg: #0D0F12;
  --bg-elev: #14171C;
  --bg-elev-2: #1B1F26;
  --ink: #F2F1ED;
  --ink-muted: #A9A8A2;
  --ink-soft: #8F8E88;
  --border: rgba(242, 241, 237, 0.14);
  --border-strong: rgba(242, 241, 237, 0.28);
  --accent-text: #FF8743;
  overflow-y: auto;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
}
.cinema-modal::backdrop, .side-drawer::backdrop { background: rgba(6, 7, 9, 0.8); }
.modal-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -48px 0; z-index: 20;
  width: 34px; height: 34px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.22); background: rgba(13, 15, 18, 0.9);
  color: #F2F1ED; font-size: 20px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #F2F1ED; color: #0D0F12; }
.modal-close--inline { position: static; float: none; margin: 0; }

.modal-stage-wrap {
  position: relative;
  background: #090A0C;
  border-bottom: 1px solid rgba(242, 241, 237, 0.1);
  padding: 24px 28px 22px;
}
.modal-view-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 10px 20px;
  border-bottom: 1px solid rgba(242, 241, 237, 0.12);
  margin-bottom: 18px;
  padding-right: 48px;
}
.modal-view-tab {
  padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: #9D9C96; font-size: 13px; cursor: pointer;
}
.modal-view-tab.is-active { color: #FFFFFF; font-weight: 500; border-bottom-color: var(--accent); }

.modal-art-frame {
  height: clamp(280px, 46vh, 460px);
  display: flex; align-items: center; justify-content: center;
  background: #131518; padding: 20px;
}
.modal-art-frame img { max-height: 100%; max-width: 100%; object-fit: contain; }

.room-composer-wrap { display: flex; flex-direction: column; gap: 14px; }
.room-stage {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0E1014;
  --stage-max-h: 500px;
}
.spatial-stage-wrap .room-stage { --stage-max-h: 540px; }
.room-stage-canvas {
  position: relative;
  width: min(100%, calc(var(--stage-max-h, 500px) * var(--room-ar, 1.7778)));
  max-width: 100%;
  aspect-ratio: var(--room-ar, 16 / 9);
  overflow: hidden;
  background: #141517;
}
.room-stage-canvas[data-relocatable="true"] { cursor: crosshair; }
.room-stage-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  display: block; user-select: none; pointer-events: none;
}
.room-art-mount {
  position: absolute; left: 50%; top: var(--mount-y, 34%); width: var(--art-w, 26%);
  max-height: var(--art-max-h, 74%); box-sizing: border-box;
  transform: translate(-50%, -50%); display: block;
  transition: width 0.28s ease, top 0.28s ease, left 0.22s ease, border-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24), 0 18px 34px -8px rgba(0, 0, 0, 0.44);
}
.room-stage[data-dark-wall="true"] .room-art-mount {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55), 0 22px 44px -8px rgba(0, 0, 0, 0.78);
}
.room-art-mount img { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; }
.room-relocate-hint {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 4px 9px; background: rgba(10, 11, 13, 0.78); color: #F2F1ED;
  font-size: 11px; pointer-events: none;
}
.room-art-mount[data-frame="none"] { border: 0; padding: 0; background: transparent; }
.room-art-mount[data-frame="oak"] { border: 6px solid #C8A67D; outline: 1px solid #96734A; padding: 2px; background: #1B150E; }
.room-art-mount[data-frame="walnut"] { border: 6px solid #4E3423; outline: 1px solid #2A1A10; padding: 2px; background: #140F0B; }
.room-art-mount[data-frame="black"] { border: 5px solid #1C1E22; outline: 1px solid #090A0C; padding: 2px; background: #0D0E10; }

.room-scale-hud {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; pointer-events: none;
}
.room-scale-pill {
  padding: 5px 10px;
  background: rgba(10, 11, 13, 0.76);
  color: #F2F1ED; font-size: 11.5px; line-height: 1.3;
}
.room-scale-pill strong { color: #FFFFFF; font-weight: 500; }

.room-controls-bar { display: flex; flex-direction: column; gap: 10px; }
.room-selector-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.room-thumb-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 11px 5px 5px;
  border: 1px solid rgba(242, 241, 237, 0.14); background: transparent;
  color: #C9C8C2; cursor: pointer; text-align: left;
  transition: border-color 0.18s ease;
}
.room-thumb-btn:hover { border-color: rgba(242, 241, 237, 0.45); color: #FFFFFF; }
.room-thumb-btn.is-active { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); color: #FFFFFF; }
.room-thumb-btn img { width: 44px; height: 28px; object-fit: cover; flex-shrink: 0; }
.room-thumb-btn span { display: block; font-size: 12px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.room-thumb-btn small { display: block; font-size: 10.5px; color: #8A8983; white-space: nowrap; }

.room-frame-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.frame-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.frame-pills-label { font-size: 12px; color: #8E8D87; margin-right: 4px; }
.frame-pill {
  height: 30px; padding: 0 11px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.18); background: transparent;
  color: #D2D1CB; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.frame-pill:hover { border-color: #FFFFFF; }
.frame-pill.is-active { border-color: #F2F1ED; background: #F2F1ED; color: #0A0B0D; font-weight: 500; }
.frame-swatch { width: 9px; height: 9px; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.35); }
.frame-swatch--none, .frame-swatch--direct { background: transparent; border-style: dashed; }
.frame-swatch--oak { background: #C8A67D; }
.frame-swatch--walnut { background: #4E3423; }
.frame-swatch--black { background: #1C1E22; }
.frame-swatch--white { background: #F1EFEA; }
.frame-swatch--travertine { background: #D2C3AD; }
.frame-swatch--dark { background: #262A30; }
.room-disclaimer { font-size: 11.5px; color: #8E8D87; }

.framing-locked-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid rgba(242, 241, 237, 0.24);
  color: #E5E4DE; font-size: 12px;
}

/* 3D Sculpture Placement Engine */
.sculpture-rig { position: absolute; inset: 0; pointer-events: none; }
.sculpture-anchor {
  position: absolute; left: var(--sc-x, 50%); top: var(--sc-bottom-y, 75%);
  width: 100%; height: 100%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: left 0.3s ease, top 0.3s ease;
}
.sculpture-obj-wrap {
  position: relative; width: var(--sc-w, 12%);
  display: flex; flex-direction: column; align-items: center; z-index: 2;
}
.sculpture-obj-img {
  width: 100%; height: auto; display: block; position: relative; z-index: 2;
  filter: drop-shadow(6px 6px 10px rgba(0, 0, 0, 0.22));
}
.room-stage[data-dark-wall="true"] .sculpture-obj-img { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65)); }
.sculpture-contact-shadow {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 82%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(12, 10, 8, 0.56) 0%, rgba(12, 10, 8, 0.22) 48%, transparent 74%);
  z-index: 1;
}
.room-stage[data-dark-wall="true"] .sculpture-contact-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 52%, transparent 78%);
}
.sculpture-plinth { position: relative; width: var(--plinth-w, 14%); margin-top: -2px; z-index: 1; }
.sculpture-plinth::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: rgba(255, 255, 255, 0.28); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sculpture-plinth::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 124%; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.14) 55%, transparent 78%);
  z-index: -1;
}
.sculpture-plinth[data-plinth="white"] {
  background: linear-gradient(90deg, #ECEAE4 0%, #F8F7F3 45%, #E0DDD6 100%);
  border: 1px solid rgba(25, 25, 25, 0.1);
}
.sculpture-plinth[data-plinth="travertine"] {
  background:
    repeating-linear-gradient(2deg, rgba(120, 98, 72, 0.06) 0 3px, transparent 3px 9px),
    linear-gradient(90deg, #C8B8A2 0%, #DCD0BE 42%, #B9A78E 100%);
  border: 1px solid rgba(72, 56, 38, 0.2);
}
.sculpture-plinth[data-plinth="dark"] {
  background: linear-gradient(90deg, #1E2228 0%, #2D333B 38%, #15181C 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sculpture-plinth[data-plinth="dark"]::before { background: rgba(255, 255, 255, 0.11); }

/* Modal Series Bar & Artwork Details */
.modal-series-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; padding: 12px 28px;
  background: #121418; border-bottom: 1px solid rgba(242, 241, 237, 0.09);
}
.modal-series-label { font-size: 12.5px; color: #C9A96E; font-weight: 500; }
.modal-series-eps { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-ep-btn {
  height: 28px; padding: 0 11px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.18); background: transparent;
  color: #D2D1CB; font-size: 12px; cursor: pointer;
}
.modal-ep-btn.is-active { background: #F2F1ED; border-color: #F2F1ED; color: #0A0B0D; font-weight: 500; }

.modal-body-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.9fr);
  gap: 32px; padding: 28px;
}
.modal-edition-note { font-family: var(--font-sans-en); font-size: 11px; letter-spacing: 0.1em; color: #9D9C96; }
.modal-title { margin: 6px 0 6px; font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; }
.modal-title-sub { margin: 0 0 16px; font-size: 13.5px; color: #9D9C96; }
.modal-logline { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: #D7D6D0; }

/* Catalogue Specification Table (No boxed mini-cards) */
.modal-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(242, 241, 237, 0.1);
  margin-bottom: 18px;
}
.modal-spec-box {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(242, 241, 237, 0.08);
}
.modal-spec-box span { display: block; font-size: 11px; color: #8A8983; }
.modal-spec-box strong { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; color: #F2F1ED; }

.modal-auto-palette {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 16px; padding: 10px 0;
  border-bottom: 1px solid rgba(242, 241, 237, 0.08);
  font-size: 12px; color: #9D9C96;
}
.auto-hex-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans-en); font-size: 11.5px; color: #D7D6D0;
}
.auto-hex-dot { width: 12px; height: 12px; border: 1px solid rgba(255, 255, 255, 0.28); }

.modal-feature-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-feature-chip {
  padding: 4px 9px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.14); background: transparent;
  font-size: 11.5px; color: #C4C3BD; cursor: pointer;
}
.modal-feature-chip:hover { border-color: #F2F1ED; color: #FFFFFF; }

.modal-provenance-card {
  padding: 20px; border: 1px solid rgba(242, 241, 237, 0.12); background: #121418;
  display: flex; flex-direction: column; gap: 14px; align-self: start;
}
.modal-prov-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal-prov-head strong { font-family: var(--font-sans-en); font-size: 11.5px; letter-spacing: 0.12em; color: #C9A96E; }
.modal-prov-verified { font-family: var(--font-sans-en); font-size: 11px; color: #D7D6D0; }
.modal-prov-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 12.5px; }
.modal-prov-list li {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px;
  padding: 9px 0; border-top: 1px solid rgba(242, 241, 237, 0.08);
}
.modal-prov-list span { color: #8A8983; }
.modal-prov-list code { font-family: var(--font-sans-en); font-size: 11.5px; color: #F2F1ED; overflow-wrap: anywhere; word-break: break-word; }
.modal-cta-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.modal-similar {
  padding: 24px 28px 28px;
  border-top: 1px solid rgba(242, 241, 237, 0.1);
  background: #0A0B0D;
}
.modal-similar--artist-works {
  background: #101318;
}
.modal-similar-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.modal-similar-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.modal-similar-head h3 span { color: #8A8983; font-weight: 400; font-size: 13px; }
.modal-similar-note { font-size: 12px; color: #8A8983; }
.modal-similar h3 { margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.modal-similar-head h3 { margin: 0; }
.similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.similar-card {
  border: 0; background: transparent; text-align: left; padding: 0; cursor: pointer;
}
.similar-card.is-current-work .similar-card-img { outline: 1px solid var(--accent); }
.similar-card-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #14161A; padding: 10px; display: flex; align-items: center; justify-content: center; }
.similar-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.similar-card-img.is-extreme-aspect { padding: 0; background: #1A1D24; }
.similar-card-img.is-extreme-aspect img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; }
.similar-card-img.is-image-unavailable,
.exhibition-plate.is-image-unavailable,
.exhibition-focus-frame.is-image-unavailable { background: linear-gradient(145deg, #161A22 0%, #101319 100%); border: 1px solid rgba(242, 241, 237, 0.12); }
.museum-img-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; width: 100%; height: 100%; color: #A9A8A2; }
.museum-img-fallback[hidden] { display: none; }
.museum-img-fallback span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #D8D6CE; line-height: 1.35; }
.museum-img-fallback small { font-size: 11px; color: #8A8983; line-height: 1.4; }
.similar-card-body { padding: 8px 0 0; }
.similar-card-body strong { display: block; font-size: 13px; color: #F2F1ED; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-card:hover .similar-card-body strong { text-decoration: underline; text-underline-offset: 3px; }
.similar-card-body span { display: block; font-size: 11.5px; color: #8A8983; margin-top: 2px; }

/* ==========================================================================
   15B. OFFICIAL ARTIST PROFILE EDITORIAL V4 MODAL (FAITHFUL TO /artist/{id})
   ========================================================================== */
.cinema-modal--artist {
  width: min(1160px, calc(100vw - 32px));
  background: #FFFFFF;
  color: #171717;
  --bg: #FFFFFF;
  --bg-elev: #FFFFFF;
  --ink: #171717;
  --ink-muted: #66645E;
  --ink-soft: #706E69;
  --border: #D9D6D0;
  --border-strong: #171717;
  --accent-text: #C84600;
  border-color: #D9D6D0;
}

/* World Museum Expanded Focused Artwork Viewer inside #exhibitionModal */
.exhibition-focus-viewer {
  margin: 0 28px 24px;
  padding: 20px;
  border: 1px solid rgba(242, 241, 237, 0.14);
  background: #12151B;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.exhibition-focus-frame {
  position: relative;
  background: #080A0D;
  padding: 16px;
  min-height: 240px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.exhibition-focus-frame img {
  max-width: 100%;
  max-height: 384px;
  object-fit: contain;
  display: block;
}
.exhibition-focus-frame.is-extreme-aspect-focus {
  background: #181C24;
  border: 1px solid rgba(242, 241, 237, 0.14);
}
.exhibition-focus-frame.is-extreme-aspect-focus img {
  width: 100%;
  height: auto;
  min-height: 64px;
  max-height: 384px;
  object-fit: cover;
  object-position: center;
}
.exhibition-focus-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.exhibition-focus-meta h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.18;
  color: #FFFFFF;
}
.exhibition-focus-sub {
  margin: 0;
  font-size: 13px;
  color: #A9A8A2;
}
.exhibition-focus-note {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: #E2E1DB;
}
.exhibition-focus-credit {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8F8E88;
}
.exhibition-focus-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.cinema-modal--artist .modal-close {
  background: rgba(255, 255, 255, 0.94);
  color: #171717;
  border-color: #D9D6D0;
}
.cinema-modal--artist .modal-close:hover {
  background: #171717;
  color: #FFFFFF;
}
.ae-v4 {
  --ae-ink: #171717;
  --ae-muted: #706E69;
  --ae-line: #D9D6D0;
  --ae-soft: #EBE8E2;
  --ae-warm: #F7F5F1;
  --ae-accent: #FF5E00;
  padding: 28px clamp(20px, 3.6vw, 48px) 48px;
  color: var(--ae-ink);
  word-break: keep-all;
}
.ae-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.96fr);
  border-bottom: 1px solid var(--ae-ink);
}
.ae-hero-artwork { min-width: 0; padding: 0 36px 22px 0; }
.ae-hero-plate {
  width: 100%; border: 0; padding: 20px; cursor: pointer;
  display: grid; place-items: center; min-height: 410px;
  background: var(--ae-warm); overflow: hidden;
}
.ae-hero-plate img { max-width: 100%; max-height: 480px; object-fit: contain; transition: transform 0.5s ease; }
.ae-hero-plate:hover img { transform: scale(1.02); }
.ae-hero-empty { display: grid; min-height: 410px; place-items: center; background: var(--ae-warm); color: var(--ae-muted); font-size: 12px; letter-spacing: 0.16em; }
.ae-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 12px; }
.ae-caption p { margin: 0; }
.ae-caption strong { font-weight: 500; }
.ae-caption p:first-child span { margin-left: 12px; color: var(--ae-muted); }
.ae-caption p:last-child { color: var(--ae-muted); }

.ae-identity {
  display: flex; flex-direction: column; min-width: 0;
  padding: 18px 0 22px 38px; border-left: 1px solid var(--ae-soft);
}
.ae-verified { margin: 0 0 auto; padding-right: 48px; color: var(--ae-muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.ae-verified span, .ae-verification button span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ae-accent); flex-shrink: 0; }
.ae-name-row { display: flex; align-items: center; gap: 16px; margin: 44px 0 18px; }
.ae-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--ae-line); background: var(--ae-warm); }
.ae-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ae-name-row h2 { margin: 0; font-size: clamp(28px, 2.8vw, 38px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--ae-ink); }
.ae-name-en { display: block; margin-top: 4px; font-family: var(--font-sans-en); font-size: 12.5px; color: var(--ae-muted); }
.ae-statement { margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.56; letter-spacing: -0.015em; color: var(--ae-ink); }
.ae-meta { margin: 18px 0 0; color: var(--ae-muted); font-size: 13px; }
.ae-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.ae-btn-follow, .ae-btn-inquiry {
  min-height: 42px; padding: 0 18px; border-radius: 2px; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--ae-ink); background: #FFFFFF; color: var(--ae-ink); font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ae-btn-follow { border-color: var(--ae-accent); background: var(--ae-accent); color: #FFFFFF; }
.ae-btn-follow:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ae-btn-follow[aria-pressed="true"] { border-color: var(--ae-ink); background: var(--ae-ink); color: #FFFFFF; }
.ae-btn-inquiry:hover { background: var(--ae-warm); }
.ae-btn-share {
  min-height: 40px; margin-left: 6px; padding: 0; border: 0; border-bottom: 1px solid var(--ae-ink);
  background: transparent; color: var(--ae-ink); font-size: 12px; cursor: pointer;
}
.ae-follow-copy { margin: 10px 0 0; color: var(--ae-muted); font-size: 12px; }
.ae-current-link {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 12px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ae-line);
}
.ae-current-link span, .ae-current-link em { color: var(--ae-muted); font-size: 11.5px; font-style: normal; }
.ae-current-link strong { font-size: 13.5px; font-weight: 500; color: var(--ae-ink); }
.ae-current-link em { border-bottom: 1px solid currentColor; }

.ae-verification {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  gap: 10px 20px; padding: 12px 0; border-bottom: 1px solid var(--ae-soft);
}
.ae-verification button {
  padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ae-muted);
}
.ae-verification p { margin: 0; font-size: 12px; color: var(--ae-muted); }

.ae-section-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 0; background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ae-line);
}
.ae-section-nav::-webkit-scrollbar { display: none; }
.ae-section-nav a { flex: none; font-size: 13px; color: var(--ae-muted); font-weight: 500; }
.ae-section-nav a:hover { color: var(--ae-ink); }

.ae-label { margin: 0 0 8px; font-size: 12px; color: var(--ae-muted); letter-spacing: 0.04em; }
.ae-selected, .ae-now, .ae-lines, .ae-allworks, .ae-similar, .ae-about, .ae-closing {
  padding: 48px 0; border-bottom: 1px solid var(--ae-line);
  scroll-margin-top: 64px;
}
.ae-closing { border-bottom: 0; padding-bottom: 12px; }
.ae-selected > header, .ae-allworks > header, .ae-similar > header {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px;
}
.ae-selected header h3, .ae-allworks header h3, .ae-similar header h3,
.ae-now h3, .ae-lines h3, .ae-about header h3, .ae-closing h3 {
  margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.24; color: var(--ae-ink);
}
.ae-selected header p, .ae-similar-reason { margin: 0; font-size: 13px; color: var(--ae-muted); }
.ae-selected-grid { max-width: 560px; }

.ae-work-card {
  display: flex; flex-direction: column; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; min-width: 0;
}
.ae-work-plate {
  aspect-ratio: 4 / 3; background: var(--ae-warm); padding: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ae-work-card.is-lead .ae-work-plate { aspect-ratio: 16 / 10; padding: 20px; }
.ae-work-plate img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.45s ease; }
.ae-work-card:hover .ae-work-plate img { transform: scale(1.03); }
.ae-work-caption {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding-top: 10px;
}
.ae-work-caption strong { display: block; font-size: 14.5px; font-weight: 500; color: var(--ae-ink); }
.ae-work-card:hover .ae-work-caption strong { text-decoration: underline; text-underline-offset: 3px; }
.ae-work-summary {
  margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--ae-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ae-work-caption > span { flex: none; font-size: 11.5px; color: var(--ae-muted); }

.ae-now { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; align-items: start; }
.ae-now-intro { margin: 16px 0 24px; font-size: 15px; line-height: 1.7; color: var(--ae-ink); }
.ae-now dl { margin: 0; }
.ae-now dl > div { padding: 14px 0; border-top: 1px solid var(--ae-soft); }
.ae-now dt { font-size: 12px; color: var(--ae-muted); margin-bottom: 5px; }
.ae-now dd { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ae-ink); }
.ae-now figure { margin: 0; }
.ae-now figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ae-warm); padding: 16px; }
.ae-now figcaption { margin-top: 8px; font-size: 11.5px; color: var(--ae-muted); }

.ae-lines { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 36px; align-items: start; }
.ae-lines ol { margin: 0; padding: 0; list-style: none; }
.ae-lines li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--ae-soft); }
.ae-lines li:first-child { border-top: 0; padding-top: 0; }
.ae-lines li span { font-family: var(--font-sans-en); font-size: 12px; color: var(--ae-muted); padding-top: 3px; }
.ae-lines li p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ae-ink); }

.ae-filters { display: flex; gap: 18px; border-bottom: 1px solid var(--ae-line); }
.ae-filters button {
  padding: 6px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--ae-muted); font-size: 13.5px; cursor: pointer;
}
.ae-filters button[aria-pressed="true"] { color: var(--ae-ink); font-weight: 600; border-bottom-color: var(--ae-accent); }
.ae-count { margin: 0 0 18px; font-size: 12.5px; color: var(--ae-muted); }
.ae-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.ae-filter-empty { padding: 28px; text-align: center; font-size: 13px; color: var(--ae-muted); border-top: 1px solid var(--ae-soft); border-bottom: 1px solid var(--ae-soft); }

.ae-similar { background: var(--ae-warm); margin: 0 calc(clamp(20px, 3.6vw, 48px) * -1); padding: 48px clamp(20px, 3.6vw, 48px); }
.ae-similar .ae-work-plate { background: #FFFFFF; border: 1px solid var(--ae-soft); }
.ae-similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.ae-about-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 40px; margin-top: 28px; }
.ae-about-text p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ae-ink); }
.ae-about-portrait { margin: 0 0 22px; }
.ae-about-portrait img { width: 100%; max-height: 280px; object-fit: cover; object-position: center 20%; background: var(--ae-warm); }
.ae-about-portrait figcaption { margin-top: 6px; font-size: 11.5px; color: var(--ae-muted); }
.ae-facts { margin: 0; }
.ae-facts > div { padding: 12px 0; border-top: 1px solid var(--ae-soft); }
.ae-facts dt { font-size: 11.5px; color: var(--ae-muted); margin-bottom: 4px; }
.ae-facts dd { margin: 0; font-size: 13.5px; color: var(--ae-ink); }
.ae-social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.ae-social-links a { font-size: 13px; color: var(--ae-ink); text-decoration: underline; text-underline-offset: 3px; }

.ae-closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.ae-closing p { margin: 0 0 16px; font-size: 13.5px; color: var(--ae-muted); }
.ae-closing-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Modal Room Source Tabs & My Space Empty State */
.room-mode-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.room-source-pills { display: inline-flex; gap: 16px; border-bottom: 1px solid rgba(242, 241, 237, 0.12); }
.room-source-pill {
  padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: #9D9C96; font-size: 12.5px; cursor: pointer;
}
.room-source-pill.is-active { color: #FFFFFF; font-weight: 500; border-bottom-color: var(--accent); }
.myspace-empty-box {
  padding: 36px 24px; border: 1px dashed rgba(242, 241, 237, 0.22);
  background: #111317; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.myspace-empty-box h4 { margin: 0; font-size: 16px; font-weight: 500; color: #FFFFFF; }
.myspace-empty-box p { margin: 0; font-size: 13px; color: #9D9C96; max-width: 440px; }
.lighting-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: #9D9C96; }
.lighting-inline input { width: 88px; accent-color: var(--accent); }

/* ==========================================================================
   16. MY SPACES MODAL & ARTIST STUDIO SETTINGS MODAL
   ========================================================================== */
.cinema-modal--myspaces { width: min(1040px, calc(100vw - 32px)); }
.myspace-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 580px; }
.myspace-sidebar {
  background: #090A0C; border-right: 1px solid rgba(242, 241, 237, 0.1);
  padding: 24px 18px; display: flex; flex-direction: column; gap: 20px;
}
.myspace-profile-chip { display: flex; align-items: center; gap: 11px; }
.myspace-avatar {
  width: 34px; height: 34px; border: 1px solid rgba(242, 241, 237, 0.28);
  color: #F2F1ED; font-family: var(--font-sans-en); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.myspace-profile-chip strong { display: block; font-size: 13.5px; }
.myspace-profile-chip small { display: block; font-size: 11px; color: #8A8983; }
.myspace-nav { display: flex; flex-direction: column; gap: 2px; }
.myspace-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 10px 10px; font-size: 13px; color: #9D9C96;
  border: 0; border-bottom: 1px solid rgba(242, 241, 237, 0.06);
  background: transparent; text-align: left;
  transition: color 0.18s ease, background-color 0.18s ease;
}
button.myspace-nav-item, a.myspace-nav-item { cursor: pointer; }
button.myspace-nav-item:hover, a.myspace-nav-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.04); }
.myspace-nav-item b { font-family: var(--font-sans-en); font-size: 11px; color: var(--accent-text); }
.myspace-nav-item.is-active { color: #FFFFFF; font-weight: 500; background: rgba(255, 255, 255, 0.05); }
.myspace-privacy-note {
  margin: auto 0 0; font-size: 11px; line-height: 1.6; color: #8F8E88;
  padding-top: 14px; border-top: 1px solid rgba(242, 241, 237, 0.08);
}
.myspace-main { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.myspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-right: 48px; }
.myspace-header h2 { margin: 0 0 4px; font-size: 21px; font-weight: 500; }
.myspace-header p { margin: 0; font-size: 13px; color: #9D9C96; }
.myspace-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.myspace-slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.myspace-slot-card {
  border: 1px solid rgba(242, 241, 237, 0.14); background: #111316;
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column;
}
.myspace-slot-card.is-active { border-color: var(--accent); }
.myspace-slot-thumb { aspect-ratio: 16 / 10; background: #16181C; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8A8983; font-size: 12px; }
.myspace-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myspace-slot-meta { padding: 8px 10px; }
.myspace-slot-meta strong { display: block; font-size: 12px; color: #F2F1ED; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myspace-slot-meta small { display: block; font-size: 11px; color: #8A8983; }

.myspace-editor {
  border-top: 1px solid rgba(242, 241, 237, 0.12); padding-top: 18px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr); gap: 20px;
}
.myspace-calib-stage {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #090A0C;
  --stage-max-h: 360px;
}
.myspace-calib-stage img.calib-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.myspace-calib-hint {
  position: absolute; left: 10px; top: 10px; padding: 4px 9px;
  background: rgba(10, 11, 13, 0.8); color: #F2F1ED; font-size: 11px; pointer-events: none;
}
.myspace-calib-controls { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; }
.myspace-field { display: flex; flex-direction: column; gap: 5px; }
.myspace-field label { font-size: 11.5px; color: #9D9C96; display: flex; justify-content: space-between; }
.myspace-field input[type="text"] {
  height: 36px; padding: 0 10px; border: 1px solid rgba(242, 241, 237, 0.18);
  background: #0A0B0D; color: #FFFFFF;
}
.myspace-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.preset-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip {
  padding: 4px 8px; border: 1px solid rgba(242, 241, 237, 0.16);
  background: transparent; color: #C9C8C2; font-size: 11px; cursor: pointer;
}
.preset-chip:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* Filter Side Drawer & Studio Settings Modal */
.side-drawer {
  margin: 0 0 0 auto; height: 100svh; max-height: 100svh;
  width: min(440px, 100vw); border: 0; border-left: 1px solid rgba(242, 241, 237, 0.12);
  background: #0D0F12; color: #F2F1ED; padding: 0; display: flex; flex-direction: column;
}
.side-drawer--wide { width: min(520px, 100vw); }
.side-drawer:not([open]) { display: none; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid rgba(242, 241, 237, 0.1);
}
.drawer-header h2 { margin: 0; font-size: 19px; font-weight: 500; }
.drawer-head-sub { margin: 4px 0 0; font-size: 12px; color: #8E8D87; }
.drawer-body { padding: 20px 24px 28px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 22px; }

.drawer-section { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid rgba(242, 241, 237, 0.09); }
.drawer-section:last-child { border-bottom: 0; padding-bottom: 0; }
.drawer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-section-head h3 { margin: 0; font-size: 13px; font-weight: 500; color: #F2F1ED; }
.drawer-count-note { font-size: 11.5px; color: #8A8983; }

.drawer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drawer-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: #9D9C96; }
.drawer-field--full { grid-column: 1 / -1; }
.drawer-field input[type="search"],
.drawer-field input[type="number"],
.drawer-field input[type="text"],
.drawer-field select {
  height: 36px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.16); background: #090A0C; color: #F2F1ED; font-size: 12.5px;
}
.drawer-field input:focus, .drawer-field select:focus { outline: none; border-color: #F2F1ED; }
.drawer-check-row { display: flex; flex-wrap: wrap; gap: 14px; }
.drawer-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #D7D6D0; cursor: pointer; }
.drawer-check input { accent-color: var(--accent); width: 14px; height: 14px; }

.axis-group { padding-top: 12px; border-top: 1px solid rgba(242, 241, 237, 0.07); }
.axis-group:first-of-type { padding-top: 0; border-top: 0; }
.axis-group h3 {
  margin: 0 0 8px; font-size: 13px; font-weight: 500; color: #E5E4DE;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.axis-group h3 small { color: #8A8983; font-weight: 400; font-size: 11.5px; }
.axis-prompt { color: #7C7B76; font-size: 11.5px; font-weight: 400; margin-left: 6px; }
.axis-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.axis-search {
  flex: 1; min-width: 0; height: 31px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.14); background: #090A0C; color: #F2F1ED; font-size: 12px;
}
.axis-search:focus { outline: none; border-color: #F2F1ED; }
.axis-more-btn {
  height: 31px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.14); background: transparent;
  color: #B4B3AD; font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.axis-more-btn:hover { border-color: #F2F1ED; color: #FFFFFF; }
.axis-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.axis-pill {
  min-height: 30px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.16); background: transparent;
  color: #C9C8C2; font-size: 12px; cursor: pointer;
}
.axis-pill:hover { border-color: rgba(242, 241, 237, 0.5); color: #FFFFFF; }
.axis-pill.is-selected { background: #F2F1ED; border-color: #F2F1ED; color: #0A0B0D; font-weight: 500; }
.axis-pill[hidden] { display: none !important; }
.drawer-footer {
  padding: 16px 24px; border-top: 1px solid rgba(242, 241, 237, 0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.filtered-active-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--r); border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink); font-size: 12px; cursor: pointer;
}
.active-filter-chip:hover { border-color: var(--accent); }
.filtered-tools-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-sort-wrap { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-muted); }
.inline-sort-wrap select {
  height: 34px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--ink); font-size: 12.5px;
}

/* Artist Studio Settings Modal */
.cinema-modal--studio { width: min(1040px, calc(100vw - 32px)); }
.studio-wrap { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.studio-top {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 0 48px 16px 0; border-bottom: 1px solid rgba(242, 241, 237, 0.1);
}
.studio-top h2 { margin: 0 0 4px; font-size: 21px; font-weight: 500; }
.studio-top p { margin: 0; font-size: 13px; color: #9D9C96; max-width: 580px; }
.studio-work-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #9D9C96; max-width: 100%; }
.studio-work-picker select {
  height: 36px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.22); background: #090A0C; color: #FFFFFF; font-size: 12.5px;
  min-width: 0; max-width: 100%; width: min(280px, 100%);
}
.studio-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.studio-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.studio-card {
  padding-top: 16px; border-top: 1px solid rgba(242, 241, 237, 0.12);
  display: flex; flex-direction: column; gap: 12px;
}
.studio-card:first-child { padding-top: 0; border-top: 0; }
.studio-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-card-head h3 { margin: 0; font-size: 14px; font-weight: 500; color: #FFFFFF; }
.studio-card-desc { margin: 0; font-size: 12px; color: #9D9C96; line-height: 1.55; }
.studio-media-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.studio-slot-box { border: 1px solid rgba(242, 241, 237, 0.12); background: #090A0C; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.studio-slot-thumb { aspect-ratio: 4 / 3; background: #14161A; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8A8983; font-size: 11px; text-align: center; padding: 4px; }
.studio-slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.studio-slot-box strong { font-size: 11.5px; color: #F2F1ED; }
.studio-slot-box small { font-size: 10.5px; color: #8A8983; line-height: 1.35; }
.studio-placement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio-radio-card {
  padding: 10px; border: 1px solid rgba(242, 241, 237, 0.14); background: transparent;
  color: #C9C8C2; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px;
}
.studio-radio-card strong { font-size: 12.5px; font-weight: 500; color: #FFFFFF; }
.studio-radio-card small { font-size: 10.5px; color: #8E8D87; line-height: 1.35; }
.studio-radio-card.is-active { border-color: var(--accent); background: rgba(255, 94, 0, 0.1); }
.studio-step-box { padding-top: 12px; border-top: 1px solid rgba(242, 241, 237, 0.08); display: flex; flex-direction: column; gap: 10px; }
.studio-step-title { display: flex; align-items: baseline; gap: 8px; }
.studio-step-num { font-family: var(--font-sans-en); font-size: 11.5px; color: var(--accent); font-weight: 600; }
.studio-step-title strong { font-size: 13px; color: #FFFFFF; }
.studio-step-title small { font-size: 11.5px; color: #8A8983; }
.studio-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(242, 241, 237, 0.12);
}

/* White Gallery Clean Filter Drawer & Quiet Bottom-Right Dock */
html[data-theme="hybrid"] .side-drawer {
  background: #F6F4EF;
  color: #141413;
  border-left-color: rgba(20, 20, 19, 0.12);
}
html[data-theme="hybrid"] .side-drawer .drawer-header,
html[data-theme="hybrid"] .side-drawer .drawer-section,
html[data-theme="hybrid"] .side-drawer .drawer-footer,
html[data-theme="hybrid"] .side-drawer .axis-group {
  border-color: rgba(20, 20, 19, 0.1);
}
html[data-theme="hybrid"] .side-drawer .drawer-section-head h3,
html[data-theme="hybrid"] .side-drawer .axis-group h3,
html[data-theme="hybrid"] .side-drawer .drawer-check { color: #141413; }
html[data-theme="hybrid"] .side-drawer .drawer-head-sub,
html[data-theme="hybrid"] .side-drawer .drawer-count-note,
html[data-theme="hybrid"] .side-drawer .drawer-field,
html[data-theme="hybrid"] .side-drawer .axis-group h3 small,
html[data-theme="hybrid"] .side-drawer .axis-prompt { color: #63625D; }
html[data-theme="hybrid"] .side-drawer .drawer-field input,
html[data-theme="hybrid"] .side-drawer .drawer-field select,
html[data-theme="hybrid"] .side-drawer .axis-search {
  background: #FFFFFF;
  color: #141413;
  border-color: rgba(20, 20, 19, 0.18);
}
html[data-theme="hybrid"] .side-drawer .axis-pill,
html[data-theme="hybrid"] .side-drawer .axis-more-btn,
html[data-theme="hybrid"] .side-drawer .modal-close {
  color: #2B2B29;
  border-color: rgba(20, 20, 19, 0.2);
  background: transparent;
}
html[data-theme="hybrid"] .side-drawer .axis-pill.is-selected {
  background: #0B1D2D;
  border-color: #0B1D2D;
  color: #FFFFFF;
}
html[data-theme="hybrid"] .side-drawer--nav {
  background: #0B1D2D;
  color: #F4F3EE;
}
html[data-theme="hybrid"] .side-drawer--nav .modal-close {
  color: #F4F3EE;
  border-color: rgba(244, 243, 238, 0.24);
}
html[data-theme="hybrid"] .preview-dock-toggle {
  background: #0B1D2D;
  border-color: rgba(244, 243, 238, 0.22);
  color: #F4F3EE;
}
html[data-theme="hybrid"] .preview-dock-panel {
  background: #0B1D2D;
  border-color: rgba(244, 243, 238, 0.2);
}

.mobile-nav-links { display: flex; flex-direction: column; padding: 12px 24px 32px; overflow-y: auto; flex: 1; }
.mobile-nav-links > a { padding: 13px 0; min-height: 44px; display: flex; align-items: center; font-size: 15px; border-bottom: 1px solid rgba(242, 241, 237, 0.08); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.mobile-myspace-btn {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.28);
  background: transparent; color: #F2F1ED; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.mobile-myspace-btn:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.mobile-nav-action-link {
  min-height: 44px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.2);
  color: #F2F1ED; font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.mobile-nav-action-link:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.mobile-nav-action-link--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}
.mobile-nav-action-link--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ==========================================================================
   17. QUIET BOTTOM-RIGHT VIEW SETTINGS TAB (NO GLOWING DOT OR PILL)
   ========================================================================== */
.preview-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.preview-dock-toggle {
  height: 36px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.22);
  background: rgba(13, 15, 18, 0.94); color: #F2F1ED;
  font-size: 12px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.preview-dock-toggle:hover { border-color: #FFFFFF; }
.dock-summary { color: #8E8D87; font-weight: 400; }

.preview-dock-panel {
  width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.18); background: rgba(13, 15, 18, 0.98);
  color: #F2F1ED; display: flex; flex-direction: column; gap: 12px;
}
.preview-dock-panel[hidden] { display: none; }
.dock-row { display: flex; flex-direction: column; gap: 6px; }
.dock-label { font-size: 11px; color: #8A8983; }
.dock-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dock-pill {
  min-height: 32px; padding: 4px 10px; border-radius: var(--r);
  border: 1px solid rgba(242, 241, 237, 0.16); background: transparent;
  color: #C9C8C2; font-size: 12px; cursor: pointer;
}
.dock-pill.is-active { background: #F2F1ED; border-color: #F2F1ED; color: #0A0B0D; font-weight: 500; }
.dock-pill--full { width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200;
  padding: 10px 18px; border-radius: var(--r);
  background: #171A1F; border: 1px solid rgba(242, 241, 237, 0.24);
  color: #F2F1ED; font-size: 13px;
}

/* ==========================================================================
   18. RESPONSIVE (1100px TABLET & 390px MOBILE)
   ========================================================================== */
/* Member-Only Entry Gate Preview Modal */
.cinema-modal--gate { width: min(920px, calc(100vw - 32px)); background: #0B1D2D; border-color: rgba(244, 243, 238, 0.16); }
.member-gate-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 460px; }
.member-gate-visual { position: relative; background: #081521; overflow: hidden; min-height: 320px; }
.member-gate-visual > img { width: 100%; height: 100%; object-fit: cover; }
.member-gate-art-overlay {
  position: absolute; left: 50%; top: 34%; width: 42%; transform: translate(-50%, -50%);
  border: 5px solid #C8A67D; outline: 1px solid #8E6A41; padding: 2px; background: #16120D;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
.member-gate-art-overlay img { width: 100%; height: auto; display: block; }
.member-gate-caption {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 10px;
  background: rgba(8, 21, 33, 0.84); color: #F4F3EE; font-size: 11.5px;
}
.member-gate-copy { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.member-gate-kicker { font-family: var(--font-sans-en); font-size: 11px; letter-spacing: 0.14em; color: #D4B578; font-weight: 600; }
.member-gate-copy h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.3; color: #FFFFFF; }
.member-gate-copy > p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #B4C6D4; }
.member-gate-points { margin: 4px 0; padding: 14px 0; list-style: none; border-top: 1px solid rgba(244, 243, 238, 0.12); border-bottom: 1px solid rgba(244, 243, 238, 0.12); display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: #D2DFE8; }
.member-gate-points strong { color: #FFFFFF; font-weight: 500; }
.member-gate-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.member-gate-actions .btn-hero-glass { justify-content: center; }
.member-gate-note { font-size: 11.5px; color: #8BA2B4; }
.member-gate-note code { font-family: var(--font-sans-en); color: #E2ECF3; }

@media (hover: none), (pointer: coarse) {
  .rail-paddle { display: none !important; }
  .art-card-stage { padding-bottom: 48px; }
  .card-save-btn { opacity: 1; width: 40px; height: 40px; }
  .card-hover-bar { opacity: 1; pointer-events: auto; }
  .card-quick-btn { min-height: 40px; font-size: 12px; }
}

@media (max-width: 1240px) {
  .header-left { gap: 18px; }
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: 12.5px; }
}

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 1100px) {
  .curated-editorial-grid { grid-template-columns: 1fr; }
  .curated-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-gate-layout { grid-template-columns: 1fr; }
  .spatial-grid { grid-template-columns: 1fr; }
  .color-spectrum-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon-top { grid-template-columns: 1fr; }
  .myspace-layout { grid-template-columns: 1fr; }
  .myspace-sidebar { border-right: 0; border-bottom: 1px solid rgba(242, 241, 237, 0.1); }
  .myspace-editor { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .rail-paddle { display: none !important; }
}

@media (max-width: 960px) {
  .modal-body-grid { grid-template-columns: minmax(0, 1fr); }
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibition-focus-viewer { grid-template-columns: minmax(0, 1fr); margin: 0 20px 20px; }
  .ae-hero, .ae-now, .ae-lines, .ae-about-layout, .ae-closing { grid-template-columns: minmax(0, 1fr); }
  .ae-hero-artwork { padding: 0 0 18px; }
  .ae-identity { padding: 24px 0 20px; border-left: 0; border-top: 1px solid var(--ae-soft); }
  .ae-name-row { margin: 24px 0 16px; }
  .ae-work-grid, .ae-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header { gap: 10px; }
  .header-ghost-btn, .header-cta-btn { display: none; }
  .icon-trigger, .mobile-menu-btn { width: 44px; height: 44px; }
  .search-shell { width: 44px; height: 44px; }
  .search-shell.is-open {
    position: absolute;
    left: var(--gutter);
    right: calc(var(--gutter) + 132px);
    top: 8px;
    width: auto;
    height: 44px;
    z-index: 20;
    padding: 0 8px 0 2px;
    background: #081521;
    border: 1px solid rgba(242, 241, 237, 0.3);
    border-radius: var(--r);
    color: #F2F1ED;
  }
  .search-shell.is-open:focus-within {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }
  html[data-theme="hybrid"] .site-header.is-scrolled .search-shell.is-open {
    background: #FFFFFF;
    color: #141413;
    border-color: rgba(20, 20, 19, 0.28);
  }
  .search-shell input { font-size: 16px; }
  .search-clear { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }

  .billboard { min-height: 540px; }
  .billboard-scrim, html[data-theme="hybrid"] .billboard-scrim {
    background:
      linear-gradient(180deg, rgba(8, 21, 33, 0.42) 0%, rgba(8, 21, 33, 0.68) 46%, rgba(8, 21, 33, 0.95) 100%);
  }
  .billboard-overlay { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 28px; }
  .billboard-title { font-size: clamp(32px, 8.8vw, 44px); }
  .billboard-title.is-ko { font-size: clamp(28px, 7.6vw, 36px); }
  .billboard-switcher { align-items: flex-start; width: 100%; }
  .switcher-thumb { width: 70px; height: 42px; }
  .square-nav { width: 40px; height: 40px; }
  .billboard-logline { font-size: 13.5px; margin-bottom: 20px; }

  .taste-ribbon-inner { gap: 12px; }
  .taste-chips { gap: 16px; }
  .filter-drawer-btn { min-height: 38px; padding: 0 11px; }

  .rail-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .rail-tools { width: 100%; flex-wrap: wrap; gap: 10px 14px; }
  .rail-paddle { display: none !important; }
  .art-card-stage { padding-bottom: 48px; }
  .card-save-btn { opacity: 1; width: 40px; height: 40px; }
  .card-hover-bar { opacity: 1; pointer-events: auto; }
  .card-quick-btn { min-height: 40px; font-size: 12px; }

  .art-card { flex: 0 0 74vw; }
  .rank-item { flex: 0 0 80vw; }
  .rank-item--artist { flex: 0 0 84vw; }
  .rank-stage-wrap { padding-left: 44px; }
  .art-card--ranked .art-card-meta { padding-left: 44px; }
  .rank-numeral { font-size: 94px; bottom: -6px; }
  .artist-card { flex: 0 0 84vw; }
  .auction-card { flex: 0 0 86vw; }
  .color-spectrum-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-grid, .collection-grid, .exhibition-grid, .bridge-grid { grid-template-columns: 1fr; }
  .curated-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .curated-anchor-stage { min-height: 260px; padding: 18px; }
  .myspace-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provenance-ledger > div { grid-template-columns: 1fr; gap: 4px; }

  /* Keep spatial room HUD completely off the artwork on mobile */
  .room-stage { flex-direction: column; align-items: center; }
  .room-scale-hud {
    position: static; width: 100%;
    padding: 8px 10px;
    background: #101318;
    border-top: 1px solid rgba(242, 241, 237, 0.1);
    pointer-events: auto;
    gap: 4px 10px;
  }
  .room-scale-pill { padding: 2px 0; background: transparent; font-size: 11px; }
  .spatial-arrow { width: 38px; height: 38px; }
  .spatial-cta-row { grid-template-columns: 1fr; }
  .frame-pill, .btn-follow, .line-action-btn, .ed-tab { min-height: 40px; }

  .cinema-modal { width: calc(100vw - 16px); max-height: calc(100svh - 16px); }
  .modal-close { width: 40px; height: 40px; margin: 10px 10px -50px 0; }
  .modal-stage-wrap { padding: 18px 16px; }
  .modal-body-grid { padding: 18px 16px; gap: 22px; }
  .modal-similar { padding: 20px 16px 24px; }
  .exhibition-focus-viewer { margin: 0 16px 18px; padding: 14px; gap: 14px; }
  .studio-wrap { padding: 20px 16px 24px; }
  .myspace-main { padding: 20px 16px; }
  .ae-work-caption { flex-direction: column; gap: 4px; }
  .ae-hero-plate { min-height: 280px; }
  .studio-placement-grid, .studio-media-slots { grid-template-columns: 1fr; }
  .cinema-modal input[type="text"],
  .cinema-modal input[type="search"],
  .cinema-modal input[type="number"],
  .cinema-modal select,
  .side-drawer input[type="text"],
  .side-drawer input[type="search"],
  .side-drawer input[type="number"],
  .side-drawer select { font-size: 16px; }

  .toast { max-width: calc(100vw - 32px); width: max-content; text-align: center; bottom: 68px; }
  .dock-summary { display: none; }
  .preview-dock { right: 12px; bottom: 12px; }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 480px) {
  .drawer-form-grid { grid-template-columns: 1fr; }
  .curated-sub-grid { grid-template-columns: 1fr; }
  .modal-specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Full-Page Member-Only Entry Gate on /home-preview */
.hp-gate-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #0B1D2D;
  color: #F4F3EE;
}
.hp-gate-topbar {
  height: 68px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 243, 238, 0.1);
}
.hp-gate-topbar img { height: 24px; width: auto; }
.hp-gate-topbar a.hp-gate-home-link {
  font-size: 13px;
  color: #B4C6D4;
}
.hp-gate-topbar a.hp-gate-home-link:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.hp-gate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) var(--gutter);
}
.hp-gate-card {
  width: min(980px, 100%);
  border: 1px solid rgba(244, 243, 238, 0.16);
  background: #081521;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
}
.hp-gate-status {
  padding: 64px 28px;
  text-align: center;
  color: #B4C6D4;
  font-size: 14px;
}
@media (max-width: 900px) {
  .hp-gate-card { grid-template-columns: 1fr; }
}

/* ==========================================================================
   19. WAVE 3 — TOP-RIGHT OFFICIAL CIRCULAR ACCOUNT MENU, STRICT-CSP CLASSES
   ========================================================================== */
.hp-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 35;
}
.hp-account-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(242, 241, 237, 0.34);
  border-radius: 50%;
  background: rgba(11, 29, 45, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
html[data-theme="hybrid"] .site-header.is-scrolled .hp-account-trigger {
  border-color: rgba(20, 20, 19, 0.24);
  background: #FFFFFF;
}
.hp-account-trigger:hover,
.hp-account-trigger:focus-visible,
.hp-account-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hp-account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #141413;
  color: #FFFFFF;
  font-family: var(--font-sans-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hp-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(312px, calc(100vw - 24px));
  padding: 18px 20px;
  background: #FFFFFF;
  color: #141413;
  border: 1px solid rgba(20, 20, 19, 0.16);
  box-shadow: 0 20px 55px rgba(8, 21, 33, 0.24);
  z-index: 140;
  text-align: left;
}
.hp-account-popover::before {
  content: "";
  position: absolute;
  right: 14px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-left: 1px solid rgba(20, 20, 19, 0.16);
  border-top: 1px solid rgba(20, 20, 19, 0.16);
  transform: rotate(45deg);
}
.hp-account-popover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
html[data-theme="cinema"] .hp-account-popover {
  background: #14171C;
  color: #F2F1ED;
  border-color: rgba(242, 241, 237, 0.18);
}
html[data-theme="cinema"] .hp-account-popover::before {
  background: #14171C;
  border-left-color: rgba(242, 241, 237, 0.18);
  border-top-color: rgba(242, 241, 237, 0.18);
}
.hp-account-popover-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 19, 0.12);
}
html[data-theme="cinema"] .hp-account-popover-head {
  border-bottom-color: rgba(242, 241, 237, 0.14);
}
.hp-account-eyebrow {
  display: block;
  font-family: var(--font-sans-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}
.hp-account-popover-head strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.hp-account-popover-head small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #5E5C56;
}
html[data-theme="cinema"] .hp-account-popover-head small {
  color: #A4A39D;
}
.hp-account-links {
  display: grid;
  margin-top: 4px;
}
.hp-account-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 20, 19, 0.1);
  font-size: 13.5px;
  font-weight: 500;
}
html[data-theme="cinema"] .hp-account-links a {
  border-bottom-color: rgba(242, 241, 237, 0.12);
}
.hp-account-links a::after {
  content: "→";
  color: var(--accent);
}
.hp-account-links a:hover {
  color: var(--accent);
}
.hp-account-lang {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 19, 0.1);
}
html[data-theme="cinema"] .hp-account-lang {
  border-bottom-color: rgba(242, 241, 237, 0.12);
}
.hp-account-lang-label {
  display: block;
  font-size: 11px;
  color: #5E5C56;
  margin-bottom: 6px;
}
html[data-theme="cinema"] .hp-account-lang-label,
.mobile-nav-lang .hp-account-lang-label {
  color: #A4A39D;
}
.hp-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hp-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: var(--r);
  border: 1px solid rgba(20, 20, 19, 0.16);
  color: inherit;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
html[data-theme="cinema"] .hp-lang-pill,
.hp-lang-pills--gate .hp-lang-pill,
.mobile-nav-lang .hp-lang-pill {
  border-color: rgba(242, 241, 237, 0.22);
  color: #D2DFE8;
}
.hp-lang-pill:hover {
  border-color: var(--accent);
}
.hp-lang-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 500;
}
.hp-account-logout {
  width: 100%;
  margin-top: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #141413;
  background: transparent;
  color: #141413;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.hp-account-logout:hover,
.hp-account-logout:focus-visible {
  background: #141413;
  color: #FFFFFF;
}
html[data-theme="cinema"] .hp-account-logout {
  border-color: rgba(242, 241, 237, 0.34);
  color: #F2F1ED;
}
html[data-theme="cinema"] .hp-account-logout:hover,
html[data-theme="cinema"] .hp-account-logout:focus-visible {
  background: #F2F1ED;
  color: #0A0B0D;
}
.hp-gate-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.hp-gate-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.hp-gate-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #CFD9E2;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.hp-gate-auth-link:hover {
  color: #FFFFFF;
}

/* Official Language Picker (<details class="language-picker">) — 1:1 unified with landing page */
.hp-lang-nav {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 36;
}
.language-picker {
  position: relative;
  font-style: normal;
}
.language-picker > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 8px;
  cursor: pointer;
  list-style: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  color: #CFD9E2;
  transition: color 0.18s ease;
}
.language-picker > summary::-webkit-details-marker {
  display: none;
}
.language-picker > summary:hover {
  color: #FFFFFF;
}
html[data-theme="hybrid"] .site-header.is-scrolled .language-picker > summary {
  color: #2B2A27;
}
html[data-theme="hybrid"] .site-header.is-scrolled .language-picker > summary:hover {
  color: #000000;
}
.language-picker-globe {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.language-picker-chevron {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.language-picker[open] .language-picker-chevron {
  transform: rotate(180deg);
}
.language-picker-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  min-width: 152px;
  padding: 8px;
  background: #102436;
  color: #FAF8F5;
  border: 1px solid rgba(250, 248, 245, 0.2);
  box-shadow: 0 16px 36px rgba(4, 12, 20, 0.58);
  letter-spacing: 0;
}
html[data-theme="hybrid"] .site-header.is-scrolled .language-picker-options {
  background: #FFFFFF;
  color: #141413;
  border-color: rgba(20, 20, 19, 0.18);
  box-shadow: 0 12px 28px rgba(8, 21, 33, 0.16);
}
.language-navigation .language-picker-options a {
  display: block;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13.5px;
  text-align: left;
  line-height: 22px;
  color: inherit;
  white-space: nowrap;
}
.language-navigation .language-picker-options a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.language-navigation .language-picker-options a:hover {
  color: var(--accent);
  background: rgba(250, 248, 245, 0.05);
}
html[data-theme="hybrid"] .site-header.is-scrolled .language-navigation .language-picker-options a:hover {
  background: rgba(20, 20, 19, 0.04);
}
.language-picker-options a:focus-visible,
.language-picker > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .header-right { gap: 6px; }
  .search-shell.is-open { width: clamp(160px, 24vw, 220px); }
}
@media (max-width: 760px) {
  .header-right { gap: 2px; }
  .brand-logo img { height: 22px; width: auto; }
  .icon-trigger, .mobile-menu-btn { width: 38px; height: 40px; }
  .search-shell { width: 38px; height: 40px; }
  .hp-account-trigger { width: 40px; height: 40px; }
  .hp-account-avatar { width: 32px; height: 32px; }
  .language-picker > summary { gap: 3px; padding: 4px 5px; font-size: 11.5px; min-width: 36px; min-height: 40px; }
  .language-picker-globe { width: 14px; height: 14px; }
  .hp-gate-topbar { height: auto; min-height: 60px; padding-block: 10px; gap: 8px; }
  .hp-gate-topbar a.hp-gate-home-link { display: none; }
  .hp-gate-topbar-right { gap: 6px; }
  .hp-gate-auth-link { padding: 0 5px; font-size: 12.5px; }
}

/* Strict CSP Utility Classes (replacing all inline style attributes) */
.hp-gate-heading {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
}
.hp-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.dock-pill--span { grid-column: 1 / -1; }
.art-card-stage-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hp-empty-stage {
  aspect-ratio: 16 / 9;
  justify-content: center;
}
.frame-pills--spaced { margin-top: 10px; }
.hp-btn-compact-text { font-size: 11.5px; }
.hp-save-icon-btn { min-height: 46px; padding: 0 14px; }
.hp-muted-note { color: var(--ink-muted); padding: 12px 0; }
.hp-muted-note--lg { color: var(--ink-muted); padding: 18px 0; }
.hp-slot-clickable { cursor: pointer; }
.hp-calib-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.hp-calib-use-btn { flex: 1; min-height: 40px; }
.hp-delete-btn { color: #FF8B6A; }
.hp-upload-btn { display: inline-flex; align-items: center; cursor: pointer; }
.hp-upload-btn--compact { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; cursor: pointer; }
.hp-real-photo-frame { width: 100%; padding: 12px; background: #D8CFC2; overflow: hidden; }
.hp-real-photo-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.hp-btn-center { justify-content: center; }
.hp-btn-full { width: 100%; }
.hp-light-link { color: #F2F1ED; }
.hp-studio-palette-row { margin: 0; border: 0; padding: 2px 0; }
.hp-studio-cutout-btn { margin-left: auto; height: 30px; padding: 0 12px; font-size: 11.5px; }
.hp-palette-mini-swatch { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: middle; }
.hp-studio-desc-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hp-studio-desc-flex { flex: 1; }
.hp-studio-copy-btn { height: 32px; padding: 0 12px; font-size: 12px; }
.hp-studio-axis-group { padding-top: 8px; }
.hp-studio-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-modal-body-padded { padding-top: 34px; }
.hp-modal-body-single { grid-template-columns: 1fr; padding-top: 34px; }
.hp-goods-frame { height: clamp(240px, 42vh, 380px); }
.hp-goods-copy { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hp-goods-title { font-size: clamp(22px, 2.4vw, 30px); }
.hp-goods-price { font-size: 22px; color: #FFFFFF; font-weight: 500; }
.hp-goods-logline { margin-bottom: 6px; }
.hp-goods-specs { margin-bottom: 8px; }
.hp-goods-note { font-size: 12px; color: #9D9C96; margin: 0; }
.hp-goods-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hp-ex-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 18px; }
.hp-ex-switch-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-ex-disclaimer { font-size: 12px; color: #A9A8A2; padding: 12px 0; border-top: 1px solid rgba(242, 241, 237, 0.1); border-bottom: 1px solid rgba(242, 241, 237, 0.1); margin: 0; }
.hp-ex-museum-tag { color: #DFB96E; margin-top: 4px; }
.hp-ex-more-wrap { display: flex; justify-content: center; margin-top: 20px; }


