@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --page-gutter: 40px;
  --black: #050505;
  --line: #e5e5e5;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tracking-tight: -0.02em;
  --tracking-copy: -0.01em;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #000;
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: var(--tracking-copy);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.page-shell {
  width: 100%;
  padding-inline: var(--page-gutter);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 16px;
}

.site-header nav {
  display: flex;
  gap: 42px;
  align-items: center;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.nav-link {
  position: relative;
  padding-block: 0;
  font: inherit;
}

.nav-link::after {
  display: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  overflow: visible;
  background: #000;
  color: #fff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 1px;
  background: rgb(255 255 255 / 16%);
  content: "";
}

.showreel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  cursor: none;
}

.showreel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showreel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 28%);
  content: "";
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.home-statement {
  position: relative;
  z-index: 1;
  padding-top: 50vh;
  padding-bottom: 50vh;
  background: #000;
  color: rgb(255 255 255 / 60%);
}

.home-statement p {
  max-width: 1220px;
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-statement strong {
  color: #fff;
  font-weight: inherit;
}

.home-statement .formfactor-word {
  display: inline;
  opacity: 0;
  transition: opacity 280ms ease;
  transition-delay: 0ms;
}

.home-statement.is-first-sentence-visible
  p
  > span:first-of-type
  .formfactor-word,
.home-statement.is-second-sentence-visible
  p
  > span:nth-of-type(2)
  .formfactor-word {
  opacity: 1;
  transition-delay: calc(var(--word-index, 0) * 24ms);
}

.projects {
  position: relative;
  z-index: 1;
  padding-top: 330px;
  padding-bottom: 330px;
  background: #FEFEFE;
}

.projects-header {
  display: grid;
  align-items: end;
  grid-template-columns: calc(50vw - var(--page-gutter)) 1fr;
  margin-bottom: 126px;
}

.projects-title,
.projects-count {
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.projects-count {
  grid-column: 2;
}

.project-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(0 0 0 / 6%);
  list-style: none;
}

.project-list li {
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 6%);
}

.project-list a {
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-list:has(a:hover) a:not(:hover),
.project-list:has(a:focus-visible) a:not(:focus-visible) {
  opacity: 0.1;
}

.project-list a {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: calc(50vw - var(--page-gutter)) 1fr;
  padding: 32px var(--page-gutter);
  transition:
    background-color 250ms ease,
    color 250ms ease;
}

.project-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.project-kind {
  grid-column: 2;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 650px;
  grid-template-rows: 1fr auto;
  padding-top: 90px;
  padding-bottom: 40px;
  background: #FEFEFE;
}

.site-footer-main {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.site-footer address {
  display: grid;
  grid-column: 3 / 5;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  padding-top: 15px;
  margin: 0;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.site-footer address span {
  display: block;
  margin-bottom: 16px;
  color: #8c8c8c;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  width: max-content;
}

.site-footer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 16px;
}

.site-footer-meta span:last-child {
  grid-column: 2;
  justify-self: start;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease;
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-active {
  width: 28px;
  height: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header {
    height: 64px;
  }

  .site-header nav {
    gap: 24px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-meta {
    bottom: 28px;
    font-size: clamp(38px, 11vw, 56px);
  }

  .showreel video {
    object-fit: cover;
  }

  .home-statement {
    padding-top: 40vh;
    padding-bottom: 40vh;
  }

  .home-statement p {
    font-size: clamp(38px, 11vw, 56px);
  }

  .projects {
    padding-top: 180px;
    padding-bottom: 180px;
  }

  .projects-header {
    grid-template-columns: 1fr auto;
    margin-bottom: 100px;
  }

  .projects-title,
  .projects-count {
    font-size: clamp(38px, 11vw, 56px);
  }

  .site-footer {
    min-height: 520px;
    padding-top: 70px;
    padding-bottom: 28px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 100px;
  }

  .site-footer h2 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .site-footer address {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-top: 0;
  }

  .site-footer-meta {
    grid-template-columns: 1fr auto;
  }

  .site-footer-meta span:last-child {
    grid-column: auto;
  }

  .cursor {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
