/* ── Hero ── */
.hero {
  position: relative; height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--dark);
}
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; z-index: 0; }
.hero-img-bg   { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.72; z-index: 0; }
.hero-overlay  { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,0.3), rgba(10,10,15,0.7)); z-index: 1; }

.hero-orb  { position: absolute; border-radius: 50%; border: 1px solid rgba(201,168,76,0.1); animation: pulse 6s ease-in-out infinite; width: 600px; height: 600px; z-index: 1; }
.hero-orb2 { width: 400px; height: 400px; border-color: rgba(201,168,76,0.07); animation-delay: 1.5s; }
.hero-orb3 { width: 200px; height: 200px; border-color: rgba(201,168,76,0.12); animation-delay: 3s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.04); opacity: 1; } }

.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 2rem; }
.hero-logo     { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: block; }
.hero-eyebrow  { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; font-weight: 500; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub  { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2.5rem; font-weight: 300; }
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Home sections ── */
.home-section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }

/* ── Key art ── */
.keyart-band { width: 100%; overflow: hidden; height: 300px; position: relative; background: var(--dark2); }
.keyart-band-inner { display: flex; height: 100%; gap: 4px; }
.keyart-band-img { flex: 1; min-width: 180px; object-fit: cover; opacity: 0.65; transition: opacity 0.3s, flex 0.4s; }
.keyart-band-img:hover { opacity: 1; flex: 2; }
.keyart-band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 0%, transparent 12%, transparent 88%, var(--dark) 100%); pointer-events: none; }
.keyart-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.keyart-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--dark3); border: 1px solid var(--border); cursor: pointer; }
.keyart-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.keyart-item:hover img { transform: scale(1.04); }
.keyart-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); padding: 1.5rem 0.75rem 0.6rem; opacity: 0; transition: opacity 0.3s; }
.keyart-item:hover .keyart-item-overlay { opacity: 1; }
.keyart-item-title { font-size: 0.78rem; font-weight: 600; color: #fff; letter-spacing: 0.04em; }

/* ── Key art pager ── */
.keyart-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.ka-page-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: 1.1rem; width: 36px; height: 36px; border-radius: 4px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.ka-page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.ka-page-btn:disabled { opacity: 0.3; cursor: default; }
.ka-page-info { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.08em; min-width: 60px; text-align: center; }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: 4px; display: block; }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.5rem; background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.2rem; width: 38px; height: 38px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 1; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev,
.lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover:not(:disabled),
.lightbox-next:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: rgba(0,0,0,0.8); }
.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0.25; cursor: default; }
.lightbox-info { margin-top: 1rem; text-align: center; max-width: 600px; }
.lightbox-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #fff; margin-bottom: 0.35rem; }
.lightbox-caption { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.btn-lightbox-cta { background: linear-gradient(135deg, var(--gold), #a8722e); color: #000; border: none; padding: 0.6rem 1.5rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; cursor: pointer; margin-top: 0.85rem; transition: opacity 0.2s; }
.btn-lightbox-cta:hover { opacity: 0.88; }

/* ── Support band ── */
.support-band { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; }
.support-band-inner { max-width: 700px; margin: 0 auto; }
.support-band h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.6rem; }
.support-band p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; font-weight: 300; }
.support-band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Exhibit cards ── */
.exhibit-card { background: var(--dark3); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; cursor: pointer; position: relative; }
.exhibit-card:hover { transform: translateY(-4px); }
.exhibit-card-thumb { height: 180px; background: linear-gradient(135deg, var(--dark4), #1e1e2e); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.exhibit-card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.exhibit-thumb-icon { font-size: 3rem; opacity: 0.3; position: relative; z-index: 1; }
.exhibit-card-body { padding: 1.25rem; }
.exhibit-tag { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; }
.exhibit-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.exhibit-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.enter-btn { background: none; border: 1px solid var(--border); color: var(--gold); font-size: 0.75rem; font-family: 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; width: 100%; }
.enter-btn:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.collection-pip { position: absolute; top: 0; left: 0; right: 0; height: 3px; }

/* ── Exhibit search ── */
.exhibit-search-wrap { margin: 1.5rem auto 0; width: 100%; max-width: 540px; }
.exhibit-search { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.88rem; padding: 0.7rem 1.1rem; outline: none; transition: border-color 0.2s, background 0.2s; text-align: center; box-sizing: border-box; }
.exhibit-search:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); text-align: left; }
.exhibit-search::placeholder { color: var(--text-muted); }
.search-results-header { padding: 2rem 2rem 0.5rem; }
.search-results-label { font-size: 0.85rem; color: var(--text-muted); }
.search-results-label em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ── Exhibits page ── */
.exhibits-container { max-width: 1200px; margin: 0 auto; padding: 0 0 5rem; }

/* Collections grid */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; padding: 2.5rem 2rem; }

/* Collection card */
.col-card { border-radius: 14px; padding: 0 1.5rem 1.5rem; padding-top: 58px; cursor: pointer; text-align: center; transition: transform 0.25s, box-shadow 0.25s; position: relative; }
.col-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.45); }
.col-card-circle { width: 96px; height: 96px; border-radius: 50%; background: rgba(0,0,0,0.25); border: 3px solid rgba(255,255,255,0.25); margin: -48px auto 1.1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.col-card-circle img { width: 100%; height: 100%; object-fit: cover; }
.col-card-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.col-card-desc { font-size: 0.8rem; color: rgba(255,255,255,0.78); line-height: 1.65; margin-bottom: 1.25rem; min-height: 2.6rem; }
.col-card-btn { background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 1.1rem; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.col-card-btn:hover { background: rgba(0,0,0,0.5); }

/* Collection detail navigation */
.col-detail-nav { display: flex; align-items: center; gap: 1rem; padding: 2rem 2rem 0; flex-wrap: wrap; }
.col-back-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.78rem; padding: 0.4rem 0.9rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.col-back-btn:hover { border-color: var(--gold); color: var(--gold); }
.col-nav-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.col-nav-pill { background: none; border: 1px solid var(--border); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500; padding: 0.35rem 0.9rem; border-radius: 20px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.col-nav-pill:hover { opacity: 0.85; }

/* Collection detail header */
.col-detail-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2rem 1.25rem; border-bottom: 1px solid var(--border); }
.col-detail-icon { width: 52px; height: 52px; border-radius: 10px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.col-detail-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; }
.col-detail-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Exhibit detail card */
.ex-detail-card { border-radius: 14px; border: 1px solid; padding: 0 1.25rem 1.25rem; padding-top: 52px; cursor: pointer; text-align: center; transition: transform 0.25s, box-shadow 0.25s; background: var(--dark3); position: relative; }
.ex-detail-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.ex-detail-circle { width: 84px; height: 84px; border-radius: 50%; background: var(--dark4); border: 2px solid; margin: -42px auto 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ex-detail-circle img { width: 100%; height: 100%; object-fit: cover; }
.ex-detail-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.ex-detail-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; min-height: 2.5rem; }
.ex-detail-btn { background: none; border: 1px solid; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.ex-detail-btn:hover { opacity: 0.7; }

/* Legacy collection group (kept for fallback) */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.collection-group { margin-bottom: 4rem; }
.collection-group-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.collection-group-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.collection-group-info { flex: 1; }
.collection-group-name  { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.collection-group-count { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.2rem; }
.uncollected-group { margin-bottom: 4rem; }
.uncollected-group-header { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }

/* ── About ── */
.about-content { max-width: 820px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.about-content p { color: var(--text-muted); line-height: 1.85; font-size: 1rem; font-weight: 300; margin-bottom: 1.5rem; }
.about-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pillar { background: var(--dark3); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.pillar-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.pillar h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 0.5rem; }
.pillar p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.donate-callout { background: var(--dark3); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donate-callout-text { flex: 1; min-width: 220px; }
.donate-callout-text h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 0.4rem; }
.donate-callout-text p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Contact ── */
.contact-content { max-width: 640px; margin: 0 auto; padding: 5rem 2rem; }
.contact-info { margin-bottom: 2rem; }
.contact-info p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; font-weight: 300; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form input,
.contact-form textarea { background: var(--dark3); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; padding: 0.8rem 1rem; outline: none; transition: border-color 0.2s; width: 100%; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-success { display: none; background: rgba(201,168,76,0.1); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; color: var(--gold); font-size: 0.9rem; margin-top: 1rem; }
.contact-error   { display: none; background: rgba(224,92,92,0.1);  border: 1px solid rgba(224,92,92,0.3); border-radius: 6px; padding: 1rem 1.25rem; color: var(--red); font-size: 0.9rem; margin-top: 1rem; }

/* ── Legal pages (Privacy / Credits) ── */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.legal-content p { color: var(--text-muted); line-height: 1.85; font-size: 0.95rem; font-weight: 300; margin-bottom: 1.25rem; }
.legal-content h2 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold); margin: 2.5rem 0 0.6rem; }
.legal-content ul { color: var(--text-muted); font-size: 0.95rem; font-weight: 300; line-height: 1.85; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-light); }
.legal-content a:hover { opacity: 0.8; }
.legal-updated { font-size: 0.78rem !important; color: var(--text-muted); letter-spacing: 0.06em; margin-bottom: 2rem !important; }

/* ── Login ── */
.login-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.05), transparent 70%); }
.login-box { background: var(--dark2); border: 1px solid var(--border); border-radius: 10px; padding: 2.5rem; width: 100%; max-width: 380px; text-align: center; }
.login-logo { width: 64px; height: 64px; margin: 0 auto 0.75rem; display: block; }
.login-box h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.4rem; }
.login-box p  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; }
.login-form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
.login-form label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 0.3rem; }
.login-form input { width: 100%; background: var(--dark3); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; padding: 0.7rem 0.9rem; outline: none; transition: border-color 0.2s; }
.login-form input:focus { border-color: var(--gold); }
.login-error { display: none; color: var(--red); font-size: 0.8rem; text-align: center; }
.btn-login { background: linear-gradient(135deg, var(--gold), #a8722e); color: #000; border: none; padding: 0.8rem; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; margin-top: 0.5rem; width: 100%; }
.btn-login:hover { opacity: 0.88; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero { height: auto; min-height: calc(100vh - var(--nav-h)); padding: 3rem 0; }
  .hero-logo  { width: 60px; height: 60px; }
  .hero-title { font-size: 2.4rem; }
  .hero-sub   { font-size: 0.95rem; }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; max-width: 280px; }
  .home-section { padding: 3rem 1.25rem; }
  .featured-grid, .collection-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr 1fr; padding: 1.5rem 1rem; gap: 1rem; }
  .col-detail-nav { padding: 1.25rem 1rem 0; }
  .col-detail-header { padding: 1rem; }
  .col-detail-name { font-size: 1.3rem; }
  .keyart-gallery { grid-template-columns: 1fr 1fr; }
  .keyart-band    { height: 200px; }
  .about-content  { padding: 3rem 1.25rem; }
  .collections-grid { grid-template-columns: 1fr; }
  .about-pillars  { grid-template-columns: 1fr 1fr; }
  .donate-callout { flex-direction: column; }
  .support-band-btns { flex-direction: column; align-items: center; }
  .contact-content { padding: 3rem 1.25rem; }
}
@media (max-width: 480px) {
  .about-pillars { grid-template-columns: 1fr; }
  .keyart-gallery { grid-template-columns: 1fr; }
  .collection-group-header { flex-direction: column; align-items: flex-start; }
}