/* ─── Cards ─────────────────────────────────────────────────────────────────
   Shared hover and transition rules for project cards and post cards.
   ─────────────────────────────────────────────────────────────────────────── */

/* Project card grid */
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 48px 80px;
}

/* Project cards */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}
.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-accent, #f5f5f5);
  transition: opacity 200ms ease;
}
.card-img img,
.card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card:hover .card-img { opacity: 0.88; }
.project-card.hidden { display: none; }

/* Tag row — single line with +N overflow */
.card-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  gap: 6px;
  height: 1.3em;
  font-size: 14px;
  color: #535353;
  line-height: 1.3;
}
.card-tag {
  white-space: nowrap;
  flex-shrink: 0;
}
.card-tag-sep {
  flex-shrink: 0;
  opacity: 0.5;
}
.card-tag-more {
  flex-shrink: 0;
  margin-left: 2px;
}

/* Lead (team contact) */
.section-lead {
  padding: 80px 48px;
}
.section-lead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-lead__card {
  width: 280px;
}
.section-lead__name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
}
.section-lead__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E6E6E6;
}
.section-lead__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.section-lead__meta {
  font-size: 14px;
  color: #535353;
  margin: 12px 0 0;
  text-align: right;
}
.section-lead__meta a {
  color: #535353;
  text-decoration: none;
  transition: color 200ms ease;
}
.section-lead__meta a:hover {
  color: #090909;
}

/* Blog / post cards */
.post-img {
  aspect-ratio: 1 / 1;
  transition: opacity 200ms ease;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card:hover .post-img { opacity: 0.88; }
.post-card { transition: opacity 200ms ease; }
.post-card.hidden { display: none; }
