*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:focus {
  outline: none !important;
}
:root {
  --coral: #e8505b;
  --coral-l: #f0878f;
  --coral-d: #b83040;
  --gold: #f0b429;
  --gold-l: #f7d070;
  --gold-d: #c28a0a;
  --sans: "Inter", system-ui, sans-serif;
  --tr: 0.3s ease;
  --fs-xxl: clamp(2.2rem, 5vw, 3rem);
  --fs-xl: 1.8rem;
  --fs-lg: 1.35rem;
  --fs-md: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --nav-h: 66px;
  --ticker-h: 20px;
  --ticker-duration: 15s;
}
[data-theme="dark"] {
  --bg: #141210;
  --bg2: #2b2421;
  --bg3: #3a302c;
  --border: rgba(255, 255, 255, 0.12);
  --border2: rgba(255, 255, 255, 0.3);
  --text: #f8f4f0;
  --text2: rgba(248, 244, 240, 0.85);
  --text3: rgba(248, 244, 240, 0.75);
  --acc: var(--coral);
  --acc-l: var(--coral-l);
  --acc-bg: rgba(232, 80, 91, 0.12);
  --acc-bg2: rgba(232, 80, 91, 0.07);
  --acc-bdr: rgba(232, 80, 91, 0.28);
  --gold-bg: rgba(240, 180, 41, 0.1);
  --gold-bdr: rgba(240, 180, 41, 0.28);
}
[data-theme="light"] {
  --bg: #faf9f6;
  --bg2: #ffffff;
  --bg3: #f1eee8;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.18);
  --text: #1a1210;
  --text2: rgba(26, 18, 16, 0.85);
  --text3: rgba(26, 18, 16, 0.75);
  --acc: var(--coral-d);
  --acc-l: var(--coral-d);
  --acc-bg: rgba(184, 48, 64, 0.07);
  --acc-bg2: rgba(184, 48, 64, 0.04);
  --acc-bdr: rgba(184, 48, 64, 0.2);
  --gold-bg: rgba(184, 134, 11, 0.07);
  --gold-bdr: rgba(184, 134, 11, 0.2);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background var(--tr),
    color var(--tr);
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  transition: background var(--tr);
}
[data-theme="dark"] nav {
  background: rgba(20, 18, 16, 0.92);
}
[data-theme="light"] nav {
  background: rgba(250, 249, 246, 0.92);
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nav-logo-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--acc);
}
[data-theme="dark"] .nav-logo-sub {
  color: var(--coral-l);
}
[data-theme="light"] .nav-logo-sub {
  color: var(--coral-d);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
[data-theme="light"] .nav-links a:hover {
  color: var(--gold-d);
}
.nav-links a.active {
  color: var(--acc);
  font-weight: 600;
}
[data-theme="dark"] .nav-links a.active {
  color: var(--coral-l);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active:hover {
   color: var(--gold-l);
 }
.nav-cta {
  background: var(--acc) !important;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: 0.88;
}
.nav-cta:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.theme-toggle-mobile {
  display: none;
}
.toggle-icon {
  font-size: 11px;
  color: var(--text3);
}
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  background: var(--bg2);
  cursor: pointer;
  transition:
    background var(--tr),
    transform var(--tr);
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.nav-hamburger:hover {
  background: var(--bg3);
  transform: translateY(-1px);
}
.nav-hamburger:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.nav-hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav-hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition:
    background var(--tr),
    transform var(--tr),
    opacity var(--tr);
}
.nav-hamburger:hover .nav-hamburger-icon span {
  background: var(--acc);
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 80vw;
  background: var(--bg2);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.18);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-nav-close {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.mobile-nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}
.mobile-nav-cta {
  justify-content: center;
}
body.mobile-menu-open .mobile-nav {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
body.mobile-menu-open .mobile-nav-panel {
  transform: translateX(0);
}
@media (max-width: 1000px) {
  .nav-right {
    gap: 1rem;
  }
  .nav-links {
    display: none;
    gap: 1rem;
  }
  .nav-hamburger {
    display: flex;
  }
  nav .nav-cta {
    display: none !important;
  }
  .toggle-wrap {
    display: none;
  }
  .theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
  }
}

.theme-toggle {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  cursor: pointer;
  position: relative;
  transition: background var(--tr);
  flex-shrink: 0;
}
.theme-toggle:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--acc);
  transition: transform 0.3s;
}
[data-theme="light"] .theme-toggle::after {
  transform: translateX(0);
}
[data-theme="dark"] .theme-toggle::after {
  transform: translateX(24px);
}

/* TICKER */
.ticker-bar {
  background: var(--acc-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.ticker-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  white-space: nowrap;
  border: 1px solid rgba(184, 48, 64, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  height: var(--ticker-h);
}
.ticker-inner {
  display: flex;
  flex-direction: column;
  animation: tick var(--ticker-duration) ease-in-out infinite;
  width: 100%;
}
@keyframes tick {
  0%,
  25% {
    transform: translateY(0);
  }
  33%,
  58% {
    transform: translateY(calc(var(--ticker-h) * -1));
  }
  66%,
  91% {
    transform: translateY(calc(var(--ticker-h) * -2));
  }
  99%,
  100% {
    transform: translateY(0);
  }
}
@keyframes tick-horizontal {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 13px;
  color: var(--text2);
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}
.ticker-item strong {
  color: var(--text);
  font-weight: 500;
  margin-right: 0.5em;
}
[data-theme="dark"] .ticker-label {
  color: var(--acc-l);
  border-color: rgba(232, 80, 91, 0.5);
}
[data-theme="dark"] .ticker-item strong {
  color: var(--acc-l);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(620px, 72vh, 760px);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 0 2.5rem 0;
}
.hero-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  margin-bottom: 1.25rem;
}
.hero-top-logo {
  width: min(220px, 60%);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.75rem;
  width: 100%;
  justify-content: center;
}
.hero-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--acc);
}
[data-theme="dark"] .hero-eyebrow {
  color: var(--gold-l);
}
[data-theme="dark"] .hero-eyebrow::before {
  background: var(--gold-l);
}
.hero-title {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  text-align: center;
}
.hero-title strong {
  font-weight: 600;
  color: var(--coral-l);
}
[data-theme="light"] .hero-title strong {
  color: var(--coral-d);
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  font-weight: 300;
  text-align: center;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--acc);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text3);
}
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-left: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 7.25rem;
  z-index: 1;
}
.hero-carousel-track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  background: rgba(12, 12, 12, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  backdrop-filter: blur(6px);
}
.hero-carousel-btn:hover {
  background: rgba(12, 12, 12, 0.52);
  border-color: var(--text3);
}
.hero-carousel-btn:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.hero-carousel-prev {
  left: 0.9rem;
}
.hero-carousel-next {
  right: 0.9rem;
}
.hero-carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.8rem;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.hero-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: transparent;
  padding: 6px;
  cursor: pointer;
}
.hero-carousel-dot.is-active {
  background: #fff;
}
.hero-carousel-dot:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: clamp(0rem, 2vw, 2.5rem);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: space-between;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
[data-theme="dark"] .hero-stats {
  background: rgba(20, 18, 16, 0.5);
}
[data-theme="light"] .hero-stats {
  background: rgba(250, 249, 246, 0.7);
}
[data-theme="dark"] .hero-canvas {
  opacity: 0.32;
}
[data-theme="light"] .hero-canvas {
  opacity: 0.22;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  min-width: 5ch;
  text-align: center;
  display: inline-block;
}
.hero-stat-num span {
  color: var(--acc);
}
.hero-stat-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 4px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-stats {
    padding: 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  .hero-stats > div {
    flex: 1 1 0;
    min-width: 0;
  }
  .hero-stat-num {
    min-width: 0;
    font-size: clamp(1.55rem, 1.4vw, 2rem);
  }
}

/* SECTIONS */
section {
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
  transition: background var(--tr);
}
.research-section {
  padding-bottom: 0rem;
}
.section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--acc);
}
[data-theme="dark"] .section-eyebrow {
  color: var(--gold-l);
}
[data-theme="dark"] .section-eyebrow::before {
  background: var(--gold-l);
}
.section-title {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.section-title strong {
  font-weight: 600;
}
.section-sub {
  font-size: 1rem;
  color: var(--text2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.8;
}
section > *,
footer > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
section + section {
  margin-top: 1rem;
}

/* RESEARCH CIRCULAR DIAGRAM */
.research-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem;
}
.research-circle-wrap {
  position: relative;
  width: 520px;
  height: 520px;
}
.research-circle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.research-slice {
  cursor: pointer;
  transition: fill 0.2s, filter 0.2s, -webkit-filter 0.2s;
}
.research-slice:hover,
.research-slice.active {
  filter: saturate(1.12) brightness(1.05);
  -webkit-filter: saturate(1.12) brightness(1.05);
}
.research-slice-biophysics,
.research-slice-wound,
.research-slice-biomechanics {
  fill: var(--bg2);
}
.research-slice-biophysics:hover,
.research-slice-biophysics.active,
.research-slice-wound:hover,
.research-slice-wound.active,
.research-slice-biomechanics:hover,
.research-slice-biomechanics.active {
  fill: var(--acc-bg);
}
.research-divider-accent {
  stroke: var(--acc-bdr);
  stroke-width: 1;
  shape-rendering: crispEdges;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.research-divider-accent.is-active {
  opacity: 1;
}

.research-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
  pointer-events: none;
}
.research-slice-accent {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.4s ease-out;
  pointer-events: none;
}
#slice0:hover ~ #accent0,
#slice0.active ~ #accent0,
#slice1:hover ~ #accent1,
#slice1.active ~ #accent1,
#slice2:hover ~ #accent2,
#slice2.active ~ #accent2 {
  stroke-dashoffset: 0;
}
.research-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.research-inner img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.research-slice-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
}
.research-slice-label i {
  font-size: 26px;
  color: var(--coral-l);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  -webkit-filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
[data-theme="light"] .research-slice-label i {
  color: var(--coral-d);
}
.research-slice-icons {
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.research-slice-label span {
  font-size: 12px;
  font-weight: 500;
  color: var(--coral-l);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  -webkit-filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
[data-theme="light"] .research-slice-label span {
  color: var(--coral-d);
}
.research-details {
  max-width: 600px;
  margin-top: 3rem;
  text-align: center;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.research-details:has(#research-details-image[hidden]) {
  margin-top: 2rem;
}

.research-details-image {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.research-details-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.research-details-image[hidden] {
  display: none;
}
.research-details-content { text-align: center; }
.research-details-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}
@media (min-width: 900px) {
  .research-circle-wrap { width: 620px; height: 620px; }
  .research-inner { width: 200px; height: 200px; }
  .research-inner img { width: 90%; height: 90%; }
  .research-slice-label i { font-size: 32px; }
  .research-slice-label span { font-size: 14px; }
}

/* TEAM */
.team-section {
  background: var(--bg);
}
.team-sublabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.team-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition:
    border-color 0.2s,
    background var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
  margin-bottom: 1.5rem;
  position: relative;
}
.team-card-top {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.team-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  flex: 1;
}
.team-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.team-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.team-card:hover {
  background: var(--bg3);
  border-color: var(--acc-bdr);
  transform: translateY(-1px);
}
.team-card:hover::after {
  transform: scaleX(1);
}
[data-theme="dark"] .team-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
[data-theme="dark"] .team-card:hover {
  border-color: rgba(232, 80, 91, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.avatar,
.team-thumb {
  width: 70px;
  height: 90px;
  border-radius: 50%;
  background: var(--acc-bg);
  border: 1px solid var(--acc-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-l);
  flex-shrink: 0;
  overflow: hidden;
}
[data-theme="light"] .avatar,
[data-theme="light"] .team-thumb {
  color: var(--coral-d);
}
.team-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-thumb img.team-photo-marco {
  object-fit: cover;
  object-position: center 18%;
}
.team-body {
  flex: 1;
  min-width: 0;
}
.team-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 2px;
}
.team-role {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.6rem;
}
.team-desc {
  font-size: var(--fs-md);
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}
.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.6rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-l);
  background: var(--gold-bg);
  border: 1px solid var(--gold-bdr);
  padding: 2px 8px;
  border-radius: 3px;
}
[data-theme="light"] .award-pill {
  color: var(--gold-d);
}
.students-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.student-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  transition:
    border-color 0.2s,
    background var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
  position: relative;
}
.student-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.student-card:hover {
  background: var(--bg3);
  border-color: var(--acc-bdr);
  transform: translateY(-1px);
}
.student-card:hover::after {
  transform: scaleX(1);
}
[data-theme="dark"] .student-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .student-card:hover {
  border-color: rgba(232, 80, 91, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.student-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.student-proj {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.65;
  font-weight: 300;
}
.join-card {
  border: 1px dashed var(--acc-bdr);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  gap: 6px;
}
.team-main-grid .join-card {
  grid-column: 1/-1;
  padding: 1.5rem;
  min-height: 80px;
}
.join-card:hover {
  border-color: var(--acc);
  background: var(--acc-bg2);
}
.join-plus {
  font-size: 20px;
  color: var(--text3);
  line-height: 1;
}
.join-text {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.alumni-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.alumni-item {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  padding-left: 1rem;
  border-left: 1px solid var(--border2);
}
.alumni-item strong {
  color: var(--text);
  font-weight: 500;
}
.alumni-award {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 0.6rem;
  margin-top: 0.6rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-bdr);
  padding: 2px 8px;
  border-radius: 3px;
}
[data-theme="light"] .alumni-award {
  color: var(--gold-d);
}
[id*="student" i] .section-title,
[class*="student" i] .section-title,
[id*="alumni" i] .section-title,
[class*="alumni" i] .section-title {
  font-size: var(--fs-xl);
}
[id*="student" i] .team-name,
[id*="student" i] .name,
[class*="student" i] .team-name,
[class*="student" i] .name,
[id*="alumni" i] .team-name,
[id*="alumni" i] .name,
[class*="alumni" i] .team-name,
[class*="alumni" i] .name {
  font-size: var(--fs-lg);
  font-weight: 600;
}
[id*="student" i] .team-desc,
[id*="student" i] .role,
[class*="student" i] .team-desc,
[class*="student" i] .role,
[id*="alumni" i] .team-desc,
[id*="alumni" i] .role,
[class*="alumni" i] .team-desc,
[class*="alumni" i] .role {
  font-size: calc(var(--fs-md) * 1.05);
}
[id*="student" i] .team-card,
[id*="alumni" i] .team-card,
[class*="student" i] .team-card,
[class*="alumni" i] .team-card {
  margin-bottom: 1.75rem;
}
[id*="alumni" i] .team-card + .team-card {
  padding-top: 0.5rem;
}
[id*="alumni" i] h3,
[id*="alumni" i] .alumni-year,
[class*="alumni" i] h3,
[class*="alumni" i] .alumni-year {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 0.25rem;
}
[id*="alumni" i] h3:first-of-type,
[class*="alumni" i] h3:first-of-type {
  margin-top: 1.5rem;
}

/* PUBLICATIONS */
.pubs-section {
  background: var(--bg);
}
.pub-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.pub-card {
  --media-col: minmax(220px, 300px);
  --media-max: 300px;
  --media-h: 190px;
  --media-fit: contain;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: var(--media-col) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  transition:
    border-color 0.2s,
    background var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
  position: relative;
}
.pub-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.pub-card:hover {
  background: var(--bg3);
  border-color: var(--acc-bdr);
  transform: translateY(-1px);
}
.pub-card:hover::after {
  transform: scaleX(1);
}
[data-theme="dark"] .pub-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .pub-card:hover {
  border-color: rgba(232, 80, 91, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.pub-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) var(--media-col);
}
.pub-card:nth-child(even) .pub-media {
  order: 2;
  justify-self: end;
}
.pub-card:nth-child(even) .pub-content {
  order: 1;
}
.pub-media {
  width: 100%;
  max-width: var(--media-max);
  min-height: var(--media-h);
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-media img,
.pub-media video {
  width: 100%;
  max-height: var(--media-h);
  display: block;
  object-fit: var(--media-fit);
}
.pub-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}
.pub-meta {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
  flex-wrap: wrap;
}
.pub-year {
  font-size: 12px;
  color: var(--text3);
  padding-top: 3px;
  flex-shrink: 0;
}
.pub-badge {
  font-weight: 600;
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--acc-bg);
  color: var(--acc-l);
  border: 1px solid var(--acc-bdr);
}
[data-theme="light"] .pub-badge {
  color: var(--coral-d);
}
.pub-badge-skin {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
[data-theme="light"] .pub-badge-skin {
  color: #1d4ed8;
}
.pub-badge-wound {
  background: rgba(29, 158, 117, 0.1);
  color: #34d399;
  border-color: rgba(29, 158, 117, 0.25);
}
[data-theme="light"] .pub-badge-wound {
  color: #065f46;
}
[data-theme="light"] .pub-badge-biomechanics {
  color: var(--coral-d);
}
.pub-badge-biomaterials {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.25);
}
[data-theme="light"] .pub-badge-biomaterials {
  color: #0b657d;
}
.pub-badge-biophysics {
  background: rgba(217, 70, 239, 0.12);
  color: #e879f9;
  border-color: rgba(217, 70, 239, 0.28);
}
[data-theme="light"] .pub-badge-biophysics {
  color: #86198f;
}
[data-theme="dark"] .pub-badge-biophysics {
  background: rgba(217, 70, 239, 0.09);
  color: #d8b4fe;
  border-color: rgba(217, 70, 239, 0.22);
}
.pub-badge-computational {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.28);
}
[data-theme="light"] .pub-badge-computational {
  color: #3730a3;
}
[data-theme="dark"] .pub-badge-computational {
  background: rgba(99, 102, 241, 0.09);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.22);
}
.pub-badge-experimental {
  background: rgba(107, 114, 128, 0.14);
  color: #d1d5db;
  border-color: rgba(107, 114, 128, 0.3);
}
[data-theme="light"] .pub-badge-experimental {
  color: #374151;
}
.pub-badge-award {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: var(--gold-bdr);
}
[data-theme="light"] .pub-badge-award {
  color: #7a5209;
}
.pub-badge-link {
  text-decoration: none;
}
.pub-badge-link:hover {
  filter: saturate(1.12) brightness(1.05);
  text-decoration: none;
}
.pub-title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 4px;
}
.pub-authors {
  font-size: var(--fs-sm);
  color: var(--text2);
  font-weight: 300;
  margin-top: 2px;
}
.pub-authors strong {
  font-weight: 700;
  color: var(--text);
}
.pub-journal {
  font-size: var(--fs-sm);
  color: var(--text2);
  font-style: italic;
  margin-top: 2px;
}
.pub-journal a {
  color: inherit;
  text-decoration: none;
}
.pub-journal a:hover {
  text-decoration: underline;
}
.pub-feature-link {
  margin-top: 6px;
}
.pub-feature-link a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pub-feature-link a:hover {
  text-decoration: underline;
}
.pub-year-header {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* PUBLICATION FILTERS */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.pub-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.pub-filter-btn:hover {
  background: var(--bg2);
  border-color: var(--text3);
  transform: translateY(-1px);
}
.pub-filter-btn:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
[data-theme="dark"] .pub-filter-btn {
  background: var(--bg2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .pub-filter-btn:hover {
  background: var(--bg3);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}
.pub-filter-btn[data-filter="skin"]:hover,
.pub-filter-btn[data-filter="skin"].active {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
[data-theme="light"] .pub-filter-btn[data-filter="skin"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="skin"].active {
  color: #1d4ed8;
}
.pub-filter-btn[data-filter="wound-healing"]:hover,
.pub-filter-btn[data-filter="wound-healing"].active {
  background: rgba(29, 158, 117, 0.1);
  color: #34d399;
  border-color: rgba(29, 158, 117, 0.25);
}
[data-theme="light"] .pub-filter-btn[data-filter="wound-healing"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="wound-healing"].active {
  color: #065f46;
}
.pub-filter-btn[data-filter="biomechanics"]:hover,
.pub-filter-btn[data-filter="biomechanics"].active {
  background: var(--acc-bg);
  color: var(--acc-l);
  border-color: var(--acc-bdr);
}
[data-theme="light"] .pub-filter-btn[data-filter="biomechanics"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="biomechanics"].active {
  color: var(--coral-d);
}
.pub-filter-btn[data-filter="biomaterials"]:hover,
.pub-filter-btn[data-filter="biomaterials"].active {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.25);
}
[data-theme="light"] .pub-filter-btn[data-filter="biomaterials"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="biomaterials"].active {
  color: #0b657d;
}
.pub-filter-btn[data-filter="biophysics"]:hover,
.pub-filter-btn[data-filter="biophysics"].active {
  background: rgba(217, 70, 239, 0.12);
  color: #e879f9;
  border-color: rgba(217, 70, 239, 0.28);
}
[data-theme="light"] .pub-filter-btn[data-filter="biophysics"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="biophysics"].active {
  color: #86198f;
}
[data-theme="dark"] .pub-filter-btn[data-filter="biophysics"]:hover,
[data-theme="dark"] .pub-filter-btn[data-filter="biophysics"].active {
  background: rgba(217, 70, 239, 0.09);
  color: #d8b4fe;
  border-color: rgba(217, 70, 239, 0.22);
}
.pub-filter-btn[data-filter="highlights"]:hover,
.pub-filter-btn[data-filter="highlights"].active {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: var(--gold-bdr);
}
[data-theme="light"] .pub-filter-btn[data-filter="highlights"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="highlights"].active {
  color: #7a5209;
}
.pub-filter-btn[data-filter="computational"]:hover,
.pub-filter-btn[data-filter="computational"].active {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.28);
}
[data-theme="light"] .pub-filter-btn[data-filter="computational"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="computational"].active {
  color: #3730a3;
}
[data-theme="dark"] .pub-filter-btn[data-filter="computational"]:hover,
[data-theme="dark"] .pub-filter-btn[data-filter="computational"].active {
  background: rgba(99, 102, 241, 0.09);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.22);
}
.pub-filter-btn[data-filter="experimental"]:hover,
.pub-filter-btn[data-filter="experimental"].active {
  background: rgba(107, 114, 128, 0.14);
  color: #d1d5db;
  border-color: rgba(107, 114, 128, 0.3);
}
[data-theme="light"] .pub-filter-btn[data-filter="experimental"]:hover,
[data-theme="light"] .pub-filter-btn[data-filter="experimental"].active {
  color: #374151;
}
.pub-filter-btn[data-filter="all"].active {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border2);
}
.pub-card.hidden,
.pub-year-header.hidden {
  display: none;
}

/* NEWS */
.news-section {
  background: var(--bg);
}
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.news-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.news-filter-btn:hover {
  background: var(--bg2);
  border-color: var(--text3);
  transform: translateY(-1px);
}
.news-filter-btn:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
[data-theme="dark"] .news-filter-btn {
  background: var(--bg2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .news-filter-btn:hover {
  background: var(--bg3);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}
.news-filter-btn[data-filter="paper"]:hover,
.news-filter-btn[data-filter="paper"].active {
  background: var(--acc-bg);
  color: var(--acc-l);
  border-color: var(--acc-bdr);
}
[data-theme="light"] .news-filter-btn[data-filter="paper"]:hover,
[data-theme="light"] .news-filter-btn[data-filter="paper"].active {
  color: var(--coral-d);
}
.news-filter-btn[data-filter="award"]:hover,
.news-filter-btn[data-filter="award"].active {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: var(--gold-bdr);
}
[data-theme="light"] .news-filter-btn[data-filter="award"]:hover,
[data-theme="light"] .news-filter-btn[data-filter="award"].active {
  color: #7a5209;
}
.news-filter-btn[data-filter="funding"]:hover,
.news-filter-btn[data-filter="funding"].active {
  background: rgba(29, 158, 117, 0.1);
  color: #34d399;
  border-color: rgba(29, 158, 117, 0.25);
}
[data-theme="light"] .news-filter-btn[data-filter="funding"]:hover,
[data-theme="light"] .news-filter-btn[data-filter="funding"].active {
  color: #065f46;
}
.news-filter-btn[data-filter="lab"]:hover,
.news-filter-btn[data-filter="lab"].active {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.34);
}
[data-theme="light"] .news-filter-btn[data-filter="lab"]:hover,
[data-theme="light"] .news-filter-btn[data-filter="lab"].active {
  color: #155e75;
}
.news-filter-btn[data-filter="talk"]:hover,
.news-filter-btn[data-filter="talk"].active {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
[data-theme="light"] .news-filter-btn[data-filter="talk"]:hover,
[data-theme="light"] .news-filter-btn[data-filter="talk"].active {
  color: #1d4ed8;
}
.news-filter-btn[data-filter="all"].active {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border2);
}
.news-card.hidden {
  display: none;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr !important;
  }
  .news-grid > .news-card {
    grid-column: auto !important;
  }
}
/* Fill incomplete final row on desktop to avoid an empty trailing cell. */
.news-grid > .news-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}
.news-grid > .news-card:last-child:nth-child(3n + 2) {
  grid-column: span 2;
}
.news-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow var(--tr),
    transform var(--tr);
  min-height: 180px;
  position: relative;
}
.news-card::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.news-media {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.news-media img,
.news-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.news-media-portrait {
  background: transparent;
  border: none;
  overflow: hidden;
}
.news-media-portrait img {
  width: auto;
  max-width: 168px;
}
.news-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bg);
}
.news-media-logo img {
  object-fit: contain;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-card:hover {
  background: var(--bg3);
  border-color: var(--acc-bdr);
  transform: translateY(-1px);
}
.news-card:hover::after {
  transform: scaleX(1);
}
[data-theme="dark"] .news-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .news-card:hover {
  border-color: rgba(232, 80, 91, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.news-date {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.news-title {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.45;
  flex: 1;
}
.news-badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-card:hover .news-badge {
  filter: saturate(1.15) brightness(1.05);
}
.badge-paper {
  background: var(--acc-bg);
  color: var(--acc-l);
  border: 1px solid var(--acc-bdr);
}
[data-theme="light"] .badge-paper {
  color: var(--coral-d);
}
.badge-award {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-bdr);
}
[data-theme="light"] .badge-award {
  color: #7a5209;
}
.badge-funding {
  background: rgba(29, 158, 117, 0.1);
  color: #34d399;
  border: 1px solid rgba(29, 158, 117, 0.25);
}
[data-theme="light"] .badge-funding {
  color: #065f46;
}
.badge-group {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.28);
}
[data-theme="light"] .badge-group {
  color: #7e22ce;
}
.badge-lab {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.34);
}
[data-theme="light"] .badge-lab {
  color: #155e75;
}
.badge-talk {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
[data-theme="light"] .badge-talk {
  color: #1d4ed8;
}
.pub-card:hover .pub-badge {
  filter: saturate(1.12) brightness(1.05);
}

/* FUNDERS */
.funders-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.funders-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.2rem;
  margin-top: 1.1rem;
}
.funder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .funder-row {
    justify-content: center;
  }
  .funders-grid > div:nth-child(3) {
    flex-wrap: nowrap;
    justify-content: center;
  }
}
.funder-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}
.funder-logo img {
  height: auto;
  max-height: 54px;
  max-width: 100%;
  width: auto;
  display: block;
}
.funder-logo img[data-light-src][data-dark-src] {
  max-height: 38px;
}
.funder-logo-bimodal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.funder-pill {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.funder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.2rem 4rem 2.1rem;
  display: grid;
  grid-template-columns: 0.95fr 2.05fr;
  gap: 3rem;
  align-items: stretch;
  line-height: 1.7;
  transition: background var(--tr);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.footer-logo img {
  height: 44px;
  width: auto;
}
.footer-logo-text-main {
  font-size: 13px;
  font-weight: 600;
}
.footer-logo-text-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
}
.footer-desc {
  font-size: 14px;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.7;
  max-width: 350px;
  margin-top: 0.5rem;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 0.25rem;
}
footer > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .footer-col-title {
  color: var(--text);
}
footer > div:first-child .footer-col-title {
  margin-top: 1rem;
}
.footer-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-icons a {
  font-size: 18px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-icons a:hover {
  color: var(--acc-l);
}
[data-theme="light"] .footer-icons a:hover {
  color: var(--coral-d);
}
.footer-bottom {
  padding: 1.25rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--bg2);
  transition: background var(--tr);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 0 1.25rem;
    height: calc(var(--nav-h) + 6px);
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(110px, 30vw, 150px);
    min-height: 260px;
    border-left: none;
    border-top: 1px solid var(--border);
    overflow: visible;
  }
  .hero-carousel {
    position: relative;
    bottom: auto;
    min-height: 260px;
  }
  .hero-stats {
    display: flex;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 1rem 0.8rem;
    gap: 0.4rem;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: column;
    border-top: none;
    border-left: 1px solid var(--border);
  }
  .hero-stats > div {
    width: 100%;
  }
  .hero-stat-num {
    font-size: 1.45rem;
  }
  .hero-stat-label {
    font-size: 0.68rem;
  }
  .hero-carousel-dots {
    bottom: 0.9rem;
  }
  .ticker-bar {
    padding: 0.55rem 0.55rem;
    cursor: pointer;
  }
  .ticker-inner {
    flex-direction: row;
    width: max-content;
    animation: tick-horizontal 30s linear infinite;
  }
  .ticker-item {
    white-space: nowrap;
    padding-right: 3rem;
  }  
  .hero-left {
    padding: 3.5rem 1.5rem;
  }
  .hero-copy {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-logo-slot {
    min-height: 110px;
  }
  .hero-top-logo {
    width: min(240px, 80%);
  }
  section {
    padding: 3.5rem 1.5rem;
  }
  .research-circle-wrap {
    width: min(460px, 90vw);
    height: min(460px, 90vw);
  }
  .research-inner {
    width: 130px;
    height: 130px;
  }
  .research-slice-label i {
    font-size: 20px;
  }
  .research-slice-label span {
    font-size: 10px;
  }
  .research-slice-label img {
    height: 2.5em !important;
  }
  .research-details {
    max-width: 90vw;
  }
  .research-details-image img {
    max-height: 180px;
    width: auto;
  }  
  .research-details-desc {
    font-size: 14px;
  }
  .pub-card {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .pub-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .pub-card:nth-child(even) .pub-media {
    order: initial;
    justify-self: initial;
  }
  .pub-card:nth-child(even) .pub-content {
    order: initial;
  }
  .pub-media {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .pub-media img,
  .pub-media video {
    max-height: none;
  }
  .research-grid,
  .team-main-grid,
  .contact-tracks {
    grid-template-columns: 1fr;
  }
  .students-grid {
    grid-template-columns: 1fr 1fr;
  }
  .students-grid .join-card:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .student-name,
  .student-proj {
    text-align: center;
  }
  .team-card {
    text-align: center;
    align-items: center;
  }
  .team-card .team-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .team-awards {
    justify-content: center;
  }
  .team-awards-marco {
    flex-direction: column;
    align-items: center;
  }
  .team-awards-marco .award-pill {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }
  footer > div:first-child {
    text-align: center;
  }
  footer > div:first-child .footer-logo {
    justify-content: center;
  }
  footer > div:first-child .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }
  footer > div:first-child .footer-icons {
    justify-content: center;
  }
  footer > div:nth-child(2) .footer-col-title {
    text-align: center;
  }
  .funders-grid {
    justify-content: center;
    gap: 0.75rem;
  }
  .funder-row {
    row-gap: 0.75rem;
  }
  .funders-grid > div:nth-child(4) {
    flex-basis: 100%;
  }
  .footer-bottom {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 4px;
  }
  body {
    font-size: 17px;
    line-height: 1.65;
  }
  p,
  .hero-sub,
  .section-sub,
  .research-desc,
  .team-desc {
    max-width: 60ch;
  }
  .btn,
  .nav-cta,
  .join-card,
  .news-card,
  .research-card {
    min-height: 44px;
  }
  a {
    padding: 2px 0;
  }
}

@media (max-width: 560px) {
  .hero-right {
    grid-template-columns: minmax(0, 1fr) 118px;
  }
  .hero-carousel {
    min-height: 240px;
  }
  .hero-stats {
    padding: 1rem 0.75rem;
  }
  .research-circle-wrap {
    width: min(340px, 92vw);
    height: min(340px, 92vw);
  }
  .research-inner {
    width: 100px;
    height: 100px;
  }
  .research-slice-label span {
    font-size: 9px;
  }
  .research-details-image img {
    max-height: 140px;
    width: auto;
  }
  .research-slice-label img {
    height: 1.8em !important;
  }
}

/* 404 PAGE */
.not-found-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.not-found-code {
  font-size: 8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--acc);
  margin-bottom: 1rem;
}
.not-found-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.not-found-desc {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* CONTACT */
.contact-section {
  background: var(--bg2);
}
.join-us-section {
  background: var(--bg);
}
.contact-tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
  margin-top: 3rem;
}

.contact-track:first-child {
  border-radius: 8px 0 0 0;
}
.contact-track:nth-child(2) {
  border-radius: 0 8px 0 0;
}
.contact-track:nth-last-child(2) {
  border-radius: 0 0 0 8px;
}
.contact-track:last-child {
  border-radius: 0 0 8px 0;
}
.contact-track {
  background: var(--bg2);
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition:
    border-color 0.2s,
    background var(--tr),
    box-shadow var(--tr),
    transform var(--tr);
}
.contact-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.contact-track:hover {
  background: var(--bg3);
  border-color: var(--acc-bdr);
  transform: translateY(-1px);
  z-index: 1;
}
.contact-track:hover::after {
  transform: scaleX(1);
}
[data-theme="dark"] .contact-track {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
[data-theme="dark"] .contact-track:hover {
  border-color: rgba(232, 80, 91, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.contact-track-icon {
  font-size: 1.4rem;
  color: var(--acc);
}
[data-theme="dark"] .contact-track-icon {
  color: var(--gold-l);
}
.contact-track-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.2;
}
.contact-track-desc {
  font-size: var(--fs-md);
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}
.contact-cta-box {
  margin-top: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.join-us-section .contact-cta-box {
  background: var(--bg2);
}
.contact-cta-name {
  font-size: var(--fs-lg);
  font-weight: 600;
}
.contact-cta-role {
  font-size: var(--fs-sm);
  color: var(--text2);
  margin-top: 3px;
}
.contact-cta-affil {
  font-size: var(--fs-sm);
  color: var(--text3);
  margin-top: 2px;
}
.contact-cta-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.join-contact-panel {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.join-contact-form-wrap,
.join-contact-info-wrap {
  background: var(--bg2);
  padding: 2rem;
}
.join-contact-title {
  font-size: var(--fs-xl);
  font-weight: 500;
  margin-bottom: 1rem;
}
.join-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
  padding: 0.75rem 0.85rem;
  font: inherit;
  line-height: 1.45;
}
.join-contact-form input:focus,
.join-contact-form textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc-bg);
}
.join-contact-form button {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.join-contact-status {
  font-size: var(--fs-sm);
  margin-top: 0.25rem;
  color: var(--text2);
}
.join-contact-status.success {
  color: #1f8a5b;
}
.join-contact-status.error {
  color: #b83040;
}
.join-contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
}
.join-contact-info-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.join-contact-info-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.6rem;
}
.join-contact-info-title i {
  color: var(--acc);
}
[data-theme="dark"] .join-contact-info-title i {
  color: var(--gold-l);
}
.join-contact-logo {
  margin-bottom: 1.5rem;
}
.join-contact-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}
.join-contact-info-wrap {
  font-size: var(--fs-md);
  color: var(--text2);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.join-contact-info-wrap a {
  color: var(--text);
  text-decoration: none;
}
.join-contact-info-wrap a:hover {
  text-decoration: underline;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .join-us-section {
    padding: 4rem 3rem;
  }
  .contact-tracks {
    margin-top: 2rem;
  }
  .contact-track {
    padding: 1.75rem;
  }
  .contact-cta-box {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
  }
  .join-contact-panel {
    margin-top: 1.5rem;
  }
  .join-contact-form-wrap,
  .join-contact-info-wrap {
    padding: 1.5rem;
  }
}

@media (max-width: 900px) {
  .join-contact-panel {
    grid-template-columns: 1fr;
  }
  .join-contact-form-wrap,
  .join-contact-info-wrap {
    padding: 1.25rem;
  }
  .join-contact-info-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: nowrap;
    text-align: left;
  }
  .join-contact-logo {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  .join-contact-info-list {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
  }
  .join-contact-info-list li {
    align-items: center;
    text-align: center;
  }
  .join-contact-info-title {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-tracks {
    grid-template-columns: 1fr !important;
  }
  .contact-track:first-child  { border-radius: 8px 8px 0 0; }
  .contact-track:nth-child(2) { border-radius: 0; }
  .contact-track:nth-last-child(2) { border-radius: 0; }
  .contact-track:last-child   { border-radius: 0 0 8px 8px; }
}

a:hover,
a:focus-visible {
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* PRINT STYLES */
@media print {
  nav,
  .ticker-bar,
  .mobile-nav,
  .hero-carousel-btn,
  .hero-carousel-dots,
  .hero-canvas,
  .pub-filters,
  .news-filters,
  .theme-toggle,
  .nav-hamburger,
  .footer-bottom {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  section {
    padding: 1rem 0 !important;
    border: none !important;
  }

  .hero {
    display: block !important;
    min-height: auto !important;
  }

  .hero-left {
    padding: 1rem 0 !important;
  }

  .hero-right {
    display: none !important;
  }

  .research-grid,
  .team-main-grid,
  .news-grid,
  .pub-grid {
    display: block !important;
  }

  .research-card,
  .team-card,
  .news-card,
  .pub-card {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
  }

  .breadcrumbs {
    display: none;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .btn {
    display: none;
  }

  @page {
    margin: 2cm;
  }
}
