/* =============================================================
   cards.css — Project cards, publication cards, manifesto strip
   ============================================================= */

/* --- Project grid ------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #ccc;
}

.projects-grid--full {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
}

/* --- Project card ------------------------------------------- */
.project-card {
  background: var(--soft-ivory);
  overflow: hidden;
  cursor: none;
}

.project-card__img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-cinematic);
  filter: grayscale(100%) contrast(100%) brightness(90%);
}

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

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--space-s) 4px;
  padding-left: 0px;
}

.project-card__type {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(5, 5, 5, 0.5);
}
/* --- Manifesto strip --------------------------------------- */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: #dbd7cc;
}

.manifesto__img {
  overflow: hidden;
  background: var(--forest-green);
}

.manifesto__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-cinematic);
}

.manifesto:hover .manifesto__img img {
  transform: scale(1.02);
}

.manifesto__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  gap: 40px;
}

.manifesto__quote {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.25;
}

/* --- Publication grid -------------------------------------- */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.publications-grid--full {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* --- Publication card -------------------------------------- */
.pub-card {
  background: var(--pub-bg);
  overflow: hidden;
  cursor: none;
  position: relative;
  aspect-ratio: 5.5 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.5s var(--ease-cinematic);
}

.pub-card--large {
  aspect-ratio: auto;
  min-height: 340px;
  flex-direction: row;
  align-items: stretch;
}

.pub-card:hover {
  transform: translateY(-4px);
}

.pub-card__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pub-card--large .pub-card__bg {
  position: relative;
  flex: 0 0 220px;
  inset: auto;
}

.pub-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-cinematic);
  mix-blend-mode: multiply;
}

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

.pub-card__content {
  padding: 15px;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 800px) {
  .projects-grid,
  .projects-grid--full {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 24px;
  }
  .publications-grid {
    grid-template-columns: 1fr 1fr;
  }
  .publications-grid--full {
    grid-template-columns: 1fr;
  }
  .pub-card--large {
    flex-direction: column;
  }
  .pub-card--large .pub-card__bg {
    flex: 0 0 220px;
  }
  .manifesto {
    grid-template-columns: 1fr;
  }
  .manifesto__text {
    padding: 40px var(--page-x);
  }
}
