/* ============================================
   Off Hours / Of Ours — Exhibition Website
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #4a7cff;
  --accent-glow: rgba(74, 124, 255, 0.12);
  --accent-hover: #6b96ff;
  --red: #e83040;
  --red-glow: rgba(232, 48, 64, 0.12);
  --border: #222222;
  --border-light: #2a2a2a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, 0.95);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.title-line {
  display: block;
}

.title-divider {
  display: block;
  color: var(--accent);
  font-weight: 300;
  font-size: 0.6em;
  line-height: 1.2;
  opacity: 0.6;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta:hover {
  border-color: var(--red);
  color: var(--red) !important;
  transform: translateY(2px);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 168, 73, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(232, 168, 73, 0.03) 0%, transparent 50%);
  z-index: 1;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* ============================================
   About
   ============================================ */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.4;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-visual img {
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ============================================
   Artists
   ============================================ */

.artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.artist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.artist-card:hover {
  border-color: var(--border-light);
}

.artist-header {
  padding: 32px 32px 0;
}

.artist-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.artist-real-name {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.artist-preview {
  padding: 24px 32px;
}

.artist-preview img {
  border-radius: 6px;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.artist-bio {
  padding: 0 32px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.artist-bio.expanded {
  max-height: 1000px;
}

.artist-bio::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.artist-bio.expanded::after {
  opacity: 0;
}

.artist-bio p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.artist-toggle {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 16px;
}

.artist-toggle:hover {
  background: var(--accent-glow);
}

/* ============================================
   Catalogue
   ============================================ */

.catalogue-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.catalogue-artist {
  margin-bottom: 56px;
}

.catalogue-artist:last-child {
  margin-bottom: 0;
}

.catalogue-artist-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: var(--bg-card);
}

.gallery-item:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.catalogue-artist.hidden {
  display: none;
}

.gallery-item.hidden {
  display: none;
}

/* ============================================
   Documentation
   ============================================ */

.documentation-placeholder {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Visit
   ============================================ */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.visit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: border-color var(--transition);
}

.visit-card:hover {
  border-color: var(--border-light);
}

.visit-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.visit-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.visit-detail {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.visit-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.visit-cta {
  text-align: center;
}

.visit-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg) !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn svg {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-year {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-left: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  cursor: default;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font-size: 3rem;
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .artists-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .artist-header,
  .artist-preview,
  .artist-bio {
    padding-left: 24px;
    padding-right: 24px;
  }

  .artist-toggle {
    padding: 14px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-item img {
    min-height: 140px;
    max-height: 260px;
  }

  .gallery-caption {
    font-size: 0.7rem;
    padding: 20px 8px 8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .visit-card {
    padding: 28px 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 8px;
  }
}
/* Map embed */
.map-embed {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .map-embed {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .map-embed iframe {
    height: 200px;
  }
}
