:root {
  --page-x: clamp(24px, 4.3vw, 66px);
  --line: #b9b9b9;
  --text: #050505;
  --muted: #777;
  --bg: #fff;
  --title: 30px;
  --body: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", Helvetica, Arial, sans-serif;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

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

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

h1,
h2,
h3,
strong,
.page-kicker {
  font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-text", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

h1,
h2 {
  font-size: var(--title);
  line-height: 1;
}

h3 {
  font-size: var(--body);
  line-height: 1;
}

.site-header {
  position: relative;
  min-height: 186px;
  border-bottom: 1px solid var(--line);
}

.main-nav {
  position: absolute;
  top: 53px;
  left: var(--page-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.04;
}

.nav-link {
  position: relative;
  width: fit-content;
  font-size: 12px;
  font-weight: 400;
  transition: opacity 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.brand {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 92px;
  transform: translateX(-50%);
}

.brand-logo {
  display: block;
  width: 100%;
  fill: #010101;
}

.brand-logo-text {
  font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-text", Helvetica, Arial, sans-serif;
  font-size: 91.15px;
  font-weight: 400;
  letter-spacing: 0;
}

.about-hero {
  position: relative;
  min-height: 812px;
  border-bottom: 1px solid var(--line);
}

.about-hero h1 {
  position: absolute;
  top: 332px;
  left: 13.5vw;
}

.polaroid {
  position: absolute;
  top: 94px;
  left: 50%;
  width: min(342px, 25vw);
  min-width: 252px;
  transform: translateX(-50%);
}

.polaroid img {
  width: 100%;
  height: auto;
}

.about-name {
  position: absolute;
  top: 332px;
  right: 14.9vw;
}

.about-meta {
  position: absolute;
  bottom: 70px;
  left: var(--page-x);
}

.about-copy {
  position: absolute;
  right: var(--page-x);
  bottom: 70px;
  width: min(510px, 36vw);
}

.work-page {
  padding: 0 var(--page-x);
}

.work-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  min-height: 145px;
  padding-top: 44px;
}

.work-intro h1 {
  font-size: 12px;
}

.work-intro p {
  justify-self: end;
}

.project-section {
  position: relative;
  padding-bottom: 72px;
}

.project-section > h2 {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 430px);
  gap: clamp(40px, 8vw, 122px);
  align-items: end;
  margin-bottom: 84px;
}

.project-row-left {
  grid-template-columns: minmax(230px, 420px) minmax(280px, 1fr);
  align-items: end;
}

.project-row-center {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  margin-top: 20px;
}

.campaign-large {
  width: min(590px, 46vw);
}

.campaign-medium {
  width: min(590px, 46vw);
}

.image-rotator {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.image-rotator img {
  width: 100%;
  opacity: 0;
  transition: opacity 520ms ease, transform 820ms ease;
}

.image-rotator img:not(:first-child) {
  position: absolute;
  inset: 0;
}

.image-rotator img.active {
  opacity: 1;
  transform: scale(1.015);
}

.project-text {
  max-width: 505px;
}

.project-text h3 {
  margin-bottom: 4px;
}

.project-text-centered {
  max-width: 660px;
  text-align: center;
}

.graphics-section {
  padding-top: 18px;
}

.surf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 30px 66px;
  align-items: end;
  width: min(900px, 72vw);
  margin: 0 auto 72px;
}

.surf-grid .surf-logo {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(260px, 24vw);
}

.surf-grid .project-text {
  grid-column: 1 / -1;
  max-width: 620px;
}

.cookbook-project {
  display: grid;
  grid-template-columns: minmax(240px, 345px) minmax(280px, 430px);
  column-gap: clamp(44px, 9vw, 132px);
  row-gap: 20px;
  align-items: end;
  width: min(920px, 78vw);
  margin: 0 auto 72px;
}

.cookbook-cover-static {
  width: 100%;
  max-height: 455px;
  object-fit: contain;
}

.book {
  position: relative;
  perspective: 1300px;
}

.book-stage {
  position: relative;
  transform-style: preserve-3d;
}

.book-stage img {
  width: 100%;
  max-height: 455px;
  object-fit: contain;
  opacity: 0;
  transform: rotateY(-18deg) translateX(16px);
  transition: opacity 420ms ease, transform 520ms ease;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 12%));
}

.book-stage img:not(:first-child) {
  position: absolute;
  inset: 0;
}

.book-stage img.active {
  opacity: 1;
  transform: rotateY(0deg) translateX(0);
}

.book-hit {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookbook-project .project-text {
  grid-column: 2;
  margin-top: 2px;
}

.book-prev {
  left: 0;
}

.book-next {
  right: 0;
}

.poster-project {
  width: min(560px, 52vw);
  margin: 0 auto;
}

.poster-project .project-text {
  margin-top: 22px;
}

.photography-section {
  padding-top: 4px;
}

.still-life-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-bottom: 82px;
}

.still-life-grid img:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1;
}

.still-life-grid img:nth-child(2) {
  grid-column: 3 / 7;
  grid-row: 2;
}

.still-life-grid img:nth-child(3) {
  grid-column: 1 / 5;
  grid-row: 3;
}

.still-life-grid .project-text {
  grid-column: 1 / 5;
  grid-row: 4;
}

.fashion-project {
  width: min(620px, 52vw);
  margin: 0 auto 88px;
}

.editorial-slider {
  overflow: hidden;
}

.editorial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: editorialSlide 22s linear infinite;
}

.editorial-track:hover {
  animation-play-state: paused;
}

.editorial-track img {
  width: min(330px, 38vw);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: grayscale(0.05);
}

.fashion-project .project-text {
  margin-top: 30px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 10px;
}

.world-grid img:nth-child(1) {
  grid-column: 1 / 5;
}

.world-grid img:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}

.world-grid img:nth-child(3) {
  grid-column: 1 / 4;
  grid-row: 3;
}

.world-grid img:nth-child(4) {
  grid-column: 4 / 6;
  grid-row: 3;
}

.world-grid img:nth-child(5) {
  grid-column: 1 / 6;
  grid-row: 4;
}

.world-grid .project-text {
  grid-column: 1 / 4;
  grid-row: 2;
}

.contact-hero {
  position: relative;
  min-height: 638px;
  border-bottom: 1px solid var(--line);
  padding: 17px var(--page-x) 0;
}

.page-kicker {
  font-size: 12px;
}

.contact-hero h1 {
  position: absolute;
  top: 129px;
  left: var(--page-x);
  max-width: 450px;
  font-size: 30px;
  line-height: 1.2;
}

.contact-inquiries {
  position: absolute;
  left: var(--page-x);
  top: clamp(460px, 35.95vw, 519px);
}

.contact-image {
  position: absolute;
  top: 126px;
  right: var(--page-x);
  width: min(571px, 38vw);
}

.contact-image img {
  width: 100%;
  aspect-ratio: 1.43 / 1;
  object-fit: cover;
  filter: grayscale(1);
}

.contact-image figcaption {
  margin-top: 12px;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: start;
  min-height: 186px;
  padding: 79px var(--page-x) 24px;
}

.footer-links {
  display: flex;
  gap: 38px;
  justify-self: center;
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

.footer-bottom {
  position: absolute;
  left: var(--page-x);
  right: var(--page-x);
  bottom: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.footer-bottom p:last-child {
  display: flex;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes editorialSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

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

  .site-header {
    min-height: 150px;
  }

  .main-nav {
    top: 34px;
  }

  .brand {
    top: 34px;
    right: 20px;
    left: auto;
    width: 72px;
    transform: none;
  }

  .main-nav {
    max-width: calc(100% - 132px);
  }

  .about-hero {
    min-height: auto;
    padding: 64px var(--page-x) 58px;
  }

  .about-hero h1,
  .polaroid,
  .about-name,
  .about-meta,
  .about-copy {
    position: static;
  }

  .about-hero {
    display: grid;
    gap: 28px;
  }

  .polaroid {
    justify-self: center;
    width: min(310px, 82vw);
    min-width: 0;
    transform: none;
  }

  .about-copy {
    width: auto;
  }

  .work-intro {
    min-height: 104px;
  }

  .project-row,
  .project-row-left,
  .cookbook-project,
  .surf-grid,
  .still-life-grid,
  .world-grid {
    display: block;
    width: 100%;
  }

  .campaign-large,
  .campaign-medium,
  .poster-project,
  .fashion-project {
    width: 100%;
  }

  .project-text,
  .project-text-centered {
    max-width: none;
    margin: 10px 0 42px;
    text-align: left;
  }

  .surf-grid img,
  .still-life-grid img,
  .world-grid img {
    width: 100%;
    margin-bottom: 18px;
  }

  .surf-grid .surf-logo {
    width: 160px;
    margin: 0 auto 30px;
  }

  .book {
    margin-bottom: 12px;
  }

  .editorial-track img {
    width: 72vw;
    height: 360px;
  }

  .contact-hero {
    min-height: auto;
    padding: 17px var(--page-x) 58px;
  }

  .contact-hero h1,
  .contact-inquiries,
  .contact-image {
    position: static;
  }

  .contact-hero h1 {
    margin: 92px 0 48px;
  }

  .contact-inquiries {
    margin-bottom: 48px;
  }

  .contact-image {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 250px;
    padding-top: 54px;
  }

  .footer-links {
    justify-self: start;
    gap: 24px;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }
}
