.project-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--r-lg);
  text-align: left;
  color: inherit;
}

.project-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 10px);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -20px 40px rgba(0, 0, 0, 0.12);
}

.project-card__glyph {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.3), 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-slow) var(--ease-spring);
}

.project-card__cover.has-image,
.sheet__cover.has-image {
  position: relative;
  overflow: hidden;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-spring);
}

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

.project-card__glyph[hidden],
.sheet__glyph[hidden] {
  display: none;
}

.project-card__badge {
  z-index: 1;
}

.project-card__glyph.is-media,
.sheet__glyph.is-media {
  display: grid;
  place-items: center;
  width: 42%;
  max-width: 160px;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.project-card__glyph.is-media img,
.project-card__glyph.is-media svg,
.sheet__glyph.is-media img,
.sheet__glyph.is-media svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 650;
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 10px 10px;
}

.project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-card__subtitle {
  color: var(--text-2);
  font-size: 0.95rem;
}
