.directory__grid article { position: relative; }

.directory__open {
  position: absolute;
  top: 30px;
  right: 50px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #89a9b6;
  border-radius: 50%;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.directory__open span { font: 300 1.9rem/1 var(--head); transform: translateY(-2px); }
.directory__open:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(90deg); }
.directory__open:focus-visible { outline-offset: 4px; }

.bio-dialog {
  width: min(710px, calc(100vw - 36px));
  max-width: 710px;
  max-height: min(760px, calc(100dvh - 36px));
  padding: 0;
  border: 0;
  border-radius: 0 42px 0 42px;
  overflow: auto;
  background: #fff;
  color: var(--deep);
  box-shadow: 0 28px 80px rgba(3, 17, 29, .3);
}

.bio-dialog::backdrop { background: rgba(4, 18, 29, .74); backdrop-filter: blur(3px); }
.bio-dialog[open] { animation: bio-enter .28s ease both; }
@keyframes bio-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.bio-dialog__header {
  position: relative;
  padding: 42px 54px 37px;
  background: #103d58;
  color: #fff;
  border-top: 5px solid var(--gold);
}

.bio-dialog__eyebrow {
  color: #e6c780;
  font: 600 .72rem var(--head);
  letter-spacing: .13em;
}

.bio-dialog__header h2 {
  max-width: 530px;
  margin: 24px 0 10px;
  color: #fff;
  font: 400 clamp(2rem, 4vw, 3rem)/1.12 var(--head);
  letter-spacing: -.025em;
}

.bio-dialog__header p { margin: 0; color: #c4e0ed; font: 500 .98rem/1.4 var(--head); }
.bio-dialog__close {
  position: absolute;
  top: 27px;
  right: 30px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 2rem/1 var(--head);
  cursor: pointer;
  transition: background .2s ease;
}
.bio-dialog__close:hover { background: rgba(255,255,255,.15); }

.bio-dialog__body { padding: 39px 54px 47px; }
.bio-dialog__body p { margin: 0 0 20px; color: #455a65; font: 400 1rem/1.76 var(--body); }
.bio-dialog__body p:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
  .directory__open { top: 26px; right: 25px; width: 42px; height: 42px; }
  .bio-dialog { width: calc(100vw - 26px); max-height: calc(100dvh - 26px); border-radius: 0 26px 0 26px; }
  .bio-dialog__header { padding: 30px 28px 29px; }
  .bio-dialog__header h2 { margin-top: 28px; padding-right: 35px; font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .bio-dialog__close { top: 18px; right: 18px; width: 39px; height: 39px; }
  .bio-dialog__body { padding: 30px 28px 36px; }
  .bio-dialog__body p { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .directory__open,
  .bio-dialog__close { transition: none; }
  .bio-dialog[open] { animation: none; }
}
