/* ============================================
   PROVOCATEUR GALLERY — Contemporary
   Inspired by Gagosian, MoMA, Guy Hepner
   ============================================ */

:root {
  --white: #ffffff;
  --off-white: #f9f8f6;
  --light-gray: #f2f1ef;
  --border: #e5e3e0;
  --border-dark: #c8c4bc;
  --text-primary: #111111;
  --text-secondary: #555550;
  --text-muted: #999994;
  --accent: #111111;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 0.875rem 0;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.18em;
}

.nav-logo .logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-logo .logo-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--transition);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--text-primary);
  padding: 0.5rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--text-primary) !important;
  color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.mobile-link:hover { opacity: 0.5; }

.mobile-link.cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--text-primary);
  padding: 0.75rem 2rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #111;
}

/* --- Slideshow fallback (shown when no video configured) --- */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

/* --- Video hero (shown when HERO_VIDEO_URL configured) --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 2.5rem 5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-scroll-indicator {
  position: absolute;
  right: 2.5rem;
  bottom: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--off-white);
}

.btn-dark {
  background: var(--text-primary);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

.btn-outline-dark:hover {
  background: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.75rem; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-top: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FEATURED ARTIST
   ============================================ */
.featured-artist {
  padding: 8rem 0;
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.featured-image:hover img {
  transform: scale(1.03);
}

.featured-info {
  padding: 2rem 0;
}

.featured-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 2px solid var(--border-dark);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.featured-quote cite {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.featured-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.featured-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  padding: 0.35rem 0.875rem;
  margin-bottom: 1.25rem;
}

.direct-badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 50%;
}

/* ============================================
   WORKS SECTION
   ============================================ */
.works-section {
  padding: 8rem 0;
  background: var(--off-white);
}

.works-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
}

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

.works-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
  cursor: pointer;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-card:hover .work-image img {
  transform: scale(1.04);
}

.work-image {
  position: relative;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
  display: block;
}

.work-card.landscape .work-image img {
  aspect-ratio: 4/3;
}

.work-card.square .work-image img {
  aspect-ratio: 1/1;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 0.5rem;
}

.work-overlay-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 0.5rem 1.25rem;
}

.work-overlay-artist {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}

.work-info {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--white);
}

.work-info h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.work-info p {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.works-load-more {
  text-align: center;
  margin-top: 4rem;
}

/* ============================================
   ARTISTS SECTION (home)
   ============================================ */
.artists-section {
  padding: 8rem 0;
  background: var(--white);
}

.artists-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.artist-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.artist-card-image {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: 1.25rem;
}

.artist-card-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.artist-card:hover .artist-card-image img {
  transform: scale(1.04);
}

.artist-card-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-card-image-placeholder span {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--border-dark);
}

.artist-card-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.artist-card-meta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.artist-card-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.artist-card-direct {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  padding: 0.2rem 0.5rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ============================================
   PRICE MATCH SECTION
   ============================================ */
.price-match-section {
  padding: 5rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-match-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.price-match-icon {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.price-match-inner .section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.price-match-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SOURCE CTA SECTION
   ============================================ */
.source-cta-section {
  padding: 8rem 0;
  background: var(--text-primary);
}

.source-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.source-cta h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.source-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 8rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.about-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.about-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 5rem 0 2.5rem;
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
  display: block;
}

.footer-brand .logo-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 240px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.625rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  padding: 3rem;
  transition: transform 0.3s var(--transition);
}

.modal.open .modal-content {
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover { color: var(--text-primary); }

.modal-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ============================================
   FORMS
   ============================================ */
.gallery-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text-primary);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-status {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.form-status.success { color: #2d7d46; }
.form-status.error { color: #c0392b; }

/* ============================================
   ARTWORK DETAIL PAGE
   ============================================ */
.artwork-page {
  padding-top: 80px;
  min-height: 100vh;
}

.artwork-detail {
  padding: 5rem 0 8rem;
}

.artwork-detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 6rem;
  align-items: start;
}

.artwork-detail-image {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
}

.artwork-detail-image img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.artwork-detail-info {
  position: sticky;
  top: 100px;
}

.artwork-artist-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  display: inline-block;
}

.artwork-artist-link:hover {
  border-bottom-color: var(--text-muted);
}

.artwork-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0.75rem 0 2rem;
}

.artwork-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.artwork-meta-item label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.artwork-meta-item span {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.artwork-inquiry-note {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.artwork-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 14px; height: 14px; }

/* ============================================
   ARTIST PAGE
   ============================================ */
.artist-page {
  padding-top: 80px;
  min-height: 100vh;
}

.artist-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.artist-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.artist-hero-image {
  overflow: hidden;
}

.artist-hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.artist-hero-info {
  padding: 1rem 0;
}

.artist-name-large {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.artist-relationship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.artist-relationship-badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 50%;
}

.artist-bio {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.artist-bio p + p {
  margin-top: 1.25rem;
}

.artist-stats {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.artist-works-section {
  padding: 5rem 0 8rem;
}

.artist-works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.artist-works-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.series-nav {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ============================================
   ARTIST SERIES SECTIONS (Gagosian-style)
   ============================================ */
.series-section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
}

.series-section:last-child {
  border-bottom: none;
}

.series-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.series-section-left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  min-width: 0;
}

.series-section-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.series-section-count {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.series-expand-btn {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.series-expand-btn::after {
  content: ' →';
}

.series-expand-btn:hover {
  color: var(--text-primary);
}

.series-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.series-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-top: 0.875rem;
}

.series-flat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.series-collapse-row {
  margin-top: 2rem;
  text-align: center;
}

.series-collapse-btn {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.5rem 1.5rem;
}

.series-collapse-btn:hover {
  color: var(--text-primary);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.loading-card {
  background: var(--light-gray);
  animation: shimmer 1.5s ease-in-out infinite;
}

.loading-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   ERROR & EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================
   ARTWORK INQUIRY (on artwork page)
   ============================================ */
.inquiry-banner {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .artists-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .artwork-detail-grid {
    grid-template-columns: 1fr 360px;
    gap: 4rem;
  }

  .artist-hero-grid {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }

  .featured-artist { padding: 5rem 0; }
  .works-section { padding: 5rem 0; }
  .artists-section { padding: 5rem 0; }
  .about-section { padding: 5rem 0; }
  .source-cta-section { padding: 5rem 0; }
  .price-match-section { padding: 3.5rem 0; }

  .section-header { margin-bottom: 2.5rem; }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .featured-image { max-width: 480px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid.four-col { grid-template-columns: repeat(2, 1fr); }

  .artists-row { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .artwork-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .artwork-detail { padding: 3rem 0 5rem; }

  .artwork-detail-info { position: static; }

  .artist-hero { padding: 3rem 0 2.5rem; }
  .artist-works-section { padding: 3rem 0 5rem; }

  .artist-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .artist-hero-image {
    max-width: 260px;
  }

  .artist-name-large { font-size: clamp(2.5rem, 6vw, 4rem); }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-scroll-indicator { display: none; }

  /* Series sections — 2 cols on tablet */
  .series-preview-grid,
  .series-extra-grid,
  .series-flat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .series-section { padding: 2rem 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }

  .featured-artist { padding: 3.5rem 0; }
  .works-section { padding: 3.5rem 0; }
  .artists-section { padding: 3.5rem 0; }
  .about-section { padding: 3.5rem 0; }
  .source-cta-section { padding: 3.5rem 0; }
  .price-match-section { padding: 2.5rem 0; }
  .footer { padding: 3rem 0 2rem; }

  .section-header { margin-bottom: 2rem; }

  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-content { padding: 0 1.25rem 3.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .works-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .works-grid.four-col { grid-template-columns: 1fr 1fr; gap: 1px; }

  .work-info { padding: 0.875rem 0.75rem 1rem; }
  .work-info h3 { font-size: 0.875rem; }

  .artists-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  .featured-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .artwork-meta { grid-template-columns: 1fr; gap: 1rem; }
  .artwork-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .artist-stats { flex-wrap: wrap; gap: 1.5rem; }
  .artist-hero-image { max-width: 180px; }

  .modal-content { padding: 2rem 1.25rem; width: 95%; }
  .modal-content h2 { font-size: 1.4rem; }

  .about-numbers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .series-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .series-nav::-webkit-scrollbar { display: none; }

  .works-filters { gap: 0.375rem; }
  .filter-btn { padding: 0.4rem 0.875rem; font-size: 0.62rem; }

  .back-link { margin-bottom: 1.5rem; }

  .artist-works-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

  /* Series sections mobile */
  .series-section { padding: 1.75rem 0; }
  .series-section-header { gap: 0.75rem; }
  .series-section-left { flex-wrap: wrap; gap: 0.5rem; }
  .series-preview-grid,
  .series-extra-grid,
  .series-flat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */
.nav-active {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.nav-active::after {
  transform: scaleX(1) !important;
}

/* ============================================
   MOBILE IMPROVEMENTS (comprehensive)
   ============================================ */

/* Mobile: ensure nav-inner never overflows */
@media (max-width: 900px) {
  .nav-inner {
    min-height: 56px;
  }
}

/* Mobile: hero content — prevent text overflow on narrow screens */
@media (max-width: 480px) {
  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding: 0 1.25rem 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: works filters — horizontal scroll on very small screens */
@media (max-width: 480px) {
  .works-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    gap: 0.375rem;
  }

  .works-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.875rem;
    font-size: 0.62rem;
  }
}

/* Mobile: featured section improvements */
@media (max-width: 480px) {
  .featured-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }
}

/* Mobile: artists section — 2 col grid, no overflow */
@media (max-width: 400px) {
  .artists-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .artist-card-name {
    font-size: 0.875rem;
  }
}

/* Mobile: footer improvements */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Mobile: About section in index */
@media (max-width: 480px) {
  .about-section {
    padding: 3rem 0;
  }

  .about-numbers {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Mobile: price match section */
@media (max-width: 600px) {
  .price-match-section {
    padding: 3rem 0;
  }
}

/* Mobile: source CTA */
@media (max-width: 600px) {
  .source-cta h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .source-cta {
    padding: 4rem 1.25rem;
  }
}

/* Mobile: modal full-screen on small devices */
@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 2.5rem;
  }
}

/* Mobile: artwork detail page */
@media (max-width: 480px) {
  .artwork-detail {
    padding: 2rem 0 4rem;
  }

  .artwork-title {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }
}

