@font-face {
  font-family: "Mirta";
  src: url("../fonts/Mirta0.3-Light.woff2") format("woff2"),
    url("../fonts/Mirta0.3-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mirta";
  src: url("../fonts/Mirta0.3-Regular.woff2") format("woff2"),
    url("../fonts/Mirta0.3-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mirta";
  src: url("../fonts/Mirta0.3-Medium.woff2") format("woff2"),
    url("../fonts/Mirta0.3-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mirta";
  src: url("../fonts/Mirta0.3-Bold.woff2") format("woff2"),
    url("../fonts/Mirta0.3-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CF Arche Grotesk";
  src: url("../fonts/CFArcheGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CF Arche Grotesk";
  src: url("../fonts/CFArcheGrotesk-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "CF Arche Grotesk";
  src: url("../fonts/CFArcheGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CF Arche Grotesk";
  src: url("../fonts/CFArcheGrotesk-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f4;
  --text: #000000;
  --accent: #f93728;
  --font-serif: "Mirta", "Times New Roman", Times, serif;
  --font-sans: "CF Arche Grotesk", Arial, Helvetica, sans-serif;
  --nav-inset: 12.5vw;
  --project-margin: 20px;
  --step: 52vw;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

html {
  font-size: 14px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.35;
  overflow: hidden;
  cursor: none;
}

body:not(.is-touch),
body:not(.is-touch) * {
  cursor: none !important;
}

body.is-touch,
body.is-touch * {
  cursor: auto !important;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav-title,
.nav-end {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
}

.nav-title {
  left: var(--nav-inset);
  z-index: 40;
  font-family: var(--font-serif);
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
}

.nav-end {
  right: var(--nav-inset);
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  font-family: var(--font-sans);
}

.nav-btn,
.index-row__label,
.project__category {
  text-transform: lowercase;
  font-variant: small-caps;
}

.nav-btn {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

a.nav-btn {
  display: inline;
}

.nav-btn[data-nav="info"] {
  min-width: 2.75em;
  text-align: right;
}

.nav-btn[data-nav="index"].is-close {
  color: var(--accent) !important;
}

.home {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
}

.home,
.home__track,
.slide {
  cursor: none;
}

.home__track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.slide {
  flex: 0 0 auto;
  width: var(--step);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.slide__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
}

.slide__media {
  transform-origin: 50% 50%;
  will-change: transform;
  overflow: hidden;
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
  clip-path: inset(0);
  transform: translateZ(0);
  aspect-ratio: var(--media-ratio, auto);
}

.media__lqip,
.media__full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.media__lqip {
  filter: blur(16px);
  transform: scale(1.08);
  transform-origin: 50% 50%;
}

.media__full {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.media.is-loaded .media__full {
  opacity: 1;
}

.media.is-loaded .media__lqip {
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.home .slide .media.is-loaded .media__lqip {
  transition-delay: 0.45s;
  transition-duration: 0.01s;
}

.slide__media .media {
  height: 70vh;
  width: auto;
  max-width: min(56vw, 820px);
}

.slide__media .media.is-landscape {
  width: min(56vw, 820px);
  height: auto;
  max-height: 70vh;
}

.slide__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  pointer-events: none;
  visibility: hidden;
}

.slide__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}

.slide__more,
.project__back,
.index__back {
  font-family: var(--font-sans);
  font-size: 0.9286rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-transform: lowercase;
  font-variant: small-caps;
}

.slide__more {
  margin-left: auto;
  pointer-events: auto;
  cursor: pointer;
  color: inherit;
}

body.is-index .home,
body.is-index .project {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.is-info .nav-title {
  pointer-events: none;
}

body.is-project .home {
  position: absolute;
  inset: 0 0 22vh;
  height: auto;
}

body.is-project .slide {
  padding-bottom: 0;
}

body.is-project .slide__caption {
  visibility: hidden;
  pointer-events: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition: background-color 0.2s ease;
}

body.is-project:not(.is-index):not(.is-info) .cursor {
  background: var(--bg);
}

body.is-touch .cursor {
  opacity: 0 !important;
}

.project {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: var(--project-margin);
}

.project__info-btn,
.project__info-close {
  display: none;
}

.project__meta,
.project__back,
.project__menu-btn,
.project__strip,
.project__info-btn {
  pointer-events: auto;
}

.project__meta {
  position: absolute;
  top: var(--project-margin);
  left: var(--project-margin);
  width: min(20rem, 28vw);
}

.project__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.project__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9286rem;
  line-height: 1.4;
}

.project__copy p {
  margin: 0 0 0.75em;
}

.project__copy p:last-child {
  margin-bottom: 0;
}

.project__copy strong,
.project__copy b {
  font-weight: 700;
}

.project__copy em,
.project__copy i {
  font-style: italic;
}

.project__category {
  margin: 1em 0 0;
  font-family: var(--font-sans);
  font-size: 0.9286rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  text-align: left;
}

.project__meta-index {
  display: none;
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-transform: lowercase;
  font-variant: small-caps;
  cursor: pointer;
}

.project__back {
  position: absolute;
  top: var(--project-margin);
  right: var(--project-margin);
  cursor: pointer;
}

.project__menu-btn {
  display: none;
  position: absolute;
  top: var(--project-margin);
  right: var(--project-margin);
  z-index: 6;
  width: 1.35rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project__menu-icon,
.project__menu-icon::before,
.project__menu-icon::after {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
}

.project__menu-icon {
  position: relative;
}

.project__menu-icon::before,
.project__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.project__menu-icon::before {
  top: -5px;
}

.project__menu-icon::after {
  top: 5px;
}

.project__menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

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

.project__menu-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.project__menu-link {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
  text-transform: lowercase;
  font-variant: small-caps;
  cursor: pointer;
  pointer-events: auto;
}

.project__strip {
  position: absolute;
  left: var(--project-margin);
  right: var(--project-margin);
  bottom: var(--project-margin);
  overflow: hidden;
  height: 18vh;
  min-height: 110px;
}

.project__strip-track {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 0.7rem;
  will-change: transform;
}

.strip-item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  cursor: pointer;
}

.strip-item .media {
  height: 100%;
  width: auto;
}

.strip-item__num {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.7857rem;
  line-height: 1;
  mix-blend-mode: difference;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.strip-item:has(.media.is-loaded) .strip-item__num {
  opacity: 1;
}

.index {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  color: var(--text);
  visibility: hidden;
  pointer-events: none;
}

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

.index__hover-title {
  position: fixed;
  top: var(--project-margin);
  left: var(--project-margin);
  z-index: 41;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.index__hover-title.is-on {
  opacity: 1;
}

.index__bar {
  position: fixed;
  top: var(--project-margin);
  left: var(--nav-inset);
  right: var(--project-margin);
  z-index: 41;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1rem;
  pointer-events: none;
}

.index__home {
  display: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.index__back {
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.index__stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3.4rem;
}

.index-row {
  width: 100%;
}

.index-row__label {
  margin: 0 0 0.7rem var(--project-margin);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
}

.index-row__viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0;
  margin: -0.75rem 0;
}

.index-row__track {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-left: var(--project-margin);
  will-change: transform;
}

.index-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 40vw;
  cursor: pointer;
}

.index-thumb .media {
  height: 14vh;
  min-height: 88px;
  width: auto;
  transform-origin: 50% 50%;
  transition: transform 0.35s ease;
}

.index-thumb:hover .media {
  transform: scale(1.08);
}

.index-thumb__title {
  display: none;
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.7143rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  width: 0;
  min-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (hover: none) {
  .index-thumb:hover .media {
    transform: none;
  }
}

.info {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

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

.info__panel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(244, 244, 244, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.info__text {
  width: min(36rem, 62vw);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.45;
  pointer-events: none;
  color: #000;
}

.info__text p {
  margin: 0 0 1rem;
}

.info__text p:last-child {
  margin-bottom: 0;
}

.info__text strong,
.info__text b {
  font-weight: 700;
}

.info__text em,
.info__text i {
  font-style: italic;
}

@media (max-width: 900px) {
  :root {
    --nav-inset: var(--project-margin);
    --step: 78vw;
  }

  .slide__media .media {
    height: 58vh;
    max-width: min(78vw, 520px);
  }

  .slide__media .media.is-landscape {
    width: min(78vw, 520px);
    height: auto;
    max-height: 58vh;
  }

  .project__info-btn {
    display: block;
    position: absolute;
    top: var(--project-margin);
    left: var(--project-margin);
    z-index: 6;
    font-family: var(--font-sans);
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .project__meta {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    padding: 72px var(--project-margin) var(--project-margin);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 30;
    font-family: var(--font-sans);
  }

  body.is-project-info .project__meta {
    display: block;
  }

  body.is-project-info .nav-title,
  body.is-project-info .nav-end,
  body.is-project-info .project__info-btn,
  body.is-project-info .project__back,
  body.is-project-info .project__menu-btn {
    visibility: hidden;
    pointer-events: none;
  }

  .project__info-close {
    display: block;
    position: absolute;
    top: var(--project-margin);
    right: var(--project-margin);
    font-size: 1.35rem;
    line-height: 1;
  }

  .index__hover-title {
    display: none;
  }

  .index-row__label {
    margin-left: var(--project-margin);
  }

  .index-thumb {
    max-width: 46vw;
  }

  .index-thumb .media {
    height: 9vh;
    min-height: 64px;
  }

  .index-thumb__title {
    display: block;
  }

  .index__stack {
    gap: 2.4rem;
  }

  .info__text {
    width: calc(100% - 32px);
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .home__track {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: max-content;
    gap: 3.5rem;
    touch-action: none;
  }

  .slide {
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }

  .slide__media .media {
    height: 52vh;
    max-width: min(82vw, 520px);
  }

  .slide__media .media.is-landscape {
    width: min(82vw, 520px);
    max-height: 52vh;
  }

  .nav-title,
  .nav-end {
    top: var(--project-margin);
    transform: none;
  }

  body.is-project:not(.is-index) .nav-btn[data-nav="index"],
  body.is-project:not(.is-index) .nav-btn[data-nav="info"] {
    display: none;
  }

  body.is-project:not(.is-index) .project__info-btn {
    position: fixed;
    top: var(--project-margin);
    right: var(--nav-inset);
    left: auto;
    transform: none;
    z-index: 41;
  }

  body.is-project-info .project__meta-index {
    display: block;
  }

  body.is-project-info .nav-title {
    visibility: visible;
    pointer-events: auto;
  }

  .project__back {
    display: none;
  }

  .project__menu-btn,
  .project__menu {
    display: none !important;
  }

  .index__bar {
    display: none;
  }

  body.is-index .nav-btn[data-nav="info"] {
    display: none;
  }

  body.is-index .nav-btn[data-nav="index"] {
    display: inline;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}

@media (min-width: 601px) {
  body.is-index .nav-title,
  body.is-index .nav-end {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
