/* Selected Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ebf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 107, 255, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  border-color: #b8d2ff;
  box-shadow: 0 18px 38px rgba(30, 107, 255, .14);
  transform: translateY(-5px);
}

.project-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f7fb;
  border-bottom: 1px solid #e9eff7;
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.025);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 21px;
}

.project-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.project-number {
  color: var(--blue);
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.project-category {
  color: #7f8da3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: right;
}

.project-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: Sora, sans-serif;
  font-size: 17px;
  letter-spacing: -.05em;
}

.project-card p {
  min-height: 54px;
  margin: 0;
  color: #748198;
  font-size: 11px;
  line-height: 1.65;
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.project-link span {
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}

.project-link:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 850px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
  }

  .project-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .project-card-body {
    padding: 18px 18px 20px;
  }

  .project-card p {
    min-height: 0;
  }

  .project-link {
    min-height: 44px;
    margin-top: 14px;
  }
}