:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f7f8fb;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius: 18px;

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);

  --tag-text: #0f172a;

  --tag-conf-bg: rgba(236, 72, 153, 0.1);
  --tag-conf-br: rgba(236, 72, 153, 0.25);
  --tag-conf-tx: #9d174d;

  --tag-jour-bg: rgba(34, 197, 94, 0.1);
  --tag-jour-br: rgba(34, 197, 94, 0.25);
  --tag-jour-tx: #166534;

  --tag-prep-bg: rgba(99, 102, 241, 0.1);
  --tag-prep-br: rgba(99, 102, 241, 0.25);
  --tag-prep-tx: #3730a3;

  --tag-code-bg: rgba(20, 184, 166, 0.1);
  --tag-code-br: rgba(20, 184, 166, 0.25);
  --tag-code-tx: #0f766e;

  --tag-orcl-bg: rgba(244, 63, 94, 0.1);
  --tag-orcl-br: rgba(244, 63, 94, 0.25);
  --tag-orcl-tx: #9f1239;

  --yearbar-h: 76px;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

main {
  padding-top: 12px;
}

a {
  color: var(--accent);
}

a:hover {
  color: #1d4ed8;
}

.page-wrap {
  max-width: 1050px;
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
}

.card-elev {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.section-title {
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.jump-card {
  position: sticky;
  top: 16px;
}

.jump-title {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.jump-link {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  font-weight: 650;
  color: #27324a;
}

.jump-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* .yearbar {
  position: sticky;
  top: 68px;
  z-index: 1020;
  width: 100%;
  min-height: var(--yearbar-h);
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 251, 0.95);
  border-bottom: 1px solid var(--border);
} */

.yearbar-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0.55rem 0.75rem;
}

/* .yearbar-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
} */

.yearbar-nav::-webkit-scrollbar {
  display: none;
}

.yearbar-link {
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 750;
  color: #27324a;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: transform 0.05s ease-in-out, background 0.15s ease;
}

.yearbar-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.yearbar-link.is-active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent);
}

.anchor-section {
  scroll-margin-top: calc(68px + var(--yearbar-h) + 14px);
}

.year-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.year-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 750;
  color: #0b2a55;
}

.year-text {
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0;
}

.pub-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.pub-meta {
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.45;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--tag-text);
  text-decoration: none;
  white-space: nowrap;
}

.tag--conference {
  background: var(--tag-conf-bg);
  border-color: var(--tag-conf-br);
  color: var(--tag-conf-tx);
}

.tag--journal {
  background: var(--tag-jour-bg);
  border-color: var(--tag-jour-br);
  color: var(--tag-jour-tx);
}

.tag--preprint {
  background: var(--tag-prep-bg);
  border-color: var(--tag-prep-br);
  color: var(--tag-prep-tx);
}

.tag--code {
  background: var(--tag-code-bg);
  border-color: var(--tag-code-br);
  color: var(--tag-code-tx);
}

.tag--oracle {
  background: var(--tag-orcl-bg);
  border-color: var(--tag-orcl-br);
  color: var(--tag-orcl-tx);
}

.tag a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: #1f2a44;
  transition: transform 0.05s ease-in-out, background 0.15s ease;
}

.action:hover {
  background: #ffffff;
  transform: translateY(-1px);
  color: #0f172a;
}

.action--pdf {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

.action--ieee {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.legend .tag {
  cursor: default;
}

.theme-list {
  display: grid;
  gap: 0.75rem;
}

.theme-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.theme-item-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.theme-item-meta {
  color: var(--muted);
  line-height: 1.5;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
  transition: transform 0.05s ease-in-out, background 0.15s ease;
}

.theme-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: #1f2a44;
}

.theme-btn-secondary:hover {
  background: #ffffff;
  color: #0f172a;
}

.theme-muted {
  color: var(--muted);
}

.theme-divider {
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

@media (max-width: 991px) {
  .jump-card {
    position: static;
  }

  .legend {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .section-card,
  .theme-item {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .yearbar-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.lab-logo-inline {
  width: auto;
  height: 0.8em;
  margin-left: 0.2rem;
  vertical-align: -0.05em;
}

.people-section {
  display: grid;
  gap: 1rem;
}

.people-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}


.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.people-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 320px;
}

.person-card {
  height: auto;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.7rem;
  transition:
    transform 0.08s ease-in-out,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.person-card--featured {
  padding: 1rem;
}

.person-photo-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.person-img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  background: #f8fafc;
}

.person-img--faculty {
  height: 235px;
  object-fit: cover;
}

.person-body {
  text-align: center;
}

.person-name {
  display: inline-block;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}

.person-name:hover {
  color: var(--accent);
}

.person-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}

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

  .people-grid--single {
    grid-template-columns: 1fr;
  }

  .person-img {
    height: 220px;
  }
}

@media (max-width: 575px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .people-group {
    padding: 1rem;
  }

  .person-img {
    height: 260px;
  }
}

.page-wrap-wide {
  max-width: 1500px;
}

@media (min-width: 1600px) {
  .page-wrap-wide {
    max-width: 1650px;
  }
}


  .collab-block {
  display: grid;
  gap: 0.75rem;
}

.collab-group-title {
  display: flex;
  align-items: center;
}

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

.collab-card {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  transition: transform 0.08s ease-in-out, box-shadow 0.15s ease, border-color 0.15s ease;
}

.collab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.collab-main {
  min-width: 0;
}

.collab-name {
  display: inline-block;
  font-weight: 850;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}

.collab-name:hover {
  color: var(--accent);
}

.collab-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.collab-year {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

@media (max-width: 575px) {
  .collab-grid {
    grid-template-columns: 1fr;
  }

  .collab-card {
    min-height: auto;
  }
}

.profile-card {
  text-align: center;
}

.profile-photo {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.profile-meta {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 550;
}

.profile-email img {
  max-width: 100%;
  height: auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #1f2a44;
  text-decoration: none;
  transition: transform 0.08s ease-in-out, background 0.15s ease, border-color 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--accent);
}

.social-link i {
  font-size: 1.15rem;
  line-height: 1;
}

.updates-list {
  display: grid;
  gap: 0.85rem;
}

.update-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.update-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.update-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.update-date::before {
  content: "\F4EB";
  font-family: "bootstrap-icons";
  color: var(--accent);
  font-weight: normal;
}

.update-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.compact-pub-list {
  display: grid;
  gap: 1rem;
}

.compact-pub {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.08s ease-in-out, box-shadow 0.15s ease, border-color 0.15s ease;
}

.compact-pub:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.info-list {
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1.15rem;
}

.info-list li {
  margin-bottom: 0.35rem;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.course-block {
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.course-school {
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 0.5rem;
}


@media (max-width: 991px) {
  .profile-photo {
    width: 150px;
    height: 150px;
  }
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 68px;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.site-brand img {
  width: auto;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  color: #27324a;
  text-decoration: none;
  transition: transform 0.05s ease-in-out, background 0.15s ease, color 0.15s ease;
}

.site-nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.site-nav-link.active,
.site-nav-link.active:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-lab-link img {
  width: auto;
  height: 1.25rem;
}

.site-toggler {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
}

.site-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.site-toggler .navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
}

@media (max-width: 991px) {
  .site-navbar {
    min-height: auto;
  }

  .site-nav {
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .site-nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .site-lab-link img {
    height: 1.35rem;
  }
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cv-frame-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.cv-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 760px;
  border: 0;
}

.cv-fallback {
  padding: 2rem;
  text-align: center;
}

@media (max-width: 767px) {
  .cv-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-actions {
    justify-content: flex-start;
  }

  .cv-frame {
    height: 720px;
    min-height: 720px;
  }
}

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

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.08s ease-in-out, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.contact-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.contact-content {
  min-width: 0;
}

.contact-title {
  font-size: 1rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-text {
  color: var(--muted);
  line-height: 1.55;
}

.contact-email-img img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 0.9rem;
  }
}

html {
  font-size: 14px;
}

@media (max-width: 991.98px) {
  .yearbar {
    top: 50px;
  }
}


.yearbar {
  position: sticky;
  top: 68px;
  z-index: 1020;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.yearbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.5rem 0;
}

.yearbar-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.yearbar-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 991.98px) {
  .yearbar {
    top: 52px;
    margin: 0;
    padding: 0;
  }

  .yearbar-inner {
    width: 100%;
    padding: 0.35rem 0.75rem;
  }

  .yearbar-nav {
    justify-content: flex-start;
  }
}

.pub-venue {
  color: #1e1e96;
  font-weight: 700;
}