/* Projects gallery — completed installations */
.projects-gallery {
  background: var(--surface);
}

.projects-gallery .section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(26, 26, 26, 0.07);
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card figcaption {
  flex: 1;
  position: relative;
  padding: 18px 20px 22px;
  background: var(--surface);
}

.project-card figcaption span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-card figcaption strong {
  display: block;
  font-weight: 620;
  font-variation-settings: "wdth" 108;
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.project-card figcaption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.project-points li {
  padding: 8px 14px;
  color: var(--olive);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(83, 107, 92, 0.1);
  border-radius: 999px;
}

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

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    aspect-ratio: 4 / 5;
  }
}
