:root {
  --ink: #10171b;
  --paper: #f1f0eb;
  --muted: #a6aaa7;
  --ice: #b9d7de;
  --ember: #c96235;
  --line: rgba(16, 23, 27, .17);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1380px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body:has(.lightbox[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 48px;
  color: white;
  transition: background .35s ease, color .35s ease, min-height .35s ease;
}
.site-header.scrolled {
  min-height: 68px;
  background: rgba(241, 240, 235, .94);
  color: var(--ink);
  box-shadow: 0 1px rgba(16, 23, 27, .08);
  backdrop-filter: blur(16px);
}
.wordmark {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -.025em;
}
.wordmark span { font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  text-decoration: none;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.main-nav a:not(.nav-contact) { position: relative; }
.main-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.4rem;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }
.nav-contact { border: 1px solid currentColor; padding: .65rem 1rem; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.hero-art, .hero-shade { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 11, 14, .87) 0%, rgba(5, 11, 14, .46) 47%, rgba(5, 11, 14, .08) 80%);
}
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 28%, rgba(0,0,0,.38)); }
.hero-copy {
  position: absolute;
  z-index: 2;
  left: max(48px, calc((100vw - var(--page)) / 2));
  top: 50%;
  width: min(660px, 48vw);
  transform: translateY(-43%);
}
.eyebrow {
  margin: 0 0 1.3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--ice); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5.2rem, 10.7vw, 10.2rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .72;
}
.hero h1 br + * { font-style: italic; }
.hero-intro {
  max-width: 34rem;
  margin: 2.3rem 0 1.8rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.text-link span { font-size: 1rem; transition: transform .2s ease; }
.text-link:hover span { transform: translate(.2rem, .2rem); }
.artist-card {
  position: absolute;
  z-index: 3;
  right: max(48px, calc((100vw - var(--page)) / 2));
  bottom: 52px;
  width: clamp(180px, 18vw, 275px);
  margin: 0;
}
.artist-card img { width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.artist-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.artist-card figcaption span { color: rgba(255,255,255,.7); }
.hero-index {
  position: absolute;
  z-index: 2;
  right: 48px;
  top: 45%;
  writing-mode: vertical-rl;
  font-size: .68rem;
  letter-spacing: .18em;
}

.section-shell { width: var(--page); margin-inline: auto; }
.works { padding: 9rem 0 11rem; }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 5rem;
}
.section-heading h2, .artist h2, .contact h2, .exhibition h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .93;
}
.section-heading h2::first-line, .artist h2::first-line { font-style: italic; }
.section-heading > p:last-child { margin: 0; color: #5c6261; font-size: .88rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5.5rem 2.25rem;
  align-items: start;
}
.work {
  grid-column: span 6;
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}
.work-wide { grid-column: 1 / span 8; }
.work-portrait { grid-column: 10 / span 3; margin-top: 8rem; }
.work-square { grid-column: span 4; }
.work-landscape { grid-column: 5 / span 8; margin-top: 2rem; }
.work-image { display: block; overflow: hidden; background: #d8dad6; }
.work-image img {
  width: 100%;
  transition: transform .65s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}
.work-portrait .work-image img { aspect-ratio: .89; object-fit: cover; }
.work-square .work-image img { aspect-ratio: 1; object-fit: cover; }
.work:hover .work-image img { transform: scale(1.018); filter: saturate(1.06); }
.work:focus-visible { outline: 2px solid var(--ember); outline-offset: 8px; }
.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.work-caption strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.work-caption small { padding-top: .25rem; color: #666c6b; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

.artist {
  position: relative;
  min-height: 980px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.16);
  background: #1a1215;
  color: white;
}
.artist-backdrop {
  position: absolute;
  inset: 0;
}
.artist-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13,16,18,.96) 0%, rgba(17,18,20,.88) 42%, rgba(20,13,16,.52) 72%, rgba(13,10,12,.68) 100%),
    linear-gradient(0deg, rgba(10,12,14,.82) 0%, transparent 38%, rgba(10,12,14,.28) 100%);
}
.artist-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.18);
  filter: saturate(.92) contrast(1.03);
}
.artist-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .72fr 1.7fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 9rem 0 10rem;
}
.artist-number {
  color: #f0a76f;
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 9rem);
  font-style: italic;
  line-height: .78;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.artist-copy .lead {
  margin: 2.5rem 0 1.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.45;
}
.artist-copy .eyebrow { color: #f3ae78; }
.artist-copy p:not(.lead):not(.eyebrow) { color: rgba(255,255,255,.76); }
.artist-facts {
  align-self: end;
  padding: 1.4rem 1.6rem;
  background: rgba(13,15,16,.42);
  backdrop-filter: blur(12px);
}
.artist-facts dl { margin: 0; }
.artist-facts div { display: grid; grid-template-columns: 42% 58%; gap: 1rem; padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.24); }
.artist-facts div:last-child { border-bottom: 1px solid rgba(255,255,255,.24); }
.artist-facts dt { color: rgba(255,255,255,.58); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.artist-facts dd { margin: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.35; }
.artist-artwork-label {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - var(--page)) / 2));
  bottom: 2rem;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.artist-artwork-label span { color: rgba(255,255,255,.54); }

.exhibition {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 760px;
  background: var(--ink);
  color: white;
}
.exhibition-photo { position: relative; overflow: hidden; }
.exhibition-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(16,23,27,.4)); }
.exhibition-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82); }
.exhibition-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7rem clamp(3rem, 7vw, 8rem);
}
.exhibition-copy .eyebrow { color: var(--ice); }
.exhibition-copy > p:not(.eyebrow) { max-width: 30rem; color: rgba(255,255,255,.72); }
.date-lockup { display: flex; align-items: center; width: 100%; margin: 3rem 0 2rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.8rem); line-height: 1; }
.date-lockup i { flex: 1; height: 1px; margin: 0 1rem; background: rgba(255,255,255,.35); }
.date-lockup sup { align-self: flex-start; margin-left: .65rem; color: var(--ice); font-family: var(--sans); font-size: .65rem; letter-spacing: .12em; }
.exhibition-copy .text-link { margin-top: 1.4rem; }

.contact { padding: 10rem 0 8rem; }
.contact h2 { max-width: 950px; font-size: clamp(4.2rem, 8.5vw, 9rem); }
.contact h2::first-line { font-style: italic; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin: 5rem 0 0 33%;
}
.contact-grid > p { max-width: 34rem; margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.contact-actions { display: flex; flex-direction: column; }
.contact-actions a {
  display: flex;
  justify-content: space-between;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-actions a:last-child { border-bottom: 1px solid var(--line); }
.contact-actions a:hover { color: var(--ember); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: #686e6c;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer p { margin: 0; }
.credits { text-align: right; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 3rem;
  border: 0;
  background: rgba(9, 13, 15, .97);
  color: white;
}
.lightbox::backdrop { background: rgba(9, 13, 15, .8); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.5rem; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; }
.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 1.2rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-caption { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-caption span { color: rgba(255,255,255,.62); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 40px); }
  .site-header { min-height: 70px; padding: 0 20px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: .7rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .menu-lines, .menu-lines::before { display: block; width: 20px; height: 1px; background: currentColor; content: ""; transition: transform .25s ease; }
  .menu-lines::before { transform: translateY(-6px); }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(90deg); }
  .main-nav {
    position: fixed;
    inset: 69px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 20px 2rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav-contact { border: 0; }
  .hero { min-height: 820px; }
  .hero-art img { object-position: 58% center; }
  .hero-art::after { background: linear-gradient(90deg, rgba(5,11,14,.9), rgba(5,11,14,.35) 90%); }
  .hero-copy { left: 20px; top: 40%; width: calc(100vw - 40px); }
  .hero h1 { font-size: clamp(5rem, 23vw, 8rem); }
  .hero-intro { max-width: 29rem; font-size: 1.05rem; }
  .artist-card { right: 20px; bottom: 26px; width: 180px; }
  .artist-card figcaption { flex-direction: column; gap: .15rem; }
  .hero-index { display: none; }
  .works { padding: 6rem 0 7rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem; }
  .gallery { gap: 3.5rem 1.2rem; }
  .work-wide { grid-column: 1 / -1; }
  .work-portrait { grid-column: 3 / span 8; margin-top: 0; }
  .work-square { grid-column: span 6; }
  .work-landscape { grid-column: 1 / -1; margin-top: 0; }
  .work-caption { flex-direction: column; gap: 0; }
  .artist { min-height: 1180px; }
  .artist-backdrop img { object-position: 51% center; transform: scale(1.12); }
  .artist-backdrop::after {
    background:
      linear-gradient(180deg, rgba(11,14,16,.92) 0%, rgba(14,14,16,.78) 58%, rgba(15,10,12,.67) 100%),
      linear-gradient(90deg, rgba(10,12,14,.5), rgba(10,12,14,.28));
  }
  .artist-content { grid-template-columns: 1fr; gap: 3rem; padding: 6rem 0 8rem; }
  .artist-number { display: none; }
  .artist-facts { padding: 1.2rem; }
  .exhibition { grid-template-columns: 1fr; }
  .exhibition-photo { min-height: 65vw; }
  .exhibition-copy { padding: 5rem 20px; }
  .contact { padding: 7rem 0 6rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; margin: 3rem 0 0; }
  .site-footer { grid-template-columns: 1fr; gap: .6rem; }
  .credits { text-align: left; }
}

@media (max-width: 560px) {
  .hero { min-height: 760px; }
  .hero-copy { top: 37%; }
  .artist-card { width: 145px; }
  .artist-card figcaption { font-size: .57rem; }
  .gallery { display: block; }
  .work { display: block; width: 100%; margin: 0 0 3rem; }
  .work-portrait { width: 72%; margin-left: auto; }
  .section-heading h2, .artist h2, .exhibition h2 { font-size: 3.45rem; }
  .contact h2 { font-size: 4.1rem; }
  .lightbox { padding: 4.5rem 1rem 1rem; }
  .lightbox-caption { flex-direction: column; gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
