/* Aurora — Member profile.
   Editorial profile sheet: type-led hierarchy, hairlines, one accent.
   Only transform and opacity animate. */

.member-profile {
  --mp-space: 8px;
  --mp-accent: var(--a-brand);
  --mp-border: var(--a-border, rgba(255, 255, 255, .09));
  --mp-border-strong: var(--a-border-strong, rgba(255, 255, 255, .16));
  --mp-surface: var(--a-surface, rgba(255, 255, 255, .045));
  --mp-surface-2: var(--a-surface-2, rgba(255, 255, 255, .075));
  --mp-text: var(--a-text, #e9edf9);
  --mp-muted: var(--a-muted, #98a2bd);
  --mp-accent-ink: color-mix(in srgb, var(--a-brand) 78%, var(--a-text, #e9edf9));
  --mp-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --mp-mono: 'Space Grotesk', ui-monospace, monospace;
  padding: clamp(28px, 3.4vw, 44px) 0 104px;
  color: var(--mp-text);
}

.member-profile__container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.member-profile :focus-visible {
  outline: 2px solid var(--mp-accent);
  outline-offset: 3px;
}

/* Breadcrumbs */
.member-profile__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mp-border);
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.member-profile__crumbs-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.member-profile__crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.member-profile__crumbs a:hover {
  color: var(--mp-text);
}

.member-profile__crumbs [aria-current="page"] {
  color: var(--mp-text);
  overflow-wrap: anywhere;
}

.member-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-muted);
  font-size: 12px;
}

.member-profile__back svg {
  width: 15px;
  height: 15px;
  transition: transform .24s var(--a-ease, ease);
}

.member-profile__back:hover svg {
  transform: translateX(-3px);
}

/* Hero */
.member-profile__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  background: var(--mp-surface);
  overflow: hidden;
}

.member-profile__hero::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 2;
  width: 56px;
  height: 2px;
  background: var(--mp-accent);
}

.member-profile__portrait {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border-inline-end: 1px solid var(--mp-border);
  background: var(--mp-surface-2);
}

.member-profile__portrait-inner {
  min-width: 0;
}

.member-profile__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--mp-border);
  border-radius: 3px;
  background: var(--mp-surface);
  overflow: hidden;
}

.member-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--mp-accent) 62%, var(--mp-muted));
  font-family: var(--mp-mono);
  font-size: clamp(88px, 9vw, 128px);
  font-weight: 500;
  letter-spacing: -.04em;
  background-color: var(--mp-surface);
  background-image: repeating-linear-gradient(135deg, transparent 0 23px, var(--mp-border) 23px 24px);
}

.member-profile__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 0;
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-profile__caption span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-profile__caption span:first-child::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 1px;
  background: var(--mp-accent);
}

.member-profile__intro {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  padding-block-start: clamp(32px, 4.4vw, 56px);
}

.member-profile__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--mp-accent-ink);
  font-family: var(--mp-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-profile__eyebrow-line {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.member-profile__name {
  margin: 16px 0 0;
  font-family: var(--mp-display);
  font-size: clamp(46px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.member-profile__role-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.member-profile__role {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.member-profile__role-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mp-muted);
}

.member-profile__experience {
  margin: 0;
  color: var(--mp-muted);
  font-size: 13px;
  line-height: 1.4;
}

.member-profile__lead {
  max-width: 56ch;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--mp-text) 84%, var(--mp-muted));
  font-size: 16.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.member-profile__skill-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 0;
  padding: 0;
  color: var(--mp-muted);
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

.member-profile__skill-line li {
  display: inline-flex;
  align-items: center;
}

.member-profile__skill-line li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 9px;
  border-radius: 50%;
  background: var(--mp-border-strong);
}

.member-profile__intro-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--mp-border);
}

.member-profile__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-profile__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  color: var(--mp-muted);
  transition: transform .22s var(--a-ease, ease), color .22s ease, border-color .22s ease;
}

.member-profile__social a:hover {
  border-color: color-mix(in srgb, var(--mp-accent) 46%, var(--mp-border));
  color: var(--mp-accent-ink);
  transform: translateY(-2px);
}

.member-profile__social svg {
  width: 16px;
  height: 16px;
}

.member-profile__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.member-profile__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mp-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.member-profile__contact a:hover {
  color: var(--mp-accent-ink);
}

.member-profile__contact svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

/* Contents bar */
.member-profile__toc {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 52px);
  border-top: 1px solid var(--mp-border);
  background: color-mix(in srgb, var(--mp-text) 2%, transparent);
}

.member-profile__toc-label {
  flex: 0 0 auto;
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-profile__toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-profile__toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--mp-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}

.member-profile__toc a > span {
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: .08em;
  transition: color .2s ease;
}

.member-profile__toc a:hover {
  color: var(--mp-text);
}

.member-profile__toc a.is-current {
  color: var(--mp-text);
  text-decoration: underline;
  text-decoration-color: var(--mp-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.member-profile__toc a.is-current > span {
  color: var(--mp-accent-ink);
}

/* Body */
.member-profile__body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(48px, 5vw, 64px);
}

.member-profile__body--single {
  grid-template-columns: minmax(0, 1fr);
}

.member-profile__side {
  position: sticky;
  top: calc(var(--header-height, 88px) + 28px);
  min-width: 0;
}

.member-profile__side-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mp-border);
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-profile__details {
  margin: 0;
}

.member-profile__detail {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mp-border);
}

.member-profile__detail dt {
  color: var(--mp-muted);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.member-profile__detail dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-profile__side-cta {
  margin-top: 24px;
}

.member-profile__side-cta p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.member-profile__side-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--mp-accent-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.member-profile__side-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .22s var(--a-ease, ease);
}

.member-profile__side-cta a:hover svg {
  transform: translateX(3px);
}

.member-profile__main {
  min-width: 0;
}

/* Sections */
.member-profile__section {
  scroll-margin-top: calc(var(--header-height, 88px) + 32px);
}

.member-profile__section + .member-profile__section {
  margin-top: clamp(48px, 5.5vw, 72px);
}

.member-profile__section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mp-border);
}

.member-profile__section-num {
  flex: 0 0 auto;
  color: var(--mp-accent-ink);
  font-family: var(--mp-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.member-profile__section-title {
  margin: 0;
  font-family: var(--mp-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.member-profile__section-ghost {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-end: 0;
  color: var(--mp-text);
  opacity: .055;
  font-family: var(--mp-mono);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.member-profile__text {
  max-width: 66ch;
  color: color-mix(in srgb, var(--mp-text) 84%, var(--mp-muted));
  font-size: 16.5px;
  line-height: 1.85;
}

.member-profile__text p {
  margin: 0;
}

.member-profile__text p + p {
  margin-top: 16px;
}

/* Skills */
.member-profile__skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-profile__skill {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--mp-border);
  font-size: 15px;
  line-height: 1.4;
}

.member-profile__skill:nth-child(-n + 2) {
  padding-top: 2px;
  border-top: 0;
}

.member-profile__skill-num {
  flex: 0 0 auto;
  min-width: 18px;
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

/* Projects */
.member-profile__projects {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-profile__project {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--mp-border);
}

.member-profile__project:last-child {
  border-bottom: 1px solid var(--mp-border);
}

.member-profile__project-num {
  padding-top: 5px;
  color: var(--mp-muted);
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.member-profile__project-body {
  min-width: 0;
}

.member-profile__project-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-profile__project-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.member-profile__project-title svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--mp-accent-ink);
  transition: transform .22s var(--a-ease, ease);
}

.member-profile__project-title a:hover {
  color: var(--mp-accent-ink);
}

.member-profile__project-title a:hover svg {
  transform: translate(2px, -2px);
}

.member-profile__project-body p {
  max-width: 60ch;
  margin: 6px 0 0;
  color: var(--mp-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Motion */
.member-profile-motion-ready .member-profile [data-member-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--a-ease, ease), transform .5s var(--a-ease, ease);
  transition-delay: var(--mp-delay, 0ms);
}

.member-profile-motion-ready .member-profile [data-member-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* RTL */
[dir="rtl"] .member-profile__back svg {
  transform: scaleX(-1);
}

[dir="rtl"] .member-profile__back:hover svg {
  transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .member-profile__side-cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .member-profile__side-cta a:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

/* Responsive */
@media (max-width: 1080px) {
  .member-profile__hero {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .member-profile__body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: calc(var(--mp-space) * 6);
  }

  .member-profile__name {
    font-size: clamp(42px, 5.6vw, 62px);
  }
}

@media (max-width: 900px) {
  .member-profile__body {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--mp-space) * 5);
    margin-top: calc(var(--mp-space) * 5);
  }

  .member-profile__side {
    display: none;
  }

  .member-profile__name {
    font-size: clamp(40px, 8vw, 60px);
  }

  .member-profile__toc-label {
    display: none;
  }

  .member-profile__toc ol {
    width: 100%;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .member-profile__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-profile__portrait {
    border-inline-end: 0;
    border-bottom: 1px solid var(--mp-border);
  }

  .member-profile__portrait-inner {
    max-width: 380px;
  }
}

@media (max-width: 700px) {
  .member-profile {
    padding: calc(var(--mp-space) * 3) 0 calc(var(--mp-space) * 10);
  }

  .member-profile__toc {
    padding-inline: calc(var(--mp-space) * 2.5);
  }

  .member-profile__intro {
    padding: calc(var(--mp-space) * 3);
    padding-block-start: calc(var(--mp-space) * 3.5);
  }

  .member-profile__toc ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .member-profile__toc ol::-webkit-scrollbar {
    display: none;
  }

  .member-profile__toc li {
    flex: 0 0 auto;
  }

  .member-profile__toc a {
    font-size: 12.5px;
  }

  .member-profile__section {
    scroll-margin-top: calc(var(--header-height, 64px) + 24px);
  }

  .member-profile__section + .member-profile__section {
    margin-top: calc(var(--mp-space) * 6);
  }

  .member-profile__section-head {
    margin-bottom: calc(var(--mp-space) * 2.5);
    padding-bottom: calc(var(--mp-space) * 1.5);
  }

  .member-profile__section-ghost {
    inset-block-end: 2px;
    font-size: 36px;
  }

  .member-profile__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .member-profile__skills {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-profile__skill {
    padding: 12px 0;
  }

  .member-profile__skill:nth-child(2) {
    padding-top: 12px;
    border-top: 1px solid var(--mp-border);
  }

  .member-profile__project {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .member-profile__project-title {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .member-profile__name {
    font-size: clamp(34px, 10vw, 44px);
  }

  .member-profile__lead {
    font-size: 15.5px;
  }

  .member-profile__intro-foot {
    gap: 14px;
  }

  .member-profile__contact a {
    font-size: 11.5px;
  }
}

@media (max-width: 820px) {
  .member-profile__container {
    width: min(100% - 32px, 720px);
  }
}

@media (max-width: 360px) {
  .member-profile__container {
    width: calc(100% - 24px);
  }

  .member-profile__portrait {
    max-width: none;
  }

  .member-profile__caption {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .member-profile__role-line {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-profile *,
  .member-profile-motion-ready .member-profile [data-member-reveal],
  .member-profile-motion-ready .member-profile [data-member-reveal].is-visible {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .member-profile__social a:hover,
  .member-profile__back:hover svg,
  .member-profile__project-title a:hover svg,
  .member-profile__side-cta a:hover svg {
    transform: none;
  }
}
