/* ==========================================================================
   Faculty and assessors (pages/faculty.php). Prefix pf-.

   A portrait gallery: the opener's staggered portraits (di-opener.css,
   .po-portraits), then horizontal profile cards — an arched portrait beside
   the verified details — and an editorial set of links to finish.
   ========================================================================== */

/* Monogram in place of a photograph (never a stand-in face). */
.pf-mono { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #1d3a63, #08172f) !important; }
.pf-mono span { position: relative; font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 800; color: var(--color-ndi-gold-400); }
.pf-mono::after { display: none; }

/* --- Profiles ---------------------------------------------------------------- */
.pf-people { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1100px) { .pf-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-person {
  position: relative;
  border-radius: 24px;
  border-color: var(--color-ndi-line);
  box-shadow: 0 30px 60px -48px rgb(8 23 47 / 0.6);
  transition: transform 260ms var(--ease-out-expo, ease), box-shadow 260ms ease, border-color 260ms ease;
}
.pf-person:hover { transform: translateY(-3px); border-color: rgb(214 174 87 / 0.6); box-shadow: 0 36px 70px -46px rgb(8 23 47 / 0.7); }
.pf-person .dx-person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 1.25rem 1.25rem 0;
  border-radius: 999px 999px 18px 18px;
  background: radial-gradient(circle at 50% 30%, #1d3a63, #08172f);
}
.pf-person .dx-person-photo img { position: absolute; inset: 0; object-position: 50% 22%; }
.pf-person .dx-person-initials { font-size: 4rem; font-weight: 800; }
.pf-person .dx-person-body { display: flex; flex-direction: column; padding: 1.5rem 1.6rem 1.75rem; }
.pf-person .dx-card-kicker { display: inline-flex; align-items: center; gap: 0.5rem; }
.pf-person .dx-card-kicker::before { content: ""; width: 1.25rem; height: 2px; background: var(--color-ndi-gold-500); }
.pf-person .dx-person-name { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.pf-person .dx-person-role { font-size: 1.02rem; }
.pf-person .dx-card-text { font-size: 1rem; line-height: 1.75; }
.pf-areas-k { margin: 1.25rem 0 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ndi-ink-500); }
.pf-areas { margin-top: 0; }
.pf-areas .dx-tag { border-color: rgb(214 174 87 / 0.6); background: var(--color-ndi-gold-50); color: var(--color-ndi-ink-900); }
@media (min-width: 640px) {
  .pf-person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .pf-person .dx-person-photo { margin: 1.5rem 0 1.5rem 1.5rem; }
  .pf-person .dx-person-body { padding: 2rem 1.75rem 2rem 1.75rem; }
}

/* --- More about the Institute: large editorial links ------------------------- */
.pf-more { padding-block: var(--section-y-tight); background: var(--color-ndi-panel); border-top: 1px solid var(--color-ndi-line); }
.pf-more-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 700; letter-spacing: 0.02em; color: var(--color-ndi-ink-700); }
.pf-more-list { margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-ndi-line-strong); }
.pf-more-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  border-bottom: 1px solid var(--color-ndi-line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-ndi-ink-900);
  text-decoration: none;
  transition: color 200ms ease, padding-left 0ms;
}
.pf-more-list a span { transition: transform 300ms var(--ease-out-expo, ease); }
.pf-more-list a svg { flex: none; color: var(--color-ndi-gold-700); transition: transform 300ms var(--ease-out-expo, ease); }
.pf-more-list a:hover span { transform: translateX(0.75rem); }
.pf-more-list a:hover svg { transform: translateX(0.5rem); }
.pf-more-list a:hover { color: var(--color-ndi-gold-700); }
.pf-more-list a:focus-visible { outline: 2px solid var(--color-ndi-gold-600); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .pf-person, .pf-more-list a span, .pf-more-list a svg { transition: none; }
  .pf-person:hover, .pf-more-list a:hover span, .pf-more-list a:hover svg { transform: none; }
}
