/* ---------------------------------------------------------------------------
   yongwhan.io — design system
   One spacing scale, one type scale, one accent. Light & dark.
--------------------------------------------------------------------------- */

:root {
  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-xs: 0.75rem;    /* 12 — overlines, badges */
  --text-sm: 0.875rem;   /* 14 — captions, meta */
  --text-base: 1rem;     /* 16 — body */
  --text-md: 1.125rem;   /* 18 — ledes */
  --text-lg: 1.375rem;   /* 22 — h3 */
  --text-xl: 1.875rem;   /* 30 — h2 */
  --text-2xl: 2.625rem;  /* 42 — h1 */
  --text-3xl: 3.75rem;   /* 60 — hero name */

  /* Space (8pt grid) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --container: 74rem;
  --container-narrow: 46rem;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --speed: 180ms;

  color-scheme: light;

  /* Light palette */
  --bg: #fbfbfc;
  --bg-raised: #ffffff;
  --bg-subtle: #f4f5f7;
  --border: #e7e8eb;
  --border-strong: #d4d7dc;
  --text: #17191d;
  --text-secondary: #565d68;
  --text-tertiary: #7d8490;
  --text-muted: #7d8490;
  --accent: #2557d6;
  --accent-hover: #1746bc;
  --accent-subtle: #eef3ff;
  --accent-border: #c9d7fc;
  --sky: #4299d7;
  --violet: #3157d5;
  --violet-subtle: #f0f3ff;
  --teal: #179782;
  --teal-subtle: #eaf8f5;
  --amber: #a65f00;
  --amber-subtle: #fff6e6;
  --rose: #b33b62;
  --rose-subtle: #fff0f4;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.045);
  --shadow-md: 0 10px 30px rgba(24, 31, 45, 0.07), 0 2px 5px rgba(24, 31, 45, 0.04);
  --shadow-lg: 0 24px 64px rgba(24, 31, 45, 0.12), 0 4px 12px rgba(24, 31, 45, 0.05);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f13;
  --bg-raised: #14171c;
  --bg-subtle: #1a1e24;
  --border: #272c34;
  --border-strong: #383f49;
  --text: #f0f2f5;
  --text-secondary: #adb4be;
  --text-tertiary: #7f8895;
  --accent: #9ab2ff;
  --accent-hover: #bdcaff;
  --accent-subtle: #1b2542;
  --accent-border: #32446f;
  --violet: #c1a8ff;
  --violet-subtle: #2b2340;
  --teal: #79d7c7;
  --teal-subtle: #14332f;
  --amber: #f3be67;
  --amber-subtle: #382c18;
  --rose: #f09ab4;
  --rose-subtle: #3b2029;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ------------------------------- Reset ---------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Soft accent wash behind the top of every page */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42rem;
  background:
    radial-gradient(55rem 30rem at 78% -8rem,
      color-mix(in srgb, var(--sky) 10%, transparent), transparent 72%),
    radial-gradient(42rem 26rem at 18% 0,
      color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-subtle); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ---------------------------- Typography -------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.04em; }
h2 { font-size: 1.75rem; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
h4 { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 600; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.overline {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.lede {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 42rem;
}

.meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ------------------------------ Layout ---------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container--narrow { max-width: var(--container-narrow); }

main { padding: clamp(3.5rem, 7vw, 5.5rem) 0 7rem; }

.section { margin-top: clamp(5.5rem, 9vw, 8rem); }
.section:first-child { margin-top: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.section-head::before { display: none; }
.section-head h2 { margin-right: auto; font-size: 1.5rem; letter-spacing: -0.025em; }
.section-head .meta { flex-shrink: 0; }

.page-head { margin-bottom: var(--sp-7); }
.page-head h1 { margin-bottom: var(--sp-3); }

.page-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
}
.page-head--split > div { max-width: 48rem; }

@media (max-width: 42rem) {
  .page-head--split { align-items: flex-start; flex-direction: column; }
}

/* ------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 4.75rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.site-nav a {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.site-nav a:hover { color: var(--text); background: var(--bg-subtle); }

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--bg-subtle); border-color: var(--border-strong); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 70rem) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    gap: var(--sp-1);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--sp-3); font-size: var(--text-base); }
}

/* -------------------------------- Hero ---------------------------------- */

.hero { padding-top: var(--sp-5); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.hero__content { position: relative; }
.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 13rem;
  height: 13rem;
  left: -5rem;
  top: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sky) 10%, transparent), transparent 70%);
}

.hero__content { max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--sp-5);
  padding: 0.375rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--bg-raised) 76%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 550;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-full);
  background: #22a06b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 14%, transparent);
}

.hero__name {
  font-size: clamp(3.25rem, 6.5vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 0 0 var(--sp-5);
}

.hero__tagline {
  font-size: clamp(var(--text-md), 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 39rem;
  margin-bottom: var(--sp-6);
  text-wrap: balance;
}

.hero__roles {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.hero__roles strong { color: var(--text); font-weight: 600; }

.hero__roles li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.hero__roles li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-0.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(24, 31, 45, 0.15), 0 0 0 1px color-mix(in srgb, var(--border-strong) 80%, transparent);
  background: var(--bg-subtle);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.92) contrast(1.02);
}

@media (max-width: 48rem) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .portrait { order: -1; width: 10.5rem; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
  .hero__name { max-width: 10ch; }
}

/* ------------------------------ Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  padding: 0.675rem 1.15rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 1rem; height: 1rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-md);
}

:root[data-theme="dark"] .btn--primary { color: #101215; }
:root[data-theme="dark"] .btn--primary:hover { color: #101215; }

.btn--secondary {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--text-tertiary); background: var(--bg-subtle); color: var(--text); }

/* ------------------------------- Stats ----------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(3.5rem, 7vw, 5.25rem);
  box-shadow: var(--shadow-sm);
}

.stat {
  position: relative;
  background: var(--bg-raised);
  min-height: 9rem;
  padding: 1.9rem;
}

.stat__icon {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  color: var(--accent);
  background: var(--accent-subtle);
  font-size: .9rem;
  font-weight: 700;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 48rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: auto; padding: var(--sp-5); }
}

@media (max-width: 30rem) {
  .stats { grid-template-columns: 1fr; }
}

/* ------------------------------- Cards ----------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: var(--sp-5);
}

@media (min-width: 48rem) {
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(24, 31, 45, 0.025);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}

a.card { color: inherit; }

a.card:hover,
.card--hover:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

a.card:focus-visible {
  outline-offset: 0;
  border-radius: var(--radius-md);
}

.card h3 { font-size: var(--text-md); font-family: var(--font-sans); font-weight: 650; }

.card p { font-size: var(--text-sm); color: var(--text-secondary); }

.card .meta { margin-top: auto; }

.card__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

a.card:hover .card__link { color: var(--accent-hover); transform: translateX(2px); }

/* ------------------------------- Chips ----------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.chip--accent {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}

/* ------------------------------ Badges ----------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge--neutral { color: var(--text-tertiary); background: var(--bg-subtle); }

/* ---------------------------- Entry lists -------------------------------- */

.entries {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 var(--sp-5);
  background: color-mix(in srgb, var(--bg-raised) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.entry {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--sp-6);
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--border);
}

.entries .entry:last-child { border-bottom: none; }

.entry__aside {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.5;
  padding-top: 0.125rem;
}

.entry__body h3, .entry__body h4 { margin-bottom: var(--sp-1); }

.entry__body .meta { margin-top: var(--sp-1); }

.entry__list {
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.entry__list li {
  position: relative;
  padding-left: var(--sp-4);
}

.entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}

@media (max-width: 40rem) {
  .entry { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* ------------------------------ Timeline ---------------------------------- */

.timeline {
  position: relative;
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  list-style: none;
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-5) - 0.3125rem + 0.5px);
  top: 0.45em;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline__period {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.timeline h3 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 650;
  margin: var(--sp-1) 0;
}

.timeline p { font-size: var(--text-sm); color: var(--text-secondary); }

/* ---------------------------- Publications -------------------------------- */

.pub {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}

.pub:last-child { border-bottom: none; }

.pub__title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: var(--sp-1);
}

.pub__authors {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.pub__venue {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

.pub__links {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ------------------------------ Tables ------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-strong);
}

td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

td:first-child { color: var(--text); font-weight: 500; }

/* ------------------------------ Prose ------------------------------------- */

.prose { max-width: 48rem; font-size: 1.0625rem; line-height: 1.75; }
.prose p { color: var(--text-secondary); }
.prose p strong { color: var(--text); }

.prose a,
.lede a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent-border);
  transition: color var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}
.prose a:hover,
.lede a:hover { text-decoration-color: currentColor; }

/* ------------------------------ Footer ------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0;
  background: color-mix(in srgb, var(--bg-subtle) 70%, var(--bg));
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-footer__links a { color: var(--text-secondary); }
.site-footer__links a:hover { color: var(--accent); }

.site-footer .meta { font-size: var(--text-sm); }

/* -------------------------- Systems visual ------------------------------- */

.systems-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  padding-top: 8.5rem;
}

.systems-map::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 6.25rem;
  height: 1px;
  background: var(--accent-border);
  opacity: 0.4;
}

.systems-map__center {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(32rem, 80%);
  padding: var(--sp-4) var(--sp-5);
  transform: translateX(-50%);
  text-align: center;
  background: var(--accent-subtle);
  border: 1px solid color-mix(in srgb, var(--accent-border) 70%, var(--border));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.systems-map__center .overline { margin-bottom: var(--sp-1); }
.systems-map__center strong { font-size: var(--text-md); letter-spacing: -0.02em; }

.systems-map__node {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  min-height: 10.5rem;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.systems-map__node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2.25rem;
  width: 0.625rem;
  height: 0.625rem;
  transform: translateX(-50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
  background: currentColor;
}

.systems-map__node--ai,
.systems-map__node--education,
.systems-map__node--community { color: var(--accent); background: var(--bg-raised); }
.systems-map__node h3 { color: var(--text); margin-bottom: var(--sp-2); }
.systems-map__node p { color: var(--text-secondary); font-size: var(--text-sm); }

.systems-map__icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--bg-raised) 68%, transparent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 48rem) {
  .systems-map { grid-template-columns: 1fr; padding-top: 9.75rem; }
  .systems-map::before { display: none; }
  .systems-map__center { width: 100%; }
  .systems-map__node::before { display: none; }
}

/* ------------------------ Mentorship pathway ----------------------------- */

.pathway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.pathway__step {
  position: relative;
  min-height: 13rem;
  padding: var(--sp-5);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pathway__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -1.05rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
}

.pathway__step--blue { background: var(--accent-subtle); }
.pathway__step--violet { background: var(--violet-subtle); }
.pathway__step--teal { background: var(--teal-subtle); }
.pathway__step--amber { background: var(--amber-subtle); }

.pathway__number {
  display: block;
  margin-bottom: var(--sp-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.pathway__step h3 { margin-bottom: var(--sp-2); }
.pathway__step p { color: var(--text-secondary); font-size: var(--text-sm); }

@media (max-width: 52rem) {
  .pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pathway__step::after { display: none !important; }
}

@media (max-width: 32rem) {
  .pathway { grid-template-columns: 1fr; }
  .pathway__step { min-height: auto; }
}

/* ----------------------- Search & directory ------------------------------ */

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.directory-toolbar label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 650;
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: min(24rem, 100%);
  min-height: 2.85rem;
  padding: 0 var(--sp-3);
  color: var(--text-tertiary);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.search-field input::placeholder { color: var(--text-tertiary); }

.directory-note {
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--teal-subtle), var(--accent-subtle));
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--border));
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.directory-note strong { color: var(--text); }
.directory-table { max-height: 45rem; }
.directory-table thead { position: sticky; top: 0; z-index: 2; background: var(--bg-raised); }
.directory-table td:first-child { min-width: 12rem; }
.directory-table td:nth-child(2) { min-width: 8rem; }
.directory-period { white-space: nowrap; }

.verification-mark {
  display: block;
  width: max-content;
  margin-top: var(--sp-1);
  padding: 0.1rem 0.45rem;
  color: var(--teal);
  background: var(--teal-subtle);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.directory-unverified { color: var(--text-tertiary); font-style: italic; }
.empty-state { padding: var(--sp-6); text-align: center; color: var(--text-tertiary); }

@media (max-width: 42rem) {
  .directory-toolbar { align-items: stretch; flex-direction: column; gap: var(--sp-4); }
  .search-field { width: 100%; }
}

/* ----------------------- Evaluation visual ------------------------------- */

.evaluation-intro { margin-bottom: var(--sp-6); }

.rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.rating-card {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rating-card--blue { color: var(--accent); background: var(--accent-subtle); }
.rating-card--violet { color: var(--violet); background: var(--violet-subtle); }
.rating-card--teal { color: var(--teal); background: var(--teal-subtle); }
.rating-card--amber { color: var(--amber); background: var(--amber-subtle); }

.rating-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.rating-card__head strong {
  font-size: var(--text-xl);
  letter-spacing: -0.04em;
}

.rating-bar {
  height: 0.5rem;
  margin-bottom: var(--sp-2);
  overflow: hidden;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.rating-bar span {
  display: block;
  width: var(--rating);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}
.rating-bar--944 { --rating: 94.4%; }
.rating-bar--918 { --rating: 91.8%; }
.rating-bar--898 { --rating: 89.8%; }
.rating-bar--876 { --rating: 87.6%; }

.data-disclosure {
  margin-top: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
}

.data-disclosure summary {
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 650;
}

.data-disclosure[open] summary { border-bottom: 1px solid var(--border); }
.data-disclosure .table-wrap { border: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: none; }

@media (max-width: 40rem) {
  .rating-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Camp map ------------------------------------ */

.camp-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  min-height: 9rem;
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 25%),
    radial-gradient(circle at 84% 70%, color-mix(in srgb, var(--teal) 11%, transparent), transparent 25%),
    var(--bg-raised);
}

.camp-map__line {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--amber), var(--accent), var(--teal));
  opacity: 0.45;
}

.camp-map__stop {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-align: center;
}

.camp-map__stop strong { color: var(--text); font-size: var(--text-sm); }

.camp-map__dot {
  width: 1rem;
  height: 1rem;
  margin-bottom: var(--sp-2);
  border: 3px solid var(--bg-raised);
  border-radius: 50%;
  box-shadow: 0 0 0 2px currentColor, 0 4px 10px color-mix(in srgb, currentColor 25%, transparent);
  background: currentColor;
}

.camp-map__logo {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: var(--sp-2);
  place-items: center;
  border: 2px solid color-mix(in srgb, currentColor 42%, var(--border));
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 9px 24px color-mix(in srgb, currentColor 18%, transparent);
}

.camp-map__logo img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.camp-map__stop--saudi { color: var(--violet); }
.camp-map__stop--mexico { color: var(--amber); }
.camp-map__stop--nyc { color: var(--accent); }
.camp-map__stop--online { color: var(--teal); }

.entry--featured { background: linear-gradient(90deg, color-mix(in srgb, var(--accent-subtle) 55%, transparent), transparent); }
.entry__title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.entry__action { margin-top: var(--sp-3); font-size: var(--text-sm); font-weight: 600; }
.badge--teal { color: var(--teal); background: var(--teal-subtle); }
.badge--violet { color: var(--violet); background: var(--violet-subtle); }

@media (max-width: 38rem) {
  .camp-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp-map__line { display: none; }
  .entry__title-row { align-items: flex-start; flex-direction: column; }
}

/* -------------------------- Embedded résumé ------------------------------ */

.resume-shell {
  overflow: hidden;
  min-height: 70rem;
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #dfe2e6;
  box-shadow: var(--shadow-lg);
}

.resume-shell object {
  width: 100%;
  height: 70rem;
  border: 0;
  border-radius: calc(var(--radius-lg) - var(--sp-2));
  background: #fff;
}

.talk-highlight { margin-bottom: var(--sp-6); }
.talk-highlight p { color: var(--text-secondary); font-size: var(--text-base); }

/* ---------------------- Institutional identity strip --------------------- */

.institution-strip {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}

.institution-strip__label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.institution-strip__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.institution-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.institution-mark:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.institution-mark img {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.2rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
}

.institution-mark__monogram {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--mark-color);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
}

.institution-mark--probook { --mark-color: var(--violet); }
.institution-mark--columbia { --mark-color: #6baddf; }
.institution-mark--icpc { --mark-color: var(--teal); }
.institution-mark--google { --mark-color: #4285f4; }
.institution-mark--twosigma { --mark-color: var(--amber); }
.institution-mark--mit { --mark-color: #a31f34; }
.institution-mark--stanford { --mark-color: #b1040e; }

.institution-heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.institution-heading__mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, #6baddf 35%, var(--border));
  border-radius: 0.9rem;
  background: color-mix(in srgb, #6baddf 12%, var(--bg-raised));
  box-shadow: 0 8px 24px color-mix(in srgb, #6baddf 12%, transparent);
}

.institution-heading__mark img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

/* -------------------------- Impact visual ------------------------------- */

.impact-visual {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(22rem, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-subtle) 72%, var(--bg-raised)), var(--bg-raised) 58%);
  border: 1px solid var(--accent-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
}

.impact-visual::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -10rem;
  bottom: -14rem;
  border: 1px solid color-mix(in srgb, var(--sky) 26%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem color-mix(in srgb, var(--sky) 5%, transparent),
              0 0 0 7rem color-mix(in srgb, var(--accent) 3%, transparent);
  pointer-events: none;
}

.impact-visual__intro,
.impact-bars { position: relative; z-index: 1; }
.impact-visual__intro { align-self: center; }

.impact-visual__intro h3 {
  max-width: 20ch;
  margin-bottom: var(--sp-4);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.impact-visual__intro p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 34rem;
}

.impact-bars {
  display: grid;
  gap: var(--sp-5);
  align-content: center;
  padding: var(--sp-5);
  background: color-mix(in srgb, var(--bg-raised) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.impact-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem var(--sp-4);
  align-items: end;
}

.impact-bar span { font-size: var(--text-sm); color: var(--text-secondary); }
.impact-bar strong { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }

.impact-bar i {
  grid-column: 1 / -1;
  display: block;
  height: .5rem;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}

.impact-bar i::after {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 58%, white));
  transform-origin: left;
  animation: bar-in 800ms var(--ease) both;
}

@keyframes bar-in {
  from { transform: scaleX(0); opacity: .3; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 48rem) {
  .impact-visual { grid-template-columns: 1fr; }
  .impact-bars { padding: var(--sp-4); }
}

/* --------------------------- Impact radar -------------------------------- */

.impact-radar {
  position: relative;
  min-height: 27rem;
  margin-bottom: var(--sp-6);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 24%),
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 26%),
    radial-gradient(circle at 90% 85%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 25%),
    var(--bg-raised);
}

.impact-radar__rings,
.impact-radar__rings::before,
.impact-radar__rings::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22rem;
  height: 22rem;
  border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--border));
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.impact-radar__rings::before { width: 15rem; height: 15rem; }
.impact-radar__rings::after { width: 8rem; height: 8rem; }

.impact-radar__core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: 8rem;
  height: 8rem;
  padding: 1rem;
  place-content: center;
  border: 1px solid color-mix(in srgb, var(--violet) 38%, var(--border));
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet-subtle), var(--bg-raised));
  text-align: center;
  box-shadow: 0 18px 45px color-mix(in srgb, var(--violet) 18%, transparent);
  transform: translate(-50%, -50%);
}

.impact-radar__core strong { line-height: 1.05; }
.impact-radar__core span { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.63rem; line-height: 1.25; }

.impact-radar__point {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0.1rem;
  min-width: 8.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, currentColor 8%, var(--bg-raised));
  box-shadow: var(--shadow-sm);
}

.impact-radar__point b { color: var(--text); font-size: var(--text-sm); }
.impact-radar__point small { color: var(--text-muted); }
.impact-radar__point--ai { top: 10%; left: 10%; color: var(--accent); }
.impact-radar__point--edu { top: 9%; right: 10%; color: var(--violet); }
.impact-radar__point--mentor { bottom: 10%; right: 11%; color: var(--teal); }
.impact-radar__point--research { bottom: 8%; left: 11%; color: var(--amber); }
.impact-radar__point--community { top: 45%; right: 3%; color: var(--rose); }

/* ----------------------- Mentorship network ------------------------------ */

.network-visual {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 19% 48%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 33%),
    var(--bg-raised);
}

.network-orbit {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 50%;
}

.network-orbit::before {
  position: absolute;
  inset: 17%;
  border: 1px solid color-mix(in srgb, var(--violet) 26%, var(--border));
  border-radius: 50%;
  content: "";
}

.network-orbit__core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  text-align: center;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translate(-50%, -50%);
}

.network-orbit__core strong { font-size: 2rem; line-height: 1; }
.network-orbit__core span { margin-top: 0.2rem; font-size: var(--text-xs); opacity: 0.8; }

.network-orbit__node {
  position: absolute;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 3px solid var(--bg-raised);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  box-shadow: var(--shadow-md);
}

.network-orbit__node--1 { top: -0.5rem; left: 44%; background: #6baddf; }
.network-orbit__node--2 { top: 27%; right: -0.4rem; background: var(--rose); }
.network-orbit__node--3 { right: 12%; bottom: 4%; background: #b1040e; }
.network-orbit__node--4 { bottom: 5%; left: 10%; background: var(--teal); }
.network-orbit__node--5 { top: 27%; left: -0.5rem; background: #a31f34; }

.network-bars { display: grid; gap: 0.95rem; }
.network-bars div { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; }
.network-bars span { font-size: var(--text-sm); font-weight: 600; }
.network-bars strong { color: var(--text-muted); font-size: var(--text-sm); }
.network-bars i {
  grid-column: 1 / -1;
  width: var(--bar);
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--teal));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 18%, transparent);
}

.network-bar--100 { --bar: 100%; }
.network-bar--34 { --bar: 34%; }
.network-bar--28 { --bar: 28%; }
.network-bar--24 { --bar: 24%; }

/* ------------------------- Research spectrum ----------------------------- */

.research-spectrum { padding-top: 0; }

.spectrum-chart {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, transparent 24.8%, var(--border) 25%, transparent 25.2%, transparent 49.8%, var(--border) 50%, transparent 50.2%, transparent 74.8%, var(--border) 75%, transparent 75.2%),
    var(--bg-raised);
  box-shadow: var(--shadow-sm);
}

.spectrum-chart__axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 0 var(--sp-3) 10rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.spectrum-chart__axis span:not(:first-child):not(:last-child) { text-align: center; }
.spectrum-chart__axis span:last-child { text-align: right; }

.spectrum-chart__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  min-height: 3.5rem;
}

.spectrum-chart__row b { font-size: var(--text-sm); }
.spectrum-chart__row i {
  position: relative;
  display: flex;
  width: max(var(--span), 5.4rem);
  height: 1.85rem;
  margin-left: var(--start);
  align-items: center;
  padding-inline: 0.7rem;
  border-radius: 999px;
  color: #fff;
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 7px 18px color-mix(in srgb, currentColor 18%, transparent);
}

.spectrum-chart__row--vision i { background: linear-gradient(90deg, var(--accent), #6baddf); }
.spectrum-chart__row--vision i { --start: 0%; --span: 25%; }
.spectrum-chart__row--networks i { --start: 24%; --span: 24%; background: linear-gradient(90deg, var(--violet), var(--rose)); }
.spectrum-chart__row--systems i { --start: 75%; --span: 9%; background: linear-gradient(90deg, var(--teal), #2a9d8f); }
.spectrum-chart__row--learning i { --start: 83%; --span: 17%; background: linear-gradient(90deg, var(--amber), #e76f51); }

@media (max-width: 40rem) {
  .resume-shell { min-height: 42rem; padding: var(--sp-1); }
  .resume-shell object { height: 42rem; }
  .institution-strip { padding: var(--sp-4); }
  .institution-mark { flex: 1 1 calc(50% - var(--sp-2)); }
  .impact-radar { min-height: 32rem; }
  .impact-radar__rings { width: 18rem; height: 18rem; }
  .impact-radar__point { min-width: 7.6rem; }
  .impact-radar__point--ai { left: 4%; }
  .impact-radar__point--edu { right: 4%; }
  .impact-radar__point--research { left: 4%; }
  .impact-radar__point--mentor { right: 4%; }
  .impact-radar__point--community { top: auto; right: 50%; bottom: 1rem; transform: translateX(50%); }
  .network-visual { grid-template-columns: 1fr; padding: var(--sp-4); }
  .spectrum-chart { overflow-x: auto; }
  .spectrum-chart__axis,
  .spectrum-chart__row { min-width: 38rem; }
}
