.project-hero {
  padding-block: 64px clamp(32px, 5vw, 72px);
}

.project-hero-layout {
  margin-bottom: 32px;
}

.project-hero-label,
.project-hero-details dt {
  font-family: var(--sans);
  font-weight: 650;
}

.project-hero-details dt { font-size: .875rem; }

.project-hero h1 {
  font-family: var(--display);
  width: fit-content;
  max-width: 100%;
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.02;
  margin-block: 16px;
}

.project-hero-description {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  max-width: 52ch;
}

.project-hero-cover {
  position: relative;
  background: #121212;
  aspect-ratio: 3 / 2;
  border-radius: var(--portfolio-card-radius);
  overflow: hidden;
}

.project-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.project-hero-cover:has(> img) { aspect-ratio: auto; }

.project-hero-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0 0 32px;
  padding-block: 32px;
  border-block: 1px solid var(--line);
}

.project-hero-details dd { margin: 8px 0 0; overflow-wrap: anywhere; }

@media (max-width: 58rem) {
  .project-hero-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .project-hero-details > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
  .project-hero-details > div:not(:last-child) { padding-right: 24px; }
  .project-hero-details > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (width > 58rem) {
  .project-hero-details > div { position: relative; }
  .project-hero-details > div + div::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -20px;
    border-inline-start: 1px solid var(--line);
  }
}

@media (min-width: 64rem) {
  .project-hero h1 { font-size: 72px; }
}

.project-hero-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 4px;
  font-size: 16px;
}

.project-hero-label::before { margin-right: 4px; align-self: center; }
.project-hero-year { font-variant-numeric: tabular-nums; }

@media (max-width: 44rem) {
  .project-hero { padding-top: 48px; }
  .project-hero-label { font-size: 12px; }
  .project-hero-description { font-size: 16px; }
}
