.profile-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: #102338;
}

.profile-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
  transition: transform .7s cubic-bezier(.2, .65, .2, 1);
  filter: saturate(.92) contrast(1.02);
}

.profile-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 37, .42), rgba(8, 24, 40, .03) 34%, rgba(7, 19, 33, .04) 55%, rgba(6, 19, 34, .92));
}

.profile-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(90, 221, 226, .12), transparent 32%, transparent 70%, rgba(35, 132, 167, .10));
  mix-blend-mode: screen;
}

.profile-card:hover .profile-photo {
  transform: scale(1.045);
}

.profile-top,
.profile-bottom {
  position: relative;
  z-index: 3;
  padding: 1.45rem 1.55rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}

.profile-top {
  background: linear-gradient(180deg, rgba(5, 17, 29, .30), transparent);
}

.profile-bottom {
  margin-top: auto;
  background: linear-gradient(180deg, transparent, rgba(5, 17, 29, .76) 24%);
}

.profile-bottom > p {
  margin-bottom: 1rem;
}

.profile-degree {
  padding-bottom: .1rem;
}

@media (max-width: 950px) {
  .profile-top,
  .profile-bottom {
    padding: 1.2rem;
  }

  .profile-photo {
    object-position: center 40%;
  }
}

@media (max-width: 680px) {
  .profile-top,
  .profile-bottom {
    padding: 1.15rem 1.25rem;
  }

  .profile-photo {
    object-position: center 38%;
  }
}

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