.projects-page {
  background: var(--bg-mid);
  border-bottom: 1px solid #222;
}

.projects-hero {
  width: min(calc(100% - 48px), 780px);
  margin-inline: auto;
  padding: 104px 0 78px;
  text-align: center;
}

.projects-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 850;
}

.projects-hero > p:last-child {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.projects-section {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 0 0 112px;
}

.projects-section__heading {
  margin-bottom: 48px;
  text-align: center;
}

.projects-section__heading h2 {
  margin: 0;
}

.projects-section__heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s ease, transform .2s ease;
}

.project-card:hover {
  border-color: var(--yellow-deep);
  transform: translateY(-3px);
}

.project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #202020;
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
  transition: filter .2s ease, transform .2s ease;
}

.project-card:hover .project-card__media img {
  filter: saturate(1);
  transform: scale(1.03);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px 32px;
}

.project-card__type {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.project-card h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.project-card__body > p:not(.project-card__type) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.project-card__link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  color: #fff;
}

.projects-footer {
  background: var(--bg);
}

@media (max-width: 720px) {
  .projects-hero,
  .projects-section {
    width: min(calc(100% - 32px), var(--max));
  }

  .projects-hero {
    padding: 78px 0 54px;
  }

  .projects-section {
    padding-bottom: 78px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card__body {
    padding: 26px 24px 28px;
  }
}
