.profile-page {
  overflow: hidden;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 78px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 201, 93, .22), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(47, 95, 138, .12), transparent 28%),
    var(--paper);
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 18%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.profile-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr);
  align-items: center;
  gap: 64px;
}

.profile-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.047em;
}

.profile-hero-copy > p:not(.breadcrumb) {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.profile-identity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.profile-identity-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .025em;
}

.profile-identity-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.profile-hero-visual {
  position: relative;
  min-height: 560px;
  margin: 0;
}

.profile-hero-photo-main {
  position: absolute;
  inset: 0 0 54px 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--brand-navy-deep);
  box-shadow: 0 28px 72px rgba(6, 26, 45, .22);
  transform: rotate(1deg);
}

.profile-hero-photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 26, 45, .42));
  pointer-events: none;
}

.profile-hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-hero-photo-secondary {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 12px;
  width: 170px;
  height: 218px;
  overflow: hidden;
  border: 8px solid var(--paper);
  border-radius: 28px;
  background: var(--brand-navy);
  box-shadow: 0 22px 56px rgba(6, 26, 45, .24);
  transform: rotate(-4deg);
}

.profile-hero-photo-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}

.profile-visual-card {
  position: absolute;
  z-index: 3;
  right: -10px;
  bottom: 14px;
  width: min(350px, 72%);
  padding: 20px 22px;
  border: 1px solid rgba(11, 42, 74, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  color: #15212d;
  box-shadow: 0 22px 58px rgba(6, 26, 45, .18);
  backdrop-filter: blur(14px);
}

.profile-visual-card span {
  display: block;
  color: var(--brand-blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-visual-card strong {
  display: block;
  margin-top: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.profile-orbit {
  position: absolute;
  z-index: -1;
  top: -38px;
  right: -42px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(200, 142, 10, .45);
  border-radius: 50%;
}

.profile-overview {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-overview-item {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.profile-overview-item:last-child {
  border-right: 0;
}

.profile-overview-item span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 20%, var(--surface));
  color: var(--brand-navy);
  font-weight: 950;
}

[data-theme="dark"] .profile-overview-item span {
  color: var(--gold);
}

.profile-overview-item h2 {
  margin: 16px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.profile-overview-item p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

.profile-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 42px;
}

.profile-section-head > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.profile-journey-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 48px;
}

.profile-journey-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.profile-journey-intro .section-lede {
  font-size: 1.02rem;
}

.profile-contribution-list {
  display: grid;
  gap: 14px;
}

.profile-contribution-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(21, 33, 45, .045);
}

.profile-contribution-card[open] {
  border-color: color-mix(in srgb, var(--gold-deep) 48%, var(--line));
  box-shadow: 0 18px 44px rgba(11, 42, 74, .08);
}

.profile-contribution-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.profile-contribution-card summary::-webkit-details-marker {
  display: none;
}

.profile-contribution-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-navy);
  color: white;
  font-size: .75rem;
  font-weight: 950;
}

.profile-contribution-heading small {
  display: block;
  color: var(--brand-blue);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

[data-theme="dark"] .profile-contribution-heading small {
  color: var(--gold);
}

.profile-contribution-heading strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.profile-contribution-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-navy);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease;
}

[data-theme="dark"] .profile-contribution-toggle {
  color: var(--gold);
}

.profile-contribution-card[open] .profile-contribution-toggle {
  transform: rotate(45deg);
}

.profile-contribution-body {
  padding: 0 22px 24px 80px;
}

.profile-contribution-body p {
  margin: 0;
  color: var(--muted);
}

.profile-contribution-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.profile-contribution-body li + li {
  margin-top: 8px;
}

.profile-education-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr .82fr;
  gap: 20px;
}

.profile-education-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(21, 33, 45, .05);
}

.profile-education-card-featured {
  background:
    radial-gradient(circle at 86% 12%, rgba(244, 201, 93, .25), transparent 34%),
    linear-gradient(145deg, var(--brand-navy), var(--brand-navy-deep));
  color: white;
}

.profile-education-card-featured .eyebrow,
.profile-education-card-featured p {
  color: rgba(255, 255, 255, .72);
}

.profile-education-logo {
  width: fit-content;
  min-height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
}

.profile-education-logo img {
  max-width: 165px;
  max-height: 62px;
  object-fit: contain;
}

.profile-education-card h3 {
  margin: 26px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.profile-education-card p {
  margin: 0;
  color: var(--muted);
}

.profile-education-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.profile-recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-recognition-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(21, 33, 45, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.profile-recognition-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold-deep) 48%, var(--line));
  box-shadow: 0 20px 48px rgba(11, 42, 74, .09);
}

.profile-recognition-card-dark {
  background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-deep));
  color: white;
}

.profile-recognition-card-dark p {
  color: rgba(255, 255, 255, .72) !important;
}

.profile-recognition-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
  color: var(--brand-navy);
  font-weight: 950;
}

.profile-recognition-card-dark .profile-recognition-mark {
  background: rgba(244, 201, 93, .18);
  color: var(--gold);
}

.profile-recognition-card h3 {
  margin: 24px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.profile-recognition-card p {
  margin: 0;
  color: var(--muted);
}

.profile-recognition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.profile-recognition-links a {
  color: inherit;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.profile-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center;
  gap: 42px;
  padding: 48px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 201, 93, .22), transparent 32%),
    linear-gradient(145deg, var(--brand-navy), var(--brand-navy-deep));
  color: white;
  box-shadow: 0 26px 64px rgba(6, 26, 45, .22);
}

.profile-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.profile-cta p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
}

.profile-cta-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-cta-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .07);
  color: white;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 850;
}

.profile-cta-links a:hover {
  border-color: rgba(244, 201, 93, .6);
  background: rgba(255, 255, 255, .12);
}

[data-theme="dark"] .profile-hero-photo-secondary {
  border-color: var(--paper);
}

[data-theme="dark"] .profile-visual-card {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(23, 30, 38, .96);
  color: var(--ink);
}

@media (max-width: 1060px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-visual {
    width: min(720px, 100%);
    min-height: 540px;
  }

  .profile-education-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-education-card-featured {
    grid-column: span 2;
  }

  .profile-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .profile-hero {
    padding: 54px 0 62px;
  }

  .profile-section-head,
  .profile-journey-layout {
    grid-template-columns: 1fr;
  }

  .profile-journey-intro {
    position: static;
  }

  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-overview-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-overview-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .profile-hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }

  .profile-hero-visual {
    min-height: 430px;
  }

  .profile-hero-photo-main {
    inset: 0 0 50px 18px;
    border-radius: 28px;
  }

  .profile-hero-photo-secondary {
    width: 124px;
    height: 166px;
    border-width: 6px;
    border-radius: 20px;
  }

  .profile-visual-card {
    right: 0;
    bottom: 8px;
    width: min(286px, 78%);
    padding: 16px 17px;
  }

  .profile-visual-card strong {
    font-size: 1.08rem;
  }

  .profile-contribution-card summary {
    grid-template-columns: auto 1fr auto;
    padding: 18px;
  }

  .profile-contribution-body {
    padding: 0 18px 20px;
  }

  .profile-education-grid,
  .profile-recognition-grid,
  .profile-cta-links {
    grid-template-columns: 1fr;
  }

  .profile-education-card-featured {
    grid-column: auto;
  }

  .profile-cta {
    padding: 30px 24px;
    border-radius: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-recognition-card,
  .profile-contribution-toggle {
    transition: none;
  }
}
