.profile-card-wrap {
  position: relative;
  width: min(100%, 31rem);
  margin-top: clamp(3rem, 7vw, 7rem);
  perspective: 1100px;
}

.profile-card-wrap::before {
  position: absolute;
  inset: 12% 8% -4%;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  filter: blur(55px);
  opacity: 0.7;
  pointer-events: none;
}

.profile-card {
  --profile-rx: 0deg;
  --profile-ry: 0deg;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 243, 0.58);
  background: #171717;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transform: rotateX(var(--profile-rx)) rotateY(var(--profile-ry));
  transform-style: preserve-3d;
  transition: box-shadow 500ms var(--ease), transform 180ms ease-out;
}

.profile-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 58%);
  content: "";
  pointer-events: none;
}

.profile-card:hover {
  box-shadow: 0 42px 95px rgba(0, 0, 0, 0.44);
}

.profile-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.015);
  transition: filter 700ms var(--ease), transform 900ms var(--ease);
}

.profile-card:hover .profile-card__photo {
  filter: grayscale(0.12) contrast(1.02);
  transform: scale(1.045);
}

.profile-card__topline,
.profile-card__identity {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 1.5rem);
  left: clamp(1rem, 4vw, 1.5rem);
  color: #fff;
  transform: translateZ(34px);
}

.profile-card__topline {
  top: clamp(1rem, 4vw, 1.5rem);
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card__status i {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.profile-card__identity {
  bottom: clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.profile-card__handle {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-card h3,
.profile-card p {
  margin: 0;
}

.profile-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.profile-card p {
  margin-top: 0.28rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-card__identity a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #fff;
  background: #fff;
  color: #090909;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease;
}

.profile-card__identity a:hover,
.profile-card__identity a:focus-visible {
  background: #090909;
  color: #fff;
}

@media (max-width: 800px) {
  .profile-card-wrap {
    width: min(100%, 28rem);
    margin-top: 3rem;
  }

  .profile-card {
    transform: none !important;
  }

  .profile-card__identity {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .profile-card__photo {
    transition: none;
  }
}
