/* ═══════════════════════════════════════════════════════════
   PAGE: About — Page header, bio, pathway, leadership
   ═══════════════════════════════════════════════════════════ */

/* ── Sidebar status badge ────────────────────────────────── */
.bio-grid .status-badge-wrap {
  margin-top: var(--space-4);
}

/* ── Bio Photo ───────────────────────────────────────────── */
picture:has(img.bio-photo) {
  display: block;
  margin-bottom: var(--space-6);
}
img.bio-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--border);
}


/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + var(--ruler-h) + 72px);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.page-header .dot-grid-subtle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, transparent 40%, rgba(14, 26, 35, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Top-left corner mark */
.page-header::before {
  content: '';
  position: absolute;
  top: calc(var(--nav-h) + var(--ruler-h) + 16px);
  left: 20px;
  width: 16px; height: 16px;
  border-top: 1.5px solid var(--primary);
  border-left: 1.5px solid var(--primary);
  opacity: 0.4;
  z-index: 3;
}
.page-header .container { position: relative; z-index: 2; }

.about-leadership-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-6);
}

.about-leadership-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(1, 158, 219, 0.22);
  border-radius: 999px;
  background: rgba(1, 158, 219, 0.08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.about-leadership-badge__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  filter: grayscale(1) contrast(1.15) brightness(0.92) sepia(0.18) hue-rotate(165deg) saturate(1.4);
  opacity: 0.82;
}

.about-leadership-badge__label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.about-leadership-badge strong {
  font-weight: var(--weight-bold);
}

.about-leadership-badge:hover {
  border-color: rgba(1, 158, 219, 0.4);
  background: rgba(1, 158, 219, 0.12);
  transform: translateY(-1px);
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
  opacity: 0.7;
}
.page-title {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(40px, 5vw, 64px);
  position: relative;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.65;
}

/* ── Bio Section ─────────────────────────────────────────── */
#bio {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--border);
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.bio-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}
.bio-text p + p { margin-top: var(--space-5); }
.bio-text strong { color: var(--text); font-weight: var(--weight-medium); }
.bio-tagline {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px dashed var(--border);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
}
.bio-tagline em { color: var(--primary); font-style: normal; }

/* ── Career Pathway ──────────────────────────────────────── */
#pathway {
  padding: var(--space-20) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}
.pathway-list {
  position: relative;
  padding-left: 28px;
  list-style: none;
  margin: 0;
}
.pathway-list::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.pathway-item {
  position: relative;
  padding-bottom: 28px;
}
.pathway-item:last-child { padding-bottom: 0; }
.pathway-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
}
.pathway-item.current::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 158, 219, 0.2);
}
.pathway-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pathway-role {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}

.pathway-role--comment-anchor {
  position: relative;
  display: inline-block;
}

.pathway-role--comment-anchor .anchored-comment--role {
  transform: translate(4px, calc(-100% - 18px));
}
.pathway-org {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Leadership / Recognitions ───────────────────────────── */
#leadership {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--border);
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.recog-card--featured {
  grid-column: 1 / -1;
}
.recog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.recog-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.recog-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  opacity: 0.8;
}
.recog-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 17px;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.recog-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.recog-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.recog-link::after {
  content: '↗';
  display: inline-block;
  transition: transform 0.2s;
}
.recog-link:hover::after { transform: translate(2px, -2px); }

/* ── References Section (about page) ────────────────────── */
#references {
  padding: var(--space-20) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── Emoji Tooltips (Interests row) ─────────────────────── */
.prop-value--interests {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.prop-value--comment-anchor {
  position: relative;
  display: inline-block;
}

.prop-value--comment-anchor .anchored-comment--role {
  transform: translate(14px, calc(-100% - 22px));
}

.emoji-tip {
  position: relative;
  cursor: default;
  font-size: 16px;
  line-height: 1;
  border-radius: 2px;
  outline-offset: 3px;
}
.emoji-tip:focus-visible {
  outline: 2px solid var(--primary);
}

/* Tooltip bubble */
.emoji-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

/* Caret */
.emoji-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  border: 4px solid transparent;
  border-top-color: var(--border-bright);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.emoji-tip:hover::after,
.emoji-tip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.emoji-tip:hover::before,
.emoji-tip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 48px; }
  .pathway-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }

  /* Connect the two stacked timeline lists into one continuous line */
  .pathway-list:first-child { padding-bottom: 28px; }
  .pathway-list:first-child::before { bottom: 0; }
  .pathway-list:nth-child(2)::before { top: 0; }
}

/* ── Light mode overrides ────────────────────────────────── */

/* Swap harsh dark vignette for a soft bg-toned edge fade */
[data-theme="light"] .page-header::after {
  background: radial-gradient(ellipse 80% 60% at 30% 50%, transparent 40%, rgba(242, 246, 248, 0.6) 100%);
}
