@font-face {
  font-family: "Sans";
  src: url("./fonts/sans.otf") format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mono";
  src: url("./fonts/mono.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --fg: #ffffff;
  --sans: "Sans", sans-serif;
  --mono: "Mono", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 110px 20px 20px;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 48px;
  width: 100vw;
  max-width: none;
  padding: 44px 28px 32px;
  background: rgba(8, 8, 8, .8);
  box-shadow: 0 .5px 0 rgba(255, 255, 255, .035), 0 12px 32px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.top-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  transform: translateX(-50%) scaleY(.5);
  transform-origin: bottom;
}

.nav-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.nav-title {
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: .02em;
}

.project-page {
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 0;
}

.hero-full {
  position: relative;
  width: 100vw;
  height: min(62vh, 560px);
  margin-left: 50%;
  margin-top: -110px;
  overflow: hidden;
  transform: translateX(-50%);
}

.project-hero {
  transform: scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}

.project-hero,
.project-image,
.project-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image,
.project-grid img {
  height: auto;
}

.project-intro {
  max-width: 1040px;
  margin: 42px auto 0;
  margin-bottom: 28px;
}

.back-link {
  display: inline-block;
  margin: 0 0 28px;
  color: #fff !important;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity .2s ease;
}

.back-link:hover {
  opacity: 1;
}

.back-link:visited,
.back-link:hover,
.back-link:active,
.back-link:focus {
  color: #fff !important;
}

.project-title {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: clamp(58px, 8.4vw, 124px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: 0;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 0;
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
}

.project-meta div {
  display: grid;
  grid-template-columns: 38px auto;
  justify-content: start;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
}

.project-text {
  max-width: 680px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.04;
  letter-spacing: 0;
}

.project-image {
  margin-bottom: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.project-credits {
  display: none;
}

.project-next {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  padding: 34px 0 12px;
  text-align: center;
}

.project-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .82);
  transform: scaleX(.8);
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.project-next.in-view::before {
  transform: scaleX(1);
}

.project-next-label {
  margin: 0;
  color: #fff !important;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  opacity: 1;
}

.project-next-link {
  font-family: var(--sans);
  font-size: clamp(48px, 8.5vw, 128px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: 0;
  text-align: center;
}

.reveal-image {
  opacity: 1;
  transform: translate3d(0, 24px, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.reveal-image.in-view {
  opacity: 1;
}

.project-hero.reveal-image {
  transform: scale(1);
}

.contact-footer {
  margin-top: 0;
  padding-top: .8rem;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--bg);
}

.contact-footer .marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.contact-footer .track {
  display: block;
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.contact-footer .marquee-top {
  color: #fff;
}

.contact-footer .marquee-bottom {
  color: rgba(142, 142, 142, .99);
}

.contact-footer .footer-center {
  display: flex;
  justify-content: center;
  margin: .8rem 0;
}

.contact-btn {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.contact-btn:hover {
  background: #fff;
  color: #080808;
  transform: translateY(-2px);
}

.contact-btn:active {
  transform: translateY(0) scale(.98);
}

.contact-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.contact-footer .footer-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 1rem auto 0;
  padding: 0 20px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-footer .footer-meta > div:last-child {
  text-align: right;
}

@media (min-width: 769px) {
  .top-nav {
    padding-right: calc((100vw - 1400px) / 2 + 28px);
    padding-left: calc((100vw - 1400px) / 2 + 28px);
  }

  .contact-footer {
    padding-top: 2.4rem;
  }

  .contact-footer .track {
    font-size: clamp(4.4rem, 12.1vw, 10.9rem);
    line-height: .9;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 110px 20px 20px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 38px 20px 28px;
  }

  .nav-item:first-child {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .nav-item:nth-child(2) {
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .nav-item:nth-child(3) {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }

  .nav-title {
    font-size: 14px;
    line-height: 1;
  }

  .hero-full {
    width: calc(100% + 40px);
    height: 58vh;
    margin-left: -20px;
    transform: none;
  }

  .project-intro {
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .back-link {
    margin-bottom: 24px;
  }

  .project-title {
    margin-bottom: 24px;
    font-size: 52px;
  }

  .project-meta {
    gap: 4px;
    margin-bottom: 0;
  }

  .project-meta div {
    grid-template-columns: 34px auto;
    font-size: 9px;
  }

  .project-text {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.06;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .project-next {
    gap: 10px;
    padding: 28px 0 10px;
  }

  .project-next-link {
    font-size: 46px;
    line-height: .88;
  }

  .contact-footer {
    padding-top: .6rem;
  }

  .contact-footer .footer-center {
    margin: .7rem 0;
  }
}
