:root {
  --bg: #0f0f0f;
  --text: #e0e0e0;
  --muted: #888888;
  --link: #a80015;
  --link-hover: #D6001C;
  --accent: #a80015;
  --accent-light: rgba(168, 0, 21, 0.1);
  --card: #1a1a1a;
  --border: #2a2a2a;
  --radius: 8px;
  --shadow: 0 2px 4px rgba(0,0,0,.2), 0 5px 15px rgba(0,0,0,.3);
  --shadow-lg: 0 5px 15px rgba(0,0,0,.3), 0 15px 35px rgba(0,0,0,.4);
  --base-font-size: 0.9rem;
}
/* Force dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #e0e0e0;
    --muted: #888888;
    --link: #a80015;
    --link-hover: #D6001C;
    --accent: #a80015;
    --accent-light: rgba(168, 0, 21, 0.1);
    --card: #1a1a1a;
    --border: #2a2a2a;
    --shadow: 0 2px 4px rgba(0,0,0,.2), 0 5px 15px rgba(0,0,0,.3);
    --shadow-lg: 0 5px 15px rgba(0,0,0,.3), 0 15px 35px rgba(0,0,0,.4);
  --base-font-size: 0.9rem;
  }
}
html[data-theme='day'] {
  --bg: #ffffff;
  --text: #1b1d21;
  --muted: #5f6368;
  --link: #0b72b9;
  --link-hover: #095a91;
  --accent: #0b72b9;
  --accent-light: rgba(11, 114, 185, 0.12);
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08), 0 12px 38px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 28px 70px rgba(15, 23, 42, 0.14);
}
html[data-theme='day'] body {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,243,243,0.96));
}
html[data-theme='day'] .hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,247,250,0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
}
html[data-theme='day'] .hero-card::before {
  background: radial-gradient(circle at top right, var(--accent-light), transparent 70%);
}
html[data-theme='day'] table.section:nth-of-type(odd) {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,247,252,0.94));
}
html[data-theme='day'] table.section:nth-of-type(even) {
  background: linear-gradient(135deg, rgba(255,255,255,0.99), rgba(237,242,250,0.95));
}
html[data-theme='day'] table.pubs > tbody > tr {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,247,252,0.94));
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow);
}
html[data-theme='day'] table.pubs > tbody > tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(255,255,255,0.99), rgba(237,242,250,0.95));
}
html[data-theme='day'] .site-header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(255,255,255,0.86));
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
html[data-theme='day'] footer {
  background: var(--bg);
  border-top: 1px solid rgba(15,23,42,0.08);
}
html[data-theme='day'] .section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}
html[data-theme='day'] .section-body {
  background: var(--bg);
  background-image: none;
}
html[data-theme='day'] .hero-tagline {
  color: rgba(79, 86, 100, 0.75);
}
html[data-theme='day'] .hero-summary p {
  color: rgba(33, 42, 56, 0.82);
}
html[data-theme='day'] .site-nav a {
  color: rgba(60, 66, 77, 0.7);
}
html[data-theme='day'] .section-title {
  color: var(--text);
}
html[data-theme='day'] .section-list li {
  color: var(--text);
}
html[data-theme='day'] .section-intro {
  color: var(--text);
}
html[data-theme='day'] .footer-links a {
  color: rgba(47, 55, 66, 0.82);
}
html[data-theme='day'] .footer-meta {
  color: rgba(118, 124, 135, 0.6);
}
html[data-theme='day'] .footer-credit {
  color: rgba(118, 124, 135, 0.5);
}
html[data-theme='day'] .footer-credit a {
  color: rgba(100, 107, 119, 0.6);
}
html[data-theme='day'] .footer-credit a:hover {
  color: rgba(60, 66, 77, 0.8);
}
html[data-theme='day'] .pub-tag {
  background: rgba(11,114,185,0.14);
  color: rgba(15,23,42,0.85);
}
html[data-theme='day'] table.section td[width="100"] {
  color: rgba(33, 42, 56, 0.82);
}
html[data-theme='day'] .hero-name {
  color: rgba(20, 28, 40, 0.96);
  text-shadow: none;
}
html[data-theme='day'] .section-column--label {
  color: rgba(100, 107, 119, 0.62);
}
html[data-theme='day'] table.pubs td[width="75%"] > p {
  color: rgba(57, 65, 80, 0.82);
}
html[data-theme='day'] table.section p, html[data-theme='day'] table.section ul {
  color: rgba(55, 65, 81, 0.85);
}
html[data-theme='day'] footer {
  color: rgba(91, 99, 110, 0.65);
}
html[data-theme='day'] .pub-card__authors {
  color: rgba(47, 55, 66, 0.82);
}
html[data-theme='day'] .pub-card__abstract {
  color: var(--text);
}
html[data-theme='day'] .hero-avatar::before {
  background: linear-gradient(135deg, var(--accent-light), transparent 70%);
}
html[data-theme='day'] table.section:hover,
html[data-theme='day'] .section:hover {
  border-color: rgba(11, 114, 185, 0.28);
}
html[data-theme='day'] table.pubs > tbody > tr:hover {
  border-color: rgba(11, 114, 185, 0.3);
}
html[data-theme='day'] .section-list--highlight li {
  background: rgba(11, 114, 185, 0.1);
  border: 1px solid rgba(11, 114, 185, 0.2);
}
html[data-theme='day'] .section-list li::before {
  background: var(--accent);
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(18,18,18,0.96));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px;
  color: var(--text);
}
a {
  color: var(--link);
  text-decoration: none;
  transition: color .2s ease, background-size .3s ease;
  text-underline-offset: 2px;
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
}
a:hover, a:focus {
  color: var(--link-hover);
  background-size: 100% 2px;
}
a:visited {
  color: var(--link);
}
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
/* Animated underline for paragraph links */
p a, li a {
  background-image: linear-gradient(var(--link-hover), var(--link-hover));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s ease, color .2s ease;
}
p a:hover, li a:hover {
  background-size: 100% 2px;
}
/* Neutralize legacy inline font colors in HTML */
font[color] { color: var(--text) !important; }
font[color="red"] { color: var(--text) !important; }




.one { width: 160px; height: 160px; position: relative; }
.two { width: 160px; height: 160px; position: absolute; transition: opacity .2s ease-in-out; }
.fade { transition: opacity .2s ease-in-out; }
span.highlight { background-color: #f5f5f5; }
.emphasis-link {
  color: var(--link);
  transition: color .2s ease;
}
.emphasis-link:hover {
  color: var(--link-hover);
}
.legacy-link {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--link);
}
.legacy-link:hover {
  color: var(--link-hover);
}
.pub-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--base-font-size);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: rgba(214,0,28,0.16);
  color: rgba(255,255,255,0.85);
  vertical-align: middle;
}
.hero-cta-group a span {
  display: inline-block;
}
img { 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  max-width: 100%; 
  height: auto;
  transition: transform .3s ease, box-shadow .3s ease;
}
img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}



/* Section card */

table.section:nth-of-type(odd) {
  background: linear-gradient(135deg, rgba(40,40,40,0.94), rgba(16,16,16,0.9));
}
table.section:nth-of-type(even) {
  background: linear-gradient(135deg, rgba(28,28,28,0.94), rgba(12,12,12,0.9));
}
table.section:hover {
  box-shadow: 0 32px 70px rgba(0,0,0,0.34);
  transform: translateY(-6px);
  border-color: rgba(214,0,28,0.45);
}
table.section:hover::after {
  opacity: 1;
}
table.section:hover::before {
  transform: translate3d(-3%, -3%, 0);
}
table.section 
.table-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 16px 0;
}
table.section td[width="100"] {
  padding-right: 32px !important;
  font-weight: 600;
  color: rgba(224,224,224,0.78);
}
table.section p {
  font-size: var(--base-font-size);
  margin: 0;
}
table.section ul {
  font-size: var(--base-font-size);
  margin: 0;
  padding-left: 20px;
}
table.section tr + tr {
  border-top: 1px solid rgba(255,255,255,0.05);
}
/* Synergistic Activities section */
table.synergistic-section p,
table.synergistic-section strong,
table.synergistic-section a {
  font-size: var(--base-font-size);
}
table.synergistic-section .section-list li,
table.synergistic-section .section-list li a,
table.synergistic-section .section-list li strong {
  font-size: var(--base-font-size);
  line-height: 1.6;
}
ul { 
  line-height: 1.6;
  padding-left: 24px;
  margin: 12px 0;
}
ul li {
  margin-bottom: 6px;
  color: var(--text);
  break-inside: avoid;
}
p {
  margin: 0 0 8px 0;
  color: var(--text);
  line-height: 1.6;
}
p:last-child {
  margin-bottom: 0;
}
/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(15,15,15,0.96), rgba(15,15,15,0.8));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.site-header__inner {
  width: min(92vw, 1024px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { 
  font-weight: 700; 
  font-size: calc(var(--base-font-size) * 1.05);
  color: var(--text); 
  letter-spacing: -.3px;
  transition: color .2s ease;
}
.brand:hover {
  color: var(--accent);
}
.site-nav a {
  margin-left: 20px;
  color: rgba(224,224,224,0.65);
  font-weight: 600;
  font-size: calc(var(--base-font-size) * 1.05);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.4px;
  transition: color .25s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .3s ease;
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav a:hover::after {
  width: 100%;
}
/* Hero section */
.hero-section {
  margin-bottom: 56px;
  position: relative;
  padding: 0 !important;
  background: transparent;
  perspective: 1200px;
}
.hero-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(38,38,38,0.92), rgba(18,18,18,0.92));
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.4);
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -40% -50% 45% 50%;
  background: radial-gradient(circle at top right, rgba(214,0,28,0.22), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
  transform: translate3d(0,0,0);
  transition: transform 1.2s ease;
}
.hero-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-10%, -50%);
  width: 400px;
  height: 400px;
  background-image: url('rpi_seal.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.01;
  z-index: 1;
  pointer-events: none;
  filter: invert(1);
}

html[data-theme='day'] .hero-card::after {
  filter: none;
  opacity: 0.02;
}


.hero-card:hover::before {
  transform: translate3d(-4%, -4%, 0);
}

 .hero-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  align-items: center;
}
.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-tagline {
  font-size: var(--base-font-size);
  font-weight: 500;
  color: rgba(224,224,224,0.75);
  margin: 0;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
.hero-summary {
  display: grid;
  gap: 12px;
}
.hero-summary p {
  font-size: var(--base-font-size);
  margin: 0;
  color: rgba(224,224,224,0.86);
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
/* Hero CTA buttons */
.hero-cta-group a {
  font-weight: 600;
  font-size: var(--base-font-size);
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--link);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .2s ease;
}
.hero-cta-group a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(168,0,21,0.45);
}
.hero-cta-group a i {
  font-size: var(--base-font-size);
  position: relative;
  top: 0;
  margin: 0;
  transition: transform .2s ease;
}
.hero-cta-group a:hover i {
  transform: scale(1.1);
}
.hero-avatar {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(214,0,28,0.38), transparent 70%);
  opacity: 0.65;
  filter: blur(0px);
  transition: opacity .6s ease, transform .6s ease;
}
.hero-avatar:hover::before {
  opacity: 0.9;
  transform: scale(1.06);
}
.hero-avatar img {
  border-radius: 18px;
  display: block;
  width: 190px;
  height: 190px;
  object-fit: cover;
  object-position: 50% 28%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-avatar img:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.hero-section p {
  font-size: var(--base-font-size);
  line-height: 1.6;
}
/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--link-hover));
  z-index: 10000;
  transition: width .1s ease;
}
/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  box-shadow: 0 4px 12px rgba(168, 0, 21, 0.3);
  z-index: 9999;
  font-size: var(--base-font-size);
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 0, 21, 0.4);
}
/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
@media (max-width: 960px) {
  body {
    margin: 0;
    background: var(--bg);
    background-image: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(18,18,18,0.96));
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
    color: var(--text);
  }
  .page {
    width: 95vw;
    gap: 32px;
    margin-bottom: 48px;
  }
  td[width="33%"] img { 
    width: 100%; 
    height: auto; 
  }
  .site-header__inner { 
    padding: 12px 20px; 
  }
  .site-nav { 
    display: none; 
  }
  .hero-section td[width="33%"] img {
    max-width: 180px;
    display: block;
    margin: 0 auto 16px auto;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  /* Mobile nav toggle */
  .mobile-nav-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.mobile-open a {
    margin: 8px 0;
    padding: 12px 8px;
    font-size: 1.05rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Stack sections on mobile */
  table.section td[width="100"] {
    display: block;
    width: 100% !important;
    padding-bottom: 12px !important;
  }
  table.section tr {
    display: block;
  }
  .hero-card {
    border-radius: 20px;
  }
  .section {
    border-radius: 20px;
    padding: 28px 20px;
  }
}
@media (min-width: 961px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Publications grid - Compact Horizontal Layout */
table.pubs { 
  border: none; 
  background: transparent; 
  box-shadow: none; 
}
/* Publications grid spacing */
table.pubs > tbody > tr {
  display: grid;
  grid-template-columns: minmax(140px, 20%) 1fr;
  gap: 32px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(32,32,32,0.95), rgba(24,24,24,0.9));
  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1), border .3s ease;
  position: relative;
  overflow: hidden;
}
table.pubs > tbody > tr.reveal { 
  opacity: 1; 
  transform: none; 
}
table.pubs > tbody > tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(16,16,16,0.88));
}
table.pubs > tbody > tr + tr {
  margin-top: 10px;
}
table.pubs > tbody > tr:hover {
  border-color: rgba(214,0,28,0.7);
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0,0,0,0.32);
}
/* Richer hover accent */
table.pubs > tbody > tr::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(214,0,28,0.08), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
table.pubs > tbody > tr:hover::after {
  opacity: 1;
}
/* Image container - 20% width */
table.pubs td[width="25%"] {
  width: 100% !important;
  padding: 0;
  margin: 0;
}
table.pubs img { 
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
table.pubs > tbody > tr:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
/* Content container */
table.pubs td[width="75%"] {
  width: 100% !important;
  padding: 0;
}
table.pubs 
table.pubs td[width="75%"] > p {
  font-size: var(--base-font-size);
  line-height: 1.65;
  color: rgba(224,224,224,0.82);
}
table.pubs td[width="75%"] > p:first-child {
  margin-bottom: 18px;
  font-size: var(--base-font-size);
  color: var(--text);
  font-weight: 700;
}
table.pubs td[width="75%"] > p:last-child,
table.pubs td[width="75%"] > p:nth-last-child(2) {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: calc(var(--base-font-size) * 0.95);
}
table.pubs td[width="75%"] br {
  display: inline;
  content: ' ';
}
table.pubs td[width="75%"] a {
  font-size: var(--base-font-size);
}
table.pubs em {
  color: var(--muted);
  font-size: var(--base-font-size) !important;
  font-style: normal;
}
table.pubs strong {
  color: var(--text);
  font-weight: 600;
  font-size: var(--base-font-size);
}
@media (max-width: 768px) {
  .page {
    width: 96vw;
    gap: 28px;
  }
  table.pubs > tbody > tr {
    grid-template-columns: 35% 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
  }
  table.pubs td[width="75%"] > p:last-child {
    font-size: var(--base-font-size);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .hero-card__inner {
    gap: 24px;
  }
  .hero-name {
    font-size: clamp(2.4rem, 9vw, 3rem);
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  /* Better touch targets for links */
  a {
    padding: 2px 0;
  }
  .footer-links a {
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 640px) {
  .page {
    width: 92vw;
    gap: 24px;
    margin-bottom: 36px;
  }
  table.pubs > tbody > tr {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
  }
  table.pubs img {
    max-width: 200px;
    margin: 0 auto;
    border-radius: 10px;
  }
  .section {
    padding: 24px 18px;
    border-radius: 16px;
  }
  /* Improve readability on small screens */
  body {
    font-size: 15px;
    line-height: 1.65;
  }
  /* Better spacing for hero section */
  .hero-card__inner {
    padding: 24px 18px;
    gap: 20px;
  }
  .hero-name {
    font-size: clamp(2rem, 8vw, 2.4rem);
    line-height: 1.2;
  }
  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  /* Optimize CTA buttons for touch */
  .hero-cta-group {
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero-cta-group a {
    padding: 12px 20px;
    font-size: 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Footer improvements */
  footer {
    padding: 32px 18px 28px;
    margin-top: 48px;
  }
  .footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }
}

footer {
  padding: 42px 0 34px 0;
  text-align: center;
  color: rgba(224,224,224,0.6);
  font-size: var(--base-font-size);
  background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(5,5,5,0.95));
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 70px;
}
footer p {
  margin: 0 0 10px 0;
  line-height: 1.6;
  font-size: var(--base-font-size);
}
.footer-links {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  justify-content: center;
}
.footer-links a {
  color: rgba(224,224,224,0.78);
  font-size: var(--base-font-size);
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: color .2s ease, background-size .3s ease;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
}
.footer-links a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}
.footer-meta {
  margin-top: 18px;
  font-size: var(--base-font-size);
  color: rgba(224,224,224,0.5);
}
.footer-credit {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(224,224,224,0.4);
}
.footer-credit a {
  color: rgba(224,224,224,0.5);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-credit a:hover {
  color: rgba(224,224,224,0.7);
}
.section-body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(18,18,18,0.96));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 10px;
  color: var(--text);
}
.section-intro {
  font-size: var(--base-font-size);
  margin: 0;
  padding-left: 30px;
  color: rgba(224,224,224,0.85);
}
.section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.section-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--base-font-size);
  line-height: 1.65;
}
.section-list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}
.section-list--highlight li {
  background: rgba(214,0,28,0.08);
  border: 1px solid rgba(214,0,28,0.18);
  border-radius: 14px;
  padding: 16px 22px 16px 32px;
  backdrop-filter: blur(8px);
}
.section-list--plain {
  gap: 12px;
}
.section-list--plain li {
  padding-left: 0;
}
.section-list--plain li::before {
  display: none;
}
.section-list--highlight li::before {
  background: #fff;
  opacity: 0.9;
}
.section-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-column--label {
  font-size: var(--base-font-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(224,224,224,0.55);
}
.section-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section-tags li {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: var(--base-font-size);
  letter-spacing: 0.3px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.section-tags li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.section-footer-links {
  display: flex;
  gap: 16px;
  font-size: var(--base-font-size);
  color: var(--muted);
}
@media (max-width: 960px) {
  .hero-section tbody {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(18,18,18,0.96));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px;
  color: var(--text);
}
  .hero-section tr {
    display: flex;
    flex-direction: column-reverse;
    gap: 28px;
  }
  .hero-section 
  .hero-avatar {
    align-self: center;
  }
  .section-column--label {
    order: -1;
    font-size: var(--base-font-size);
    letter-spacing: 1.3px;
  }
  table.pubs > tbody > tr {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-cta-group {
    gap: 10px;
  }
}

/* Layout overrides for semantic structure */
.page {
  width: min(92vw, 1280px);
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section {
  position: relative;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 52px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.section:hover {
  border-color: rgba(214, 0, 28, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}
.section.will-animate {
  opacity: 0;
  transform: translateY(28px);
}
.section.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.section-label {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-body > *:last-child {
  margin-bottom: 0;
}
.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(224, 224, 224, 0.9);
}
.section-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(214, 0, 28, 0.65);
}
.section-list--highlight li {
  background: rgba(214, 0, 28, 0.08);
  border: 1px solid rgba(214, 0, 28, 0.18);
  border-radius: 14px;
  padding: 16px 22px 16px 32px;
  backdrop-filter: blur(8px);
}
.section-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section-tags li {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--base-font-size);
  letter-spacing: 0.3px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.section-tags li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.section.hero {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.section.hero .section-inner {
  display: block;
}
.hero-card {
  position: relative;
  border-radius: 28px;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}


.hero-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 5vw, 56px);
}
.hero-name {
  margin: 0 0 12px;
  font-family: "Playfair Display", "Inter", serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hero-summary p {
  margin: 0 0 12px;
  color: rgba(224, 224, 224, 0.9);
}
.hero-summary p:last-child {
  margin-bottom: 0;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-cta-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-cta-group a:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 0, 28, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.hero-avatar {
  align-self: center;
  justify-self: center;
  margin-right: 40px;
}
.hero-avatar img {
  width: clamp(180px, 15vw, 220px);
  height: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}
.pubs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.pubs-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(224, 224, 224, 0.85);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: var(--base-font-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pubs-chip.is-active,
.pubs-chip:hover {
  border-color: rgba(214, 0, 28, 0.55);
  background: rgba(214, 0, 28, 0.18);
  color: #fff;
}
.pubs-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.pub-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 0, 28, 0.32);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}
.pub-card.is-hidden {
  display: none;
}
.pub-card__media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}
.pub-card__title {
  margin: 0 0 8px;
  font-size: var(--base-font-size);
  font-weight: 600;
  line-height: 1.45;
}
.pub-card__authors {
  margin: 0 0 8px;
  font-size: var(--base-font-size);
  color: rgba(214, 214, 214, 0.88);
}
.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-card__meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--base-font-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.88);
}
.pub-card__meta-item--flag {
  background: rgba(214, 0, 28, 0.22);
  color: #fff;
}
.pub-card__abstract {
  color: rgba(209, 209, 209, 0.84);
  font-size: var(--base-font-size);
  line-height: 1.6;
}
.footer-credit {
  margin: 16px 0 0;
  color: rgba(200, 200, 200, 0.65);
  font-size: var(--base-font-size);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 1024px) {
  .hero-card__inner {
    grid-template-columns: 1fr;
  }
  .hero-avatar {
    justify-self: center;
  }
}
@media (max-width: 860px) {
  .section-inner {
    grid-template-columns: 1fr;
  }
  .section-label {
    position: static;
  }
  .section-title::after {
    margin-top: 8px;
  }
}
@media (max-width: 640px) {
  .pubs-controls {
    gap: 10px;
    flex-wrap: wrap;
  }
  .pubs-chip {
    padding: 10px 16px;
    font-size: 0.95rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  /* Improve publication card layout */
  .pub-card__authors {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .pub-card__abstract {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .pub-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}
.section-list--plain li {
  padding-left: 0;
}
.section-list--plain li::before {
  display: none;
}
.section.section--compact {
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: 20px;
}
.section.section--compact td {
  padding: 6px 12px;
  vertical-align: top;
}
heading {
  display: block;
  margin: 0 0 8px 0;
  font-size: var(--base-font-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section--compact .section-body {
  gap: 8px;
}
.section--compact .section-list {
  gap: 6px;
  margin: 0;
}
.section--compact .section-list li {
  padding-left: 12px;
  font-size: var(--base-font-size);
  line-height: 1.45;
}
.section--compact .section-intro {
  margin-bottom: 6px;
  font-size: var(--base-font-size);
  line-height: 1.5;
}
.section--compact .section-tags {
  gap: 6px;
}
.section--compact .section-tags li {
  padding: 5px 10px;
  font-size: var(--base-font-size);
}
@media (max-width: 640px) {
  .section.section--compact {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .section.section--compact td {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  .section--compact .section-list li {
    padding-left: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .section--compact .section-intro {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
heading {
  display: block;
  margin: 0 0 8px;
  font-size: var(--base-font-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section.section--compact tr:first-child td {
  padding-top: 0;
}
.section.section--compact tr:not(:first-child) td {
  padding-top: 4px;
}


.hero-avatar {
  position: relative;
  z-index: 2;
}


.hero-section td {
  padding: 12px 0 !important;
}




.hero-summary p,
.pub-card__abstract {
  font-size: var(--base-font-size);
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
  .page {
    width: 90vw;
    gap: 20px;
  }
  .section {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .hero-card__inner {
    padding: 20px 16px;
    gap: 16px;
  }
  .hero-name {
    font-size: clamp(1.75rem, 7vw, 2rem);
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
  .hero-avatar img {
    width: 160px;
    height: 160px;
  }
  table.pubs > tbody > tr {
    padding: 16px;
    gap: 14px;
  }
  table.pubs img {
    max-width: 160px;
  }
  .pub-card__authors {
    font-size: 0.85rem;
  }
  .pub-card__abstract {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .hero-cta-group a {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  footer {
    padding: 28px 16px 24px;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  .footer-links a {
    width: 100%;
    justify-content: center;
  }
}

/* Improve touch interactions */
@media (hover: none) and (pointer: coarse) {
  a, button, .pubs-chip, .hero-cta-group a {
    -webkit-tap-highlight-color: rgba(214, 0, 28, 0.1);
  }
  .back-to-top {
    opacity: 0.9;
  }
}

/* Optimize for landscape mobile */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  body {
    padding-top: 60px;
  }
  .site-header {
    padding: 8px 0;
  }
  .hero-card__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-avatar img {
    max-width: 140px;
  }
}

/* Day theme mobile optimizations */
@media (max-width: 640px) {
  html[data-theme='day'] body {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,248,248,0.98));
  }
  html[data-theme='day'] .site-header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
  }
}

