:root {
  --black: #0b0b0a;
  --ink: #151515;
  --white: #efeee9;
  --bone: #e5e2db;
  --concrete: #bdb9b1;
  --grey: #77736b;
  --line: rgba(18, 18, 17, 0.22);
  --line-light: rgba(239, 238, 233, 0.2);
  --font-headline: "Work Sans", sans-serif;
  --font-label: "Yanone Kaffeesatz", sans-serif;
  --font-body: "Pridi", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--black); color: var(--white); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 16%),
    radial-gradient(circle at 80% 40%, rgba(0,0,0,.12), transparent 14%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.025), rgba(0,0,0,.025) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
}
.cursor {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.18);
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1000;
  mix-blend-mode: difference;
  opacity: 0;
  transition: width .25s ease, height .25s ease, opacity .25s ease;
}
body.has-cursor .cursor { opacity: 1; }
body.cursor-large .cursor { width: 54px; height: 54px; }

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 36px));
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  z-index: 100;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(229,226,219,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,.10);
  transition: transform .5s cubic-bezier(.19,1,.22,1), opacity .4s ease;
}
.site-header.hidden { transform: translate(-50%, -130%); opacity: 0; }
.brand, .nav { display: flex; align-items: center; gap: 18px; }
.brand {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 18px;
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  box-shadow: inset 0 0 0 5px var(--bone);
  border: 1px solid var(--black);
}
.nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  color: rgba(21,21,21,.72);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }

section { position: relative; padding: 120px clamp(22px, 6vw, 92px); }
.section-invert { background: var(--bone); }
.section-dark { background: var(--black); color: var(--white); }
.section-concrete {
  background: linear-gradient(135deg, #c6c2ba, #e0ddd6 42%, #aaa69f);
  color: var(--ink);
}
.section-concrete::before, .hero::before, .statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}

.eyebrow, .section-index {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--grey);
}
.eyebrow.light { color: rgba(239,238,233,.58); }

.hero { min-height: 100vh; padding-top: 118px; display: flex; flex-direction: column; justify-content: center; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 46px;
  font-family: var(--font-label);
  letter-spacing: .1em;
  color: var(--grey);
  text-transform: uppercase;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 200;
  letter-spacing: -0.11em;
  line-height: .78;
  font-size: clamp(86px, 17vw, 284px);
}
.hero-line { width: min(520px, 80%); height: 1px; background: var(--ink); margin: 34px 0 22px; }
.hero-text { max-width: 520px; font-size: clamp(18px, 2vw, 26px); line-height: 1.38; color: rgba(21,21,21,.68); margin: 0; }
.hero-art {
  margin: 0;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(239,238,233,.58);
}
.hero-art img { aspect-ratio: 1/1; width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-art figcaption, .work-info {
  display: flex; justify-content: space-between; gap: 14px;
  padding-top: 12px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  color: var(--grey);
}

.statement { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.statement-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 7vw, 110px); margin-top: 32px; align-items: start; }
.statement h2, .works-header h2, .rooms-intro h2, .split-copy h2, .artists h2, .visit h2 {
  font-family: var(--font-headline);
  font-weight: 200;
  letter-spacing: -0.07em;
  line-height: .95;
  margin: 0;
  font-size: clamp(54px, 9vw, 146px);
}
.statement-text { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.65; color: rgba(21,21,21,.68); }
.statement-text p { margin: 0 0 28px; }

.feature-strip { min-height: 92vh; display: grid; grid-template-columns: .78fr 1fr; gap: clamp(34px, 8vw, 120px); align-items: center; }
.strip-image { margin: 0; border: 1px solid var(--line-light); }
.strip-image img { aspect-ratio: 3/4; width: 100%; object-fit: cover; filter: grayscale(1); }
.strip-content h2 { font-family: var(--font-headline); font-weight: 200; letter-spacing: -0.07em; line-height: .96; font-size: clamp(58px, 9vw, 148px); margin: 22px 0 0; }

.works { background: #efeee9; }
.works-header { display: grid; grid-template-columns: .36fr 1fr; gap: 40px; align-items: start; margin-bottom: 70px; }
.works-header h2 { font-size: clamp(46px, 7vw, 112px); max-width: 1080px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: start;
}
.work-card {
  grid-column: span 4;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.work-card.large { grid-column: span 7; }
.work-card.tall { grid-column: span 5; margin-top: 90px; }
.work-card.wide { grid-column: 5 / span 8; margin-top: -20px; }
.work-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); background: #ddd; }
.work-card.large img { aspect-ratio: 1.18/1; }
.work-card.wide img { aspect-ratio: 1.75/1; }

.rooms { overflow: hidden; }
.rooms-intro { max-width: 900px; margin-bottom: 70px; }
.room-table { border-top: 1px solid var(--line); }
.room-row {
  display: grid;
  grid-template-columns: .18fr .42fr 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.room-row span, .visit-details span {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey);
  font-size: 18px;
}
.room-row strong {
  font-family: var(--font-headline);
  font-size: clamp(46px, 8vw, 128px);
  font-weight: 200;
  letter-spacing: -0.08em;
  line-height: .78;
}
.room-row p { font-size: clamp(18px, 1.5vw, 24px); color: rgba(21,21,21,.65); margin: 0; }

.split-feature { min-height: 100vh; display: grid; grid-template-columns: .76fr 1fr; gap: clamp(34px, 7vw, 110px); align-items: center; }
.split-copy p { max-width: 480px; color: rgba(239,238,233,.62); font-size: 22px; line-height: 1.5; }
.split-art { margin: 0; border: 1px solid var(--line-light); padding: 12px; }
.split-art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.04); }

.artists { background: var(--bone); }
.artists h2 { margin: 28px 0 54px; }
.artist-list { border-top: 1px solid var(--line); }
.artist-list div {
  display: grid;
  grid-template-columns: .5fr 1fr .35fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.artist-list span:first-child { font-family: var(--font-label); font-size: clamp(28px, 3.7vw, 58px); letter-spacing: .02em; }
.artist-list span:not(:first-child) { color: rgba(21,21,21,.62); font-size: 18px; }

.visit { min-height: 86vh; display: flex; align-items: center; }
.visit-grid { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(36px, 7vw, 110px); width: 100%; align-items: start; }
.visit-copy p { max-width: 580px; color: rgba(21,21,21,.68); font-size: 21px; line-height: 1.6; }
.button {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid var(--black);
  padding: 18px 22px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 18px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.button:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.visit-details { border-top: 1px solid var(--line); }
.visit-details div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.visit-details strong { font-family: var(--font-headline); font-weight: 300; font-size: clamp(24px, 3vw, 46px); letter-spacing: -0.05em; }

.footer { padding: 90px clamp(22px, 6vw, 92px) 34px; }
.footer-word { font-family: var(--font-headline); font-weight: 200; letter-spacing: -0.12em; font-size: clamp(64px, 18vw, 260px); line-height: .8; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line-light); margin-top: 44px; padding-top: 20px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: rgba(239,238,233,.62); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.19,1,.22,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hover-lift { transition: transform .7s cubic-bezier(.19,1,.22,1), filter .7s ease; }
.hover-lift:hover { transform: translateY(-8px); }

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header { top: 14px; width: calc(100vw - 24px); }
  section { padding: 90px 20px; }
  .hero { padding-top: 100px; }
  .hero-meta { flex-direction: column; gap: 7px; }
  .hero-grid, .statement-layout, .feature-strip, .works-header, .split-feature, .visit-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(90px, 28vw, 170px); }
  .gallery-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.large, .work-card.tall, .work-card.wide { grid-column: auto; margin-top: 0; }
  .room-row, .artist-list div { grid-template-columns: 1fr; gap: 8px; }
  .room-row strong { font-size: 70px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .cursor { display: none; }
}

/* Final exhibition ending */
.closing {
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(239,238,233,.045) 1px, transparent 1px),
    linear-gradient(rgba(239,238,233,.035) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
}
.closing::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid rgba(239,238,233,.16);
  background:
    linear-gradient(90deg, transparent 48%, rgba(239,238,233,.12) 49%, rgba(239,238,233,.12) 51%, transparent 52%),
    radial-gradient(circle at center, rgba(239,238,233,.08), transparent 62%);
  opacity: .72;
}
.closing-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: .32fr 1fr;
  gap: clamp(34px, 7vw, 120px);
  align-items: end;
}
.closing-meta {
  display: grid;
  gap: 16px;
  align-self: stretch;
  align-content: start;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(239,238,233,.58);
  font-size: clamp(15px, 1.5vw, 20px);
}
.closing-copy h2 {
  max-width: 1120px;
  margin: 18px 0 18px;
  font-family: var(--font-headline);
  font-weight: 200;
  letter-spacing: -0.105em;
  line-height: .82;
  font-size: clamp(76px, 15vw, 232px);
}
.button-light {
  border-color: rgba(239,238,233,.72);
  color: var(--white);
}
.button-light:hover {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 900px) {
  .closing { min-height: 78vh; }
  .closing-grid { grid-template-columns: 1fr; gap: 34px; }
  .closing::after { width: 92vw; right: -44vw; opacity: .48; }
  .closing-copy h2 {
    font-size: clamp(66px, 21vw, 132px);
    letter-spacing: -0.095em;
  }
  .closing-meta { gap: 9px; }
}

@media (max-width: 640px) {
  body { text-rendering: geometricPrecision; }
  .brand { font-size: 16px; }
  .brand-mark { width: 16px; height: 16px; box-shadow: inset 0 0 0 4px var(--bone); }
  section { padding: 78px 18px; }
  .hero { min-height: auto; padding-top: 102px; }
  .hero-meta { margin-bottom: 32px; font-size: 15px; }
  .hero-grid { gap: 36px; }
  .hero-copy h1 {
    font-size: clamp(82px, 31vw, 126px);
    letter-spacing: -0.105em;
  }
  .hero-line { margin: 24px 0 18px; width: 100%; }
  .hero-text, .statement-text, .visit-copy p, .split-copy p {
    font-size: 18px;
    line-height: 1.55;
  }
  .hero-art { padding: 9px; }
  .hero-art figcaption, .work-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 14px;
  }
  .statement { min-height: auto; }
  .statement h2, .works-header h2, .rooms-intro h2, .split-copy h2, .artists h2, .visit h2 {
    font-size: clamp(48px, 16vw, 78px);
    letter-spacing: -0.065em;
  }
  .feature-strip, .split-feature, .visit { min-height: auto; }
  .strip-content h2 { font-size: clamp(52px, 17vw, 88px); }
  .works-header { margin-bottom: 44px; }
  .gallery-grid { gap: 34px; }
  .room-row { padding: 22px 0; }
  .room-row strong { font-size: clamp(58px, 19vw, 86px); }
  .artist-list span:first-child { font-size: clamp(34px, 12vw, 54px); }
  .artist-list span:not(:first-child) { font-size: 16px; }
  .button {
    width: 100%;
    justify-content: center;
    padding: 17px 18px;
  }
  .footer { padding-top: 70px; }
  .footer-word { font-size: clamp(62px, 22vw, 118px); letter-spacing: -0.105em; }
}


/* Image containers stay present while scrolling; no intersection pop-in. */
.image-ready {
  opacity: 1;
  transform: none;
}

.image-ready img {
  opacity: 1;
  transform: scale(1.001);
}

.image-ready.hover-lift:hover img {
  transform: scale(1.035);
}
