/* ==========================================================================
   Art & Explore — After Hours at The Met
   Inspired by Google Arts & Culture, The Metropolitan Museum of Art (NYC),
   and the "After Hours" playful paper-cut artist character aesthetic.
   Includes Full-Screen Immersive Artist Docent Theatre + MediaPipe Hand HUD.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-stage: #fcfbf9;
  --bg-paper: #ffffff;
  --bg-subtle: #f4f1ea;
  --bg-warm-tint: #efeae0;
  --text-primary: #181818;
  --text-secondary: #5a5751;
  --text-muted: #8c877e;
  --met-crimson: #e4002b;
  --met-crimson-dark: #b80022;
  --bubble-bg: #262626;
  --bubble-text: #ffffff;
  --border-hairline: #e6e2d8;
  --border-strong: #181818;
  --shadow-soft: 0 12px 32px -8px rgba(24, 24, 24, 0.07);
  --shadow-card: 0 20px 44px -12px rgba(24, 24, 24, 0.12);
  --shadow-bubble: 0 12px 28px -4px rgba(0, 0, 0, 0.25);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  --font-serif: 'Instrument Serif', Georgia, "Songti SC", serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-stage);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   1. "After Hours" Hero Character Stage (Reference Screenshot Homage)
   ========================================================================== */

.after-hours-stage {
  position: relative;
  min-height: 540px;
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 48px 34px;
  border-bottom: 1px solid var(--border-hairline);
  overflow: visible;
}

.stage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  z-index: 20;
  flex-wrap: wrap;
}

.brand-block {
  max-width: 620px;
}

.met-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.met-insignia {
  background: var(--met-crimson);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.2;
}

.gac-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stage-title {
  font-size: clamp(2.35rem, 4.2vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.stage-subtitle {
  font-size: clamp(0.96rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stage-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hand Gesture Control Toggle Button */
.hand-gesture-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.hand-gesture-btn:hover,
.hand-gesture-btn.gesture-hover {
  background: var(--text-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.hand-gesture-btn.active {
  background: #12804a;
  border-color: #12804a;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(18, 128, 74, 0.32);
}

.gesture-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9e9a91;
  display: inline-block;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hand-gesture-btn.active .gesture-dot {
  background: #55ff99;
  box-shadow: 0 0 10px #55ff99;
}

.nav-pills {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-pill {
  border: none;
  background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
}

.nav-pill:hover,
.nav-pill.gesture-hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.65);
}

.nav-pill.active {
  background: var(--bg-paper);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.lang-switch span {
  transition: color 0.2s ease;
}

.lang-switch span.active-lang {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* ==========================================================================
   Character Lineup Carousel — ZERO CLIPPING ON SPEECH BUBBLES
   (Fixes CSS overflow-x: auto clipping by keeping speech bubble inside flow)
   ========================================================================== */
.character-parade-wrapper {
  position: relative;
  margin: 8px 0 12px;
  width: 100%;
}

.character-parade {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 44px);
  overflow-x: auto;
  padding: 18px 24px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.character-parade::-webkit-scrollbar {
  display: none;
}

.artist-character-node {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 17.5vw, 240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  scroll-snap-align: center;
  user-select: none;
  padding-top: 8px;
  transition: transform 0.35s var(--ease-spring);
}

/* Speech Bubble is now in-flow inside a reserved slot above the head so it can NEVER be clipped at the top edge! */
.speech-bubble-slot {
  width: 100%;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 14px;
  pointer-events: none;
}

.speech-bubble {
  position: relative;
  background: var(--bubble-bg);
  color: var(--bubble-text);
  padding: 13px 18px;
  border-radius: 16px;
  width: 100%;
  max-width: 236px;
  text-align: center;
  box-shadow: var(--shadow-bubble);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.26s var(--ease-spring), transform 0.3s var(--ease-bounce);
  z-index: 30;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: var(--bubble-bg) transparent transparent transparent;
}

.speech-bubble-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.25;
}

.speech-bubble-quote {
  display: block;
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.38;
}

.artist-character-node:hover .speech-bubble,
.artist-character-node.gesture-hover .speech-bubble,
.artist-character-node.is-speaking .speech-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.character-head-wrap {
  position: relative;
  width: 185px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-bounce);
  animation: gentle-float 4.8s ease-in-out infinite;
}

.artist-character-node:nth-child(even) .character-head-wrap {
  animation-delay: -2.2s;
}

.artist-character-node:nth-child(3n) .character-head-wrap {
  animation-delay: -1.1s;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}

.artist-character-node:hover .character-head-wrap,
.artist-character-node.gesture-hover .character-head-wrap {
  transform: scale(1.08) rotate(-3deg);
  animation-play-state: paused;
}

.artist-character-node.is-speaking .character-head-wrap {
  transform: scale(1.08) rotate(2deg);
}

.character-head-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.06));
  transition: filter 0.3s ease;
}

.artist-character-node:hover .character-head-img,
.artist-character-node.gesture-hover .character-head-img,
.artist-character-node.is-speaking .character-head-img {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.14));
}

.character-caption {
  margin-top: 10px;
  text-align: center;
  transition: opacity 0.25s ease;
}

.character-caption-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.character-caption-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.character-tour-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--met-crimson);
  background: rgba(228, 0, 43, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Stage Bottom Bar */
.stage-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  z-index: 20;
  flex-wrap: wrap;
}

.stage-credit {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-wrap: wrap;
}

.stage-credit-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.parade-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.circle-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.circle-arrow-btn:hover,
.circle-arrow-btn.gesture-hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.immersive-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  background: var(--met-crimson);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(228, 0, 43, 0.25);
  transition: all 0.26s var(--ease-spring);
}

.immersive-hero-btn:hover,
.immersive-hero-btn.gesture-hover {
  background: var(--met-crimson-dark);
  transform: translateY(-2px);
}

.enter-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1.5px solid #333333;
  background: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.26s var(--ease-spring);
}

.enter-gallery-btn:hover,
.enter-gallery-btn.gesture-hover {
  background: var(--text-primary);
  color: var(--bg-paper);
  transform: translateX(3px);
}

/* ==========================================================================
   2. Sticky Artist & Filter Navigation Bar
   ========================================================================== */

.sticky-museum-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 48px;
  transition: box-shadow 0.25s ease;
}

.sticky-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.artist-avatar-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.artist-avatar-strip::-webkit-scrollbar {
  display: none;
}

.avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-spring);
}

.avatar-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-subtle);
}

.avatar-chip:hover,
.avatar-chip.gesture-hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.avatar-chip.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.search-and-color-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 220px;
  padding: 8px 14px 8px 34px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, width 0.25s var(--ease-spring);
}

.search-input:focus {
  border-color: var(--text-primary);
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   3. Main Museum Exhibition Container & Artist Spotlight Studio
   ========================================================================== */

.museum-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 48px 96px;
}

/* Active Artist Interactive Studio Banner ("After Hours Chat") */
.artist-studio-banner {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: 28px;
  padding: 32px 40px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.studio-character-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.studio-character-stage {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.studio-character-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.studio-wing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--bg-warm-tint);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 999px;
}

.studio-info-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-artist-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}

.studio-artist-lifespan {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.studio-bio {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 78ch;
  line-height: 1.65;
}

/* Interactive "Chat with the Artist" Console */
.after-hours-chat-box {
  background: var(--bg-subtle);
  border-radius: 20px;
  padding: 18px 22px;
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-speaker-tag {
  background: var(--bubble-bg);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.chat-message-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.55;
  min-height: 1.6em;
}

.chat-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.chat-prompt-chip {
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-prompt-chip:hover,
.chat-prompt-chip.gesture-hover,
.chat-prompt-chip.active {
  background: var(--bubble-bg);
  color: #ffffff;
  border-color: var(--bubble-bg);
}

.chat-prompt-chip.chip-crimson {
  background: var(--met-crimson);
  color: #ffffff;
  border-color: var(--met-crimson);
}

.chat-prompt-chip.chip-crimson:hover,
.chat-prompt-chip.chip-crimson.gesture-hover {
  background: var(--met-crimson-dark);
}

/* ==========================================================================
   4. Google Arts & Culture Color Palette & Curatorial Filter Bar
   ========================================================================== */

.curatorial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
}

.artwork-count-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.color-palette-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.color-dot-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
  position: relative;
}

.color-dot-btn:hover,
.color-dot-btn.gesture-hover {
  transform: scale(1.18);
}

.color-dot-btn.active {
  transform: scale(1.22);
  box-shadow: 0 0 0 2px var(--bg-stage), 0 0 0 4px var(--text-primary);
}

/* ==========================================================================
   5. Masterpiece Gallery Grid & Cards
   ========================================================================== */

.artworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

.artwork-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-spring), border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.artwork-card:hover,
.artwork-card.gesture-hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: #d0cabe;
}

.artwork-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ece8df;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-canvas-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.artwork-real-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.55s var(--ease-spring);
}

.artwork-real-img.loaded {
  opacity: 1;
}

.artwork-card:hover .artwork-real-img,
.artwork-card.gesture-hover .artwork-real-img,
.artwork-card:hover .artwork-canvas-fallback,
.artwork-card.gesture-hover .artwork-canvas-fallback {
  transform: scale(1.04);
  transition: transform 0.55s var(--ease-spring);
}

.artwork-gallery-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(24, 24, 24, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.artwork-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  background: rgba(24, 24, 24, 0.88);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.22s ease;
}

.artwork-card:hover .artwork-zoom-badge,
.artwork-card.gesture-hover .artwork-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Google Arts & Culture Pigment Strip */
.pigment-strip {
  display: flex;
  height: 6px;
  width: 100%;
}

.pigment-swatch {
  flex: 1;
  height: 100%;
}

.artwork-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.artwork-artist-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artwork-artist-mini img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-subtle);
}

.artwork-artist-mini span {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.artwork-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

.artwork-meta-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.artwork-story-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artwork-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ask-artist-mini-btn {
  border: none;
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ask-artist-mini-btn:hover,
.ask-artist-mini-btn.gesture-hover {
  background: var(--met-crimson);
  color: #ffffff;
}

.met-accession {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. Met Fifth Avenue Interactive Wing Overview (Floor Guide)
   ========================================================================== */

.wings-overview-section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border-hairline);
}

.wings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.wing-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 26px;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.wing-card:hover,
.wing-card.gesture-hover {
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.wing-floor-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--met-crimson);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wing-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin: 6px 0 10px;
  font-weight: 400;
}

.wing-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.wing-artists-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wing-artists-avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  object-fit: contain;
  border: 1px solid var(--border-hairline);
}

/* ==========================================================================
   7. FULL-SCREEN IMMERSIVE ARTWORK STAGE & ARTIST DOCENT OVERLAY
   ========================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #0a0a0c;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.immersive-theatre {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1f1e1b 0%, #0b0b0d 78%);
}

/* Top Floating Controls in Full-Screen Mode */
.immersive-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.82), rgba(10, 10, 12, 0));
  gap: 16px;
  flex-wrap: wrap;
}

.immersive-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.immersive-gallery-tag {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 5px 14px;
  border-radius: 999px;
}

.immersive-counter-pill {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.immersive-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.immersive-zoom-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 999px;
}

.zoom-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.zoom-btn:hover,
.zoom-btn.gesture-hover,
.zoom-btn.active {
  background: rgba(255, 255, 255, 0.28);
}

.immersive-action-pill {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(24, 24, 28, 0.72);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.immersive-action-pill:hover,
.immersive-action-pill.gesture-hover,
.immersive-action-pill.active {
  background: #ffffff;
  color: #121212;
}

.immersive-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(24, 24, 28, 0.8);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.immersive-close-btn:hover,
.immersive-close-btn.gesture-hover {
  background: var(--met-crimson);
  border-color: var(--met-crimson);
  transform: scale(1.06);
}

/* Full-Viewport Artwork Canvas/Image Stage */
.lightbox-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  padding: 72px 84px 190px;
}

.lightbox-stage:active {
  cursor: grabbing;
}

.lightbox-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease-out;
}

.lightbox-zoom-container img,
.lightbox-zoom-container canvas {
  max-width: 92vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
}

.immersive-nav-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 22;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(20, 20, 24, 0.72);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s var(--ease-spring);
}

.immersive-nav-arrow.prev {
  left: 24px;
}

.immersive-nav-arrow.next {
  right: 24px;
}

.immersive-nav-arrow:hover,
.immersive-nav-arrow.gesture-hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-50%) scale(1.1);
}

/* Floating Cartoon Artist Docent Guide (Bottom Overlay) */
.immersive-artist-docent {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  width: min(1060px, 94vw);
  background: rgba(22, 22, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 18px 26px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  color: #ffffff;
}

.docent-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  animation: gentle-float 4.2s ease-in-out infinite;
}

.docent-avatar-wrap.speaking {
  box-shadow: 0 0 0 3px var(--met-crimson), 0 0 24px rgba(228, 0, 43, 0.6);
}

.docent-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.docent-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docent-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.docent-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.docent-artwork-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: #ffffff;
}

.docent-artist-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffb3c1;
  background: rgba(228, 0, 43, 0.24);
  padding: 3px 11px;
  border-radius: 999px;
}

.docent-speech-text {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.docent-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.docent-mode-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.docent-chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docent-chip-btn:hover,
.docent-chip-btn.gesture-hover,
.docent-chip-btn.active {
  background: #ffffff;
  color: #141414;
  border-color: #ffffff;
}

.docent-chip-btn.voice-btn {
  background: var(--met-crimson);
  border-color: var(--met-crimson);
}

.docent-chip-btn.voice-btn:hover,
.docent-chip-btn.voice-btn.gesture-hover {
  background: var(--met-crimson-dark);
  color: #ffffff;
}

/* Slide-Out Curatorial Specifications Drawer inside Immersive Theatre */
.immersive-specs-drawer {
  position: absolute;
  top: 76px;
  right: 24px;
  bottom: 180px;
  width: min(400px, 90vw);
  z-index: 28;
  background: rgba(252, 251, 249, 0.96);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  border-radius: 22px;
  padding: 26px 28px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(115%);
  transition: transform 0.32s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.immersive-specs-drawer.open {
  transform: translateX(0);
}

.lightbox-specs-table {
  display: grid;
  grid-template-columns: 105px 1fr;
  row-gap: 8px;
  column-gap: 12px;
  font-size: 0.83rem;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  color: var(--text-primary);
}

.lightbox-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.ext-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ext-link-primary {
  background: var(--met-crimson);
  color: #ffffff;
  border: none;
}

.ext-link-secondary {
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  background: var(--bg-paper);
}

/* ==========================================================================
   8. MEDIAPIPE HAND LANDMARKER LIVESTREAM HUD & VIRTUAL CURSOR
   ========================================================================== */

.hand-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-cursor.visible {
  opacity: 1;
}

.hand-cursor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid #e4002b;
  background: rgba(228, 0, 43, 0.14);
  box-shadow: 0 0 18px rgba(228, 0, 43, 0.45);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.hand-cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #000000;
  z-index: 2;
}

.hand-cursor.pinching .hand-cursor-ring {
  transform: scale(0.55);
  border-color: #28e070;
  background: rgba(40, 224, 112, 0.48);
  box-shadow: 0 0 26px rgba(40, 224, 112, 0.85);
}

.hand-cursor-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 24, 0.88);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.hand-click-ripple {
  position: fixed;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 50%;
  border: 3px solid #28e070;
  background: rgba(40, 224, 112, 0.28);
  pointer-events: none;
  z-index: 9998;
  animation: hand-ripple-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hand-ripple-pop {
  0% {
    transform: scale(0.35);
    opacity: 1;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

.hand-camera-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 248px;
  background: rgba(20, 20, 24, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  z-index: 9000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.28s var(--ease-spring);
}

.hand-camera-hud.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hand-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hand-hud-close {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  cursor: pointer;
}

.hand-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
}

#hand-webcam-video,
#hand-landmark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirrored selfie view */
}

.hand-hud-instructions {
  padding: 8px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

/* ==========================================================================
   9. Footer & Responsive Breakpoints
   ========================================================================== */

.museum-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--border-hairline);
  padding: 48px 56px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 1024px) {
  .after-hours-stage {
    padding: 24px 24px 28px;
  }
  .sticky-museum-bar {
    padding: 10px 24px;
  }
  .museum-main {
    padding: 32px 24px 72px;
  }
  .artist-studio-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .studio-header-row,
  .chat-prompt-chips {
    justify-content: center;
  }
  .immersive-artist-docent {
    grid-template-columns: 76px 1fr;
    padding: 14px 18px;
  }
  .docent-avatar-wrap {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 640px) {
  .artworks-grid {
    grid-template-columns: 1fr;
  }
  .immersive-artist-docent {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .docent-avatar-wrap {
    margin: 0 auto;
  }
}
