:root {
  --background: #000;
  --foreground: #fff200;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "M PLUS Code Latin", monospace;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 6.75rem;
  padding: 1.15rem 3.75vw 0.6rem 1rem;
}

.project-logo {
  position: relative;
  display: block;
  width: 6.25rem;
  height: 5rem;
}

.project-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.project-logo .logo-hover {
  width: 127.7778%;
  opacity: 0;
}

.project-logo:hover .logo-default,
.project-logo:focus-visible .logo-default {
  opacity: 0;
}

.project-logo:hover .logo-hover,
.project-logo:focus-visible .logo-hover {
  opacity: 1;
}

.project-logo:focus-visible,
.project-header nav a:focus-visible,
.project-back:focus-visible,
.project-navigation a:focus-visible,
.project-scroll-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.project-header nav {
  display: flex;
  justify-content: space-between;
  width: min(29.4vw, 440px);
  padding-top: 1.75rem;
  font-size: 0.95rem;
}

.project-header nav [aria-current="page"] {
  font-weight: 700;
}

.project-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 8vw, 7rem) 7rem;
}

.project-heading {
  display: flex;
  align-items: baseline;
  align-items: last baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-heading h1 {
  font-size: clamp(2rem, 5.8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
}

.project-year {
  flex: 0 0 auto;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 300;
}

.project-hero {
  margin: clamp(2rem, 5vw, 4rem) auto clamp(2.5rem, 6vw, 5rem);
}

.project-embed {
  position: relative;
  width: 100%;
  height: 0;
  margin: clamp(2rem, 5vw, 4rem) auto clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 56.25%;
}

.project-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-hero img,
.project-media img,
.project-media video {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.project-hero img:focus-visible,
.project-media img:focus-visible,
.project-media video:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 4px;
}

.project-description,
.project-story {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.project-description {
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.project-copy {
  max-width: 70ch;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.4;
}

.project-media {
  min-width: 0;
}

.project-media video {
  background: #080808;
}

.project-media video.project-media-video-portrait {
  width: auto;
  max-width: min(76vw, 880px);
  max-height: min(80vh, 780px);
  max-height: min(80dvh, 780px);
  margin-inline: auto;
}

.project-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(3rem, 8vw, 6rem);
  font-size: 0.9rem;
}

.project-back {
  display: inline-block;
  margin-top: clamp(3rem, 8vw, 6rem);
  font-size: 0.9rem;
}

.project-scroll-top {
  position: fixed;
  z-index: 10;
  top: 50%;
  display: block;
  width: 1.5rem;
  height: clamp(14rem, 31.7vw, 28.7rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity 700ms ease-in-out, visibility 0s linear 700ms;
}

.project-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.project-scroll-top svg {
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.project-scroll-shaft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-scroll-head {
  position: absolute;
  top: 0;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  transform: translateY(-7px);
}

.project-error {
  max-width: 60ch;
  margin: 3rem auto;
  font-size: 1rem;
  line-height: 1.5;
}

.project-page.is-untitled {
  width: min(100%, 1150px);
  padding: 2rem clamp(1.25rem, 11.5vw, 7rem) 7rem;
}

.project-page.is-untitled .project-heading h1 {
  font-size: clamp(2rem, 6.6vw, 4.25rem);
}

.untitled-description {
  max-width: 70ch;
  margin: 2rem 0;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.4;
}

.untitled-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.2vw, 0.8rem);
}

.untitled-grid-item {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #4b4b4b;
  color: #000;
  cursor: pointer;
}

.untitled-grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.untitled-grid-item:focus-visible,
.untitled-lightbox-button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}

.untitled-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--foreground);
  transform: translate(-50%, -50%);
}

.untitled-play-indicator::before {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.8rem solid #000;
  content: "";
}

.untitled-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--foreground);
}

.untitled-lightbox[open] {
  display: block;
}

.untitled-lightbox::backdrop {
  background: rgb(0 0 0 / 86%);
}

.untitled-lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3.5rem 5.5rem 4rem;
}

.untitled-lightbox-media {
  display: block;
  width: auto;
  height: auto;
  max-width: min(76vw, 880px);
  max-height: min(80vh, 780px);
  max-height: min(80dvh, 780px);
  object-fit: contain;
}

.untitled-lightbox-button {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
}

.untitled-lightbox-icon {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.untitled-lightbox-next .untitled-lightbox-icon {
  transform: scaleX(-1);
}

.untitled-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.untitled-lightbox-previous {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.untitled-lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.untitled-lightbox-counter {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  padding: 0.35rem 0.75rem;
  background: rgb(0 0 0 / 60%);
  color: var(--foreground);
  font-size: 0.9rem;
  transform: translateX(-50%);
}

.untitled-lightbox-message {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  max-width: min(90vw, 32rem);
  padding: 0.45rem 0.75rem;
  background: rgb(0 0 0 / 75%);
  color: var(--foreground);
  font-size: 0.85rem;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 800px) {
  .project-header {
    height: 4.5rem;
    padding: 1rem 1rem 0;
    gap: 1rem;
  }

  .project-logo {
    width: 2.8rem;
    height: 2.9rem;
  }

  .project-header nav {
    width: auto;
    gap: clamp(0.35rem, 2vw, 1.1rem);
    padding-top: 0.35rem;
    font-size: clamp(0.63rem, 2.4vw, 0.82rem);
  }

  .project-page {
    padding-top: 2.5rem;
  }

  .project-heading {
    gap: 0.75rem;
  }

  .project-heading h1 {
    overflow-wrap: anywhere;
  }

  .project-scroll-top {
    height: min(28.7rem, 108vw);
  }

  .project-page.is-untitled {
    padding: 2rem 1rem 5rem;
  }

  .project-page.is-untitled .project-heading {
    align-items: baseline;
    align-items: last baseline;
    flex-wrap: wrap;
  }

  .project-page.is-untitled .project-heading h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .untitled-description {
    margin: 1.5rem 0;
    font-size: 0.85rem;
  }

  .untitled-grid {
    gap: 0.35rem;
  }

  .untitled-play-indicator {
    width: 2.25rem;
    height: 2.25rem;
  }

  .untitled-play-indicator::before {
    border-top-width: 0.42rem;
    border-bottom-width: 0.42rem;
    border-left-width: 0.62rem;
  }

  .untitled-lightbox-stage {
    padding: 3.5rem 2.75rem 3.5rem;
  }

  .untitled-lightbox-media {
    max-width: calc(100vw - 5.5rem);
    max-height: 80vh;
    max-height: 80dvh;
  }

  .project-media video.project-media-video-portrait {
    max-width: calc(100vw - 5.5rem);
    max-height: 80vh;
    max-height: 80dvh;
  }

  .untitled-lightbox-button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .untitled-lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
  }

  .untitled-lightbox-previous {
    left: 0.15rem;
  }

  .untitled-lightbox-next {
    right: 0.15rem;
  }

  .untitled-lightbox-icon {
    width: 28px;
    height: 28px;
  }

  .untitled-lightbox-message {
    bottom: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-logo img {
    transition: none;
  }

}
