:root {
  --ink: #2e2a26;
  --muted: #6b6455;
  --bone: #f3eee4;
  --bone-dim: #e6ddc9;
  --ochre: #c9a25c;
  --ochre-deep: #8a6a2e;
  --clay: #b9553a;
  --prussian: #23405e;
  --lightbox-bg: #1c3450;
  --slate: #7b8da3;
  --line: rgba(46, 42, 38, 0.14);
  --line-on-dark: rgba(243, 238, 228, 0.18);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Golos Text", "Helvetica Neue", Arial, sans-serif;

  --h-display: clamp(2.6rem, 1.8rem + 4vw, 5.5rem);
  --h-1: clamp(1.9rem, 1.5rem + 2vw, 2.7rem);
  --body-size: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--body-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* film grain, everywhere, subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- header ---------- */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  mix-blend-mode: difference;
  color: #fff;
  background: transparent;
  transition: padding 0.4s var(--ease-premium), background 0.3s var(--ease-premium);
}

header.site.scrolled {
  padding: 10px 0;
  mix-blend-mode: normal;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lang-switch:hover { opacity: 1; }

.menu-toggle {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

nav.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: var(--prussian);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-premium);
}

nav.overlay ol {
  max-height: 100%;
  overflow-y: auto;
}

nav.overlay.open { transform: translateY(0); }

nav.overlay .close-nav {
  position: absolute;
  top: 26px;
  right: 32px;
  background: none;
  border: 1px solid var(--line-on-dark);
  color: var(--bone);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

nav.overlay ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nav-item;
}

nav.overlay li {
  counter-increment: nav-item;
  border-top: 1px solid var(--line-on-dark);
}
nav.overlay li:last-child { border-bottom: 1px solid var(--line-on-dark); }

nav.overlay a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.2;
  padding: 10px 0;
  color: var(--bone-dim);
  transition: color 0.3s var(--ease-premium), padding-left 0.4s var(--ease-premium);
}

nav.overlay a::before {
  content: counter(nav-item, decimal-leading-zero);
  font-family: var(--body);
  font-size: 14px;
  color: var(--clay);
  letter-spacing: 0.05em;
}

nav.overlay a:hover,
nav.overlay a.active {
  color: var(--bone);
  padding-left: 14px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--bone);
}

.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease-premium);
}

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

.hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 5, 0.15) 0%, rgba(10, 8, 5, 0.15) 40%, rgba(10, 8, 5, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 32px 48px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.hero__kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 12px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--h-display);
  line-height: 0.98;
  margin: 0;
}

.hero__tagline {
  font-family: var(--body);
  font-size: 16px;
  color: var(--bone-dim);
  margin: 14px 0 0;
  max-width: 46ch;
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--bone-dim);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: var(--line-on-dark);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bone);
  animation: scrollcue 2.2s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- generic sections ---------- */
main { position: relative; background: var(--bone); }

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 12px;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-premium), transform 0.45s var(--ease-premium);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about .lede {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--ink);
}

.about p { margin: 0 0 16px; color: var(--ink); font-size: 17px; }

.about .figure {
  position: sticky;
  top: 96px;
}

.about .figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.about .figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stat-row .num {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.2rem);
  color: var(--clay);
  line-height: 1;
}

.stat-row .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- works teaser grid (home) ---------- */
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.works-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--h-1);
  margin: 0;
}

.works-head a.all {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.series-grid {
  column-count: 3;
  column-gap: 16px;
}

.series-card {
  position: relative;
  overflow: hidden;
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--bone);
  background: var(--ink);
}

.series-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.1s var(--ease-premium);
}

.series-card:hover img { transform: scale(1.08); }

.series-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,5,0) 62%, rgba(10,8,5,.7) 100%);
}

.series-card .label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.series-card .label h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  margin: 0;
}

.series-card .label span {
  font-size: 12px;
  color: var(--bone-dim);
}

/* ---------- gallery page ---------- */
.gallery-hero {
  padding: 84px 0 20px;
}

.gallery-hero .eyebrow {
  margin-bottom: 8px;
}

.gallery-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.7rem);
  margin: 0 0 8px;
}

.gallery-hero .meta {
  color: var(--muted);
  font-size: 14px;
}

.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 16px 0 0;
  font-size: 13px;
}

.series-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s var(--ease-premium);
}

.series-nav a:hover, .series-nav a.active {
  color: var(--bone);
  background: var(--ink);
  border-color: var(--ink);
}

.grid {
  column-count: 3;
  column-gap: 16px;
  margin-top: 6px;
}

.grid a.thumb {
  display: block;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--bone-dim);
  box-shadow: 0 1px 3px rgba(23, 20, 15, 0.08);
}

.grid a.thumb .idx {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  transition: opacity .4s var(--ease-premium);
}

.grid a.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,8,5,0);
  transition: background .4s var(--ease-premium);
  pointer-events: none;
}

.grid a.thumb:hover::after { background: rgba(10,8,5,.1); }
.grid a.thumb:hover .idx { opacity: 1; }

.grid a.thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease-premium);
}

.grid a.thumb:hover img { transform: scale(1.02); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--lightbox-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity .5s var(--ease-premium), transform .5s var(--ease-premium);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.lightbox img.shown { opacity: 1; transform: translateY(0) scale(1); }

.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute;
  color: var(--bone);
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  font-family: var(--body);
  opacity: .7;
  transition: opacity .2s;
}
.lightbox .close:hover, .lightbox .prev:hover, .lightbox .next:hover { opacity: 1; }
.lightbox .close { top: 26px; right: 32px; width: 44px; height: 44px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 38px; }

.lightbox .counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bone-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ---------- exhibitions timeline ---------- */
.ex-section {
  background: var(--prussian);
  color: var(--bone);
  padding: 56px 0;
}

.ex-tally {
  font-size: 15px;
  color: var(--bone-dim);
  max-width: 62ch;
  line-height: 1.7;
  margin: 0 0 8px;
}

.ex-tally b { color: var(--ochre); font-weight: 600; }

.ex-total {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem);
  color: var(--bone);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
}

.ex-total b { color: var(--ochre); font-weight: 600; }

.timeline { margin-top: 24px; position: relative; }

.tl-year {
  display: grid;
  grid-template-columns: minmax(96px, 16%) 1fr;
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--line-on-dark);
}

.tl-year .year-label {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.4rem);
  line-height: 1;
  color: var(--ochre);
  position: sticky;
  top: 72px;
  align-self: start;
  padding: 20px 0;
}

.tl-entries { padding: 20px 0 24px 24px; position: relative; }

.tl-item {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-dark);
  transition: opacity .3s var(--ease-premium);
}

.tl-item[data-dim="1"] { opacity: 0.35; }

.tl-item .place {
  font-size: 22px;
  line-height: 1.3;
  font-family: var(--display);
  cursor: default;
}

.tl-item .venue-hit { border-bottom: 1px dotted var(--ochre); }
.tl-item .repeat-flag {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 0;
  transition: opacity .3s var(--ease-premium);
}
.tl-item[data-active="1"] .repeat-flag { opacity: 1; }

.tl-item .date { color: var(--slate); font-size: 13px; margin-right: 10px; font-family: var(--body); letter-spacing: 0.04em; }
.tl-item .note { color: var(--bone-dim); font-size: 14px; margin-top: 4px; max-width: 62ch; opacity: .85; }

/* ---------- contact / footer ---------- */
.contact-band {
  background: var(--prussian);
  color: var(--bone);
  padding: 64px 0 48px;
}

.contact-band h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--h-1);
  margin: 0;
  max-width: 14ch;
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
}

.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-on-dark); padding-bottom: 2px; }
.contact-list a:hover { border-color: var(--clay); color: var(--clay); }
.contact-list .k { color: var(--slate); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 4px; }

footer.site {
  background: var(--prussian);
  color: var(--slate);
  padding: 16px 0 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about .figure { position: static; }
  .series-grid { column-count: 2; column-gap: 16px; }
  .series-card { margin-bottom: 16px; }
  .grid { column-count: 2; column-gap: 16px; }
  .grid a.thumb { margin-bottom: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tl-year { grid-template-columns: 1fr; }
  .tl-year .year-label { position: static; padding-bottom: 0; }
  .tl-entries { padding-left: 0; }
  section { padding: 44px 0; }
  section.tight { padding: 32px 0; }
  .series-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
  }
  .series-nav::-webkit-scrollbar { display: none; }
  .series-nav a { flex: none; }
}

@media (max-width: 560px) {
  .series-grid { column-count: 1; }
  .grid { column-count: 1; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 20px; }
}
