.project-card {
  --card-accent: #dedee3;
  padding: 28px;
  background: #111215;
  align-items: flex-start;
}

.card-photo { --card-accent: #e4e4e8; }
.card-architecture { --card-accent: #e0b8b4; }
.card-interior { --card-accent: #d9bf8e; }
.card-venture { --card-accent: #ff6854; }

.project-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .9s var(--ease);
}

.card-photo .project-cover {
  object-position: 53% center;
  filter: contrast(1.04) saturate(.96);
}

.card-architecture .project-cover {
  object-position: 51% center;
  filter: saturate(.96) contrast(.98);
}

.card-photo::before,
.card-architecture::before {
  background: none;
}

.project-card::after {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .2) 0%, transparent 28%),
    linear-gradient(0deg, rgba(5, 6, 8, .3) 0%, transparent 52%);
}

.card-architecture::after {
  background:
    linear-gradient(180deg, rgba(25, 22, 23, .1) 0%, transparent 30%),
    linear-gradient(0deg, rgba(25, 22, 23, .18) 0%, transparent 50%);
}

.project-card:hover .project-cover {
  transform: scale(1.045);
  filter: contrast(1.02) saturate(.92);
}

.project-number,
.project-arrow {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: rgba(255, 255, 255, .9);
  background: rgba(9, 10, 12, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(9px) saturate(120%);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
}

.project-number {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  opacity: 1;
}

.project-arrow {
  top: 28px;
  right: 28px;
  font-size: 18px;
}

.project-content {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-width: min(72vw, 330px);
  max-width: min(86vw, 430px);
  padding: 23px 25px 25px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 19px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, .22) 0%, rgba(7, 8, 11, .12) 55%, rgba(7, 8, 11, .07) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .018));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .11), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.project-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  backdrop-filter: blur(11px) saturate(112%);
  -webkit-backdrop-filter: blur(11px) saturate(112%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, .33) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, .33) 100%);
}

.project-content::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 42px;
  height: 1px;
  margin-bottom: 21px;
  border-radius: 2px;
  background: var(--card-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--card-accent) 60%, transparent);
}

.project-content small {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: var(--card-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.2;
  opacity: 1;
  text-transform: uppercase;
}

.project-content strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(35px, 4vw, 68px);
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: .98;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .48), 0 0 2px rgba(0, 0, 0, .26);
}

.project-content em {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .73);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .project-card {
    min-height: 500px;
    padding: 20px;
  }

  .project-arrow {
    top: 20px;
    right: 20px;
  }

  .project-number,
  .project-arrow {
    width: 40px;
    height: 40px;
  }

  .project-content {
    min-width: min(82vw, 330px);
    max-width: calc(100vw - 56px);
    padding: 22px 22px 24px;
    border-radius: 18px;
  }

  .project-content::before {
    margin-bottom: 17px;
  }

  .project-content strong {
    font-size: clamp(38px, 13vw, 58px);
    letter-spacing: -.055em;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .project-content::before { box-shadow: 0 0 14px rgba(255, 255, 255, .2); }
}
