.project-list {
  display: grid;
  gap: 40px;
}

.project-list-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}

.project-list-card__image {
  aspect-ratio: 1.35;
  border-radius: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.project-list-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-list-card:hover .project-list-card__image img {
  transform: scale(1.025);
}

.project-list-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  padding-top: 2px;
}

.project-list-card__title {
  margin: 0;
  max-width: none;
}

.project-list-card__meta {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 0;
  align-content: start;
  justify-items: start;
}

@media (max-width: 980px) {
  .page-hero {
    padding: calc(var(--header-height) + 6px) 0 0;
  }

  .page-hero.stack-24 > * + * {
    margin-top: 10px;
  }

  main > .section {
    padding: 0;
  }
  .projects-page .project-list {
    width: 100%;
    gap: 0;
  }

  .mobile-card-switch {
    position: relative;
    width: 100%;
  }

  .mobile-card-switch__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 8px) 16px 8px;
    box-sizing: border-box;
  }

  .mobile-card-switch__cards {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--header-height) - 16px);
    overflow: hidden;
  }

  .mobile-card-switch__card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 48%) minmax(0, 52%);
    gap: 14px;
    padding: 14px 14px 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translate3d(0, 110%, 0) scale(1);
    pointer-events: none;
    will-change: transform, opacity;
    box-sizing: border-box;
  }

  .mobile-card-switch__card.is-active {
    pointer-events: auto;
  }

  .mobile-card-switch__media {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f3f3f3;
  }

  .mobile-card-switch__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-card-switch__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  .mobile-card-switch__content-main {
    min-height: 0;
  }

  .mobile-card-switch__title {
    margin: 0;
  }

  .mobile-card-switch__meta {
    display: grid;
    gap: 10px;
    align-content: start;
  }

  .mobile-card-switch__cta {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
  }
}

/* Final client revisions: projects list reference layout */
body.projects-page {
  --bg: #bfc0c2;
  background: #bfc0c2;
  color: #fff;
}

.projects-page main > .section {
  padding-top: 144px;
  padding-bottom: 96px;
}

.projects-page .project-list {
  gap: 72px;
}

.projects-page .project-list-card {
  grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1.08fr);
  gap: 56px;
  align-items: start;
}

.projects-page .project-list-card__image {
  aspect-ratio: 1.32;
  background: rgba(255, 255, 255, 0.16);
}

.projects-page .project-list-card__content {
  padding-top: 6px;
  color: #fff;
}

.projects-page .project-list-card__title {
  color: #fff;
  font-size: clamp(19.8px, 1.575vw, 27px);
  line-height: 1.18;
  letter-spacing: 0.26em;
}

.projects-page .project-list-card__meta {
  margin-top: 22px;
  gap: 0;
  color: #fff;
}

.projects-page .card-meta {
  color: #fff;
  letter-spacing: 0.24em;
}

/* Final client batch: tighter first project and lighter fitting project titles */
.projects-page main > .section {
  padding-top: var(--page-start-space);
}

.projects-page .project-list-card__title {
  font-size: clamp(15.3px, 1.125vw, 19.8px);
  line-height: 1.2;
  letter-spacing: 0.205em;
  overflow-wrap: normal;
  word-break: normal;
}

.projects-page .mobile-card-switch__title {
  letter-spacing: 0.205em;
}
