/* ============================================
   DESIGN SYSTEM – CSS VARIABLES
   ============================================ */
:root {
  color-scheme: light;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #6b7d91;
  --bg: #f3f8ff;
  --bg-2: #eaf3ff;
  --card: #ffffff;
  --border: #cbd2da;
  --border-hover: #b0bbc8;
  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.08), 0 1px 2px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.1), 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 18px 42px rgba(30, 41, 59, 0.13), 0 6px 16px rgba(30, 41, 59, 0.08);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
  --max-w: 1000px;
  --section-title-size: clamp(1.45rem, 3vw, 2rem);
  --ecg-color: #2563eb;
  --ecg-bright: #22d3ee;
}

/* ============================================
   PROFESSIONAL PROFILE SECTIONS
   ============================================ */
.career-section {
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.career-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  max-width: min(1180px, 100%);
  margin: 0 auto 34px;
  align-items: start;
}

.career-columns > .career-section {
  min-width: 0;
  margin: 0;
}

.career-columns .education-grid,
.career-columns .education-stays-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.career-columns .education-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
}

.career-columns .education-logo {
  width: 44px;
  height: 44px;
  padding: 5px;
}

.career-columns .education-card--current {
  padding: 18px;
}

.career-columns .education-stays {
  padding-top: 10px;
}

.career-columns .education-stays-label {
  margin-bottom: 6px;
}

.career-columns .education-stay {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  align-items: start;
}

.career-columns .education-stay-logo {
  width: 36px;
  height: 36px;
  padding: 4px;
}

.career-columns .education-stay h5 {
  font-size: 0.82rem;
}

.career-columns .education-stay p {
  font-size: 0.72rem;
}

.career-columns .education-stay .education-stay-mentors {
  margin-top: 4px;
}

.section-intro {
  margin-bottom: 18px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--section-title-size);
  letter-spacing: -0.035em;
}

.section-intro p {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  min-width: 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.skill-card > i {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 12px;
  font-size: 1.08rem;
}

.skill-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.06rem;
}

.skill-tags,
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-tags li,
.project-stack li {
  padding: 7px 11px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-card[hidden] {
  display: none;
}

.experience-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 16px auto 0;
  padding: 9px 16px;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.experience-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.experience-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.experience-toggle i {
  transition: transform 0.2s ease;
}

.experience-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.experience-card {
  position: relative;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.experience-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.experience-date {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.experience-heading h3 {
  margin: 4px 0 3px;
  color: var(--text);
  font-size: 1.06rem;
}

.experience-org {
  margin: 0;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.experience-points {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.experience-points li::marker {
  color: var(--accent);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.education-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.education-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.education-card--current {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
}

.education-logo {
  display: grid;
  width: 64px;
  height: 64px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  place-items: center;
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-copy {
  min-width: 0;
}

.education-date {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.education-copy h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.35;
}

.education-copy p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.education-copy .education-mentors {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 400;
}

.education-mentors a,
.education-stay-mentors a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.education-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--r-full);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.education-card--current .education-copy {
  padding-right: 58px;
}

.education-stays {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.education-stays-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.education-stays-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.education-stay {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.education-stay-logo {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  place-items: center;
}

.education-stay-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.education-stay-date {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.education-stay h5 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
}

.education-stay p {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.education-stay .education-stay-mentors {
  margin-top: 8px;
  font-weight: 400;
  line-height: 1.4;
}

.project-section > .section-intro {
  margin-bottom: 18px;
}

.project-facts {
  display: grid;
  gap: 8px;
  margin: 13px 0 12px;
}

.project-facts div {
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.project-facts dt {
  color: var(--text-3);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 0.77rem;
  line-height: 1.42;
}

.project-stack {
  margin-bottom: 12px;
}

.project-section .section-intro p {
  font-size: 0.93rem;
}

.project-section .selected-publications {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-section .selected-publications .publication-card,
.project-section .selected-publications .publication-card--featured,
.project-section .selected-publications .publication-card:not(.publication-card--featured) {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.project-section .selected-publications .pub-image,
.project-section .selected-publications .pub-image--banner,
.project-section .selected-publications .publication-card:not(.publication-card--featured) .pub-image {
  flex: 0 0 150px;
  width: 100%;
  height: 150px;
  min-height: 150px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.project-section .selected-publications .pub-image img,
.project-section .selected-publications .pub-image--banner img,
.project-section
  .selected-publications
  .publication-card:not(.publication-card--featured)
  .pub-image
  img {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.project-section .selected-publications .pub-content,
.project-section .selected-publications .publication-card:not(.publication-card--featured) .pub-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-section .selected-publications .pub-title,
.project-section .selected-publications .publication-card:not(.publication-card--featured) .pub-content h4 {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.project-section .project-facts {
  gap: 9px;
  margin: 11px 0 13px;
}

.project-section .project-facts div {
  padding-left: 12px;
}

.project-section .project-facts dt {
  font-size: 0.72rem;
}

.project-section .project-facts dd {
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.project-section .project-stack {
  margin-bottom: 11px;
}

.project-section .project-stack li,
.project-section .venue-badge {
  padding: 5px 9px;
  font-size: 0.7rem;
}

.project-section .pub-venues {
  margin: 4px 0 12px;
}

.project-section .authors {
  display: none;
}

.project-section .pub-actions {
  margin-top: auto;
}

.project-section .action-pill,
.project-section .selected-publications .publication-card:not(.publication-card--featured) .action-pill {
  padding: 7px 11px;
  font-size: 0.74rem;
}

@media (max-width: 860px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-grid,
  .project-section .selected-publications {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .career-section {
    margin-bottom: 28px;
  }

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

  .skill-card,
  .experience-card {
    padding: 20px;
  }

  .experience-card {
    padding-left: 20px;
  }

  .experience-heading {
    display: grid;
    gap: 8px;
  }

  .education-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 19px;
  }

  .education-logo {
    width: 56px;
    height: 56px;
  }

  .education-stays-grid {
    grid-template-columns: 1fr;
  }
}

:root.dark-mode {
  color-scheme: dark;
  --primary: #7dd3fc;
  --primary-hover: #93c5fd;
  --primary-light: #123047;
  --accent: #60a5fa;
  --accent-light: #1e3a5f;
  --text: #f1f5f9;
  --text-2: #d9e4ef;
  --text-3: #b4c4d6;
  --bg: #090f18;
  --bg-2: #101824;
  --card: #162131;
  --border: #2b3b50;
  --border-hover: #4b6380;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.34), 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.44), 0 6px 18px rgba(0, 0, 0, 0.3);
  --ecg-color: #60a5fa;
  --ecg-bright: #bfdbfe;
}

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

body {
  margin: 0;
  padding: 40px;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 20px;
  background:
    radial-gradient(ellipse 65% 42% at 12% 9%, rgba(96, 165, 250, 0.34), transparent),
    radial-gradient(ellipse 54% 38% at 88% 58%, rgba(125, 211, 252, 0.3), transparent),
    linear-gradient(180deg, #dbeafe 0%, #eff6ff 48%, #dceeff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.24s ease,
    color 0.24s ease;
}

:root.dark-mode body {
  background:
    radial-gradient(ellipse 65% 42% at 12% 9%, rgba(37, 99, 235, 0.18), transparent),
    radial-gradient(ellipse 54% 38% at 88% 58%, rgba(14, 116, 144, 0.15), transparent),
    var(--bg);
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.08s;
}
.reveal-d2 {
  transition-delay: 0.16s;
}
.reveal-d3 {
  transition-delay: 0.24s;
}
.reveal-d4 {
  transition-delay: 0.32s;
}

/* Hero reveals start visible (above the fold) */
.hero-reveal {
  opacity: 1;
  transform: translateY(0);
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-reveal-d1 {
  animation-delay: 0.1s;
}
.hero-reveal-d2 {
  animation-delay: 0.22s;
}
.hero-reveal-d3 {
  animation-delay: 0.34s;
}
.hero-reveal-d4 {
  animation-delay: 0.46s;
}
.hero-reveal-d5 {
  animation-delay: 0.58s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO / ABOUT
   ============================================ */
.top-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0 40px;
  position: relative;
}

/* Decorative background blobs */
.top-section::before,
.top-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.top-section::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 68%);
  top: -140px;
  right: -200px;
}
.top-section::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 68%);
  bottom: -60px;
  left: -120px;
}

/* Profile picture */
.profile-pic {
  flex-shrink: 0;
}

/* ── Coin flip ── */
.profile-coin {
  width: 220px;
  height: 220px;
  perspective: 800px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-coin:hover {
  transform: scale(1.06);
}

.profile-coin-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.75s ease-in-out;
}

.profile-coin.flipped .profile-coin-inner {
  transform: rotateY(180deg);
}

.profile-coin-front,
.profile-coin-back {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  transition:
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.profile-coin:hover .profile-coin-front,
.profile-coin:hover .profile-coin-back {
  box-shadow:
    0 20px 50px rgba(59, 130, 246, 0.25),
    0 8px 20px rgba(15, 23, 42, 0.14);
  filter: brightness(1.08);
}

.profile-coin-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  display: block;
}

.profile-coin-back {
  transform: rotateY(180deg);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.coin-cv-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.coin-cv-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Icon links */
.icon-links {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.icon-links a,
.icon-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.icon-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
}
.icon-links span {
  opacity: 0.38;
  cursor: default;
}

/* Profile text */
.profile-text {
  max-width: 620px;
}

.profile-text h1 {
  margin: 0 0 6px 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-text h2 {
  margin: 0 0 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
}

.profile-text p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0;
}

/* ── Keyword chips ─────────────────────── */
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
  user-select: none;
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ============================================
   INFO SECTION (Research Interests + Timeline)
   ============================================ */
.info-section {
  margin: 56px auto 0;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  align-items: start;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-heading::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.5) 0%,
    rgba(6, 182, 212, 0.3) 55%,
    transparent 100%
  );
}

.info-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.info-card:hover {
  box-shadow: var(--shadow-md);
}

/* Research interest items */
.interests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interest-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--bg-2);
  transition: all 0.22s ease;
  cursor: default;
}
.interest-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.interest-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
}
.interest-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.interest-body h4 {
  margin: 0 0 3px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}
.interest-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.45;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  margin-top: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 10px 0;
}
.timeline-item:not(.hidden):hover .timeline-right {
  transform: translateX(2px);
}
.timeline-right {
  transition: transform 0.2s ease;
}

.timeline-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.timeline-item:hover .timeline-logo {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(226, 232, 240, 0.5) 100%);
  margin-top: 6px;
  border-radius: 2px;
  min-height: 20px;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.timeline-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Date sits in the left column, beneath the logo */
.timeline-date {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 6px;
  line-height: 1.3;
  /* no pill — pure typography */
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.timeline-org {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 0.82rem;
}

.timeline-meta {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.4;
}
.timeline-meta a {
  color: var(--primary);
  text-decoration: none;
}
.timeline-meta a:hover {
  text-decoration: underline;
}

.timeline-desc {
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-3);
}

/* Background card emphasis */
.background-card {
  border-top: 3px solid var(--primary);
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--card) 18%);
  box-shadow: var(--shadow-md);
}
.background-card:hover {
  box-shadow: var(--shadow-lg);
}

.toggle-btn-wrap {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
}
.toggle-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}
.toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.15);
}

.toggle-btn-icon {
  font-size: 0.72rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.toggle-btn.expanded .toggle-btn-icon {
  transform: rotate(180deg);
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  max-width: var(--max-w);
  margin: 40px auto;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}
.news-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.news-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  margin-top: 1px;
}

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

.news-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.news-tag--preprint {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.news-tag--award {
  background: #fce7f3;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}
.news-tag--talk {
  background: #ede9fe;
  color: #4c1d95;
  border: 1px solid #ddd6fe;
}
.news-tag--paper {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
}
.news-tag--news {
  background: var(--accent-light);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

:root.dark-mode .news-tag--news {
  color: #bfdbfe;
  border-color: #3b82f6;
}

.news-date {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

.news-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.6;
}
.news-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.news-text a:hover {
  text-decoration: underline;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-section {
  max-width: min(1180px, 100%);
  margin: 8px auto 36px;
}

#allpubs {
  position: relative;
  padding-top: 0;
}

#allpubs .all-publications {
  margin-top: 0;
}

.selected-publications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.selected-publications .publication-card--featured {
  grid-column: 1 / -1;
}
.selected-publications .publication-card:not(.publication-card--featured) {
  grid-template-columns: 126px 1fr;
  padding: 0;
  gap: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.selected-publications .publication-card:not(.publication-card--featured) .pub-image {
  height: 100%;
  min-height: 156px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.selected-publications .publication-card:not(.publication-card--featured) .pub-image img {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.selected-publications .publication-card:not(.publication-card--featured) .pub-content {
  padding: 12px 14px;
}
.selected-publications .publication-card:not(.publication-card--featured) .pub-content h4 {
  font-size: 0.86rem;
  line-height: 1.34;
  margin-bottom: 6px;
}
.selected-publications .publication-card:not(.publication-card--featured) .pub-venues {
  margin: 4px 0 6px;
}
.selected-publications .publication-card:not(.publication-card--featured) .authors {
  margin-bottom: 9px;
  font-size: 0.72rem;
  line-height: 1.42;
}
.selected-publications .publication-card:not(.publication-card--featured) .action-pill {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.publication-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.32), rgba(203, 210, 218, 0))
      border-box;
  border-top: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.publication-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.pub-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-2);
  min-height: 130px;
}
.pub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: transform 0.38s ease;
}
.selected-publications .pub-image img {
  cursor: zoom-in;
}
.publication-card:hover .pub-image img {
  transform: scale(1.06);
}

.pub-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pub-year {
  padding: 3px 10px;
  border: 1px solid var(--primary);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--primary);
  background: var(--primary-light);
}

.pub-venues {
  margin: 6px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: #4338ca;
  color: #fff;
  white-space: nowrap;
}

.pub-content h4 {
  margin: 4px 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
}
.pub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pub-title a:hover {
  color: var(--primary);
}

.pub-content .authors {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.5;
}

.pub-journal {
  display: inline-block;
  margin: 2px 0 12px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-2);
  text-transform: uppercase;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 2px 10px;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  transition: all 0.2s ease;
  font-family: inherit;
  cursor: pointer;
}
.action-pill:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.action-pill.outline,
.action-pill.outline-poster {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.action-pill.outline:hover,
.action-pill.outline-poster:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.action-pill.disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

/* ── Clickable image overlay ──────────── */
a.pub-image {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}
.selected-publications .pub-image {
  position: relative;
}
.selected-publications .pub-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.1);
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: inherit;
  pointer-events: none;
}
.selected-publications .pub-image:hover::after {
  opacity: 1;
}

/* ── Pagination controls ─────────────── */
.pub-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 4px;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.page-info {
  font-size: 0.88rem;
  color: var(--text-3);
  font-weight: 600;
  min-width: 90px;
  text-align: center;
}

/* ── Featured card (full-width hero) ────── */
.publication-card--featured {
  display: block;
  padding: 0;
  overflow: hidden;
  grid-column: 1 / -1;
}

.pub-image--banner {
  display: block;
  width: 100%;
  height: 185px;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
  background: var(--bg-2);
}
.pub-image--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}
.publication-card--featured:hover .pub-image--banner img {
  transform: scale(1.04);
}

.pub-featured-label {
  position: absolute;
  top: 12px;
  left: 14px;
}

.pub-featured-label,
.pli-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.pli-featured {
  white-space: nowrap;
}

.publication-card--featured .pub-content {
  padding: 16px 20px 18px;
}

/* ── Publication type badges ─────────────── */
.pub-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pub-type--preprint,
.pub-type--under-review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.pub-type--conference {
  background: #ede9fe;
  color: #4c1d95;
  border: 1px solid #ddd6fe;
}
.pub-type--journal {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

/* ── Author name emphasis ────────────────── */
.author-self {
  font-weight: 700;
  color: var(--text-2);
}
.author-first {
  color: var(--primary);
}

/* ── Author expand/collapse ─────────────── */
.authors-extra {
  display: none;
}

.authors-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  vertical-align: baseline;
}
.authors-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Compact numbered publication list ───── */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.32), rgba(203, 210, 218, 0))
      border-box;
  border-top: 2px solid transparent;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pub-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease;
}
.pub-list-item:last-child {
  border-bottom: none;
}
.pub-list-item:hover {
  background: var(--bg-2);
}

.pli-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.pub-list-item:hover .pli-index {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

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

.pli-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.pli-title {
  margin: 0 0 5px 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.pli-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pli-title a:hover {
  color: var(--primary);
}

.pli-authors {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.5;
}

.pli-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pli-footer--stacked {
  display: grid;
  gap: 8px;
}
.pli-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pli-footer .pub-journal {
  margin: 0;
}
.pli-footer .pub-venues {
  margin: 0;
}
.pli-footer .pub-actions {
  gap: 5px;
}
.pli-footer .action-pill {
  padding: 4px 10px;
  font-size: 0.74rem;
}

/* ============================================
   FOOTER / BOTTOM
   ============================================ */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ============================================
   HERO (merged overview section)
   ============================================ */
.hero {
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 0 14px;
}

/* ── Pipeline visual ── */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 12px;
  padding: 20px 28px;
  background:
    radial-gradient(ellipse 50% 90% at 22% 50%, rgba(147, 197, 253, 0.28), transparent 72%),
    linear-gradient(120deg, #ffffff, #edf5ff 65%, #e4f0ff);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 24px;
  box-shadow: 0 20px 55px color-mix(in srgb, var(--primary) 9%, transparent), var(--shadow-sm);
}

.hero-visual::before {
  position: absolute;
  inset: 0 auto auto 12%;
  width: 76%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.65;
  pointer-events: none;
}

/* Left source cards panel */
.hv-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: center;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        160deg,
        rgba(20, 184, 166, 0.45),
        rgba(59, 130, 246, 0.26),
        rgba(203, 210, 218, 0)
      )
      border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 14px 12px;
}

.hv-panel-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 2px;
}
.hv-panel-label i {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.hv-panel-label--green {
  color: #15803d;
}
.hv-panel-label--blue {
  color: #1d4ed8;
}
.hv-panel-label--pink {
  color: #0f766e;
}

.hv-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 6px;
  cursor: default;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.hv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-2px);
}

.hv-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.hv-card-icon--echo {
  background: #ccfbf1;
  color: #0f766e;
}
.hv-card-icon--dl {
  background: #ede9fe;
  color: #6d28d9;
}
.hv-card-icon--ai {
  background: #dbeafe;
  color: #1d4ed8;
}
.hv-card-icon--ct {
  background: #ede9fe;
  color: #6d28d9;
}
.hv-card-icon--pet {
  background: #dcfce7;
  color: #15803d;
}

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

.hv-card-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.hv-card-sub {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-top: 1px;
}

.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.hv-dot--green {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.hv-dot--orange {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* Soft flow connectors, pinned to the portrait centre */
.hv-connector {
  position: relative;
  width: 100%;
  min-width: 48px;
  height: 220px;
  z-index: 0;
}

.hv-connector-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 18px;
  overflow: visible;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 10%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.28) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 10%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.28) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hv-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hv-ecg-path {
  fill: none;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px color-mix(in srgb, var(--ecg-bright) 42%, transparent));
}

.hv-ecg-dot {
  fill: var(--ecg-bright);
}

.hv-ecg-laser {
  fill: var(--ecg-color);
}

:root.dark-mode .hv-ecg-laser {
  fill: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .hv-ecg-dot,
  .hv-ecg-laser {
    display: none;
  }
}

.hv-connector--to-center .hv-connector-line {
  right: -315%;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 5%,
    rgba(0, 0, 0, 1) 12%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 5%,
    rgba(0, 0, 0, 1) 12%,
    rgba(0, 0, 0, 1) 100%
  );
}

.hv-connector--from-center .hv-connector-line {
  display: none;
}

/* Center coin */
.hv-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hv-center::before {
  position: absolute;
  left: calc(50% - 260px);
  width: 260px;
  height: 260px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hv-center .profile-coin {
  width: 190px;
  height: 190px;
  position: relative;
  z-index: 2;
  flex: none;
}

.hv-center-copy {
  min-width: 0;
}

.hv-center-name {
  margin: 6px 0 0;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--text);
  text-align: center;
}

.hv-center-subtitle {
  max-width: 320px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.35;
  text-align: center;
}

/* Output panel */
.hv-output {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: center;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        160deg,
        rgba(6, 182, 212, 0.45),
        rgba(59, 130, 246, 0.28),
        rgba(203, 210, 218, 0)
      )
      border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.hv-output--blue {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        160deg,
        rgba(45, 212, 191, 0.44),
        rgba(37, 99, 235, 0.3),
        rgba(203, 210, 218, 0)
      )
      border-box;
  border-color: transparent;
}

.hv-output-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    padding-left 0.2s ease;
}
.hv-output-item:last-of-type {
  border-bottom: none;
}
.hv-panel > .hv-output-item:hover,
.hv-output > .hv-output-item:hover {
  padding-left: 6px;
  background: color-mix(in srgb, var(--primary-light) 56%, transparent);
  border-radius: var(--r-sm);
  transform: translateX(2px);
}
.hv-panel > .hv-output-item:hover .hv-icon-wrap,
.hv-output > .hv-output-item:hover .hv-bg-logos img {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent);
}

.hv-output-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-output-dot--green {
  background: #22c55e;
}
.hv-output-dot--blue {
  background: #3b82f6;
}
.hv-output-dot--teal {
  background: #2563eb;
}
.hv-output-dot--purple {
  background: #8b5cf6;
}
.hv-output-dot--orange {
  background: #f59e0b;
}
.hv-output-dot--gray {
  background: #94a3b8;
}

.hv-output .hv-bg-extra,
.hv-output .hv-people-extra {
  overflow: hidden;
  max-height: 90px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.36s ease,
    opacity 0.26s ease,
    transform 0.36s ease,
    padding 0.36s ease,
    margin 0.36s ease,
    border-color 0.36s ease;
}

.hv-output .hv-output-item.hv-bg-extra.hidden {
  display: flex;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.hv-output .hv-bg-group-label.hv-bg-extra.hidden {
  display: block;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  border-top-color: transparent;
  pointer-events: none;
}

.hv-output .hv-people-extra.hidden {
  display: block;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.hv-show-more {
  width: 100%;
  margin-top: 8px;
  padding: 6px 0 0;
  border: none;
  border-top: 1px solid rgba(191, 219, 254, 0.7);
  background: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.hv-show-more i {
  font-size: 0.52rem;
  transition: transform 0.25s ease;
}
.hv-show-more:hover {
  opacity: 0.65;
}

.hv-output-title {
  font-size: 0.96rem;
  color: var(--text-2);
  flex: 1;
  font-weight: 500;
  line-height: 1.25;
}

.hv-output-time {
  font-size: 0.84rem;
  color: var(--text-3);
  white-space: nowrap;
}

.hv-panel .hv-output-time {
  white-space: normal;
  line-height: 1.3;
}

.hv-output-stat {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(187, 247, 208, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hv-stat-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.hv-stat-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.hv-stat-blue {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.hv-stat-label {
  font-size: 0.6rem;
  color: var(--text-3);
}

/* ── Logo stack inside background output items ── */
.hv-bg-logos {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.hv-bg-logos img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}
.hv-bg-logos img + img {
  margin-left: -8px;
}

.hv-bg-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 1px;
}
.hv-bg-info .hv-output-title {
  font-size: 0.96rem;
}
.hv-bg-info .hv-output-time {
  font-size: 0.84rem;
}

.hv-bg-info .hv-output-time--split {
  display: grid;
  gap: 1px;
  white-space: normal;
  line-height: 1.25;
}

.hv-output-spec {
  font-size: 0.83rem;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.2;
}

.hv-bg-group-label {
  margin: 10px 0 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(191, 219, 254, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.hv-output-people {
  font-size: 0.83rem;
  color: var(--primary);
  line-height: 1.35;
}
.hv-output-people b {
  color: var(--text-3);
  font-weight: 600;
  font-style: normal;
}
.hv-output-people a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  text-underline-offset: 2px;
}
.hv-output-people a:hover,
.hv-output-people a:focus-visible {
  text-decoration: underline;
}

/* Icon wrap for left panel items */
.hv-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.hv-icon-wrap--pink {
  background: #ccfbf1;
  color: #0f766e;
}
.hv-icon-wrap--purple {
  background: #ede9fe;
  color: #6d28d9;
}
.hv-icon-wrap--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ── Hero text content ── */
.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 42px;
  row-gap: 24px;
  text-align: left;
  max-width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-about {
  display: contents;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hv-center-name {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  letter-spacing: 0;
  text-align: left;
  color: var(--text);
  background: linear-gradient(115deg, var(--text) 25%, var(--primary) 100%);
  background-clip: text;
  white-space: normal;
  -webkit-text-fill-color: transparent;
}

.hero .hv-center-subtitle {
  display: block;
  max-width: 320px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.35;
  text-align: left;
}

.hero .hv-center-affiliation {
  margin: 5px 0 0;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.35;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-2);
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.hero-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow:
    0 5px 16px rgba(30, 41, 59, 0.09),
    0 1px 2px rgba(30, 41, 59, 0.06);
}
.hero-link-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 9px 22px rgba(59, 130, 246, 0.16),
    0 2px 4px rgba(30, 41, 59, 0.08);
}
.hero-link-btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.hero-sep {
  display: none;
}

.hero-about-card,
.hero-selected {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(139, 92, 246, 0.07), transparent), var(--card);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px 20px;
  overflow: visible;
  height: 100%;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}
.hero-about-card:hover,
.hero-selected:hover,
.hero-selected:focus-within {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-about-card {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.hero-about-card h3,
.hero-selected h3 {
  position: absolute;
  top: -14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #f2f4f7 0%, var(--card) 72%);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-about-card h3 i,
.hero-selected h3 i {
  font-size: 0.74rem;
}

.hero-bio {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.82;
  margin: 0;
}

.about-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-snapshot-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--card) 50%, var(--bg-2));
  box-shadow: var(--shadow-sm);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.about-snapshot-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1rem;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-snapshot-item:hover {
  background: color-mix(in srgb, var(--primary-light) 58%, transparent);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.about-snapshot-item:hover .about-snapshot-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

.about-snapshot-item h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--primary-hover);
}

.about-snapshot-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-2);
}

.about-snapshot-item p strong {
  color: var(--text);
  font-weight: 750;
}

.about-current-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 4px 10px;
  border: 1px solid rgba(67, 56, 202, 0.22);
  border-radius: var(--r-full);
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-current-location i {
  font-size: 0.72rem;
}

.hero-selected {
  grid-column: 2;
  margin-top: 0;
}

.hero-work {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: stretch;
  gap: 14px;
  margin: 0 -10px;
  padding: 14px 10px;
  border-top: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.hero-work::after {
  content: "\f35d";
  position: absolute;
  top: 14px;
  right: 12px;
  font: var(--fa-font-solid);
  font-size: 0.72rem;
  color: var(--primary);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.hero-work:first-of-type {
  border-top: none;
  padding-top: 0;
}
.hero-work:hover,
.hero-work:focus-visible {
  background: color-mix(in srgb, var(--primary-light) 56%, transparent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
  outline: none;
}
.hero-work:hover::after,
.hero-work:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
.hero-work:hover .hero-work-title,
.hero-work:focus-visible .hero-work-title {
  color: var(--primary);
}

.hero-work--featured {
  grid-template-columns: 178px 1fr;
  padding-bottom: 16px;
}

.hero-work img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition:
    filter 0.24s ease,
    transform 0.24s ease;
}
.hero-work img:hover {
  filter: saturate(1.08) contrast(1.03);
  box-shadow: 0 -12px 22px rgba(96, 165, 250, 0.34);
  transform: scale(1.025);
}

.hero-work-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.hero-work-meta {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-work-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.18s ease;
}

.hero-work-note {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    animation: none;
  }

  .hero-about-card,
  .hero-selected,
  .about-snapshot-item,
  .about-snapshot-icon,
  .hero-work,
  .hero-work::after,
  .hero-work img {
    transition: none;
  }

  .hero-about-card:hover,
  .hero-selected:hover,
  .hero-selected:focus-within,
  .about-snapshot-item:hover,
  .about-snapshot-item:hover .about-snapshot-icon,
  .hero-work:hover,
  .hero-work:focus-visible,
  .hero-work:hover img,
  .hero-work:focus-visible img {
    transform: none;
  }
}

.hero-features {
  font-size: 0.87rem;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 2;
}
.hero-features strong {
  color: var(--text);
}

.feat-sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--text-3);
}

/* ── Inline news at bottom of hero ── */
.hero-news {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  max-width: 620px;
  margin: 0 auto;
}

.hero-news-header {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-news-header i {
  color: var(--accent);
}

.hero-news-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-news-text {
  font-size: 0.84rem;
  color: var(--text-2);
  flex: 1;
  min-width: 180px;
  line-height: 1.5;
}
.hero-news-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.hero-news-text a:hover {
  text-decoration: underline;
}

.hero-news-date {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Publication filters ── */
.pub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
}
.pub-filter {
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--card);
  color: var(--text-2);
  padding: 5px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.pub-filter:hover,
.pub-filter.is-active {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.pub-filter-count {
  color: var(--text-3);
  font-size: 0.78rem;
  margin-left: 2px;
}

/* ── Image preview modal ── */
.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(7, 17, 31, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.image-preview-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.image-preview-frame {
  max-width: min(1040px, 94vw);
  max-height: 88vh;
  margin: 0;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: scale(0.97);
  transition: transform 0.2s ease;
  overflow: auto;
}
.image-preview-modal.is-open .image-preview-frame {
  transform: scale(1);
}
.image-preview-frame img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--r-md);
  object-fit: contain;
  background: var(--bg-2);
  cursor: zoom-in;
  transform-origin: center center;
  transition:
    box-shadow 0.22s ease,
    max-height 0.22s ease,
    max-width 0.22s ease,
    width 0.22s ease;
}
.image-preview-frame img.is-zoomed {
  width: min(1800px, 180vw);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  box-shadow: var(--shadow-md);
}
.image-preview-frame figcaption {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  text-align: center;
}
.image-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-full);
  background: rgba(15, 23, 42, 0.64);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

:root.dark-mode .hero-visual {
  background:
    radial-gradient(ellipse 60% 90% at 22% 50%, rgba(96, 165, 250, 0.15), transparent),
    linear-gradient(120deg, var(--card), var(--bg-2));
  border-color: var(--border);
}

:root.dark-mode .hv-panel {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        160deg,
        rgba(45, 212, 191, 0.35),
        rgba(96, 165, 250, 0.24),
        rgba(43, 59, 80, 0)
      )
      border-box;
  border-color: transparent;
}

:root.dark-mode .hv-output,
:root.dark-mode .hv-output--blue {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, rgba(45, 212, 191, 0.36), rgba(96, 165, 250, 0.24), rgba(43, 59, 80, 0))
      border-box;
  border-color: transparent;
}

:root.dark-mode .hv-icon-wrap--pink,
:root.dark-mode .hv-card-icon--echo {
  background: #0f3f3a;
  color: #5eead4;
}

:root.dark-mode .hv-icon-wrap--purple,
:root.dark-mode .hv-card-icon--dl,
:root.dark-mode .hv-card-icon--ct {
  background: #24164a;
  color: #c4b5fd;
}

:root.dark-mode .hv-icon-wrap--blue,
:root.dark-mode .hv-card-icon--ai {
  background: #10243f;
  color: #93c5fd;
}

:root.dark-mode .hv-bg-logos img {
  background: #f8fafc;
  border-color: #dbeafe;
}

:root.dark-mode .hero-about-card h3,
:root.dark-mode .hero-selected h3 {
  background: #1d2c40;
  border-color: #405a78;
  box-shadow:
    0 8px 22px rgba(14, 165, 233, 0.14),
    var(--shadow-sm);
}

:root.dark-mode .hero-link-btn {
  background: #172233;
  color: #eaf2fb;
  border-color: #405a78;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root.dark-mode .hero-link-btn:hover {
  background: #1d334d;
  color: #93c5fd;
  border-color: #7dd3fc;
}

:root.dark-mode .news-tag--preprint,
:root.dark-mode .pub-type--preprint,
:root.dark-mode .pub-type--under-review {
  background: #4a3710;
  color: #fcd34d;
  border-color: #8a6819;
}

:root.dark-mode .news-tag--award {
  background: #4a1b39;
  color: #f9a8d4;
  border-color: #833262;
}

:root.dark-mode .news-tag--talk,
:root.dark-mode .pub-type--conference {
  background: #30205f;
  color: #ddd6fe;
  border-color: #6540a8;
}

:root.dark-mode .news-tag--paper,
:root.dark-mode .pub-type--journal {
  background: #153f27;
  color: #86efac;
  border-color: #2f6b49;
}

:root.dark-mode .background-card {
  background: var(--card);
  border-top-color: #60a5fa;
}

:root.dark-mode .about-snapshot-item {
  border-top-color: rgba(59, 86, 118, 0.72);
  background: linear-gradient(145deg, var(--card), var(--bg-2));
}

:root.dark-mode .about-current-location {
  background: #243650;
  color: #dbeafe;
  border-color: #547299;
}

@media (max-width: 1120px) {
  .hero-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 24px;
  }

  .hv-connector {
    display: none;
  }

  .hv-panel,
  .hv-output,
  .hv-output--blue {
    align-self: stretch;
  }

  .hv-center .profile-coin {
    width: 180px;
    height: 180px;
  }

  .hv-center-name {
    font-size: 1.8rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none;
}

.hv-output .hv-output-item.hv-bg-extra.hidden {
  display: flex;
}

.hv-output .hv-bg-group-label.hv-bg-extra.hidden,
.hv-output .hv-people-extra.hidden {
  display: block;
}

section[id],
header[id],
div[id] {
  scroll-margin-top: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .career-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .career-columns .education-grid,
  .career-columns .education-stays-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  /* ── Hero ── */
  .top-section {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 14px 0 24px;
  }
  .top-section::before,
  .top-section::after {
    display: none;
  }

  .profile-coin {
    width: 160px;
    height: 160px;
  }

  .profile-text h1 {
    font-size: 1.75rem;
  }
  .profile-text h2 {
    font-size: 0.88rem;
  }
  .profile-text p {
    font-size: 0.87rem;
  }

  .keyword-chips {
    justify-content: center;
  }

  .icon-links {
    gap: 8px;
  }

  /* ── Info / Research grid ── */
  .info-section {
    grid-template-columns: 1fr;
    margin-top: 28px;
    gap: 24px;
  }

  .info-card {
    padding: 18px 16px;
  }

  .section-heading {
    font-size: 1.15rem;
  }

  /* ── Timeline ── */
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .timeline-logo {
    width: 40px;
    height: 40px;
  }
  .timeline-header h4 {
    font-size: 0.84rem;
  }
  .timeline-org {
    font-size: 0.78rem;
  }
  .timeline-meta,
  .timeline-desc {
    font-size: 0.75rem;
  }

  /* ── News ── */
  .news-section {
    margin: 28px auto;
  }
  .news-item {
    padding: 14px 14px;
    gap: 12px;
  }
  .news-item-icon {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
    border-radius: var(--r-sm);
  }
  .news-text {
    font-size: 0.83rem;
  }

  /* ── Publication cards (selected) ── */
  .pub-filter-bar {
    justify-content: flex-start;
    flex-basis: 100%;
    margin-top: 2px;
    padding-bottom: 0;
  }

  .selected-publications {
    grid-template-columns: 1fr;
  }
  .selected-publications .publication-card--featured {
    grid-column: 1 / -1;
  }
  .selected-publications .publication-card:not(.publication-card--featured) {
    grid-template-columns: 1fr;
  }
  .selected-publications .publication-card:not(.publication-card--featured) .pub-image {
    height: 150px;
    min-height: unset;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .selected-publications .publication-card:not(.publication-card--featured) .pub-image img {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .publication-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .pub-image {
    height: 180px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .pub-image img {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .pub-content {
    padding: 16px;
  }

  /* ── Publication list items ── */
  .pub-list-item {
    padding: 14px 14px;
    gap: 12px;
  }
  .pli-title {
    font-size: 0.84rem;
  }
  .pli-authors {
    font-size: 0.72rem;
  }
  .pli-footer {
    gap: 6px;
  }
  .pli-footer .action-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* ── Action pills: bigger tap targets ── */
  .action-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* ── Featured pub banner ── */
  .pub-image--banner {
    height: 160px;
  }

  /* ── Pagination ── */
  .page-btn {
    width: 38px;
    height: 38px;
  }
  .page-info {
    font-size: 0.78rem;
  }

  /* ── Footer ── */
  .site-footer {
    font-size: 0.74rem;
  }

  /* ── Hero (new merged section) ── */
  .hv-connector {
    display: none;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .hv-center {
    order: 1;
  }

  .hv-panel {
    order: 2;
  }

  .hv-output,
  .hv-output--blue {
    order: 3;
  }

  .hv-panel,
  .hv-output,
  .hv-output--blue {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
  }

  .hv-panel-label {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .hv-output-item {
    padding: 6px 0;
    gap: 7px;
  }

  .hv-icon-wrap,
  .hv-bg-logos img {
    width: 28px;
    height: 28px;
  }

  .hv-output-title,
  .hv-bg-info .hv-output-title {
    font-size: 0.8rem;
  }

  .hv-output-time,
  .hv-bg-info .hv-output-time,
  .hv-output-spec,
  .hv-output-people {
    font-size: 0.68rem;
  }

  .hv-center {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .hv-center::before {
    top: -25px;
    left: auto;
    width: 190px;
    height: 190px;
  }

  .hv-center-copy {
    text-align: center;
  }

  .hv-center .profile-coin {
    width: 150px;
    height: 150px;
  }

  .hero .hv-center-name {
    font-size: clamp(1.2rem, 6.2vw, 1.6rem);
    max-width: none;
    text-align: center;
    white-space: normal;
  }

  .hero .hv-center-subtitle {
    max-width: 280px;
    font-size: 0.76rem;
    text-align: center;
  }

  .hero .hv-center-affiliation {
    font-size: 0.8rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.87rem;
    margin-bottom: 16px;
  }
  .hero-bio {
    font-size: 0.87rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-links {
    gap: 7px;
    margin-bottom: 16px;
  }
  .hero-links {
    justify-content: center;
  }
  .hero-link-btn {
    padding: 4px 11px;
    font-size: 0.8rem;
  }

  .hero-about-card,
  .hero-bio {
    grid-column: 1;
    text-align: left;
  }

  .hero-about-card,
  .hero-selected {
    grid-column: 1;
    text-align: left;
    padding: 14px;
    margin-top: 0;
  }

  .hero-work,
  .hero-work--featured {
    grid-template-columns: 96px 1fr;
  }

  .hero-features {
    font-size: 0.82rem;
  }
  .feat-sep {
    margin: 0 6px;
  }

  .hero-news {
    padding: 12px 14px;
  }
  .hero-news-text {
    font-size: 0.8rem;
  }

  .image-preview-modal {
    padding: 14px;
  }
}

@media (max-width: 860px) {
  .about-snapshot {
    grid-template-columns: 1fr;
  }
}
