/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:      #2563eb;
  --accent-bg:   #eff6ff;
  --text:        #111827;
  --text-2:      #4b5563;
  --border:      #e5e7eb;
  --bg:          #ffffff;
  --bg-subtle:   #f9fafb;
  --max:         860px;
  --r:           10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Main container ── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Sections ── */
section {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: .65rem;
}

/* ── About ── */
.about-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.photo-col {
  flex-shrink: 0;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}

.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 54%;
  border: 3px solid var(--border);
  display: block;
}

.social-stack {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  width: 100%;
}

.social-stack a {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 12.5px;
  color: var(--text-2);
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: all .15s;
  white-space: nowrap;
}

.social-stack a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
  text-decoration: none;
}

.social-stack a i { width: 14px; text-align: center; }

.bio-col h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}

.bio-col .role {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: .3rem;
}

.bio-col .loc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: .65rem;
}

.bio-col .loc i { margin-right: 3px; }

.job-market {
  --mkt:      var(--accent);
  --mkt-deep: #1d4ed8;
  --mkt-pale: var(--accent-bg);
  --mkt-light: #bfdbfe;
  position: relative;
  margin-bottom: .65rem;
  padding: .7rem .9rem .7rem 1rem;
  background: var(--mkt-pale);
  border: 1px solid var(--mkt-light);
  border-radius: 8px;
}

.job-market::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 8px 0 0 8px;
  background: var(--mkt);
}

.job-market-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mkt-deep);
  margin-bottom: .3rem;
}

.job-market-pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mkt);
  box-shadow: 0 0 0 0 var(--mkt);
  animation: job-market-pulse 1.8s infinite;
}

@keyframes job-market-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .job-market-pulse { animation: none; }
}

.job-market-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: .55rem;
}

.job-market-text strong { color: var(--mkt-deep); font-weight: 600; }

.job-market-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.job-market-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 12px;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 20px;
  background: var(--mkt);
  color: #fff;
  border: 1px solid var(--mkt);
  transition: all .15s;
}

.job-market-btn:hover {
  background: var(--mkt-deep);
  border-color: var(--mkt-deep);
  text-decoration: none;
}

.job-market-btn-ghost {
  background: transparent;
  color: var(--mkt-deep);
  border-color: var(--mkt-light);
}

.job-market-btn-ghost:hover {
  background: #fff;
  border-color: var(--mkt);
}

.bio-p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: .45rem;
}

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

.research-interests {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: .45rem;
}

.research-interests::first-line {
  color: var(--text);
  font-weight: 500;
}

.research-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .65rem;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  padding: .4rem .45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
}

.focus-item img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.focus-item span {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-2);
}

/* ── News ── */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.news-list li:last-child { border-bottom: none; }

.nd {
  flex-shrink: 0;
  width: 40px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Publications ── */
.pub-list {
  display: flex;
  flex-direction: column;
}

.pub {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}

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

.pub-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  display: block;
}

.pub-body { flex: 1; min-width: 0; }

.ptitle {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
  line-height: 1.35;
}

.pauth {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: .15rem;
}

.pvenue {
  font-size: 12.5px;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: .4rem;
}

.award {
  color: #b45309;
  font-style: normal;
}

.pub-links {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.ptag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 4px;
  transition: all .15s;
  white-space: nowrap;
}

.ptag:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.ptag i { font-size: 10px; }

/* ── Experience & Service ── */
.section-intro {
  max-width: 680px;
  margin: -.2rem 0 .45rem;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child { border-bottom: none; }

.exp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .25rem;
}

.exp-head h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.exp-head span {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.exp-group {
  margin-top: .25rem;
}

.exp-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .2rem;
}

.exp-item ul {
  padding-left: 1.1rem;
  color: var(--text-2);
}

.exp-item li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: .12rem;
}

.exp-item li:last-child { margin-bottom: 0; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.4rem 2rem;
  color: var(--text-2);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

footer a { color: var(--text-2); }
footer a:hover { color: var(--accent); }

.flinks { margin-top: .4rem; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .about-wrap { flex-direction: column; align-items: center; }
  .photo-col { width: 100%; align-items: center; }
  .social-stack { max-width: 260px; }
  .nav-links { display: none; }
  .exp-head { flex-direction: column; gap: .15rem; }
  .research-focus { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .pub { flex-direction: column; }
  .pub-icon { width: 50px; height: 50px; }
}
