/* ════════════════════════════════════════
   RESET & TOKENS
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #060b14;
  --bg2:          #0b1220;
  --surface:      #111827;
  --surface2:     #1a2234;
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.12);

  --blue:         #3b82f6;
  --blue-light:   #60a5fa;
  --blue-dark:    #2563eb;
  --indigo:       #6366f1;
  --teal:         #14b8a6;
  --purple:       #a855f7;
  --amber:        #f59e0b;
  --rose:         #f43f5e;
  --green:        #22c55e;

  --text:         #f1f5f9;
  --text-2:       #cbd5e1;
  --text-3:       #94a3b8;
  --text-4:       #64748b;

  --nav-h:        68px;
  --r:            16px;
  --r-sm:         10px;

  --font:         'Inter', system-ui, sans-serif;
  --font-head:    'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--text); }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
ul { list-style: none; }
strong { color: var(--text); }

/* ════════════════════════════════════════
   CURSOR GLOW
   ════════════════════════════════════════ */
#cursorGlow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%,-50%);
  transition: left .12s ease, top .12s ease;
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
#navbar {
  position: fixed; top:0; left:0; right:0; height: var(--nav-h);
  z-index: 200;
  background: transparent;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(6,11,20,.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.logo-bracket { color: var(--blue); }

.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-3);
  padding: .4rem .75rem; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(59,130,246,.1);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-3); border-radius: 2px; transition: all .3s;
}

/* ════════════════════════════════════════
   HELPERS
   ════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.dark-section { background: var(--bg2); }

.section-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: clamp(1.75rem,3.5vw,2.5rem); margin-bottom: .75rem; }
.section-desc { color: var(--text-3); font-size: 1rem; }
.section-desc-left { color: var(--text-3); font-size: .925rem; margin-top: .5rem; }
.inline-link { color: var(--blue); font-weight: 500; }
.inline-link:hover { color: var(--blue-light); }

.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AOS-style animations */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  /* Safety: never stay invisible beyond 1.5s */
  animation: aosFailsafe 0s 1.5s forwards;
}
@keyframes aosFailsafe { to { opacity: 1; transform: none; } }

[data-aos].aos-in { opacity: 1; transform: translateY(0); animation: none; }
[data-aos][data-aos-delay="100"] { transition-delay: .1s; }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-right"].aos-in { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-left"].aos-in { transform: translateX(0); }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

#heroCanvas { position: absolute; inset: 0; z-index: 0; opacity: .55; }

.hero-glow-1 {
  position: absolute; width: clamp(400px, 60vw, 800px); height: clamp(400px, 60vw, 800px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%);
  top: -20%; right: -10%; z-index: 0; pointer-events: none;
}
.hero-glow-2 {
  position: absolute; width: clamp(300px, 45vw, 600px); height: clamp(300px, 45vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.1) 0%, transparent 65%);
  bottom: -10%; left: -5%; z-index: 0; pointer-events: none;
}

/* Full-height centering wrapper */
.hero-inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vh, 5rem)) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vh, 6rem);
  gap: clamp(2rem, 5vw, 5rem);
}

/* — Photo side — */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  /* padding gives room for outward chips on each side */
  padding: 30px 120px 40px 110px;
}

/* The chips live inside .hero-visual so they don't bleed into text */
.photo-frame {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
}

.photo-ring {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 1.5px solid rgba(99,102,241,.25);
  animation: spinSlow 12s linear infinite;
}
.ring2 {
  inset: -32px;
  border-color: rgba(59,130,246,.12);
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.photo-circle {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2234 0%, #0f172a 100%);
  border: 2px solid rgba(99,102,241,.3);
  box-shadow: 0 0 80px rgba(99,102,241,.2), inset 0 0 40px rgba(99,102,241,.06);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.photo-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.15);
  transform-origin: center 20%;
}
.avatar-art { width: 60%; height: 60%; }
.initials {
  position: absolute; bottom: 12%;
  font-size: clamp(.9rem, 2vw, 1.5rem); font-weight: 800;
  font-family: var(--font-head); color: var(--blue); letter-spacing: .05em;
}

/* floating chips — positioned relative to .hero-visual so they stay contained */
.chip {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(17,24,39,.92);
  border: 1px solid var(--border2);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .72rem; font-weight: 600; color: var(--text-2);
  white-space: nowrap; z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: floatChip 4s ease-in-out infinite;
  pointer-events: none;
}
.chip svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--blue); }

/* Chips radiate outward from the photo circle */
.chip-1 { top: -8px;    right: -20px;  animation-delay: 0s; }   /* top-right */
.chip-2 { top: 30%;     right: -110px; animation-delay: .7s; }  /* mid-right */
.chip-3 { bottom: 30%;  left: -95px;   animation-delay: 1.3s; } /* mid-left */
.chip-4 { bottom: -8px; left: 10%;     animation-delay: 2s; }   /* bottom */

@keyframes floatChip {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* — Text side — */
.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--text-3);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.85); } }

.hero-text h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: .4rem;
}
.hero-role {
  font-size: clamp(.9rem, 1.5vw, 1.1rem); color: var(--text-3); font-weight: 400;
  margin-bottom: 1.1rem;
}
.hero-bio {
  font-size: clamp(.875rem, 1.2vw, 1rem); color: var(--text-3); line-height: 1.8;
  max-width: 520px; margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem clamp(.75rem, 2vw, 1.5rem);
  width: fit-content;
  margin-bottom: 1.75rem;
  gap: 0;
}
.stat-pill { text-align: center; padding: 0 clamp(.75rem, 2vw, 1.5rem); }
.stat-pill:first-child { padding-left: 0; }
.stat-pill:last-child  { padding-right: 0; }
.stat-n {
  display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  font-family: var(--font-head); color: var(--text); line-height: 1.1;
}
.stat-l { font-size: .7rem; color: var(--text-4); font-weight: 500; white-space: nowrap; }
.stat-divider { width: 1px; height: 36px; background: var(--border2); flex-shrink: 0; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; }

.cta-primary, .cta-secondary, .cta-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.4rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600;
  transition: all .2s; cursor: pointer;
}
.cta-primary svg, .cta-secondary svg, .cta-ghost svg { width: 18px; height: 18px; }

.cta-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.cta-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.45);
}
.cta-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border2); color: var(--text-2);
}
.cta-secondary:hover {
  color: var(--text); border-color: var(--blue);
  background: rgba(59,130,246,.08); transform: translateY(-2px);
}
.cta-ghost {
  color: var(--text-3); border: 1px solid var(--border);
  background: transparent;
}
.cta-ghost:hover {
  color: var(--text); border-color: var(--border2); transform: translateY(-2px);
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--text-4); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}
.scroll-hint:hover { color: var(--text-3); }
.scroll-hint svg { width: 16px; height: 16px; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
#about { padding: 7rem 0; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-left h2 { font-size: clamp(1.75rem,3vw,2.25rem); margin-bottom: 1.25rem; line-height: 1.25; }
.about-left p  { color: var(--text-3); margin-bottom: 1rem; }
.about-cv-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--blue); font-weight: 600; font-size: .925rem;
  margin-top: .75rem;
  transition: gap .2s;
}
.about-cv-link svg { width: 16px; height: 16px; }
.about-cv-link:hover { gap: .75rem; color: var(--blue-light); }

.about-card-stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.about-card.ac1 { border-top: 2px solid var(--blue); }
.about-card.ac2 { border-top: 2px solid var(--amber); }
.about-card.ac3 { border-top: 2px solid var(--teal); }
.about-card.ac4 { border-top: 2px solid var(--rose); }
.ac-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.about-card h4 { font-size: .9375rem; margin-bottom: .4rem; }
.about-card p  { font-size: .825rem; color: var(--text-3); line-height: 1.6; }

/* ════════════════════════════════════════
   RESEARCH AREAS
   ════════════════════════════════════════ */
#research { padding: 7rem 0; }

.research-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

.research-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.rc-number {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  opacity: .25; font-family: var(--font-head);
}
.rc-icon-wrap { margin-bottom: 1.25rem; }
.rc-icon-wrap svg { width: 48px; height: 48px; }
.research-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.research-card p  { font-size: .85rem; color: var(--text-3); line-height: 1.6; margin-bottom: 1rem; }
.rc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.rc-tags span {
  font-size: .7rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 5px; border: 1px solid currentColor;
  opacity: .7;
}

/* color themes */
.rc-blue  { color: var(--blue); }   .rc-blue:hover  { border-color: rgba(59,130,246,.4); }
.rc-purple{ color: var(--indigo); } .rc-purple:hover{ border-color: rgba(99,102,241,.4); }
.rc-teal  { color: var(--teal); }   .rc-teal:hover  { border-color: rgba(20,184,166,.4); }
.rc-amber { color: var(--amber); }  .rc-amber:hover { border-color: rgba(245,158,11,.4); }
.rc-rose  { color: var(--rose); }   .rc-rose:hover  { border-color: rgba(244,63,94,.4); }
.rc-green { color: var(--green); }  .rc-green:hover { border-color: rgba(34,197,94,.4); }

/* ════════════════════════════════════════
   EXPERIENCE
   ════════════════════════════════════════ */
#experience { padding: 7rem 0; }

.exp-timeline { display: flex; flex-direction: column; gap: 0; }

.exp-item {
  display: flex; gap: 2rem; position: relative;
}

.exp-left {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 80px;
}

.exp-logo {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border2);
  overflow: hidden;
  padding: 8px;
}
.exp-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  /* invert dark logos so they show on dark bg */
  filter: brightness(1) invert(0);
}
/* Fallback text when image fails to load */
.exp-logo[data-fallback]::after {
  content: attr(data-fallback);
  font-size: .7rem; font-weight: 800;
  color: var(--text-3); letter-spacing: .04em;
  font-family: var(--font-head);
  text-align: center;
}

.exp-connector {
  flex: 1; width: 2px; min-height: 40px;
  background: linear-gradient(to bottom, var(--border2), var(--border));
  margin: 8px 0;
}

.exp-content {
  flex: 1; padding-bottom: 3rem;
}
.exp-item:last-child .exp-content { padding-bottom: 0; }

.exp-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.exp-header h3 { font-size: 1.125rem; margin-bottom: .2rem; }
.exp-company { font-size: .875rem; color: var(--blue); font-weight: 500; }

.exp-badge {
  font-size: .75rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border2);
  color: var(--text-3); white-space: nowrap; flex-shrink: 0;
}
.exp-badge.current {
  background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.25); color: #5eead4;
}

.repeat-badge {
  font-size: .7rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 5px;
  background: rgba(245,158,11,.12); color: var(--amber);
  border: 1px solid rgba(245,158,11,.2);
  margin-left: .5rem; vertical-align: middle;
}

.exp-bullets { display: flex; flex-direction: column; gap: .75rem; }
.exp-bullet {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .875rem 1rem;
  font-size: .875rem; color: var(--text-3);
  transition: border-color .2s;
}
.exp-bullet:hover { border-color: var(--border2); }
.bullet-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ════════════════════════════════════════
   PUBLICATIONS
   ════════════════════════════════════════ */
#publications { padding: 7rem 0; }

.pub-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
}
.pf {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--border2); background: transparent;
  color: var(--text-3); font-size: .825rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.pf:hover { border-color: var(--blue); color: var(--blue); }
.pf.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-count {
  background: rgba(255,255,255,.12); border-radius: 999px;
  padding: .05rem .45rem; font-size: .7rem;
}

/* Featured */
.pub-featured {
  background: linear-gradient(135deg, rgba(245,158,11,.07) 0%, rgba(99,102,241,.07) 100%);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.pub-featured::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--amber), var(--indigo));
}
.pf-ribbon {
  font-size: .75rem; font-weight: 700;
  color: var(--amber); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.pf-meta { display: flex; gap: .5rem; margin-bottom: .75rem; }
.pf-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.pub-authors-line { font-size: .9rem; color: var(--text-3); margin-bottom: .75rem; }
.pub-authors-line strong { color: #93c5fd; }
.pub-abstract { font-size: .875rem; color: var(--text-3); line-height: 1.7; }

/* Grid */
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.pub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.pub-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.pub-card.hidden { display: none; }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.pub-card h4 { font-size: .875rem; line-height: 1.5; margin-bottom: .5rem; }
.pub-card p  { font-size: .8rem; color: var(--text-3); }
.pub-card p strong { color: #93c5fd; }
.pc-type { font-size: .7rem; color: var(--text-4); font-weight: 600; }

/* Venue pills */
.venue-pill {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 6px;
}
.venue-pill.blue   { background: rgba(59,130,246,.15); color: var(--blue-light); }
.venue-pill.teal   { background: rgba(20,184,166,.12); color: #5eead4; }
.venue-pill.purple { background: rgba(168,85,247,.12); color: #c084fc; }
.venue-pill.gold   { background: rgba(245,158,11,.12); color: var(--amber); }

/* ════════════════════════════════════════
   EDUCATION + SKILLS
   ════════════════════════════════════════ */
#education { padding: 7rem 0; }

.edu-skills-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
}
.edu-skills-grid h2 { font-size: clamp(1.5rem,2.5vw,2rem); margin-bottom: 2rem; }

/* Edu stack */
.edu-stack { display: flex; flex-direction: column; gap: 0; }
.edu-item { display: flex; gap: 1.25rem; position: relative; }
.ei-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 20px; }
.ei-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--bg); flex-shrink: 0;
  box-shadow: 0 0 10px rgba(59,130,246,.4);
}
.ei-phd .ei-dot { background: var(--indigo); box-shadow: 0 0 10px rgba(99,102,241,.4); }
.ei-ms  .ei-dot { background: var(--blue); }
.ei-be  .ei-dot { background: var(--teal); box-shadow: 0 0 10px rgba(20,184,166,.4); }

.edu-item:not(:last-child) .ei-left::after {
  content: ''; flex: 1; width: 2px;
  background: var(--border);
  margin: 6px 0;
}
.ei-body { padding-bottom: 2rem; }
.ei-degree { font-weight: 700; font-size: .975rem; color: var(--text); margin-bottom: .2rem; }
.ei-school { font-size: .875rem; color: var(--blue); font-weight: 500; margin-bottom: .2rem; }
.ei-meta   { font-size: .8rem; color: var(--text-4); }

/* Awards strip */
.awards-strip { margin-top: .5rem; }
.as-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 1rem;
}
.award-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
  font-size: .875rem; color: var(--text-3);
}
.award-row:last-child { border-bottom: none; }
.award-row.award-gold { color: var(--text); font-weight: 600; }
.award-row div { line-height: 1.5; }
.award-row div span { display: block; font-size: .8rem; font-weight: 400; color: var(--text-4); margin-top: .1rem; }
.aw-star { font-size: .85rem; flex-shrink: 0; margin-top: .1rem; }
.award-row.award-gold .aw-star { color: var(--amber); }
.aw-star.dim { color: var(--text-4); }

/* Skills */
.skill-section { margin-bottom: 1.75rem; }
.skill-cat-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: .75rem;
}
.skill-bar-list { display: flex; flex-direction: column; gap: .6rem; }
.skill-bar-item { display: flex; align-items: center; gap: 1rem; }
.skill-bar-item span { font-size: .85rem; color: var(--text-2); width: 60px; flex-shrink: 0; }
.sb-track {
  flex: 1; height: 6px; background: rgba(255,255,255,.06);
  border-radius: 999px; overflow: hidden;
}
.sb-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.sb-fill.animated { width: var(--w); }

.skill-bubbles { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-bubbles span {
  font-size: .8rem; padding: .3rem .7rem;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  color: var(--text-2);
  transition: background .2s, border-color .2s;
}
.skill-bubbles span:hover {
  background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3);
}
.skill-bubbles.domain span { color: var(--text-3); }

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
#contact { padding: 7rem 0; }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.contact-left .section-label { margin-bottom: .75rem; }
.contact-left h2 { font-size: clamp(1.75rem,3vw,2.25rem); margin-bottom: 1rem; }
.contact-left p { color: var(--text-3); margin-bottom: 1.5rem; }

.email-big {
  display: block; font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 2rem;
  transition: color .2s;
}
.email-big:hover { color: var(--blue-light); }

.social-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text-2); font-size: .875rem; font-weight: 600;
  transition: all .2s;
}
.social-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.social-btn:hover {
  border-color: var(--blue); color: var(--blue);
  background: rgba(59,130,246,.07); transform: translateY(-2px);
}

/* Contact card visual */
.contact-card-visual {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.contact-card-visual::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo), var(--teal));
}
.ccv-name {
  font-size: 1.3rem; font-weight: 800;
  font-family: var(--font-head); color: var(--text);
  margin-bottom: .3rem;
}
.ccv-title { font-size: .875rem; color: var(--text-3); margin-bottom: 1.5rem; }
.ccv-divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.ccv-row {
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; color: var(--text-3);
  margin-bottom: .75rem;
}
.ccv-row:last-child { margin-bottom: 0; }
.ccv-row svg { flex-shrink: 0; color: var(--blue); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 3rem 2rem; text-align: center;
}
.footer-inner { max-width: 400px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 1rem;
}
footer p { font-size: .875rem; color: var(--text-4); }
footer a { color: var(--text-3); }
footer a:hover { color: var(--blue); }
.footer-sub { font-size: .8rem; margin-top: .3rem; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left:0; right:0;
    background: rgba(6,11,20,.97); backdrop-filter: blur(16px);
    flex-direction: column; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem; font-size: .9375rem; }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 4rem;
  }
  .hero-visual {
    order: -1;
    padding: 50px 60px;
  }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-card-stack { grid-template-columns: 1fr; }

  .research-grid { grid-template-columns: 1fr; }

  .edu-skills-grid { grid-template-columns: 1fr; gap: 3rem; }

  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .pub-grid { grid-template-columns: 1fr; }

  .exp-item { flex-direction: column; gap: 0; }
  .exp-left { flex-direction: row; width: auto; gap: 1rem; margin-bottom: .75rem; }
  .exp-connector { display: none; }

  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .stat-pill { padding: 0 .6rem; }
  .chip { font-size: .65rem; padding: .28rem .6rem; }
  .chip-1, .chip-4 { display: none; } /* hide 2 on very small to avoid clutter */
}
