@font-face {
  font-family: "Monument Grotesk";
  src: url("./assets/font/MonumentGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #fff;
  --text: #000;
  --text-inverse: #fff;
  --text-muted: rgba(0, 0, 0, 0.46);
  --leading: 1.15;
  --space: 0.75rem;
  --edge: 0.75rem;
  --header-offset: calc((2 * var(--edge)) + 1.15em);
  --gallery-height: calc((100vh - var(--header-height, var(--header-offset)) - var(--edge)) * 0.618);
  --item-space-y: 0;
  --item-space-x: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 11.5px;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Monument Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: var(--leading);
}

.site-cursor {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x) - 9px), calc(var(--cursor-y) - 9px), 0);
  transition: opacity 180ms ease;
  z-index: 100;
  mix-blend-mode: difference;
}

.site-cursor-shape {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 180ms ease;
}

.site-cursor.is-intro-spinning .site-cursor-shape {
  animation-name: cursor-intro-spin;
  animation-duration: 2.6s;
  animation-timing-function: ease;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: none;
}

.site-cursor-shape::before,
.site-cursor-shape::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.site-cursor-shape::before {
  width: 1.5px;
  height: 100%;
}

.site-cursor-shape::after {
  width: 100%;
  height: 1.5px;
}

.site-cursor.is-visible {
  opacity: 1;
}

.site-cursor.is-pressed {
  opacity: 1;
}

.site-cursor.is-pressed .site-cursor-shape {
  transform: scale(0.92);
}

@keyframes cursor-intro-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
}

button {
  font: inherit;
  margin: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

p,
h3,
figure {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

.hidden-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}

.article {
  scroll-snap-align: start;
}

.text-article {
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background: var(--bg);
}

.scroll-capture {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}

.intro {
  background: var(--surface);
  min-height: auto;
}

.header-section {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: var(--edge);
  padding: var(--edge) 0 0.2rem;
  color: var(--text);
}

.header-section > div {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--surface);
  padding-top: var(--header-height, var(--header-offset));
  padding-bottom: 0;
  overflow: hidden;
}

.gallery-scroll-spacer {
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.background-layer {
  position: fixed;
  top: var(--header-height, var(--header-offset));
  left: 0;
  width: 100%;
  height: max(
    calc(50vh - var(--header-height, var(--header-offset))),
    calc(100vh - var(--header-height, var(--header-offset)) - var(--gallery-height) - var(--edge))
  );
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--edge);
  padding: calc(var(--edge) - 0.5rem) var(--edge) var(--edge);
  background: transparent;
  opacity: 0.24;
  pointer-events: auto;
  transition: opacity 480ms ease;
}

.background-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 38%,
    rgba(255, 255, 255, 0.36) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.background-layer > * {
  position: relative;
  z-index: 1;
}

.background-list {
  flex: 0 0 calc(50vw - (1.5 * var(--edge)));
  max-width: none;
  max-height: none;
  overflow: visible;
  color: var(--text-muted);
  opacity: 1;
  transition: color 480ms ease;
}

.more-information-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--edge);
  align-items: start;
  padding-top: var(--item-space-y);
  color: #000;
  opacity: 1;
}

.more-information-panel[hidden] {
  display: none;
}

.more-information-panel__column {
  min-width: 0;
  align-self: start;
}

.more-information-panel__section {
  margin-top: 1.5rem;
}

.more-information-panel__column > .more-information-panel__section:first-child {
  margin-top: 0;
}

.more-information-panel__stack {
  margin-top: 0.35rem;
}

.more-information-panel__stack p {
  display: block;
}

.more-information-panel__stack a {
  text-decoration-thickness: 1.5px;
}

.more-information-panel__stack p span,
.more-information-panel__stack p a {
  display: inline;
}

.more-information-panel__stack p > * + *::before {
  content: " ";
}

.mobile-project-detail {
  display: none;
}

.project-detail {
  flex: 0 0 calc(50vw - (1.5 * var(--edge)));
  min-height: 8rem;
  padding-top: var(--item-space-y);
  color: #000;
  opacity: 0;
  pointer-events: auto;
  transition:
    color 480ms ease,
    opacity 240ms ease;
}

.project-detail.is-visible {
  opacity: 1;
}

.project-detail__summary {
  margin: 0;
  line-height: var(--leading);
  white-space: normal;
  display: block;
}

.project-detail__description {
  margin-top: var(--leading);
  max-width: none;
  display: block;
}

.project-detail__supplement {
  margin-top: var(--leading);
}

.project-detail__supplement[hidden] {
  display: none;
}

.project-detail__title,
.project-detail__info,
.project-detail__credit,
.project-detail__meta {
  margin: 0;
  line-height: var(--leading);
}

.project-detail__meta {
  margin-top: 0.2rem;
}

.background-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 5.5rem;
  grid-template-rows: repeat(2, calc(var(--leading) * 1em));
  column-gap: 0;
  row-gap: 0;
  align-items: start;
  width: 100%;
  border: 0;
  margin: 0;
  padding: var(--item-space-y) var(--item-space-x);
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  line-height: var(--leading);
  color: inherit;
  transition:
    color 320ms ease,
    opacity 320ms ease,
    transform 320ms ease;
}

.background-item span {
  display: block;
  margin: 0;
  padding: 0;
  line-height: var(--leading);
  white-space: nowrap;
  transition: transform 320ms ease;
}

.background-item span:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.background-item span:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.background-item span:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  justify-self: stretch;
  text-align: left;
}

.background-item span:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  justify-self: stretch;
  text-align: left;
}

.background-item span:nth-child(5) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.background-item span:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  .gallery,
  .background-item {
    cursor: none;
  }

  body.show-background .site-cursor .site-cursor-shape {
    transform: rotate(45deg);
  }

  body.show-background .site-cursor.is-pressed .site-cursor-shape {
    transform: rotate(45deg) scale(0.92);
  }

  body.is-list-hovered .background-layer {
    opacity: 1;
  }

  body.is-list-hovered .background-layer::before {
    opacity: 1;
  }

  body.is-list-hovered .background-list {
    color: var(--text-muted);
  }

  body.is-list-hovered .gallery {
    opacity: 0.32;
    z-index: 2;
    pointer-events: none;
  }

  .gallery.is-hovered .gallery__slide.is-hovered .medium::before,
  .gallery.is-hovered .gallery__slide.is-hovered .medium::after {
    opacity: 0.95;
  }

  .background-item:hover {
    color: rgba(0, 0, 0, 1);
    opacity: 1;
  }

  .background-item:hover span:nth-child(1),
  .background-item:hover span:nth-child(2),
  .background-item:hover span:nth-child(3),
  .background-item:hover span:nth-child(4) {
    transform: translateX(0.8rem);
  }

  .background-item:hover span:nth-child(5),
  .background-item:hover span:nth-child(6) {
    transform: translateX(-0.8rem);
  }
}

.gallery {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: var(--edge);
  height: var(--gallery-height);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-inline: var(--edge);
  background: transparent;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  z-index: 12;
  opacity: 1;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  transition: opacity 480ms ease;
}

.gallery__slide .medium::before,
.gallery__slide .medium::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  transition: opacity 180ms ease;
  mix-blend-mode: difference;
  z-index: 20;
}

.media.is-natural-portrait::before,
.media.is-natural-portrait::after,
.media.is-natural-square::before,
.media.is-natural-square::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  transition: opacity 180ms ease;
  mix-blend-mode: difference;
  z-index: 21;
}

.media.is-natural-portrait::before,
.media.is-natural-square::before {
  left: 0.85rem;
  transform: translateY(-50%) rotate(-135deg);
}

.media.is-natural-portrait::after,
.media.is-natural-square::after {
  right: 0.85rem;
  transform: translateY(-50%) rotate(45deg);
}

.gallery__slide .medium::before {
  left: 0.85rem;
  transform: translateY(-50%) rotate(-135deg);
}

.gallery__slide .medium::after {
  right: 0.85rem;
  transform: translateY(-50%) rotate(45deg);
}

.gallery.is-hovered .gallery__slide.is-hovered .media.is-natural-portrait::before,
.gallery.is-hovered .gallery__slide.is-hovered .media.is-natural-portrait::after,
.gallery.is-hovered .gallery__slide.is-hovered .media.is-natural-square::before,
.gallery.is-hovered .gallery__slide.is-hovered .media.is-natural-square::after {
  opacity: 0.95;
}

.gallery.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: var(--edge);
  width: max-content;
  min-width: 100%;
  height: 100%;
}

.gallery__slide {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: calc(100vw - (2 * var(--edge)));
  height: 100%;
  padding-inline: 0;
  padding-bottom: 0;
  background: transparent;
  pointer-events: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery__slide .media {
  transition: opacity 240ms ease;
}

.gallery__slide.is-adjacent-right .media {
  opacity: 0.42;
}

.media {
  position: relative;
  height: 100%;
  width: auto;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.media--placeholder {
  background: rgba(0, 0, 0, 0.12);
}

.media--text {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  background: transparent;
  pointer-events: auto;
}

.media--beta-video {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.25rem;
  background: rgba(0, 0, 0, 0.14);
}

.media--beta-video .medium {
  width: calc(100% - 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.media--beta-video .medium__video {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.media.media--text {
  pointer-events: auto;
}

.medium--text {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #000;
  pointer-events: auto;
}

.medium.medium--text {
  pointer-events: auto;
}

.medium--text p {
  max-width: 28rem;
}

.medium--text-flow {
  margin: 0;
}

.medium--text-flow span,
.medium--text-flow a {
  display: inline;
}

.medium--text a {
  width: fit-content;
}

.media--portrait {
  width: auto;
  max-width: min(calc(var(--gallery-height) * 0.95), 100%);
}

.media--landscape {
  aspect-ratio: 3 / 2;
  width: calc(var(--gallery-height) * 1.5);
  max-width: 100%;
}

.media--square {
  aspect-ratio: 3 / 2;
  width: calc(var(--gallery-height) * 1.5);
  max-width: 100%;
}

@media (orientation: landscape) and (min-aspect-ratio: 8 / 7) {
  .background-list {
    flex-basis: calc(50vw - (1.5 * var(--edge)));
  }

  .project-detail {
    flex-basis: calc(50vw - (1.5 * var(--edge)));
  }

  .gallery__slide {
    width: calc(50vw - (1.5 * var(--edge)));
  }

  .media {
    width: calc(50vw - (1.5 * var(--edge)));
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 2 / 1) {
  .background-list {
    flex-basis: calc(33.33333vw - (1.5 * var(--edge)));
  }

  .project-detail {
    flex-basis: calc(33.33333vw - (1.5 * var(--edge)));
  }

  .gallery__slide {
    width: calc(33.33333vw - (1.5 * var(--edge)));
  }

  .media {
    width: calc(33.33333vw - (1.5 * var(--edge)));
  }
}

@media (orientation: landscape) and (min-aspect-ratio: 12 / 5) {
  .background-list {
    flex-basis: calc(25vw - (1.5 * var(--edge)));
  }

  .project-detail {
    flex-basis: calc(25vw - (1.5 * var(--edge)));
  }

  .gallery__slide {
    width: calc(25vw - (1.5 * var(--edge)));
  }

  .media {
    width: calc(25vw - (1.5 * var(--edge)));
  }
}

.medium {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.media.is-natural-portrait .medium,
.media.is-natural-square .medium {
  position: relative;
  inset: auto;
  width: auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: visible;
}

.media.is-natural-portrait,
.media.is-natural-square {
  overflow: visible;
}


.medium--placeholder {
  background: rgba(0, 0, 0, 0.12);
}

.medium__item,
.medium__video {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  pointer-events: none;
}

.media.is-natural-landscape .medium__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}

.media.is-natural-landscape .medium__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}

.media.is-natural-portrait .medium__item,
.media.is-natural-square .medium__item,
.media.is-natural-portrait .medium__video,
.media.is-natural-square .medium__video {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.media--beta-video.is-natural-landscape .medium__video,
.media--beta-video.is-natural-portrait .medium__video,
.media--beta-video.is-natural-square .medium__video {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

body.show-background .background-layer {
  opacity: 1;
}

body.is-list-hovered .background-layer,
body.show-background.detail-from-list .background-layer {
  height: calc(100vh - var(--header-offset) - var(--edge));
  z-index: 20;
}

body.show-background.detail-from-list .background-layer {
  pointer-events: none;
}

body.show-background.detail-from-list .background-list,
body.show-background.detail-from-list .project-detail {
  pointer-events: auto;
}

body.show-background.detail-from-gallery .background-list {
  color: var(--text-muted);
  opacity: 0.24;
}

body.show-background.detail-from-list .background-list {
  color: #000;
  opacity: 1;
}

body.show-background .gallery {
  opacity: 1;
  z-index: 12;
  pointer-events: auto;
}

body.show-background.detail-from-list .gallery {
  opacity: 1;
  z-index: 12;
  pointer-events: auto;
}

.breakpoint-m,
.breakpoint-l {
  display: none;
}

@media (min-width: 800px) {
  .breakpoint-s,
  .breakpoint-l {
    display: none;
  }

  .breakpoint-m {
    display: inline;
  }

  .background-item {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .breakpoint-s,
  .breakpoint-m {
    display: none;
  }

  .breakpoint-l {
    display: inline;
  }
}

@media (min-width: 801px) and (max-aspect-ratio: 3 / 2) {
  :root {
    --gallery-height: calc(50vh - var(--edge));
  }

  .background-layer {
    height: calc(50vh - var(--header-height, var(--header-offset)));
  }
}

@media (min-width: 801px) and (max-width: 1350px) {
  .background-item:hover span:nth-child(1),
  .background-item:hover span:nth-child(2),
  .background-item:hover span:nth-child(3),
  .background-item:hover span:nth-child(4),
  .background-item:hover span:nth-child(5),
  .background-item:hover span:nth-child(6) {
    transform: none;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 13px;
  }
}

@media (min-width: 2200px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 2600px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 3200px) {
  html {
    font-size: 22px;
  }
}

@media (max-width: 800px) {
  html,
  body,
  .header,
  .content {
    background: var(--surface);
  }

  .header-section {
    flex-wrap: wrap;
  }

  .content {
    min-height: auto;
    overflow: visible;
    padding-top: 0;
    margin-top: 0;
  }

  .background-layer {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin-top: calc(var(--header-height, var(--header-offset)) + var(--edge));
    padding-top: 0;
    padding-bottom: var(--edge);
    opacity: 1;
  }

  .background-list,
  .more-information-panel {
    width: 100%;
    flex-basis: 100%;
    max-width: none;
  }

  body.show-background.detail-from-list .background-layer {
    pointer-events: auto;
    height: auto;
    z-index: 20;
  }

  body.show-background.detail-from-list .background-list {
    pointer-events: auto;
  }

  .project-detail,
  .gallery,
  .gallery-scroll-spacer {
    display: none;
  }

  .background-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, calc(var(--leading) * 1em));
    column-gap: var(--edge);
    row-gap: 0;
  }

  body.show-background.detail-from-list .background-item {
    color: var(--text-muted);
    opacity: 1;
  }

  body.show-background.detail-from-list .background-item:not(.is-selected) {
    color: var(--text-muted);
  }

  body.show-background.detail-from-list .background-item.is-selected {
    color: #000;
  }

  .background-item span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .background-item span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .background-item span:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
  }

  .background-item span:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-self: end;
    text-align: right;
  }

  .background-item span:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    justify-self: end;
    text-align: right;
  }

  .background-item span:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    justify-self: end;
    text-align: right;
  }

  .mobile-project-detail {
    display: block;
    width: 100%;
    margin: 0 0 var(--edge);
    padding: 0;
    color: #000;
  }

  .mobile-project-detail__description,
  .mobile-project-detail__meta {
    margin-top: 0.5rem;
  }

  .mobile-project-detail__media {
    margin-top: 0.75rem;
  }

  .mobile-project-detail__media + .mobile-project-detail__media {
    margin-top: 0.5rem;
  }

  .mobile-project-detail__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-project-detail__media video {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-project-detail__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
}
