:root {
  --bg: #f4f2ed;
  --panel: #ffffff;
  --panel-soft: #ebe7de;
  --text: #0b0b0b;
  --muted: #343434;
  --faint: #62605a;
  --line: rgba(11, 11, 11, 0.24);
  --gold: #8f5516;
  --gold-soft: rgba(143, 85, 22, 0.14);
  --blue: #1769d4;
  --lime: #d7ff3f;
  --pink: #d83280;
  --shadow: 0 26px 70px rgba(31, 29, 24, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8f7f3 0%, #f0eee8 48%, #e4e0d7 100%);
  background-size: 100% 100%, 100% 100%;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  box-shadow: inset 0 0 0 1px rgba(47, 131, 255, 0.22);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 4rem) 2rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f3ee 72%, #e0ddd5 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(120, 115, 104, 0.18)),
    linear-gradient(100deg, rgba(20, 20, 20, 0.1), transparent 40%, rgba(20, 20, 20, 0.08));
  clip-path: polygon(0 42%, 100% 15%, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-image,
.hero-overlay,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/images/hero-fyhy4677.jpg");
  background-size: cover;
  background-position: center 24%;
  inset: 5.8rem clamp(1rem, 5vw, 4rem) 5rem auto;
  width: min(680px, 62vw);
  border: 18px solid #ffffff;
  background-color: #ffffff;
  box-shadow:
    0 28px 70px rgba(24, 22, 18, 0.28),
    0 0 0 1px rgba(20, 20, 20, 0.08);
  filter: saturate(0.98) contrast(1.03) brightness(1);
  transform: translate3d(0, 0, 0) scale(1.02);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.18)),
    linear-gradient(0deg, rgba(224, 221, 213, 0.96), transparent 45%);
}

.hero-grain {
  z-index: 1;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.kicker,
.section-label,
.series-card span,
.experience-item span,
.hero-note span,
.lightbox-category {
  color: #6f3f0d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 830px;
  margin-top: 1rem;
  font-size: clamp(3.3rem, 13vw, 8.8rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
}

h3 {
  font-size: 1.04rem;
  line-height: 1.2;
}

.hero-content > p:not(.kicker),
.section-heading p,
.intro-copy p,
.statement-copy p,
.booking p {
  max-width: 680px;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.78rem 1.12rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: #141414;
  background: #141414;
  color: #ffffff;
}

.button.secondary {
  background: rgba(20, 20, 20, 0.05);
}

.button.ghost:hover,
.button.secondary:hover {
  border-color: rgba(20, 20, 20, 0.42);
  background: rgba(20, 20, 20, 0.08);
}

.hero-note {
  position: relative;
  z-index: 2;
  display: none;
  justify-self: end;
  width: 260px;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  color: #2f2f2f;
  line-height: 1.5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent);
}

.hero-note strong {
  display: block;
  margin: 0.35rem 0;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.intro {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 237, 0.9)),
    url("assets/images/exhibition-guide.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.intro::before {
  position: absolute;
  top: 3rem;
  right: 0;
  color: rgba(20, 20, 20, 0.045);
  content: "EXHIBITION";
  font-family: Georgia, serif;
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 1;
  pointer-events: none;
}

.intro,
.statement {
  display: grid;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.intro-copy,
.statement-copy {
  max-width: 880px;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
  margin-bottom: 2rem;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: -0.35rem 0 1.3rem;
}

.filter-button {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.76);
  color: #202020;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(20, 20, 20, 0.68);
  background: #141414;
  color: var(--text);
  transform: translateY(-1px);
}

.filter-button:hover,
.filter-button.active {
  color: #ffffff;
}

.viewing-label {
  width: 100%;
  color: #4a4740;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 231, 222, 0.78));
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.14);
}

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 12px solid #ffffff;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
}

.work-card.filtered-out {
  display: none;
}

.work-card.large::before,
.work-card.tall::before {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 0;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.96);
  color: #141414;
  content: "Wall Label";
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #ffffff;
}

.image-button img {
  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.work-card:hover img {
  filter: saturate(1.03) brightness(0.9);
  transform: scale(1.025);
}

.work-card:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
}

.work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0));
}

.work-meta span {
  color: #141414;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.work-meta p {
  margin-top: 0.35rem;
  color: #242424;
  font-size: 0.9rem;
  line-height: 1.45;
}

.series-grid,
.experience-grid {
  display: grid;
  gap: 1rem;
}

.series-card,
.experience-item {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 239, 232, 0.88));
  padding: 1.25rem;
}

.series-card h3,
.experience-item h3 {
  margin-top: 1.6rem;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  font-weight: 500;
}

.series-card p,
.experience-item p {
  margin-top: 0.8rem;
  color: #333333;
  line-height: 1.6;
}

.studio-wall {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff, #ebe7de);
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.wall-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72vw;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  padding: 0 1rem;
  scroll-snap-type: x mandatory;
}

.wall-track img {
  height: 360px;
  border: 12px solid #ffffff;
  filter: saturate(0.96) contrast(1.02);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

.social {
  text-align: center;
}

.social .section-heading {
  margin-inline: auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  color: #242424;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.social-links a:hover {
  border-color: #141414;
  background: var(--gold-soft);
  color: var(--text);
}

.booking {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  border: 14px solid #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    url("assets/images/exhibition-guide.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.booking-inner {
  padding: clamp(2rem, 7vw, 5rem);
}

.booking h2 {
  max-width: 860px;
  margin-top: 0.8rem;
}

.footer {
  display: grid;
  gap: 0.65rem;
  padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--line);
  color: #333333;
  text-align: center;
}

.footer p:first-child {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.footer div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-contact {
  position: fixed;
  z-index: 18;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 50%;
  background: #141414;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.lightbox {
  width: min(1040px, calc(100% - 2rem));
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f4f2ed;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
}

.lightbox-copy {
  padding: 1rem;
}

.lightbox-title {
  margin-top: 0.35rem;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.lightbox-caption {
  margin-top: 0.5rem;
  color: #333333;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero {
    min-height: 96svh;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }

  .hero-note {
    display: block;
  }

  .intro,
  .statement {
    grid-template-columns: 220px 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .viewing-label {
    width: auto;
    margin-left: auto;
  }

  .work-card {
    grid-column: span 3;
  }

  .work-card.large {
    grid-column: span 4;
    min-height: 620px;
  }

  .work-card.tall {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 720px;
  }

  .work-card.wide {
    grid-column: span 4;
  }

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

  .experience-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .experience-item {
    grid-column: span 2;
  }

  .experience-item:nth-child(4),
  .experience-item:nth-child(5) {
    grid-column: span 3;
  }

  .wall-track {
    grid-auto-columns: 34vw;
    padding: 0 2rem;
  }
}

@media (min-width: 1100px) {
  .wall-track {
    grid-auto-columns: 24vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-image {
    transform: none !important;
  }
}
