:root {
  --ink: #221f1d;
  --muted: #6d6661;
  --paper: #fffdf9;
  --sand: #f3eee6;
  --ochre: #a44927;
  --ochre-dark: #6f2e19;
  --night: #171717;
  --line: rgba(164, 73, 39, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  position: relative;
  width: min(calc(100% - 40px), 1280px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-title {
  color: var(--ochre-dark);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-title span { font-size: 0.75em; font-weight: 400; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.8vw, 28px); }
.main-nav a {
  color: var(--ochre-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.mobile-menu__button {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ochre-dark);
  background: var(--paper);
  cursor: pointer;
}
.mobile-menu__button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.mobile-menu__button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu__button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu__button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu__panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: min(300px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: rgba(255, 253, 249, 0.99);
  box-shadow: 0 18px 42px rgba(69, 38, 24, 0.16);
}
.mobile-menu__panel[hidden] { display: none; }
.mobile-menu__panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ochre-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-menu__panel a:hover, .mobile-menu__panel a:focus-visible { background: var(--sand); }

.hero__image { width: 100%; height: min(46vw, 590px); object-fit: cover; object-position: center; }
.hero__intro {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 36px), 1050px);
  margin: clamp(-48px, -4vw, -28px) auto 0;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 26px 80px rgba(69, 38, 24, 0.14);
  text-align: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--ochre);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  color: var(--ochre-dark);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
}
h1 { max-width: 800px; margin-inline: auto; font-size: clamp(2.9rem, 7vw, 6.2rem); }
h2 { margin-bottom: 28px; font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.hero__intro > p:not(.eyebrow) {
  max-width: 800px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.hero__intro > p + p:not(.eyebrow) { margin-top: 8px; }

.editorial-section { padding: clamp(92px, 12vw, 160px) clamp(18px, 5vw, 72px); }
.editorial-section__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(46px, 8vw, 110px);
}
.editorial-section__inner--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.editorial-section__inner--reverse .editorial-section__copy { order: 2; }
.editorial-section__copy { max-width: 580px; }
.editorial-section__copy p { margin: 0 0 18px; color: var(--muted); }
.chapter-gallery { min-width: 0; }
.chapter-gallery__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 28px;
  background: #d8cfc8;
  box-shadow: 0 26px 68px rgba(45, 29, 21, 0.18);
}
.chapter-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 480ms ease, transform 850ms ease;
}
.chapter-gallery__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.chapter-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.chapter-gallery__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(49, 27, 19, 0.34);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}
.chapter-gallery__arrow:hover,
.chapter-gallery__arrow:focus-visible { background: rgba(49, 27, 19, 0.7); transform: translateY(-50%) scale(1.04); }
.chapter-gallery__arrow span { display: block; margin-top: -4px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.chapter-gallery__arrow--previous { left: 18px; }
.chapter-gallery__arrow--next { right: 18px; }
.chapter-gallery__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.chapter-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(164, 73, 39, 0.24);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}
.chapter-gallery__dot.is-active { width: 28px; background: var(--ochre); }
.editorial-section--dark { color: #f4eee9; background: var(--night); }
.editorial-section--dark h2 { color: #f0b28f; }
.editorial-section--dark .editorial-section__copy p { color: #d9d1cc; }
.editorial-section--dark .chapter-gallery__dot { background: rgba(240, 178, 143, 0.3); }
.editorial-section--dark .chapter-gallery__dot.is-active { background: #f0b28f; }
.exhibitions {
  padding: clamp(92px, 12vw, 160px) clamp(18px, 5vw, 72px);
  background: var(--sand);
}
.exhibitions__heading {
  width: min(100%, 1180px);
  margin: 0 auto clamp(54px, 7vw, 88px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 110px);
}
.exhibitions__intro { max-width: 650px; color: var(--muted); }
.exhibitions__intro p { margin: 0 0 16px; }
.exhibitions__gallery { width: min(100%, 1060px); margin: 0 auto clamp(46px, 6vw, 76px); }
.accordions { width: min(100%, 1060px); margin: 0 auto; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  color: var(--ochre-dark);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 600;
  list-style: none;
}
.accordions summary::-webkit-details-marker { display: none; }
.accordion-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ochre);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease;
}
.accordions details[open] .accordion-icon { transform: rotate(45deg); }
.accordion-body { padding: 8px 0 42px; color: var(--muted); }
.permanent-exhibition { display: grid; grid-template-columns: 110px 1fr; gap: 24px; }
.permanent-exhibition p { margin: 0; }
.exhibition-timeline { display: grid; gap: 22px; }
.exhibition-year { display: grid; grid-template-columns: 76px 1fr; gap: 32px; }
.exhibition-year strong { color: var(--ochre-dark); font-size: 0.9rem; letter-spacing: 0.04em; }
.exhibition-year p { margin: 0 0 3px; }

.projects { background: var(--paper); }
.contact { padding: clamp(84px, 10vw, 130px) 20px; background: var(--ochre-dark); }
.contact__card {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  color: #f8eee9;
  background: rgba(255,255,255,0.075);
  text-align: center;
}
.contact__card h2 { color: #fff8f3; }
.contact__card > p { max-width: 640px; margin: 0 auto 30px; color: #eadbd3; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact__button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid #fff8f3;
  border-radius: 999px;
  color: var(--ochre-dark);
  background: #fff8f3;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}
.contact__button:hover, .contact__button:focus-visible { color: #fff8f3; background: transparent; transform: translateY(-2px); }

.works { padding: clamp(82px, 10vw, 128px) 10px 18px; color: #fff; background: #0d0d0d; }
.works__heading { max-width: 880px; margin: 0 auto clamp(48px, 6vw, 72px); padding: 0 18px; text-align: center; }
.works__heading h2 { color: #fff; }
.works__heading > p { margin: 0; color: #bdb7b3; }
.works-grid { column-count: 4; column-gap: 10px; }
.work-card {
  width: 100%;
  display: block;
  margin: 0 0 10px;
  padding: 4px;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 4px 12px rgba(0,0,0,0.34);
  cursor: zoom-in;
}
.work-card img { width: 100%; height: auto; transition: transform 220ms ease, opacity 220ms ease; }
.work-card:hover img, .work-card:focus-visible img { opacity: 0.84; transform: scale(1.015); }
.lightbox-open { overflow: hidden; }
.lightbox {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  place-items: center;
  padding: 24px 74px;
  background: rgba(0,0,0,0.94);
}
.lightbox.is-open { display: grid; }
.lightbox__figure { max-width: 100%; max-height: 100%; margin: 0; text-align: center; }
.lightbox__figure img { max-width: 88vw; max-height: 88vh; width: auto; height: auto; margin: auto; object-fit: contain; }
.lightbox__figure figcaption { margin-top: 8px; color: #b9b9b9; font-size: 0.78rem; }
.lightbox__close, .lightbox__arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  color: white;
  background: rgba(20,20,20,0.65);
  cursor: pointer;
}
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox__arrow { top: 50%; width: 50px; height: 50px; font-family: var(--serif); font-size: 2.6rem; transform: translateY(-50%); }
.lightbox__arrow--previous { left: 18px; }
.lightbox__arrow--next { right: 18px; }
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(164,73,39,0.8); }

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1280px) / 2));
  color: #bcb5b0;
  background: #0d0d0d;
  font-size: 0.8rem;
}
.site-footer a { color: #efe4dd; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__brand { font-family: var(--serif); font-size: 1rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.site-footer__legal a { font-size: 0.76rem; }

.legal-nav a {
  color: var(--ochre-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.legal-nav a:hover, .legal-nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.legal-page { padding: clamp(64px, 9vw, 110px) 20px; background: var(--sand); }
.legal-document {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 22px 68px rgba(69, 38, 24, 0.11);
}
.legal-document h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  text-align: left;
}
.legal-document h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal-document section { margin-top: 46px; }
.legal-document p { margin: 0 0 16px; color: var(--muted); }
.legal-document ul { margin: 0 0 18px; padding-left: 24px; color: var(--muted); }
.legal-document li + li { margin-top: 7px; }
.legal-document a { color: var(--ochre-dark); font-weight: 650; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-updated { margin: 16px 0 36px !important; font-size: 0.86rem; }

:focus-visible { outline: 3px solid rgba(200, 112, 70, 0.65); outline-offset: 4px; }

@media (min-width: 1001px) {
  h1 { font-size: clamp(3.9rem, 4vw, 4.6rem); }
  h2 { font-size: clamp(2.75rem, 3vw, 3.5rem); }
}

@media (max-width: 1000px) {
  .site-header__inner { min-height: 68px; }
  .main-nav { display: none; }
  .mobile-menu__button { display: flex; }
  .editorial-section__inner, .editorial-section__inner--reverse { grid-template-columns: 1fr; }
  .editorial-section__inner--reverse .editorial-section__copy { order: initial; }
  .editorial-section__copy { max-width: 760px; }
  .exhibitions__heading { grid-template-columns: 1fr; gap: 18px; }
  .works-grid { column-count: 3; }
}
@media (max-width: 640px) {
  .site-header__inner { width: min(calc(100% - 28px), 1280px); }
  .site-title { white-space: normal; }
  .hero__image { height: 58vw; min-height: 230px; }
  .hero__intro { width: min(calc(100% - 24px), 1050px); padding: 38px 24px; border-radius: 22px; }
  .editorial-section { padding: 78px 18px; }
  .chapter-gallery__viewport { aspect-ratio: 4 / 3; border-radius: 20px; }
  .chapter-gallery__arrow { width: 42px; height: 42px; }
  .chapter-gallery__arrow--previous { left: 12px; }
  .chapter-gallery__arrow--next { right: 12px; }
  .exhibitions { padding: 78px 18px; }
  .accordions summary { min-height: 72px; }
  .permanent-exhibition, .exhibition-year { grid-template-columns: 1fr; gap: 4px; }
  .exhibition-timeline { gap: 26px; }
  .works { padding-inline: 6px; }
  .works-grid { column-count: 2; column-gap: 6px; }
  .work-card { margin-bottom: 6px; padding: 3px; }
  .lightbox { padding: 70px 12px 18px; }
  .lightbox__figure img { max-width: 96vw; max-height: 78vh; }
  .lightbox__arrow { top: auto; bottom: 16px; transform: none; }
  .lightbox__arrow--previous { left: calc(50% - 62px); }
  .lightbox__arrow--next { right: calc(50% - 62px); }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer__legal { justify-content: flex-start; flex-direction: column; gap: 7px; }
  .legal-page { padding: 38px 12px; }
  .legal-document { padding: 32px 22px; border-radius: 20px; }
  .legal-document section { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter-gallery__slide { transition: none; }
}

.gallery-loading { margin: 28px 0; color: #bdb7b3; text-align: center; }
#gallery-sentinel { height: 1px; }
