:root {
  --wall:   #fafaf7;
  --wall-2: #f0eeea;
  --ink:    #0a0a0a;
  --red:    #d52121;
  --mid:    #6c6862;
  --mute:   #b6b3ad;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", system-ui, sans-serif;
  --mono:  "DM Mono", ui-monospace, monospace;

  --pad:    clamp(20px, 4vw, 56px);
  --pad-y:  clamp(80px, 12vh, 180px);
  --maxw:   1480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: saturate(0.92);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.small { font-size: 11px; text-transform: uppercase; }

.rule {
  border: none;
  height: 1px;
  margin: 0;
  background: var(--mute);
}
.rule--ink { background: var(--ink); }

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--wall);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.topbar__cell--center { text-align: center; }
.topbar__cell--right  { text-align: right; }

@media (max-width: 720px) {
  .topbar__inner { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .topbar__cell--center { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--pad-y) + 60px) var(--pad) var(--pad-y);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 clamp(40px, 6vh, 80px);
  letter-spacing: 0.18em;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 220px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.hero__line {
  display: block;
  visibility: hidden;
}
.hero__line--italic {
  font-style: italic;
  font-weight: 400;
}
.hero__line .dot {
  color: var(--red);
}

.hero__sub {
  margin: clamp(36px, 5vh, 64px) 0 0;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  visibility: hidden;
}

.hero__inner .rule {
  margin: clamp(40px, 6vh, 72px) auto 18px;
  width: min(640px, 70%);
  visibility: hidden;
}

.hero__artists {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.2em;
  visibility: hidden;
}

/* sticker — the one red moment in the hero */
.hero__sticker {
  position: absolute;
  top: clamp(96px, 14vh, 140px);
  right: clamp(20px, 5vw, 80px);
  z-index: 5;
  background: var(--red);
  color: #fff;
  padding: 14px 22px;
  transform: rotate(-4deg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  visibility: hidden;
  box-shadow: 0 18px 30px -22px rgba(213, 33, 33, 0.65);
}
.hero__sticker-line { line-height: 1; }
.hero__sticker-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.75);
}

.hero__ambient {
  margin: 0;
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  width: 100%;
  height: 36vh;
  opacity: 0;
  pointer-events: none;
}
.hero__ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85) brightness(1.02);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0) 100%);
}

@media (max-width: 720px) {
  .hero__sticker {
    top: 96px;
    right: 16px;
    padding: 10px 14px;
    font-size: 10px;
  }
}

/* ---------- ROOMS (pinned) ---------- */
.rooms {
  position: relative;
  background: var(--wall);
  border-top: 1px solid var(--ink);
}

.rooms__pin {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px var(--pad) 40px;
}

.rooms__stage {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.rooms__sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rooms__kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mid);
  letter-spacing: 0.2em;
}

.rooms__sign {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.rooms__num { font-family: var(--mono); letter-spacing: 0.04em; }

.rooms__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}

.rooms__meta {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mid);
  letter-spacing: 0.14em;
}

.rooms__caption {
  margin: 14px 0 0;
  max-width: 36ch;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

.rooms__index {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--mute);
  padding-top: 20px;
}
.rooms__index-item {
  font-size: 11px;
  color: var(--mute);
  transition: color 0.3s ease;
  cursor: default;
}
.rooms__index-item.is-active { color: var(--ink); }

/* viewer */
.rooms__viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rooms__frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 5;
  max-height: 80vh;
  margin: 0 auto;
}

.rooms__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  clip-path: inset(0 0 0 0);
  will-change: opacity, transform, filter;
}
.rooms__layer[data-layer="0"] { opacity: 1; }
.rooms__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rooms__credit {
  margin: 0;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.rooms__mobile { display: none; }

@media (max-width: 900px) {
  .rooms__pin { display: none; }
  .rooms__mobile {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 64px var(--pad) 96px;
  }
  .rooms__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rooms__card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .rooms__card-title {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
  }
  .rooms__card-meta {
    margin: 0;
    font-size: 11px;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
}

/* ---------- ARTISTS ---------- */
.artists {
  background: var(--wall);
  padding: var(--pad-y) var(--pad);
  border-top: 1px solid var(--ink);
}

.artists__head {
  max-width: var(--maxw);
  margin: 0 auto clamp(48px, 8vh, 96px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.artists__head .small {
  margin: 0;
  color: var(--mid);
  letter-spacing: 0.2em;
}

.artists__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}
.artists__heading em { font-style: italic; }

.artists__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

@media (max-width: 900px) {
  .artists__grid { grid-template-columns: 1fr; gap: 64px; }
}

.artist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.artist__figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.artist__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.artist__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  margin: 0;
  transition: color 0.4s ease;
}

.artist__meta {
  margin: 0;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.artist__bio {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 32ch;
}

@media (hover: hover) {
  .artist:hover .artist__figure img { filter: saturate(0.7); }
  .artist:hover .artist__name { color: var(--red); }
}

/* ---------- CURATOR + FOOTER ---------- */
.curator {
  background: var(--wall-2);
  padding: var(--pad-y) var(--pad) clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--ink);
}

.curator__top {
  max-width: var(--maxw);
  margin: 0 auto clamp(64px, 10vh, 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
}

@media (max-width: 900px) {
  .curator__top { grid-template-columns: 1fr; gap: 40px; }
}

.curator__left { position: sticky; top: 80px; }
.curator__left .small { margin: 0 0 24px; color: var(--mid); letter-spacing: 0.2em; }

.curator__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.curator__heading em { font-style: italic; }

.curator__sig {
  margin: 0;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.curator__right p[data-essay] {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 50ch;
  color: var(--ink);
  visibility: hidden;
}

/* plan */
.plan {
  max-width: 720px;
  margin: 0 auto clamp(64px, 10vh, 120px);
  text-align: center;
}
.plan__figure {
  margin: 0 0 14px;
  position: relative;
  display: inline-block;
  width: 100%;
}
.plan__figure img {
  width: 100%;
  height: auto;
  filter: saturate(0.4) contrast(0.9) brightness(1.08);
  opacity: 0.85;
}
.plan__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--wall);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, transform 0.25s ease;
}
.plan__dot:hover { background: var(--red); transform: translate(-50%, -50%) scale(1.15); }
.plan__dot[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--wall);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.plan__dot:hover::after { opacity: 1; }
.plan__cap {
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

/* info */
.info {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 6vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--ink);
  padding-top: clamp(32px, 5vh, 56px);
}
@media (max-width: 720px) {
  .info { grid-template-columns: 1fr; gap: 32px; }
}

.info__col p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
}
.info__h {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mid);
  letter-spacing: 0.2em;
  margin: 0 0 14px !important;
}
.info__link { border-bottom-color: var(--ink); }

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--mute);
  color: var(--mid);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
}

/* ---------- SplitText mask wrappers ---------- */
.split-mask {
  display: block;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero__line,
  .hero__sub,
  .hero__sticker,
  .hero__artists,
  .hero__inner .rule,
  .curator__right p[data-essay] {
    visibility: visible !important;
  }
}
