@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
}

html, body {
  height: 100%;
}

:root {
  --project-bg: #ffffff;
  --project-fg: #0f0f0f;
  --project-wrap: min(960px, 88vw);
  --project-gap: clamp(32px, 6vw, 72px);
  --project-pad: clamp(24px, 6vw, 112px);
  --project-font: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --project-nav-size: 44px;
  --project-content-pad: clamp(32px, calc((100vw - 1200px) / 2), 160px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  background: var(--project-bg);
  color: var(--project-fg);
  font-family: var(--project-font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.project-shell {
  flex: none;
  box-sizing: border-box;
  width: 100%;
  padding: 36px var(--project-content-pad) 0;
}

.project-header {
  max-width: var(--project-wrap);
  margin: 0 auto;
  flex: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 32px);
  font-size: 14px;
  letter-spacing: .02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-height: 48px;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 35px;
  width: auto;
}

.project-counter {
  text-align: center;
  font-size: 15px;
  justify-self: center;
}

.project-close {
  width: var(--project-nav-size);
  height: var(--project-nav-size);
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  justify-self: end;
}

.project-stage {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 10vh, 96px) var(--project-content-pad);
  box-sizing: border-box;
  overflow: hidden;
}

.project-stage.has-full {
  padding: 0;
  place-items: stretch;
}

.project-stage.is-interactive {
  cursor: pointer;
}

.project-stage.is-interactive::after {
  display: none;
}

.project-stage.has-full .project-slide.is-active {
  width: 100%;
  max-width: none;
  height: 100%;
}

.project-stage.has-full .project-shot.single.size-full {
  width: 100%;
  max-width: none;
  height: 100%;
}

.project-stage.has-full .project-shot.single.size-full img,
.project-stage.has-full .project-shot.single.size-full picture {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.project-slide {
  display: none;
  width: 100%;
  max-width: var(--project-wrap);
  margin: 0 auto;
  gap: clamp(18px, 4vw, 32px);
  justify-items: center;
  align-content: center;
}

.project-slide.is-active {
  display: grid;
  justify-items: center;
}

.project-shot {
  width: 100%;
}

.project-shot.single {
  --project-single-max-width: min(720px, 80vw);
  --project-single-max-height: 75vh;
}

.project-shot.single img,
.project-shot.single picture {
  display: block;
  width: 100%;
  max-width: var(--project-single-max-width);
  max-height: var(--project-single-max-height);
  margin: 0 auto;
  height: auto;
  object-fit: contain;
}

.project-shot.split {
  --project-split-max-width: var(--project-wrap);
  --project-split-max-height: 65vh;
  display: grid;
  gap: clamp(16px, 4vw, 32px);
  width: 100%;
  max-width: var(--project-split-max-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}

.project-shot.split img,
.project-shot.split picture {
  width: 100%;
  display: block;
  height: auto;
  max-height: var(--project-split-max-height);
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.project-shot.single.size-small {
  --project-single-max-width: min(520px, 70vw);
  --project-single-max-height: 60vh;
}

.project-shot.single.size-large {
  --project-single-max-width: min(920px, 92vw);
  --project-single-max-height: 82vh;
}

.project-shot.single.size-full {
  --project-single-max-width: 100vw;
  --project-single-max-height: 90vh;
}

.project-shot.split.size-small {
  --project-split-max-width: min(640px, 88vw);
  --project-split-max-height: 55vh;
}

.project-shot.split.size-large {
  --project-split-max-width: min(960px, 96vw);
  --project-split-max-height: 75vh;
}

.project-shot.split.size-tall {
  --project-split-max-height: 78vh;
}

.project-caption {
  display: block;
  max-width: var(--project-wrap);
  margin: clamp(16px, 3vw, 32px) auto 0;
  padding: 0 clamp(12px, 4vw, 32px);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 15, 15, .78);
}

.project-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(40px, 10vh, 120px);
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 36px);
  pointer-events: none;
}

.project-nav button {
  pointer-events: auto;
  width: var(--project-nav-size);
  height: var(--project-nav-size);
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, .18);
  background: rgba(255, 255, 255, .82);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.project-nav button:hover {
  border-color: rgba(15, 15, 15, .35);
  background: rgba(255, 255, 255, .94);
}

.project-nav button:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 540px) {
  .project-shell {
    padding: 28px clamp(20px, 6vw, 28px) 0;
  }

  .project-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }

  .project-counter {
    margin: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .project-close {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: center;
    justify-self: end;
  }

  .project-shot.split {
    --project-split-max-width: min(560px, 94vw);
    gap: clamp(12px, 4vw, 20px);
  }

  .project-shot.split img,
  .project-shot.split picture {
    max-height: 56vh;
  }

  .project-stage {
    padding: clamp(36px, 12vh, 120px) clamp(18px, 8vw, 28px) clamp(64px, 16vh, 140px);
  }
}
