.mast a[aria-current="page"] {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: .38em;
}

.profile-main {
  max-width: 77rem;
  margin-inline: auto;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(13rem, .65fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.profile-role, .role-dates, .profile-portrait figcaption {
  font: 500 .88rem/1.5 var(--mono);
  color: var(--lilac);
}

.profile-role {
  color: var(--lime);
  margin-bottom: 1rem;
}

.profile-intro h1 {
  font-size: clamp(4.3rem, 7.5vw, 7rem);
  letter-spacing: -.075em;
}

.profile-intro h1 em {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.profile-lead {
  max-width: 34ch;
  margin-top: 1.55rem;
  font: 560 clamp(1.2rem, 2vw, 1.62rem)/1.4 var(--sans);
  letter-spacing: -.025em;
}

.profile-detail {
  max-width: 58ch;
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  margin-top: 1.6rem;
}

.profile-portrait {
  width: min(100%, 21rem);
  justify-self: center;
}

.portrait-frame {
  position: relative;
  padding: .5rem;
  background: #21172d;
  border: 1px solid #765584;
  box-shadow: .48rem .48rem 0 #36233f;
}

.portrait-frame::before, .portrait-frame::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  pointer-events: none;
}

.portrait-frame::before {
  top: -.15rem;
  left: -.15rem;
  border-top: .22rem solid var(--hot);
  border-left: .22rem solid var(--hot);
}

.portrait-frame::after {
  right: -.15rem;
  bottom: -.15rem;
  border-right: .22rem solid var(--lime);
  border-bottom: .22rem solid var(--lime);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-portrait figcaption {
  margin-top: 1.1rem;
  color: var(--muted);
  text-align: right;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(12rem, .68fr) minmax(0, 1.32fr);
  gap: 2rem clamp(2rem, 6vw, 7rem);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 5.35rem);
}

.profile-section h2 {
  max-width: 8ch;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -.07em;
}

.profile-section h3 {
  font: 700 clamp(1.32rem, 2.3vw, 2rem)/1.17 var(--sans);
  letter-spacing: -.045em;
}

.career-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.career-timeline li {
  position: relative;
  padding: 0 0 2.05rem 1.9rem;
}

.career-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .95rem;
  bottom: -.7rem;
  width: 1px;
  background: #725980;
}

.career-timeline li::after {
  content: "";
  position: absolute;
  top: .4rem;
  left: 0;
  width: .65rem;
  height: .65rem;
  border: 2px solid var(--lilac);
  background: var(--paper);
}

.career-timeline li:first-child::after {
  border-color: var(--lime);
  background: var(--lime);
}

.career-timeline li:last-child { padding-bottom: 0; }
.career-timeline h3, .education-list h3 { margin-top: .3rem; }
.career-timeline h3 span { color: var(--muted); font-weight: 450; }
.role-title { margin-top: .3rem; font-weight: 700; }

.career-timeline li > p:last-child, .education-list article > p:last-child {
  max-width: 62ch;
  margin-top: .45rem;
  color: var(--muted);
  line-height: 1.65;
}

.education-list article + article {
  margin-top: 1.35rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .profile-intro {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, .58fr);
    gap: 1.55rem;
  }
  .profile-section {
    grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
    gap: 1.45rem;
  }
}

@media (max-width: 600px) {
  .profile-intro, .profile-section { grid-template-columns: 1fr; }
  .profile-intro { gap: 2rem; padding-block: 2.4rem 2.6rem; }
  .profile-intro h1 { font-size: clamp(3.7rem, 12.6vw, 4.8rem); }
  .profile-portrait { width: min(100%, 17rem); justify-self: start; }
  .profile-section h2 { max-width: none; }
  .profile-lead { margin-top: 1.15rem; }
}

@media (max-width: 440px) {
  .mast { flex-wrap: wrap; row-gap: .35rem; }
  .mast nav { flex-wrap: wrap; gap: .4rem .8rem; }
}
