:root {
  --black: #030303;
  --white: #f4f1eb;
  --soft-white: rgba(244, 241, 235, 0.72);
  --muted-white: rgba(244, 241, 235, 0.18);
  --line: rgba(244, 241, 235, 0.28);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  cursor: none;
  overflow: hidden;
}

body {
  font-weight: 300;
  letter-spacing: 0;
}

button,
a {
  cursor: none;
}

.exhibition {
  position: relative;
  width: 100vw;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.preview-stage,
.preview-video,
.preview-veil,
.grain,
.cinema-modal {
  position: fixed;
  inset: 0;
}

.preview-stage {
  z-index: -2;
  opacity: 0;
  transform: scale(1.045);
  will-change: transform, opacity;
  pointer-events: none;
}

.preview-video {
  width: 110%;
  height: 110%;
  left: -5%;
  top: -5%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) scale(1.02);
  transition: filter 520ms var(--ease);
  will-change: opacity, transform;
}

.preview-video.is-active {
  opacity: 0.62;
}

.preview-veil {
  background:
    radial-gradient(circle at center, rgba(3, 3, 3, 0.03), rgba(3, 3, 3, 0.76) 68%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.58), rgba(3, 3, 3, 0.14), rgba(3, 3, 3, 0.58));
  z-index: 2;
  mix-blend-mode: multiply;
}

.grain {
  z-index: 50;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px, 7px 7px;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(244, 241, 235, 0.56);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform, width, height, opacity;
  transition:
    width 360ms var(--ease),
    height 360ms var(--ease),
    border-color 360ms var(--ease),
    opacity 360ms var(--ease);
}

.cursor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}

.cursor::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 241, 235, 0.22);
  border-radius: 50%;
}

.cursor-scope,
.cursor-axis {
  position: absolute;
  inset: 50%;
  background: rgba(244, 241, 235, 0.58);
  transform: translate(-50%, -50%);
}

.cursor-scope {
  width: 34px;
  height: 1px;
}

.cursor-scope::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 34px;
  background: rgba(244, 241, 235, 0.58);
  transform: translate(-50%, -50%);
}

.cursor-axis-x {
  width: 112px;
  height: 1px;
  opacity: 0.2;
}

.cursor-axis-y {
  width: 1px;
  height: 112px;
  opacity: 0.2;
}

.cursor-readout {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  display: grid;
  gap: 4px;
  min-width: 64px;
  color: rgba(244, 241, 235, 0.82);
  font-size: 9px;
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-50%);
}

.cursor-readout span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cursor.is-interactive {
  width: 86px;
  height: 86px;
  border-color: rgba(244, 241, 235, 0.88);
}

.cursor.is-interactive .cursor-axis-x {
  width: 136px;
  opacity: 0.34;
}

.cursor.is-interactive .cursor-axis-y {
  height: 136px;
  opacity: 0.34;
}

.site-mark {
  position: fixed;
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  top: clamp(18px, 3vw, 36px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft-white);
  font-size: clamp(10px, 0.85vw, 13px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  mix-blend-mode: difference;
}

.external-link {
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  top: clamp(52px, 6vw, 76px);
  z-index: 6;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(244, 241, 235, 0.42);
  border-radius: 999px;
  padding: 9px 14px 8px;
  background: rgba(244, 241, 235, 0.02);
  backdrop-filter: blur(8px);
  transition:
    border-color 420ms var(--ease),
    background 420ms var(--ease),
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
  will-change: transform, opacity;
}

.external-link:hover,
.external-link:focus-visible {
  opacity: 1;
  border-color: rgba(244, 241, 235, 0.86);
  background: rgba(244, 241, 235, 0.1);
  outline: 0;
  transform: translate3d(0, -1px, 0);
}

.project-list {
  position: relative;
  z-index: 4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.9vh, 10px);
  padding: clamp(76px, 9vh, 110px) 4vw;
}

.project-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  display: block;
  width: min(100%, 1220px);
  padding: 0;
  text-align: center;
  font: inherit;
  font-size: clamp(50px, 10.4vw, 176px);
  font-weight: 200;
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.92;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 520ms var(--ease),
    color 520ms var(--ease),
    transform 620ms var(--ease);
  will-change: transform, opacity;
}

.project-list.is-hovering .project-button {
  opacity: 0.15;
}

.project-list.is-hovering .project-button.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.055);
}

.project-button:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 10px;
}

.project-meta {
  position: fixed;
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 241, 235, 0.58);
  font-size: clamp(10px, 0.85vw, 13px);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  mix-blend-mode: difference;
}

.cinema-modal {
  z-index: 70;
  display: grid;
  place-items: center;
  background: #020202;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.cinema-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.modal-video {
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: translate3d(0, 0, 0) scale(1.02);
  transition: filter 520ms var(--ease);
  will-change: transform, opacity;
}

body.is-link-hover .preview-video.is-active,
body.is-link-hover .modal-video {
  filter: grayscale(0) contrast(1) saturate(1.08);
}

.modal-caption {
  position: fixed;
  left: clamp(18px, 4vw, 62px);
  right: clamp(18px, 4vw, 62px);
  bottom: clamp(22px, 5vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  color: var(--white);
  mix-blend-mode: difference;
}

.modal-caption p,
.modal-caption h1,
.modal-caption span {
  margin: 0;
}

.modal-caption p,
.modal-caption span,
.modal-caption a,
.close-button {
  font-size: clamp(10px, 0.85vw, 13px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 235, 0.72);
}

.modal-caption a {
  position: relative;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 235, 0.42);
  padding-bottom: 4px;
  transition:
    color 360ms var(--ease),
    border-color 360ms var(--ease),
    opacity 360ms var(--ease);
}

.modal-caption a:hover,
.modal-caption a:focus-visible {
  color: var(--white);
  border-color: var(--white);
  outline: 0;
}

.modal-caption h1 {
  grid-column: 1 / -1;
  order: -1;
  max-width: 12ch;
  font-size: clamp(56px, 12vw, 220px);
  font-weight: 200;
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: 0;
}

.close-button {
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  top: clamp(18px, 3vw, 36px);
  z-index: 75;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  background: transparent;
  font-family: inherit;
  font-weight: 300;
  mix-blend-mode: difference;
}

@media (max-width: 760px) {
  html,
  body {
    overflow: hidden;
  }

  .site-mark,
  .project-meta,
  .modal-caption {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-mark {
    gap: 9px;
  }

  .external-link {
    left: 18px;
    right: auto;
    top: 76px;
    width: max-content;
  }

  .project-list {
    align-items: flex-start;
    justify-content: center;
    padding-inline: 18px;
  }

  .project-button {
    text-align: left;
    font-size: clamp(44px, 18vw, 88px);
    line-height: 0.9;
  }

  .project-list.is-hovering .project-button.is-active {
    transform: translate3d(0, 0, 0) scale(1.025);
  }

  .project-meta {
    gap: 8px;
  }

  .cursor {
    display: none;
  }

  .modal-caption {
    gap: 12px;
  }

  .modal-caption h1 {
    max-width: 8ch;
    font-size: clamp(54px, 20vw, 112px);
  }
}

@media (hover: none) {
  html,
  body,
  button,
  a {
    cursor: auto;
  }
}

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