/* Plate — person card. Each plate is a <button> that opens the profile (css/components/profile.css). */

.crew {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 3rem;
}

.crew-2 {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 28px 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--w05);
  background: var(--w05);
  overflow: hidden;
  text-align: left;
  transition:
    border-color 0.6s,
    transform 0.6s var(--ease);
}

.plate > * {
  position: relative;
}

.plate:hover {
  border-color: var(--accent-25);
  transform: translateY(-4px);
}

.plate:focus-visible {
  outline: 1px solid var(--accent-50);
  outline-offset: 3px;
}

.plate .sp {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--accent-12), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}

.plate:hover .sp {
  opacity: 1;
}

/* Avatar: the photo when there is one, otherwise initials on a tinted orb. */
.plate .av {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--t, var(--accent)) 40%, transparent);
  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--t, var(--accent)) 45%, transparent),
    transparent 70%
  );
  margin-bottom: 22px;
  overflow: hidden;
}

.plate .av b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.plate .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate .nm {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.plate .r {
  display: block;
  margin-top: 6px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--accent-pale);
}

.plate .y {
  display: block;
  margin-top: 8px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.plate .bid {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.plate .go {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--w18);
  color: #fff;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.plate .go svg {
  width: 14px;
  height: 14px;
}

.plate:hover .go {
  background: #fff;
  border-color: #fff;
  color: #050505;
}

/* Faculty plate: large centred card above the leads. */
.crew-faculty {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 3rem;
}

.crew-faculty + .crew {
  margin-top: 24px;
}

.plate.faculty {
  align-items: center;
  width: min(440px, 100%);
  padding: 40px 32px 34px;
  text-align: center;
}

.plate.faculty .av {
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
}

.plate.faculty .av b {
  font-size: 2rem;
}

.plate.faculty .nm {
  font-size: 1.8rem;
}

.plate.faculty .r {
  margin-top: 10px;
}

.plate.faculty .go {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
}

/* Lead plate: wide card with the headline. */
.plate.lead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.plate.lead .av {
  width: 84px;
  height: 84px;
  margin: 0;
}

.plate.lead .av b {
  font-size: 1.6rem;
}

.plate.lead .hl {
  display: block;
  margin-top: 10px;
  max-width: 44ch;
  line-height: 1.55;
  font-size: 1rem;
  color: var(--text);
}

.plate.lead .bid {
  display: block;
  margin-top: 12px;
}

.plate.lead .go {
  width: 40px;
  height: 40px;
  align-self: start;
}

@media (max-width: 800px) {
  .crew,
  .crew-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .plate.lead {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 22px;
  }

  .plate.lead .av {
    width: 56px;
    height: 56px;
    align-self: start;
  }

  .plate.lead .av b {
    font-size: 1.15rem;
  }

  .plate.lead .go {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
  }

  .plate.lead .who {
    padding-right: 36px;
  }

  .plate.lead .hl {
    font-size: 0.95rem;
  }
}
