.project-header {
  display: flex;
  min-height: 26.875rem;
  flex-direction: column;
  gap: 1.75rem;
  padding-block: 3.625rem 2.75rem;
}

.project-header__main {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.project-header h1 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.project-header__description {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.25;
}

.project-meta {
  display: flex;
  gap: 3.375rem;
}

.project-meta div {
  display: flex;
  min-width: 5.625rem;
  flex-direction: column;
  gap: 0.5rem;
}

.project-meta dt {
  color: var(--color-accent);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-meta dd {
  font-size: 0.875rem;
  line-height: 1.25;
}

.project-hero {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
}

.project-hero > img,
.project-hero > video,
.project-hero > .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-gallery {
  display: grid;
  gap: 1.125rem;
  padding-block: 1.125rem 2.875rem;
}

.gallery-block {
  display: grid;
  gap: 1.125rem;
}

.gallery-block figure {
  min-width: 0;
  overflow: hidden;
}

.gallery-block img {
  width: 100%;
  height: auto;
}

.gallery-block--full .media-placeholder {
  aspect-ratio: 16 / 10;
}

.gallery-block--two-column .media-placeholder,
.gallery-block--three-column .media-placeholder {
  aspect-ratio: 3 / 4;
}

.gallery-block--three-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-block--three-column > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.gallery-block--unequal-left .media-placeholder,
.gallery-block--unequal-right .media-placeholder {
  aspect-ratio: 7 / 5;
}

.project-credits {
  padding-block: 2rem;
  border-top: 1px solid var(--color-line);
}

.project-credits h2 {
  font-size: 1.875rem;
}

.project-credits dl,
.project-credits dl div {
  display: grid;
  gap: 0.5rem;
}

.project-credits dl {
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-credits dt {
  color: var(--color-accent);
  font-size: 0.625rem;
  text-transform: uppercase;
}

.next-project {
  min-height: 15rem;
  border-top: 1px solid var(--color-line);
}

.next-project__link {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  gap: 1.125rem;
  padding-block: 3.5rem 3.625rem;
}

.next-project__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.next-project__arrow {
  transition: transform var(--motion-fast) var(--ease-out);
}

.next-project__supporting {
  color: var(--color-subtle);
  font-size: 0.8125rem;
  line-height: 1.25;
}

body[data-page="project"] .contact-section {
  min-height: 20.625rem;
}

@media (hover: hover) and (pointer: fine) {
  .next-project__link:hover .next-project__arrow {
    transform: translateX(0.375rem);
  }
}

@media (min-width: 64rem) {
  .project-header {
    min-height: 22.5rem;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding-block: 5.75rem 4.375rem;
  }

  .project-header__main {
    width: min(100%, 48.75rem);
    gap: 1.25rem;
  }

  .project-header h1 {
    font-size: 3.625rem;
  }

  .project-header__description {
    width: min(100%, 43.75rem);
    font-size: 1.125rem;
  }

  .project-meta {
    width: 20.625rem;
    flex-direction: column;
    gap: 2.125rem;
  }

  .project-meta div {
    gap: 0.5rem;
  }

  .project-meta dt {
    font-size: 0.6875rem;
  }

  .project-meta dd {
    font-size: 1rem;
  }

  .project-gallery {
    gap: 1.75rem;
    padding-block: 2rem 3.5rem;
  }

  .gallery-block {
    gap: 1.75rem;
  }

  .gallery-block--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-block--three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .gallery-block--three-column > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .gallery-block--unequal-left {
    grid-template-columns: 2fr 1fr;
  }

  .gallery-block--unequal-right {
    grid-template-columns: 1fr 2fr;
  }

  .gallery-block--unequal-left .media-placeholder,
  .gallery-block--unequal-right .media-placeholder {
    height: 38.75rem;
    aspect-ratio: auto;
  }

  .next-project {
    min-height: 20.625rem;
  }

  .next-project__link {
    gap: 1.5rem;
    padding-block: 5.125rem 5.375rem;
  }

  .next-project__title {
    font-size: 3.5rem;
  }

  .next-project__supporting {
    font-size: 0.9375rem;
  }

  body[data-page="project"] .contact-section {
    min-height: 24.375rem;
  }

  body[data-page="project"] .contact-section h2 {
    font-size: 2.625rem;
    line-height: 1.25;
  }
}

