/* Palette: dark navy base with neon cyan/blue accents (inspired by acumino.ai). */
:root {
  --background: 225 28% 4%;
  --surface: 225 24% 7%;
  --surface-2: 225 22% 10%;
  --card: 225 22% 8%;
  --border: 220 15% 16%;
  --border-strong: 220 15% 22%;
  --foreground: 180 20% 94%;
  --muted-foreground: 220 12% 62%;

  --primary: 185 100% 55%;      /* neon cyan */
  --primary-strong: 180 100% 50%;
  --accent: 185 100% 55%;       /* unified to neon cyan */
  --violet: 195 90% 60%;        /* shifted to deeper neon blue */
  --grid: 190 80% 45%;

  --glow-cyan: 0 0 40px hsl(185 100% 55% / .35);
  --glow-cyan-strong: 0 0 60px hsl(185 100% 55% / .55), 0 0 120px hsl(195 90% 55% / .3);
  --gradient-aurora: linear-gradient(135deg, hsl(200 100% 50% / .9), hsl(185 100% 55% / .9), hsl(180 100% 60% / .9));
  --gradient-card: linear-gradient(135deg, hsl(225 22% 10%) 0%, hsl(225 22% 6%) 100%);
  --gradient-hero: radial-gradient(circle at 20% 10%, hsl(200 100% 40% / .35), transparent 55%),
                   radial-gradient(circle at 80% 30%, hsl(185 100% 45% / .28), transparent 55%),
                   radial-gradient(circle at 50% 90%, hsl(190 100% 50% / .3), transparent 60%),
                   hsl(var(--background));

  --radius: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

a { color: hsl(var(--primary)); text-decoration: none; transition: color .15s ease; }
a:hover { color: hsl(var(--accent)); text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.top-bar {
  background: hsl(var(--surface));
  color: hsl(var(--muted-foreground));
  font-size: .85rem;
  border-bottom: 1px solid hsl(var(--border));
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: .5rem 0;
  gap: 1rem;
}
.brand-mini {
  color: hsl(var(--foreground));
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.7rem;
  line-height: 1;
}
.top-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.top-nav a { color: hsl(var(--muted-foreground)); }
.top-nav a:hover,
.top-nav a.active { color: hsl(var(--primary)); }

.hero-bar {
  background-color: hsl(var(--background));
  background-image: url('/images/hero-galaxy.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: hsl(var(--foreground));
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
}
.hero-bar .container {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
  z-index: 0;
}
.hero-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(var(--grid) / .06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--grid) / .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  z-index: 1;
}
.hero-bar .container { position: relative; z-index: 2; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 144px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 112px; }
}
.brand-tagline {
  margin: .85rem 0 0;
  max-width: 100%;
  color: #ffffff;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(220, 220, 220, .55),
    0 0 14px rgba(220, 220, 220, .35);
}

.main-nav {
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: .95rem 1.15rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: hsl(var(--primary)); }
.main-nav a.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* Main */
.site-main { padding: 2.5rem 0 3rem; }
.site-main h1 {
  margin-top: .25rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: hsl(var(--foreground));
}
.site-main h2 {
  color: hsl(var(--foreground));
  margin-top: 2.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: .4rem;
}
.site-main h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--gradient-aurora);
  border-radius: 2px;
}

.lead {
  font-size: 1.1rem;
  color: hsl(var(--muted-foreground));
  max-width: 820px;
}
.muted { color: hsl(var(--muted-foreground)); }

/* Hero (home) */
.hero {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--glow-cyan);
}
.greetings {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.greeting {
  background: hsl(var(--surface-2));
  border: 1px solid hsl(var(--border-strong));
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .88rem;
  display: inline-flex;
  gap: .5rem;
  align-items: baseline;
}
.g-text { font-weight: 600; color: hsl(var(--primary)); }
.g-lang { color: hsl(var(--muted-foreground)); font-size: .78rem; }

.mission {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .95rem;
  color: hsl(var(--foreground));
  border-left: 2px solid hsl(var(--primary));
  padding-left: 1rem;
  margin: 1.25rem 0;
}

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--background));
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .15s ease;
  box-shadow: 0 0 0 1px hsl(var(--primary));
}
.btn:hover {
  background: hsl(var(--primary-strong));
  color: hsl(var(--background));
  box-shadow: var(--glow-cyan-strong);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
  box-shadow: none;
}
.btn-outline:hover {
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  box-shadow: var(--glow-cyan);
}

.home-section { margin: 3rem 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: hsl(var(--primary) / .4);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.card h3 {
  margin: 0 0 .5rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}
.card p { margin: .4rem 0; color: hsl(var(--muted-foreground)); }
.card p strong { color: hsl(var(--foreground)); }

.pi-card {
  background: linear-gradient(135deg, hsl(200 100% 15% / .6), hsl(225 22% 8%) 60%);
  border-color: hsl(var(--primary) / .3);
}

.stat-card { text-align: center; }
.stat-number {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.4rem;
  font-weight: 600;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { color: hsl(var(--muted-foreground)); margin-top: .5rem; font-size: .9rem; }

/* Lists */
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .25rem 0; color: hsl(var(--muted-foreground)); }

.project-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .6rem;
}
.project-list li {
  background: hsl(var(--surface));
  padding: .85rem 1rem;
  border-radius: 8px;
  border-left: 2px solid hsl(var(--accent));
  color: hsl(var(--foreground));
  transition: border-color .2s ease;
}
.project-list li:hover { border-left-color: hsl(var(--primary)); }

/* Research */
.research-hero {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--glow-cyan);
}
.research-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}
.project-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.project-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.project-thumb {
  aspect-ratio: 16 / 9;
  background: hsl(var(--surface));
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { padding: .9rem 1.1rem 1.1rem; }
.project-body h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 600;
}

.chip-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border-strong));
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .88rem;
  color: hsl(var(--foreground));
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.chip-venue {
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / .5);
}

.news-list, .alumni-list, .event-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.news-list li, .alumni-list li, .event-list li {
  padding: .9rem 0;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: hsl(var(--muted-foreground));
}
.news-list li {
  flex-direction: column;
  gap: .3rem;
}
.news-list li:hover, .alumni-list li:hover, .event-list li:hover {
  color: hsl(var(--foreground));
}
.news-list li strong, .alumni-list li strong, .event-list li strong {
  color: hsl(var(--foreground));
}
.news-date, .event-date, .year {
  color: hsl(var(--primary));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: .88rem;
  min-width: 130px;
}

.alumni-detail li {
  display: block;
  padding: 1rem 0;
}
.alumni-head { margin-bottom: .35rem; color: hsl(var(--foreground)); }
.alumni-head .year { min-width: 0; margin-right: .6rem; }
.alumni-pos {
  font-size: .92rem;
  color: hsl(var(--muted-foreground));
  margin-left: 2.1rem;
}
.pos-label {
  color: hsl(var(--primary));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .78rem;
  margin-right: .4rem;
}

address { font-style: normal; color: hsl(var(--muted-foreground)); }

/* Footer */
.site-footer {
  background: hsl(var(--surface));
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  margin-top: 4rem;
  padding: 3rem 0 1rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-aurora);
  opacity: .5;
}
.site-footer h3, .site-footer h4 {
  color: hsl(var(--foreground));
  margin-top: 0;
  font-weight: 600;
}
.site-footer a { color: hsl(var(--primary)); }
.site-footer a:hover { color: hsl(var(--accent)); }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: .85rem;
}

/* Publications */
.year-section { margin-top: 2.5rem; scroll-margin-top: 2rem; }
.pub-kind {
  margin: 1.5rem 0 .5rem;
  color: hsl(var(--primary));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.pub-list {
  list-style: decimal inside;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}
.pub-entry {
  padding: 1rem 0 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.pub-entry:last-child { border-bottom: none; }
.pub-authors {
  color: hsl(var(--foreground));
  font-weight: 500;
  font-size: .95rem;
}
.pub-title {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin: .25rem 0;
  line-height: 1.4;
}
.pub-venue { font-size: .9rem; color: hsl(var(--muted-foreground)); }
.pub-venue em { color: hsl(var(--primary)); font-style: italic; }
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}
.pub-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .7rem;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border-strong));
  color: hsl(var(--muted-foreground));
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  border-color: hsl(var(--primary) / .5);
  box-shadow: var(--glow-cyan);
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: hsl(var(--surface));
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-meta { padding: .85rem 1rem 1rem; }
.video-title {
  font-size: .95rem;
  margin: 0 0 .35rem;
  color: hsl(var(--foreground));
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-sub {
  color: hsl(var(--muted-foreground));
  font-size: .82rem;
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.video-sub .dot { color: hsl(var(--border-strong)); }

/* Team */
.team-section { margin-top: 2rem; }
.pi-profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, hsl(200 100% 15% / .4), hsl(225 22% 8%) 60%);
  border: 1px solid hsl(var(--primary) / .3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.pi-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid hsl(var(--primary) / .5);
  box-shadow: var(--glow-cyan);
}
.pi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pi-info h3 { margin: 0 0 .5rem; font-size: 1.35rem; color: hsl(var(--foreground)); }
.pi-roles {
  margin: 0;
  padding-left: 1.1rem;
  color: hsl(var(--muted-foreground));
}
.pi-roles li {
  padding: .2rem 0;
  line-height: 1.45;
}
.pi-roles li::marker { color: hsl(var(--primary)); }
.pi-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pi-links li a {
  display: inline-block;
  padding: .35rem .85rem;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border-strong));
  border-radius: 999px;
  font-size: .85rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: hsl(var(--primary));
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pi-links li a:hover {
  background: hsl(var(--primary) / .12);
  border-color: hsl(var(--primary));
  text-decoration: none;
}
@media (max-width: 640px) {
  .pi-profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pi-info ul.plain { text-align: left; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}
.team-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.team-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.team-photo {
  aspect-ratio: 1;
  background: hsl(var(--surface));
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-body { padding: .9rem 1.05rem 1.1rem; }
.team-body h3 { margin: 0 0 .3rem; font-size: 1rem; color: hsl(var(--foreground)); }
.team-focus { margin: 0 0 .3rem; color: hsl(var(--foreground)); font-size: .92rem; }

/* Spin-Offs */
.spinoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.spinoff-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.spinoff-card:hover {
  border-color: hsl(var(--primary) / .5);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
}
.spinoff-logo {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}
.spinoff-logo img {
  max-height: 100%;
  max-width: 90%;
  object-fit: contain;
  display: block;
}
.spinoff-body { padding: 1.25rem 1.4rem 1.4rem; }
.spinoff-body h3 {
  margin: 0 0 .35rem;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 1.15rem;
}
.spinoff-tagline {
  margin: 0 0 .75rem !important;
  font-style: italic;
}
.spinoff-body p { color: hsl(var(--muted-foreground)); margin: .4rem 0; }
.spinoff-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .82rem;
  color: hsl(var(--primary));
  margin-top: .75rem !important;
}

/* Initiatives */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.initiative-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.initiative-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
}
.initiative-logo {
  height: 140px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.initiative-logo img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
  display: block;
}
.initiative-body { padding: 1.1rem 1.25rem 1.25rem; }
.initiative-body h3 { margin: 0 0 .5rem; color: hsl(var(--foreground)); font-weight: 600; }
.initiative-body p { color: hsl(var(--muted-foreground)); margin: .4rem 0; }
.initiative-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .82rem;
  color: hsl(var(--primary));
}

/* Home — Affiliations */
.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.affiliation-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.affiliation-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
}
.affiliation-logo {
  height: 160px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.affiliation-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.affiliation-body { padding: 1rem 1.25rem 1.25rem; }
.affiliation-body h3 { margin: 0 0 .35rem; color: hsl(var(--foreground)); font-weight: 600; }
.affiliation-body p { margin: .25rem 0; }

/* Home — Featured videos (2x2 grid, equal-dimension tiles) */
.featured-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (max-width: 540px) {
  .featured-videos { grid-template-columns: 1fr; }
}
.featured-video {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.featured-video .video-embed { border-radius: 0; }
.featured-title {
  margin: 0;
  padding: .85rem 1.1rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  height: 3.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-title a {
  color: hsl(var(--foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-title a:hover { color: hsl(var(--primary)); text-decoration: none; }

/* Locations */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.location-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.location-map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.95);
}
.location-body {
  padding: 1.1rem 1.25rem 1.35rem;
}
.location-body h3 {
  margin: 0 0 .35rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}
.location-body address {
  margin: .5rem 0;
  font-style: normal;
  color: hsl(var(--foreground));
}

/* Labs */
.lab-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}
@media (max-width: 540px) {
  .lab-videos { grid-template-columns: 1fr; }
}
.lab-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--surface));
  box-shadow: var(--glow-cyan);
}
.lab-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.lab-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lab-card:hover {
  border-color: hsl(var(--primary) / .45);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.lab-thumb {
  aspect-ratio: 16 / 10;
  background: hsl(var(--surface));
  overflow: hidden;
}
.lab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.lab-card:hover .lab-thumb img { transform: scale(1.04); }
.lab-body { padding: 1.1rem 1.25rem 1.35rem; }
.lab-body h3 {
  margin: 0 0 .5rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}
.lab-body p { margin: 0; color: hsl(var(--muted-foreground)); }

.not-found { text-align: center; padding: 4rem 1rem; }

@media (max-width: 640px) {
  .main-nav a { padding: .75rem .85rem; font-size: .75rem; }
  .top-bar-inner { height: auto; padding: .5rem 0; flex-direction: column; gap: .4rem; }
  .hero { padding: 1.5rem; }
  .hero-bar {
    min-height: 340px;
    padding: 2rem 0 2rem;
    background-position: center right;
  }
  .brand-tagline { font-size: .85rem; white-space: normal; }
}
