.page-portfolio-archive {
  background: #fff;
  color: #2f2f2f;
}

.archive-main {
  overflow: hidden;
}

.archive-hero {
  padding: 72px 0 58px;
  background: #f4f4f4;
}

.archive-hero__inner {
  max-width: 940px;
  text-align: center;
}

.archive-hero__eyebrow {
  margin: 0 0 16px;
  color: #b94b45;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.archive-hero__title {
  margin: 0 0 22px;
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}

.archive-hero__text {
  margin: 0;
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.22;
}

.archive-hero__note {
  margin: 22px 0 0;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: #5d5d5d;
  font-size: 17px;
  line-height: 1.55;
}

.archive-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

.archive-hero__link {
  color: #b94b45;
  font-weight: 700;
  text-decoration: none;
}

.archive-hero__link:hover {
  text-decoration: underline;
}

.archive-projects {
  padding: 70px 0;
}

.archive-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
}

.archive-section-head h2,
.archive-contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.archive-section-head p,
.archive-contact p {
  margin: 0;
  color: #5d5d5d;
  font-size: 17px;
  line-height: 1.5;
}

.archive-section-head p {
  max-width: 34rem;
  justify-self: center;
  text-align: center;
}

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

.archive-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: #2f2f2f;
  text-decoration: none;
  background: #f3f3f3;
  border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .12);
}

.archive-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
}

.archive-card__title {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.archive-contact {
  padding: 0 0 80px;
}

.archive-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(216, 142, 138, .2) 0%, rgba(244, 244, 244, .96) 42%, #f4f4f4 100%);
  border: 1px solid rgba(216, 142, 138, .38);
  border-left: 6px solid #d88e8a;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
}

.archive-contact p {
  max-width: 720px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .archive-section-head,
  .archive-contact__inner {
    grid-template-columns: 1fr;
  }

  .archive-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-hero {
    padding: 46px 0 42px;
  }

  .archive-projects {
    padding: 48px 0;
  }

  .archive-projects__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .archive-card__title {
    min-height: auto;
    padding: 18px;
    font-size: 17px;
  }

  .archive-contact {
    padding-bottom: 54px;
  }

  .archive-contact__inner {
    padding: 24px;
  }
}

.archive-projects .portfolio-grid {
  margin-top: 0;
}

.archive-projects .portfolio-card {
  background-color: #f3f3f3;
}

.archive-projects__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 2rem;
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: url("../images/branding/projects/button-bg.png") center / 100% 100% no-repeat;
  color: #242424;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
  transition: filter .2s ease;
}

.archive-projects__button:hover,
.archive-projects__button:focus-visible {
  filter: brightness(.95);
}
