:root {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  --page: clamp(20px, 3vw, 46px);
  --paper: #f4f4f1;
  --ink: #0a0a0a;
  --logo-filter: invert(1);
}

:root[data-theme="dark"] {
  --paper: #050505;
  --ink: #f5f5f2;
  --logo-filter: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  transition: color 300ms ease, background-color 300ms ease;
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 270px;
  padding: 0 var(--page);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.nav__link {
  position: relative;
}

.nav__link::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  display: block;
  width: 128px;
  height: 128px;
  overflow: hidden;
  transition: transform 300ms ease;
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter 300ms ease;
}

.nav--right {
  justify-content: flex-end;
}

.theme-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.theme-toggle span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 300ms ease;
}

:root[data-theme="dark"] .theme-toggle span {
  transform: scale(0.55);
}

.hero {
  display: flex;
  min-height: calc(100vh - 195px);
  flex-direction: column;
  justify-content: center;
  padding: 4vh var(--page) 12vh;
}

.eyebrow,
.section-label {
  margin: 0 0 26px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 1200px;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(58px, 10.5vw, 158px);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2px #101010;
}

.scroll-hint {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 22px;
  margin-top: 55px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-hint span {
  font-size: 24px;
  transition: transform 250ms ease;
}

.scroll-hint:hover span {
  transform: translateY(7px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 var(--page) var(--page);
}

.project {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1c1c1c;
}

.project--wide {
  aspect-ratio: 16 / 9;
}

.project--tall {
  aspect-ratio: 4 / 5;
}

.project--short {
  aspect-ratio: 2 / 1;
}

.project--portrait {
  aspect-ratio: 4 / 5;
}

.work-grid .project__meta {
  padding: clamp(16px, 2vw, 30px);
}

.work-grid .project__meta h2 {
  max-width: 95%;
  font-size: clamp(17px, 2.15vw, 34px);
  line-height: 0.96;
}

.project--portrait img {
  object-position: center;
}

.project--reel-wide img {
  object-position: center;
}

.project > a {
  position: absolute;
  inset: 0;
}

.project img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transform: scale(1.001);
  transition: filter 650ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.project__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 70%));
  opacity: 0;
  transition: opacity 400ms ease;
}

.project__meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 42px);
  color: #fff;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.project__meta span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.project__meta h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(25px, 4vw, 56px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.project__meta b {
  font-size: 12px;
  font-weight: 400;
}

.project:hover img {
  filter: saturate(1.05);
  transform: scale(1.045);
}

.project:hover .project__shade,
.project:hover .project__meta {
  opacity: 1;
}

.project:hover .project__meta {
  transform: translateY(0);
}

.about {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  padding: 150px var(--page) 190px;
}

.about__copy {
  max-width: 1000px;
}

.about h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.about__copy p {
  max-width: 540px;
  margin: 45px 0 0 auto;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
}

footer {
  padding: 80px var(--page) 35px;
  color: var(--paper);
  background: var(--ink);
  transition: color 300ms ease, background-color 300ms ease;
}

footer > a {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(30px, 6vw, 92px);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  border-bottom: 0.08em solid currentColor;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 130px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

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

.cursor.is-hovering {
  width: 44px;
  height: 44px;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 20px;
    min-height: 190px;
  }

  .nav--left {
    grid-column: 2;
    justify-content: flex-end;
  }

  .logo {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 86px;
    height: 86px;
    transform: none;
  }

  .logo:hover {
    transform: scale(1.03);
  }

  .nav--right {
    position: fixed;
    z-index: 30;
    right: 18px;
    bottom: 18px;
    display: block;
  }

  .nav--right .nav__link {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    background: var(--paper);
  }

  .hero {
    min-height: calc(100svh - 130px);
  }

  .hero h1 {
    font-size: clamp(52px, 16.5vw, 100px);
    line-height: 0.88;
  }

  .hero h1 em {
    -webkit-text-stroke-width: 1.3px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .project,
  .project--wide,
  .project--tall,
  .project--short {
    aspect-ratio: 4 / 5;
  }

  .project--wide,
  .project--reel-wide {
    aspect-ratio: 16 / 9;
  }

  .project__shade,
  .project__meta {
    opacity: 1;
  }

  .project__meta {
    transform: none;
  }

  .about {
    grid-template-columns: 1fr;
    padding-top: 100px;
    padding-bottom: 120px;
  }

  .about__copy p {
    margin-left: 0;
  }

  footer {
    padding-top: 80px;
  }

  .footer__bottom {
    margin-top: 90px;
  }

  .cursor {
    display: none;
  }
}

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

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