/* ==========================================================================
   MAKS ART — EXHIBITIONS (MODERN EDITORIAL REDESIGN)
   ========================================================================== */

:root {
  --ink: #1a1918;
  --charcoal: #2f2e2e;
  --warm-white: #FAFAFA;
  --paper: #F2F2F2;
  --paper-card: #FFFFFF;
  --line: #E5E5E5;
  --line-light: rgba(0, 0, 0, 0.05);
  --muted: #7E7C78;
  --accent-gold: #053b05;
  --graphite: #3a3938;
  --fn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fn-serif: "Cormorant Garamond", "Cormorant Garant", Georgia, serif;
}

/* ── PAGE HERO / HEADER ───────────────────────────────────────────────── */
.page-header {
  padding: 130px 48px 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, var(--warm-white) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-frame {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 18px 48px 16px;
  margin-bottom: 24px;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-header-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.page-header-frame h1 {
  font-family: var(--fn-sans);
  font-size: 11.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.page-header-eyebrow::before,
.page-header-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--line);
}

.page-header-frame {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 18px 48px 16px;
  margin-bottom: 24px;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-header-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.page-header-frame h1 {
  font-family: var(--fn-sans);
  font-size: 11.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-header-subtitle {
  font-family: var(--fn-serif);
  font-size: clamp(20px, 2.4vw, 25px);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── FLOATING ISLAND EXHIBITIONS QUICK-JUMP BAR ───────────────────────── */
.exh-filter-bar {
  position: sticky;
  top: 78px;
  z-index: 400;
  margin: 20px auto 40px;
  width: max-content;
  max-width: min(94vw, 680px);
  height: 52px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(250, 250, 250, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(26, 25, 24, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.exh-filter-bar:hover {
  background: rgba(250, 250, 250, 0.85);
  box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.09), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
}

.exh-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.filter-chip .chip-count {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--charcoal);
  transition: background 0.25s ease, color 0.25s ease;
}

.filter-chip:hover .chip-count {
  background: rgba(0, 0, 0, 0.09);
  color: var(--ink);
}

.filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* ── SPOTLIGHT: UPCOMING EXHIBITION (MINITIA) ────────────────────────── */
.section-spotlight,
.section-live-archive,
.section-archive,
#spotlight,
#recent,
#archive {
  scroll-margin-top: 140px;
}

.section-spotlight {
  padding: 80px 48px 90px;
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.spotlight-card:hover {
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.08);
}

.spotlight-media {
  background: #EFEFEF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  cursor: zoom-in;
}

.spotlight-media img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.spotlight-media:hover img {
  transform: scale(1.025);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.zoom-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 25, 24, 0.85);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.spotlight-media:hover .zoom-badge {
  opacity: 1;
  transform: scale(1.05);
}

.spotlight-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.badge-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #053b05;
  box-shadow: 0 0 8px #053b05;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.spotlight-date {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.spotlight-title {
  font-family: var(--fn-serif);
  font-size: clamp(38px, 4.2vw, 56px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 18px;
}

.spotlight-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--charcoal);
}

.meta-item strong {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 100px;
  flex-shrink: 0;
}

.meta-item span {
  font-weight: 400;
}

/* ── RECENT EXHIBITION: VESTIGIA ──────────────────────────────────────── */
.section-live-archive {
  padding: 80px 48px;
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.live-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.live-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.badge-recent {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.live-media {
  background: #EFEFEF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  cursor: zoom-in;
}

.live-media img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-media:hover img {
  transform: scale(1.025);
}

/* ── EDITORIAL PULL QUOTE ─────────────────────────────────────────────── */
.section-quote {
  background: #141312;
  padding: 100px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.quote-ornament {
  font-family: var(--fn-serif);
  font-size: 36px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.quote-text {
  font-family: var(--fn-serif);
  font-size: clamp(24px, 3.2vw, 40px);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.quote-attr {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ── HISTORICAL EXHIBITIONS ARCHIVE GRID ──────────────────────────────── */
.section-archive {
  padding: 90px 48px 100px;
  max-width: 1240px;
  margin: 0 auto;
}

.archive-header {
  text-align: center;
  margin-bottom: 60px;
}

.archive-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.archive-title {
  font-family: var(--fn-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.archive-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.08);
}

.archive-media {
  background: #EFEFEF;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
}

.archive-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .archive-media img {
  transform: scale(1.04);
}

.archive-info {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.archive-year-pill {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 9999px;
}

.archive-type-pill {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-card-title {
  font-family: var(--fn-serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.archive-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  font-size: 11px;
}

.archive-details-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--charcoal);
}

.archive-details-row strong {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── CLOSING STUDIO & 3D GALLERY BANNER ──────────────────────────────── */
.exh-closing {
  background: #141312;
  color: #FFFFFF;
  padding: 90px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.exh-closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.exh-closing-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  font-weight: 500;
}

.exh-closing-title {
  font-family: var(--fn-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-style: italic;
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.25;
}

.exh-closing-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
}

.exh-closing-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #FFFFFF;
  color: #141312;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-white:hover {
  background: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-secondary-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: #FFFFFF;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-white:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── RESPONSIVE RULES ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .spotlight-card,
  .live-card {
    grid-template-columns: 1fr;
  }
  .spotlight-media,
  .live-media {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--line);
    min-height: 380px;
  }
  .spotlight-content,
  .live-content {
    padding: 44px 36px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .page-header { padding: 86px 20px 32px; }
  .exh-filter-bar { top: 66px; padding: 4px 10px; justify-content: flex-start; }
  .section-spotlight,
  .section-live-archive,
  .section-archive { padding: 40px 18px; }
  .spotlight-media,
  .live-media { padding: 20px; min-height: 260px; }
  .spotlight-content,
  .live-content { padding: 28px 18px; }
  .section-quote { padding: 56px 20px; }
  .exh-closing { padding: 56px 20px; }
  .meta-item { flex-direction: column; gap: 4px; }
  .meta-item strong { min-width: auto; }
}

@media (max-width: 600px) {
  .page-header { padding: 74px 14px 22px; }
  .page-header-frame { padding: 10px 24px 8px; margin-bottom: 14px; }
  .page-header-subtitle { font-size: 15px; }
  .section-spotlight,
  .section-live-archive,
  .section-archive { padding: 28px 12px; }
  .spotlight-card,
  .live-card { border-radius: 4px; }
  .spotlight-media,
  .live-media { padding: 16px; min-height: auto; }
  .spotlight-media img,
  .live-media img { max-height: 240px; }
  .spotlight-content,
  .live-content { padding: 20px 14px; }
  .spotlight-title { font-size: 24px; margin-bottom: 8px; }
  .spotlight-desc { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
  .meta-grid { padding: 14px 0; margin-bottom: 16px; gap: 8px; }
  .archive-grid { gap: 14px; }
  .archive-media { padding: 16px; }
  .archive-info { padding: 16px 14px; }
  .archive-card-title { font-size: 20px; margin-bottom: 10px; }
  .section-quote { padding: 40px 16px; }
  .quote-text { font-size: 18px; line-height: 1.45; }
  .exh-closing { padding: 40px 16px; }
  .exh-closing-title { font-size: 24px; }
  .btn-primary-white, .btn-secondary-white { padding: 10px 20px; font-size: 9.5px; width: 100%; justify-content: center; }
}
