.work-hero {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  padding: 30px 64px 64px;
  background: var(--project-dark);
  color: var(--linen);
}

.work-hero h1 {
  width: 100%;
  min-height: 174px;
  margin: 0;
  font: 400 48px/58px var(--serif);
  letter-spacing: -2px;
}

.work-hero__bottom {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.work-hero__bottom p {
  width: 608px;
  flex: 0 1 608px;
  margin: 0;
  font: 400 16px/20px var(--serif);
  letter-spacing: -.64px;
}

.featured-work {
  display: flex;
  flex-direction: column;
  gap: 96px;
  overflow: clip;
  padding: 96px 64px 128px;
  background: var(--linen);
  color: var(--ink);
}

.featured-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 613px;
  gap: 48px;
}

.featured-work__grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-project {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.featured-project__media {
  position: relative;
  display: block;
  height: 431px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.featured-project__media > img,
.featured-project__media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.75,.2,1);
}

.featured-project__media-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.featured-project__media--arcade {
  background: var(--blue-fg) url("assets/arcade/swirl.webp") center / cover;
}

.featured-project__media--arcade > img {
  position: absolute;
  top: 27px;
  left: 50%;
  width: 254px;
  height: 550px;
  max-width: none;
  border-radius: 24px;
  object-fit: cover;
  transform: translateX(-50%);
}

.featured-project__media--poppy {
  background: var(--blue-fg);
}

.featured-project__media--mead {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("assets/fabric.webp") repeat;
}

.featured-project__media--mead > img {
  width: min(270px, calc((100% - 32px) / 1.3));
  height: auto;
  object-fit: contain;
  transition: transform 450ms cubic-bezier(.2,.75,.2,1);
}

.featured-project > p {
  margin: 0;
  font: 400 16px/24px var(--caption);
  letter-spacing: -.16px;
}

.project-archive {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 48px;
  overflow: clip;
  margin-top: -1px;
  padding: 128px 64px;
  background: var(--linen);
}

.project-archive__motif {
  display: flex;
  height: 91px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.project-archive__motif img {
  width: 149.126px;
  height: 203.752px;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: difference;
  rotate: 129.78deg;
  pointer-events: none;
}

.project-archive__heading {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.project-archive__heading p {
  height: 24px;
  margin: 0;
  color: var(--ink);
  font: 400 24px/30px var(--serif);
}

.project-archive__heading h2 {
  margin: 0;
  color: var(--project-dark);
  font: 400 96px/116px var(--serif);
}

.featured-experiment {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 64px;
}

.featured-experiment__media {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(697px, 100%);
  aspect-ratio: 697 / 538;
  flex: none;
  border-radius: 23px;
}

.featured-experiment__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.75,.2,1);
}

.featured-experiment > p {
  width: min(650px, 100%);
  margin: 0;
  color: var(--ink);
  font: 400 16px/24px var(--caption);
  letter-spacing: -.16px;
}

.featured-experiment__book.text-link {
  color: var(--red-fg);
  font-weight: 600;
}

.featured-experiment__book.text-link::after {
  top: auto;
  bottom: 2px;
  display: block;
}

.older-projects {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
}

.older-projects h2 {
  height: 24px;
  margin: 0;
  color: var(--muted-heading);
  font: 400 24px/30px var(--serif);
}

.older-projects__links {
  display: flex;
  width: min(566px, 100%);
  flex-direction: column;
}

@media (hover: hover) {
  .featured-project__media:hover > img:not([src*="hero-phone"]):not([src*="mead-flyer"]),
  .featured-project__media:hover > video {
    transform: scale(1.025);
  }

  .featured-project__media--mead:hover > img {
    transform: rotate(5deg);
  }
}

@media (max-width: 1100px) {
  .featured-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .work-hero {
    padding-inline: 24px;
  }

  .featured-work {
    padding: 96px 24px 128px;
  }

  .featured-work__grid {
    grid-template-columns: 1fr;
    gap: 64px;
    margin-top: 0;
  }

  .featured-project__media {
    min-height: 300px;
  }

  .project-archive {
    padding-inline: 24px;
  }

  .project-archive__heading h2 {
    font-size: min(96px, calc((100vw - 48px) / 7.5));
    line-height: 1.2;
  }
}

@media (max-width: 700px) {
  .work-hero {
    align-items: stretch;
    gap: 48px;
    padding-top: 30px;
  }

  .work-hero h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .work-hero__bottom {
    flex-direction: column;
    gap: 32px;
  }

  .work-hero__bottom p {
    width: 100%;
    flex-basis: auto;
  }
}
