:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: rgba(255, 255, 255, 0.85);
  --accent: #0a60ff;
  --accent-soft: #e3ecff;
  --accent-strong: #0037d6;
  --text: #12131b;
  --text-soft: #5a596d;
  --text-muted: #848298;
  --border: #dfe3ef;
  --border-strong: #c4cae0;
  --surface-soft: rgba(240, 242, 250, 0.45);
  --surface-soft-strong: rgba(240, 242, 250, 0.6);
  --icon-ring: rgba(10, 96, 255, 0.2);
  --icon-ring-strong: rgba(10, 96, 255, 0.35);
  --arrow-color: rgba(10, 96, 255, 0.65);
  --header-bg: rgba(246, 247, 249, 0.92);
  --header-border: rgba(223, 227, 239, 0.7);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 36px rgba(14, 19, 51, 0.08);
  --shadow-lift: 0 24px 48px rgba(14, 19, 51, 0.12);
  --max-width: 1080px;
  --max-width-narrow: 780px;
  --transition: 200ms ease;
}

body[data-theme="dark"] {
  --bg: linear-gradient(180deg, #070a17 0%, #040610 65%, #03040b 100%);
  --surface: #0d1425;
  --surface-alt: rgba(18, 25, 42, 0.92);
  --accent: #81b4ff;
  --accent-soft: rgba(129, 180, 255, 0.22);
  --accent-strong: #d6e3ff;
  --text: #f4f6ff;
  --text-soft: #d0d7f3;
  --text-muted: #8f9ac9;
  --border: rgba(134, 154, 210, 0.26);
  --border-strong: rgba(169, 189, 240, 0.4);
  --surface-soft: rgba(22, 31, 54, 0.72);
  --surface-soft-strong: rgba(34, 45, 70, 0.88);
  --icon-ring: rgba(129, 180, 255, 0.45);
  --icon-ring-strong: rgba(164, 202, 255, 0.65);
  --arrow-color: rgba(188, 213, 255, 0.9);
  --shadow-soft: 0 18px 36px rgba(2, 3, 10, 0.65);
  --shadow-lift: 0 24px 48px rgba(2, 3, 12, 0.82);
  --header-bg: rgba(9, 13, 28, 0.92);
  --header-border: rgba(167, 189, 240, 0.2);
}

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

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

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

a:hover,
a:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.container {
  width: min(92vw, var(--max-width));
  margin: 0 auto;
}

.container.narrow {
  width: min(88vw, var(--max-width-narrow));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--text-soft);
}

body[data-theme="dark"] p {
  color: rgba(210, 218, 255, 0.9);
}

blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  z-index: 10;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--icon-ring);
  padding: 0.35rem;
  background: var(--surface);
  transition: background var(--transition), box-shadow var(--transition), filter var(--transition);
}

body[data-theme="dark"] .brand-mark {
  filter: brightness(0) invert(1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-size: 1rem;
}

body[data-theme="dark"] .brand-name {
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

body[data-theme="dark"] .nav-links a {
  color: rgba(205, 214, 255, 0.82);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-strong);
  background: var(--surface-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border: 1px solid var(--icon-ring);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition);
}

.theme-toggle {
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--icon-ring);
  background: var(--surface);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: var(--surface-soft-strong);
  border-color: var(--icon-ring-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.theme-toggle-icon::before {
  content: "☀";
  font-size: 1.1rem;
  line-height: 1;
}

body[data-theme="dark"] .theme-toggle-icon::before {
  content: "☾";
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

body[data-theme="dark"] .hero {
  background: radial-gradient(circle at 20% -10%, rgba(94, 138, 255, 0.22), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(70, 116, 255, 0.18), transparent 60%),
    var(--surface);
  border-bottom: 1px solid rgba(120, 158, 240, 0.18);
}

body[data-theme="dark"] .hero {
  background: radial-gradient(circle at 20% -10%, rgba(103, 153, 255, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(66, 110, 255, 0.16), transparent 60%),
    var(--surface);
  border-bottom: 1px solid rgba(132, 169, 255, 0.18);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.hero-copy {
  grid-column: span 7;
  display: grid;
  gap: 1.75rem;
}

.role {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

body[data-theme="dark"] .role {
  color: rgba(174, 198, 255, 0.92);
}

.quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-soft);
}

body[data-theme="dark"] .quote {
  color: rgba(204, 214, 255, 0.9);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  display: grid;
  gap: 0.35rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

body[data-theme="dark"] .stat-value {
  color: var(--accent-strong);
}

.stat-label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body[data-theme="dark"] .stat-label {
  color: rgba(175, 194, 240, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .button.primary {
  background: linear-gradient(135deg, #81b4ff, #5c82ff);
  color: #04070f;
  box-shadow: var(--shadow-lift);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

body[data-theme="dark"] .button.primary:hover,
body[data-theme="dark"] .button.primary:focus {
  box-shadow: 0 28px 60px rgba(33, 56, 120, 0.45);
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--icon-ring);
}

.button.secondary:hover,
.button.secondary:focus {
  background: var(--accent-soft);
  border-color: var(--icon-ring-strong);
  text-decoration: none;
}

body[data-theme="dark"] .button.secondary {
  background: rgba(12, 18, 32, 0.8);
  color: var(--accent-strong);
}

body[data-theme="dark"] .button.secondary:hover,
body[data-theme="dark"] .button.secondary:focus {
  background: rgba(18, 26, 44, 0.95);
}

.learn-more {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
}

body[data-theme="dark"] .learn-more {
  color: var(--accent-strong);
}

.hero-media {
  grid-column: span 5;
  background: linear-gradient(145deg, rgba(10, 96, 255, 0.12), rgba(10, 96, 255, 0));
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .hero-media {
  background: linear-gradient(155deg, rgba(129, 180, 255, 0.2), rgba(94, 126, 255, 0.05));
  box-shadow: var(--shadow-soft);
}

.story {
  padding: 4rem 0;
}

body[data-theme="dark"] .story {
  background: linear-gradient(180deg, rgba(14, 20, 39, 0.98) 0%, rgba(8, 12, 26, 0.98) 100%);
  border-top: 1px solid rgba(120, 158, 240, 0.12);
  border-bottom: 1px solid rgba(92, 134, 230, 0.12);
}

body[data-theme="dark"] .story .eyebrow {
  color: rgba(148, 178, 246, 0.7);
}

body[data-theme="dark"] .story h2 {
  color: var(--text);
}

body[data-theme="dark"] .story .lead {
  color: rgba(214, 222, 255, 0.9);
}

.lead + .lead {
  margin-top: 1.75rem;
}

.focus-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lab-highlight {
  margin-top: 3rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.lab-highlight {
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

body[data-theme="dark"] .lab-highlight {
  background: linear-gradient(145deg, rgba(22, 31, 54, 0.94), rgba(13, 19, 38, 0.94));
  border: 1px solid rgba(136, 167, 246, 0.24);
  box-shadow: var(--shadow-soft);
}

.lab-copy {
  grid-column: span 5;
  display: grid;
  gap: 1rem;
}

.lab-copy h3 {
  font-size: 1.6rem;
}

.lab-copy p {
  color: var(--text-soft);
}

body[data-theme="dark"] .lab-copy p {
  color: rgba(207, 217, 255, 0.88);
}

.lab-media {
  grid-column: span 7;
  display: grid;
  gap: 0.75rem;
}

.lab-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.lab-media figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

body[data-theme="dark"] .lab-media figcaption {
  color: rgba(174, 190, 240, 0.75);
}

.focus-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body[data-theme="dark"] .focus-card {
  background: rgba(20, 27, 48, 0.94);
  border-color: rgba(142, 170, 242, 0.24);
}

.focus-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.focus-card li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

body[data-theme="dark"] .focus-card li {
  color: rgba(205, 214, 255, 0.84);
}

.focus-card li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.25rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

body[data-theme="dark"] .focus-card li::before {
  background: var(--accent-strong);
}

.quote-block {
  margin-top: 4rem;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.quote-block blockquote {
  font-size: 1.35rem;
  font-weight: 600;
}

.quote-block cite {
  font-style: normal;
  color: var(--text-muted);
}

body[data-theme="dark"] .quote-block cite {
  color: rgba(170, 188, 238, 0.7);
}

.research-highlight {
  margin-top: 3rem;
}

.research-highlight .latest-feature {
  display: grid;
  gap: 1.2rem;
}

.research-brief {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.research-figure {
  display: grid;
  gap: 0.75rem;
}

.research-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.research-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.research-abstract {
  color: var(--text-soft);
}

body[data-theme="dark"] .research-abstract {
  color: rgba(209, 218, 255, 0.88);
}

.research-reference {
  font-size: 0.85rem;
  color: var(--text-muted);
}

body[data-theme="dark"] .research-reference {
  color: rgba(170, 188, 238, 0.78);
}

.research-reference a {
  color: inherit;
  text-decoration: underline;
}

.detail-hero {
  padding: 4.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

body[data-theme="dark"] .detail-hero {
  background: rgba(12, 18, 36, 0.95);
  border-bottom: 1px solid rgba(130, 160, 238, 0.18);
}

.detail-hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.detail-copy {
  grid-column: span 6;
  display: grid;
  gap: 1.2rem;
}

.detail-copy .eyebrow {
  margin-bottom: 0;
}

.detail-figure {
  grid-column: span 6;
  display: grid;
  gap: 0.75rem;
}

.detail-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.detail-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-body {
  padding: 4rem 0 3rem;
}

.detail-grid {
  display: grid;
  gap: 2.5rem;
}

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

.detail-section h3 {
  font-size: 1.6rem;
}

.detail-section p {
  color: var(--text-soft);
}

body[data-theme="dark"] .detail-section p {
  color: rgba(209, 218, 255, 0.88);
}

.detail-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.5rem;
}

.detail-section li {
  line-height: 1.6;
}

.detail-references {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

body[data-theme="dark"] .detail-references {
  color: rgba(170, 188, 238, 0.78);
}

.detail-references li {
  line-height: 1.6;
}

.detail-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .detail-hero-inner {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .detail-copy,
  .detail-figure {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .detail-hero {
    padding: 3.5rem 0;
  }

  .detail-section h3 {
    font-size: 1.35rem;
  }
}

.latest-highlights {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--text-soft);
}

.latest-highlights li {
  position: relative;
  list-style: none;
  padding-left: 1.1rem;
}

.latest-highlights li::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

body[data-theme="dark"] .latest-highlights li::before {
  background: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(66, 141, 255, 0.25);
}

.latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.latest-see-more {
  justify-self: start;
}

.research-brief {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 0;
}

.research-brief + .publication-card {
  margin-top: 1.2rem;
}

.recent-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.25rem;
}

.recent-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.65rem;
}

body[data-theme="dark"] .recent-card {
  background: rgba(18, 26, 46, 0.92);
  border-color: rgba(142, 172, 242, 0.26);
}

.recent-meta {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recent-link {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .latest-highlights li::before {
    top: 0.35rem;
  }

  .recent-card {
    padding: 1.2rem;
  }
}

.projects {
  padding: 4.5rem 0;
}

body[data-theme="dark"] .projects {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.98) 0%, rgba(7, 11, 24, 0.98) 100%);
  border-top: 1px solid rgba(118, 154, 236, 0.12);
  border-bottom: 1px solid rgba(96, 134, 220, 0.12);
}

.section-lead {
  margin-top: 0.75rem;
  max-width: 620px;
  color: var(--text-soft);
}

body[data-theme="dark"] .section-lead {
  color: rgba(209, 218, 255, 0.88);
}

.project-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

body[data-theme="dark"] .project-card {
  background: rgba(18, 26, 46, 0.95);
  border-color: rgba(142, 172, 242, 0.24);
  box-shadow: var(--shadow-soft);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.project-media {
  margin: -1.25rem -1.25rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-media img {
  border-radius: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .project-tags span {
  background: rgba(70, 108, 210, 0.28);
  color: var(--accent-strong);
}

.project-link {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

body[data-theme="dark"] .project-link {
  color: var(--accent-strong);
}

.excellence {
  padding: 4.5rem 0;
}

body[data-theme="dark"] .excellence {
  background: linear-gradient(180deg, rgba(9, 13, 28, 0.98) 0%, rgba(6, 9, 20, 0.98) 100%);
  border-top: 1px solid rgba(110, 150, 236, 0.14);
  border-bottom: 1px solid rgba(94, 132, 220, 0.14);
}

.excellence-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.excellence-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.5rem;
}

body[data-theme="dark"] .excellence-card {
  background: rgba(17, 24, 44, 0.95);
  border-color: rgba(148, 176, 248, 0.28);
}

.excellence-subject {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

body[data-theme="dark"] .excellence-subject {
  background: rgba(25, 34, 62, 0.88);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  width: fit-content;
}

.status-pill + .status-pill {
  margin-left: 0.4rem;
}

.status-pill.is-active {
  background: #2ecc46;
}

.status-pill.is-info {
  background: #0a60ff;
}

.status-pill.is-complete {
  background: #453ccc;
}

.status-pill.is-highlight {
  background: #fd8d0e;
}

.status-pill.is-published {
  background: #0a60ff;
}

.status-pill.is-clinical {
  background: #2ecc46;
}

.publications {
  padding: 4.5rem 0;
}

body[data-theme="dark"] .publications {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.98) 0%, rgba(5, 8, 18, 0.98) 100%);
  border-top: 1px solid rgba(110, 148, 232, 0.14);
  border-bottom: 1px solid rgba(92, 130, 216, 0.14);
}

.archive-hero {
  padding: 5rem 0 2.5rem;
}

.publication-card.with-media {
  display: grid;
  gap: 1.2rem;
}

.archive-figure {
  margin: 0;
}

.archive-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.archive-recent {
  padding: 0 0 3rem;
}

.archive-recent h2 {
  font-size: 1.85rem;
}

.archive-hero .lead {
  max-width: 680px;
}

.archive-list {
  padding: 0 0 4.5rem;
}

.archive-grouping {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2.8rem;
}

.archive-year {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body[data-theme="dark"] .archive-year {
  color: rgba(177, 194, 240, 0.7);
}

.archive-grouping .publication-card {
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .archive-hero {
    padding-top: 4rem;
  }
}

.publication-list {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.publication-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.9rem;
}

body[data-theme="dark"] .publication-card {
  background: rgba(15, 22, 42, 0.95);
  border-color: rgba(152, 180, 250, 0.26);
}

.pub-meta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pub-link {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

body[data-theme="dark"] .pub-link {
  color: var(--accent-strong);
}

.pub-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
}

body[data-theme="dark"] .pub-footnote {
  color: rgba(188, 202, 247, 0.75);
}

.collaborate {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body[data-theme="dark"] .collaborate {
  background: rgba(12, 18, 36, 0.95);
  border-top: 1px solid rgba(130, 160, 238, 0.18);
  border-bottom: 1px solid rgba(130, 160, 238, 0.18);
}

.collaborate-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.contact-grid {
  grid-column: 8 / span 5;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  max-width: 360px;
}

.contact-intro {
  grid-column: 1 / span 7;
  display: grid;
  gap: 1.35rem;
  text-align: left;
  align-self: start;
  max-width: 540px;
}

.contact-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text-soft);
}

.contact-highlights li {
  position: relative;
  padding-left: 1.25rem;
}

.contact-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body[data-theme="dark"] .contact-highlights li::before {
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(129, 180, 255, 0.22);
}

body[data-theme="dark"] .contact-highlights {
  color: rgba(206, 216, 255, 0.9);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

body[data-theme="dark"] .contact-item {
  background: rgba(20, 27, 48, 0.92);
  border-color: rgba(146, 176, 248, 0.24);
  color: var(--accent-strong);
}

.contact-item:hover,
.contact-item:focus-visible {
  background: var(--surface-soft-strong);
  border-color: var(--icon-ring-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  color: var(--accent-strong);
  text-decoration: none;
  outline: none;
}

.contact-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(10, 96, 255, 0.2);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

.site-footer {
  background: #11131f;
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 2rem;
}

body[data-theme="dark"] .site-footer {
  background: #050813;
  color: rgba(233, 239, 255, 0.86);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand {
  max-width: 420px;
  display: grid;
  gap: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.66);
}

body[data-theme="dark"] .footer-brand p {
  color: rgba(214, 225, 255, 0.68);
}

.footer-mark {
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-nav {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffffff;
  text-decoration: none;
}

body[data-theme="dark"] .footer-nav a {
  color: rgba(214, 225, 255, 0.72);
}

body[data-theme="dark"] .footer-nav a:hover,
body[data-theme="dark"] .footer-nav a:focus {
  color: #f6f8ff;
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.back-to-top {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: repeat(12, 1fr);
  }

  .hero-copy {
    grid-column: span 12;
  }

  .hero-media {
    grid-column: span 12;
  }

  .lab-copy,
  .lab-media,
  .contact-intro,
  .contact-grid {
    grid-column: span 12;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    width: min(260px, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .lab-highlight {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .story {
    padding: 3.2rem 0;
  }

  .lab-highlight {
    gap: 1.5rem;
  }

  .project-card,
  .excellence-card,
  .publication-card {
    padding: 1.5rem;
  }

  .contact-grid {
    grid-column: 1 / -1;
    gap: 0.75rem;
    width: 100%;
    max-width: min(640px, 100%);
    justify-content: center;
    justify-self: center;
    margin: 0 auto;
  }

  .collaborate-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .contact-intro {
    grid-column: 1 / -1;
    max-width: min(640px, 100%);
    margin: 0 auto;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-item {
    width: 56px;
    height: 56px;
  }

  .theme-toggle {
    margin-left: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.2rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    justify-items: center;
  }

  .hero-copy {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
  }

  .hero-media {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 360px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats {
    width: 100%;
    justify-content: center;
    gap: 1.2rem;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .story .container,
  .story .container.narrow {
    text-align: center;
  }

  .lab-copy {
    grid-column: span 12;
    text-align: center;
    align-items: center;
  }

  .lab-media {
    grid-column: span 12;
  }

  .focus-card,
  .project-card,
  .excellence-card,
  .publication-card {
    padding: 1.35rem;
  }

  .project-media {
    margin: -1rem -1rem 0;
  }

  .collaborate-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .lab-highlight {
    padding: 1.6rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .button {
    width: 100%;
  }

  .contact-intro {
    grid-column: 1 / -1;
    text-align: center;
    gap: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-highlights {
    text-align: left;
    justify-items: start;
  }

  .contact-grid {
    grid-column: 1 / -1;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    justify-content: center;
    justify-self: center;
    margin: 0 auto;
  }

  .contact-item {
    width: 54px;
    height: 54px;
  }

  .contact-icon svg {
    width: 24px;
    height: 24px;
  }

  .theme-toggle {
    margin-left: 0.5rem;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(94vw, var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.25rem, 7vw, 2.6rem);
  }

  .hero .quote {
    font-size: 0.95rem;
  }

  .research-highlight .latest-feature {
    gap: 1rem;
  }

  .latest-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .status-pill {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.26rem 0.72rem;
  }

  .recent-list {
    gap: 1rem;
  }

  .focus-card,
  .project-card,
  .publication-card,
  .recent-card {
    border-radius: var(--radius-md);
  }

  .contact-grid {
    gap: 0.6rem;
    max-width: 320px;
  }

  .contact-item {
    width: 50px;
    height: 50px;
  }

  .contact-icon svg {
    width: 22px;
    height: 22px;
  }

  .archive-hero {
    padding: 4.2rem 0 2rem;
    text-align: center;
  }

  .archive-hero .lead,
  .archive-recent h2 {
    text-align: center;
  }

  .footer-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 0.75rem 0;
    gap: 0.35rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    width: min(240px, calc(100vw - 1.8rem));
    max-width: calc(100vw - 1.8rem);
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .status-pill {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding: 0.24rem 0.64rem;
  }

  .contact-grid {
    gap: 0.5rem;
  }

  .contact-item {
    width: 46px;
    height: 46px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
