@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;
  --muted: rgba(255, 255, 255, .7);
  --sans: "Sans", sans-serif;
  --mono: "Mono", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

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;
}

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

.top-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: 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;
  justify-content: flex-start;
  text-align: left;
}

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

.hero-logo {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 48px;
  overflow: hidden;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  animation: logoReveal 1.3s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  margin-top: -10px;
  margin-bottom: 72px;
}

.hero-meta {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-meta-center {
  text-align: center;
}

.hero-meta-right {
  text-align: right;
}

.section-label {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: -32px 0 22px;
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-label::before {
  display: none;
}

.work-list {
  margin-top: -10px;
}

.work-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 220px 70px;
  align-items: center;
  min-height: 110px;
  padding: 0;
  border-bottom: 1px solid var(--fg);
}

.work-title {
  align-self: center;
  font-family: var(--sans);
  font-size: clamp(42px, 6vw, 88px);
  line-height: .9;
  transition: filter .16s ease;
}

.work-title-number {
  display: inline;
}

.work-meta {
  align-self: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  opacity: .7;
  text-transform: uppercase;
  transition: filter .16s ease;
}

.work-number {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  height: 100%;
  color: rgba(255, 255, 255, .78);
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
  transition: filter .16s ease;
}

.work-item:hover .work-title,
.work-item:hover .work-meta,
.work-item:hover .work-number {
  filter: blur(3.5px);
}

.work-preview {
  position: absolute;
  top: 50%;
  right: 400px;
  z-index: 999;
  width: min(24vw, 340px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.97);
  transition: opacity .35s ease, transform .35s ease;
}

.work-item:hover .work-preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

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

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

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

.track {
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

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

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

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

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

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

.footer-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 1rem auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

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

@keyframes logoReveal {
  from {
    transform: translateY(120%);
  }

  to {
    transform: translateY(0);
  }
}

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

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

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

@media (max-width: 768px) {
  .page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    width: 100%;
    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-logo {
    margin-top: -10px;
    margin-bottom: 32px;
  }

  .hero-meta-grid {
    gap: 12px;
    margin-top: -6px;
    margin-bottom: 56px;
  }

  .hero-meta {
    font-size: 8px;
  }

  .section-label {
    margin: -26px 0 14px;
    padding-top: 0;
    font-size: 10px;
  }

  .work-list {
    margin-top: -22px;
  }

  .work-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 112px) 28px;
    gap: 14px;
    align-items: center;
    min-height: 0;
    padding: 26px 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .95);
    -webkit-tap-highlight-color: transparent;
  }

  .work-item:hover {
    padding-left: 0;
  }

  .work-title {
    display: block;
    max-width: 100%;
    font-size: 38px;
    line-height: .88;
    letter-spacing: 0;
    transition: filter .16s ease;
  }

  .work-title-number {
    display: block;
  }

  .work-meta {
    display: block;
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 0;
    opacity: .65;
    text-align: left;
    transition: filter .16s ease;
  }

  .work-number {
    display: block;
    height: auto;
    font-size: 14px;
    opacity: .75;
    text-align: right;
    transform: none;
    transition: filter .16s ease;
  }

  .work-preview {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 5;
    display: block;
    width: 120px;
    opacity: 0;
    transform: translateY(-50%) scale(.98);
    transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
  }

  .work-item:active .work-title,
  .work-item:active .work-meta,
  .work-item:active .work-number {
    filter: blur(3.5px);
  }
}

/* Shared navigation lock */
.top-nav .nav-title {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: .02em;
}

@media (max-width: 768px) {
  .top-nav .nav-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
  }
}

/* Keep the top hero locked to the index page. */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 110px 20px 20px;
}

.top-nav {
  align-items: flex-start;
  padding: 44px 28px 32px;
}

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

.hero-logo {
  margin-top: 8px;
  margin-bottom: 48px;
}

.hero-logo img {
  transform: none;
}

.hero-meta-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: -10px;
  margin-bottom: 72px;
}

.hero-meta {
  font-size: 10px;
  line-height: 1.3;
}

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

  .top-nav {
    align-items: flex-start;
    padding: 38px 20px 28px;
  }

  .hero-logo {
    margin-top: -10px;
    margin-bottom: 32px;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: -6px;
    margin-bottom: 56px;
  }

  .hero-meta {
    font-size: 8px;
    line-height: 1.3;
  }
}
