@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #fff;
  --fg: #000;
  --mid: #767676;
  --faint: #e5e5e5;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--fg); font-size: 14px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ═══════════════════════════════════════════════
   HEADER — Gagosian-style single line nav
   ═══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--faint);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 90px;
  max-width: none;
}
.header__logo {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.header__nav { display: flex; gap: 36px; align-items: center; }
.header__nav a {
  font-size: 13px; font-weight: 500; color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.header__nav a:hover, .header__nav a.is-active { color: var(--fg); }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}
.header.is-open .header__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header.is-open .header__toggle span:nth-child(2) {
  opacity: 0;
}
.header.is-open .header__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   HERO — Full-bleed single painting, edge to edge
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  background: #f5f5f5;
  overflow: hidden;
}
.hero__slides {
  width: 100%;
  height: 100%;
  position: relative;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  z-index: 5;
}
.hero__info em { font-style: italic; }

.hero__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.8);
  border: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, color 0.3s;
}
.hero__nav-btn:hover {
  background: rgba(0,0,0,0.5);
  color: #fff;
}
.hero__nav-btn--prev {
  left: 20px;
}
.hero__nav-btn--next {
  right: 20px;
}
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s;
}
.hero__dot.is-active {
  background: #fff;
}

/* Inline Hero variant (for detail pages) */
.hero--inline {
  position: relative;
  height: auto;
  max-width: 600px;
  margin: 0 auto;
  background: none;
  overflow: visible;
  padding: 20px 0;
}
.hero--inline .hero__img {
  max-height: 80vh;
  object-fit: contain;
  background: #f5f5f5;
}
.hero--inline .hero__info {
  position: static;
  background: none;
  color: var(--mid);
  padding: 12px 0 0;
  display: flex;
  justify-content: space-between;
}


/* ═══════════════════════════════════════════════
   SECTIONS — Clean horizontal-rule dividers
   ═══════════════════════════════════════════════ */
.section { padding: 0 20px; }
.section__border { border: none; border-top: 1px solid var(--faint); margin: 0; }

.section__header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0 28px;
}
.section__title {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section__link {
  font-size: 12px; color: var(--mid); transition: color 0.2s;
}
.section__link:hover { color: var(--fg); }

/* ═══════════════════════════════════════════════
   ARTWORK GRID — Zwirner-style 2-up / 3-up
   ═══════════════════════════════════════════════ */
.art-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  padding-bottom: 60px;
}

/* Filter Tabs */
.works-filters-wrapper {
  position: relative;
  width: 100%;
}
/* Right fade indicator to show swipeability */
.works-filters-wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  z-index: 3;
}
.works-filters {
  display: flex;
  gap: 28px;
  padding: 20px 48px 10px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}
.works-filters::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}
.works-filter-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  flex-shrink: 0; /* Prevent buttons from squeezing on mobile */
  white-space: nowrap; /* Prevent multi-line wrapping */
}
.works-filter-btn:hover, .works-filter-btn.is-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* Artwork Card & Hover Overlays */
.art-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #f5f5f5;
}
.art-card__btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.art-card__img-wrap {
  overflow: hidden;
  background: #f5f5f5;
  line-height: 0;
  width: 100%;
  height: 100%;
}
.art-card__img-wrap img {
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-card:hover .art-card__img-wrap img {
  transform: scale(1.03);
}
.art-card__meta {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
  box-sizing: border-box;
}
.art-card:hover .art-card__meta,
.art-card.is-touched .art-card__meta {
  opacity: 1;
}
.art-card__meta strong {
  font-weight: 500;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.art-card__meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.5;
  display: block;
}

/* Infinite Scroll Loader */
.works-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 80px;
  width: 100%;
  min-height: 50px;
}
.works-loader__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--faint);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}
@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* Full-width single artwork (for panoramic pieces) */
.art-full { padding-bottom: 40px; }
.art-full img { width: 100%; }
.art-full__meta { padding: 10px 0 0; font-size: 12px; color: var(--mid); }

/* ═══════════════════════════════════════════════
   TWO COLUMN TEXT — David Zwirner style intro
   ═══════════════════════════════════════════════ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 40px 0 60px;
}
.two-col__heading {
  font-size: 28px; font-weight: 300; line-height: 1.3; letter-spacing: -0.01em;
}
.two-col__body { font-size: 14px; color: #555; line-height: 1.75; }
.two-col__body p { margin-bottom: 16px; }
.two-col__body p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   PROJECT ROW — Pace-style image + text side by side
   ═══════════════════════════════════════════════ */
.project-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding-bottom: 60px;
}
.project-row__img { overflow: hidden; background: #f5f5f5; line-height: 0; }
.project-row__img img { width: 100%; height: 100%; object-fit: cover; }
.project-row__text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 0;
}
.project-row__eyebrow {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--mid); margin-bottom: 10px;
}
.project-row__title {
  font-size: 22px; font-weight: 400; line-height: 1.3; margin-bottom: 8px;
}
.project-row__desc {
  font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 16px;
}
.project-row__cta {
  display: inline-block; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--fg); padding: 8px 20px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.project-row__cta:hover { background: var(--fg); color: var(--bg); }

/* ═══════════════════════════════════════════════
   CONTACT — Fresh editorial split-layout
   ═══════════════════════════════════════════════ */
.contact-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 20px 80px;
}
.contact-hero__img-wrap {
  background: #fcfcfc;
  padding: 40px;
  border: 1px solid var(--faint);
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-hero__img-wrap img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.contact-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-hero__title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  margin-bottom: 20px;
}
.contact-hero__email {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 24px;
}
.contact-hero__email a {
  background: linear-gradient(to right, var(--fg), var(--fg)) no-repeat;
  background-size: 0px 2px;
  background-position: 0% 100%;
  transition: background-size 0.3s ease;
  padding-bottom: 6px;
}
.contact-hero__email a:hover {
  background-size: 100% 2px;
}
.contact-hero__details {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.8;
}
.contact-hero__details strong {
  color: var(--fg);
  font-weight: 500;
}
.contact-hero__socials {
  border-top: 1px solid var(--faint);
  padding-top: 32px;
  margin-top: 40px;
}
.contact-hero__social-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
.contact-hero__social-link {
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.contact-hero__social-link:hover {
  opacity: 0.7;
}
.contact-hero__social-link svg {
  color: var(--mid);
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-hero__social-link:hover svg {
  color: var(--fg);
  transform: scale(1.08);
}
.contact-hero__social-link span.arrow {
  font-size: 10px;
  color: var(--mid);
  display: inline-block;
  transition: transform 0.2s ease;
}
.contact-hero__social-link:hover span.arrow {
  transform: translate(2px, -2px);
}


/* Quick links */
.quick-links { list-style: none; padding: 0; }
.quick-links li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--faint);
}
.quick-links li:first-child { border-top: 1px solid var(--faint); }
.quick-links a {
  font-size: 14px; font-weight: 400; transition: opacity 0.2s;
}
.quick-links a:hover { opacity: 0.5; }
.quick-links .tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════
   LIGHTBOX — dark overlay
   ═══════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.93);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox[hidden] { display: none; }

.lightbox__close {
  position: fixed; top: 20px; right: 20px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4);
  border: none;
  font-size: 56px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.lightbox__nav--prev {
  left: 20px;
}
.lightbox__nav--next {
  right: 20px;
}

.lightbox__content {
  display: flex; gap: 40px; align-items: center;
  max-width: 1100px; width: calc(100vw - 40px); padding: 20px;
}
.lightbox__img-area { flex: 1.5; display: flex; align-items: center; justify-content: center; }
.lightbox__img-area img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox__info { flex: 1; color: #fff; }
.lightbox__info-title { font-size: 20px; font-weight: 300; margin-bottom: 6px; }
.lightbox__info-meta { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.lightbox__info-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.lightbox__backdrop { position: absolute; inset: 0; }

/* ═══════════════════════════════════════════════
   FOOTER — single thin line
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--faint); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mid);
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATION — subtle
   ═══════════════════════════════════════════════ */
[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   PROJECT SPECIFIC — QUEEN BEE
   ═══════════════════════════════════════════════ */
.project-subnav {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--faint);
  padding: 10px 0;
  margin-bottom: 40px;
  overflow-x: auto;
}
.project-subnav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}
.project-subnav a:hover {
  color: var(--fg);
  background: var(--faint);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 60px;
}
.video-card {
  background: #fafafa;
  border: 1px solid var(--faint);
  padding: 16px;
}
.video-card__iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 12px;
}
.video-card__iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.tshirt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.tshirt-grid img {
  width: 100%;
  border: 1px solid var(--faint);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .art-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col__heading { font-size: 22px; }
  .project-row { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .tshirt-grid { grid-template-columns: 1fr; }
  .contact-hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .contact-hero__email { font-size: 30px; }
}

@media (max-width: 768px) {
  .header__inner {
    padding: 0 24px;
    height: 70px;
  }
  .header__logo {
    font-size: 20px;
    white-space: nowrap;
  }
  .header__toggle {
    display: flex;
  }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--faint);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 99;
  }
  .header__nav.is-open {
    display: flex;
  }
  .header__nav a {
    font-size: 13px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--faint);
  }
  .header__nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .header__inner { padding: 0 20px; height: 60px; }
  .header__logo { font-size: 18px; }
  .header__nav { padding: 20px 20px 24px; }
  .hero { padding: 0; height: 45vh; }
  .hero__info { padding: 16px 20px; font-size: 11px; }
  .section { padding: 0 20px; }
  .art-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 40px; }
  .two-col__heading { font-size: 20px; }
  .lightbox__content { flex-direction: column; gap: 20px; }
  .lightbox__img-area img { max-height: 55vh; }
  .lightbox__nav { font-size: 36px; width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .contact-block__email { font-size: 18px; }
  .contact-hero__img-wrap { padding: 20px; }
  .contact-hero__email { font-size: 24px; }
  .footer { padding: 20px; flex-direction: column; gap: 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

