:root {
  --bg-primary: #faf8f3;       
  --bg-secondary: #ffffff;
  --text-primary: #11182b;   
  --text-secondary: #525b72;  
  --text-muted: #8a92a6;      
  --border-color: #e6e2d6;     

  --accent-primary: #1b2f6b;   
  --accent-color: var(--accent-primary);
  --accent-hover: #142450;
  --accent-amber: #f2a900;
  --accent-amber-dark: #c98300;
  --accent-teal: #0e7c7b;

  --dark-bg-primary: #121212;
  --dark-bg-secondary: #1e1e1e;
  --dark-text-primary: #e0e0e0;
  --dark-text-secondary: #b0b0b0;
  --dark-accent-color: #4ecdc4;
  --dark-accent-hover: #45b7aa;

  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body.dark-mode {
  background-color: var(--dark-bg-primary);
  color: var(--dark-text-primary);
}

.theme-toggle {
  position: relative;
  width: 100px;
  height: 50px;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

.theme-switch-label {
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: var(--dark-bg-primary);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark-bg-primary);
}

.theme-switch {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  transition: 0.3s;
}

.theme-switch:checked ~ .slider {
  background-color: var(--bg-primary);
}

.slider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: inset 12px -4px 0px 0px var(--bg-primary);
  background-color: var(--dark-bg-primary);
  transition: 0.3s;
}

.theme-switch:checked ~ .slider::before {
  transform: translateX(50px);
  background-color: var(--dark-bg-primary);
  box-shadow: none;
}

#about-container {
  padding: var(--spacing-20, 5rem) 6% var(--spacing-24, 6rem);
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 18px 18px, rgba(27,47,107,0.05) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 1rem;
  width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-amber);
  animation: pulseRing 1.8s var(--ease-out) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.section-title {
  font-family: var(--font-family-display);
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-teal));
  border-radius: var(--radius-full);
}

#about-container > .section-title { margin-bottom: 4rem; }

.section-subtitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-family-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 3.5rem auto 2rem;
  padding-bottom: 0;
  border-bottom: none;
  font-weight: 600;
  max-width: 1300px;
}

.section-subtitle::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--accent-amber);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.section-subtitle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  max-width: 1300px;
  margin: 0 auto 1.5rem;
}

.team-member {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-2xl);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27,47,107,0.12);
  border-color: rgba(27,47,107,0.2);
}

.team-member:hover::before {
  transform: scaleX(1);
}

.member-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  background-color: var(--bg-primary);
  border: 3px solid #ffffff;
  outline: 2px solid var(--border-color);
  outline-offset: 3px;
  transition: outline-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member:hover .member-img {
  transform: scale(1.05);
  outline-color: var(--accent-amber);
}

.member-name {
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.member-role {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-teal);
  background: rgba(14,124,123,0.1);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border-bottom: none;
}

#about-container > .team-container:nth-of-type(2) .member-role {
  color: var(--accent-primary);
  background: rgba(27,47,107,0.08);
}
#about-container > .team-container:nth-of-type(3) .member-role {
  color: var(--accent-amber-dark);
  background: rgba(242,169,0,0.12);
}
#about-container > .team-container:nth-of-type(4) .member-role {
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.member-contribution {
  text-align: left;
}

.member-contribution ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-left: 0;
  margin-top: 0;
}

.member-contribution li {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.member-contribution li::before { content: none; }

.team-member:hover .member-contribution li {
  background: #faf0d6;
  color: var(--text-primary);
}


#AH.team-container {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

#AH .team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "img name"
    "img role"
    "img tags"
    "bio bio";
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  width: 100%;
  text-align: left;
  align-items: start;
  padding: 2.5rem;
  border-color: rgba(27,47,107,0.15);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

#AH .team-member:hover {
  transform: translateY(-4px);
}

#AH .member-img {
  grid-area: img;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-2xl);
  margin: 0;
  outline-offset: 4px;
}

#AH .member-img img {
  filter: none;
}

#AH .member-name {
  grid-area: name;
  font-size: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

#AH .member-role {
  grid-area: role;
  background: var(--accent-primary);
  color: #ffffff;
  align-self: start;
  margin-bottom: 0.75rem;
}

#AH .member-contribution {
  grid-area: tags;
  margin-top: 0.25rem;
}
#AH .member-contribution ul { justify-content: flex-start; }

#AH .member-bio {
  grid-area: bio;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  background: transparent;
  box-shadow: none;
  border: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

#AH .member-bio h2 {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

#AH .member-bio p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

#AH .member-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 850px) {
  #AH .team-member {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "name"
      "role"
      "tags"
      "bio";
    text-align: center;
    padding: 1.75rem;
  }
  #AH .member-img { margin: 0 auto 1rem; }
  #AH .member-role { align-self: center; }
  #AH .member-contribution ul { justify-content: center; }
  #AH .member-bio { text-align: left; }
}
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 5% 1rem;
}

.dark-mode .footer {
  background-color: var(--dark-bg-secondary);
}

.two-column-list {
  display: flex;
  gap: 2rem;
}

.two-column-list ul {
  padding-left: 0;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-direction: row;
}

.footer-logo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-img {
  height: 100px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.footer-logo p {
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 40px;
  background-color: var(--accent-amber);
}

.dark-mode .footer-col h4::after {
  background-color: var(--dark-accent-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--dark-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.university-affiliation {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-text-secondary);
}

.btn-container {
  text-align: center;
  margin-top: 40px;
}

.back-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27,47,107,0.3);
}

.back-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27,47,107,0.4);
}

.back-btn:active {
  transform: translateY(1px);
}

.dark-mode #about-container {
  background-color: var(--dark-bg-secondary);
  background-image: none;
  color: var(--dark-text-primary);
}

.dark-mode .section-title { color: var(--dark-text-primary); }

.dark-mode .section-title::after {
  background: linear-gradient(90deg, var(--dark-accent-color), var(--dark-accent-hover));
}

.dark-mode .section-subtitle {
  color: var(--dark-accent-color);
}
.dark-mode .section-subtitle::after { background: rgba(255,255,255,0.15); }
.dark-mode .section-subtitle::before { background: var(--dark-accent-color); }

.dark-mode .team-member {
  background-color: var(--dark-bg-primary);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.06);
}

.dark-mode .team-member::before {
  background: linear-gradient(90deg, var(--dark-accent-color), var(--dark-accent-hover));
}

.dark-mode .member-img {
  background-color: var(--dark-bg-primary);
  outline-color: var(--dark-text-secondary);
  border-color: var(--dark-bg-secondary);
}

.dark-mode .member-name { color: var(--dark-text-primary); }

.dark-mode .member-role {
  color: var(--dark-accent-color);
  background: rgba(78, 205, 196, 0.12);
}

.dark-mode .member-contribution { color: var(--dark-text-secondary); }

.dark-mode .member-contribution li {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--dark-text-secondary);
}

.dark-mode .back-btn {
  background: linear-gradient(135deg, var(--dark-accent-color), var(--dark-accent-hover));
}
@media (max-width: 992px) {
  #about-container {
    padding: 2.5rem 5%;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #header {
    padding: 15px 20px;
    flex-direction: column;
  }

  #nav-buttons {
    margin-top: 15px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .team-container {
    justify-content: center;
  }

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

  .footer-logo {
    margin-bottom: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
.member-linkedin {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,47,107,0.08);
  color: var(--accent-primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 2;
}

.member-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  transform: translateY(-3px);
}

.dark-mode .member-linkedin {
  background: rgba(255,255,255,0.08);
  color: var(--dark-accent-color);
}
.dark-mode .member-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

#AH .member-linkedin {
  top: 2.5rem;
  right: 2.5rem;
}

#AH .member-name {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  background: #2563eb;
  color: #ffffff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 1.6rem;
}

#AH .member-role {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  background: var(--accent-amber);
  color: #11182b;
  font-size: 0.95rem;
}

.dark-mode #AH .member-name {
  background: #2563eb;
  color: #ffffff;
}

.member-name {
  font-size: 1.4rem;
}

.member-role {
  font-size: 0.8rem;
  padding: 5px 16px;
}

.member-contribution li {
  font-size: 0.8rem;
  padding: 5px 12px;
}

#AH .member-bio p {
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-primary, #007bff);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.skip-link:focus {
  top: 6px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.header.scrolled {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.header.header-hidden {
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 70px;
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 0%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.vertical-line {
  width: 3px;
  height: 60px;
  background-color: #313131;
}

.lab-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary, #007bff), var(--accent-secondary, #6c757d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary, #495057);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.3rem;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary, #007bff);
  transition: width 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-primary, #007bff);
}

.nav-link.active {
  color: var(--accent-primary, #007bff);
}

.nav-link.active::after {
  width: 100%;
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1rem;
  }
  
  .logo {
    height: 50px;
  }
  
  .lab-name {
    font-size: 1.1rem;
  }
  
  .navigation ul {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .header {
    padding: 0.875rem 1.5rem;
  }
  
  .navigation ul {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .navigation ul {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-link:hover {
    transform: none;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .logo,
  .nav-link,
  .nav-link::after,
  .nav-link::before {
    transition-duration: 0.01ms !important;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #313131;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 98;
}

.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

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

  .navigation {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #ffffff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    padding-top: 6rem;
  }

  .navigation.nav-open {
    transform: translateX(0);
  }

  .navigation ul {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 0 1.75rem;
  }

  .navigation ul li {
    border-bottom: 1px solid #eeeeee;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navigation,
  .nav-toggle-bar,
  .nav-backdrop {
    transition-duration: 0.01ms !important;
  }
}
#AH .member-socials {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  display: flex;
  gap: 0.6rem;
}

#AH .member-socials .member-social {
  position: relative;
  top: auto;
  right: auto;
}

.member-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.member-social:hover {
  transform: translateY(-3px);
}

.member-info {
  background: rgba(27, 47, 107, 0.08);
  color: var(--accent-primary);
}
.member-info:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.member-scholar {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
}
.member-scholar:hover {
  background: #4285f4;
  color: #ffffff;
}

.member-linkedin {
  background: rgba(27,47,107,0.08);
  color: var(--accent-primary);
}
.member-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

.dark-mode .member-info {
  background: rgba(255,255,255,0.08);
  color: var(--dark-accent-color);
}
.dark-mode .member-scholar {
  background: rgba(66, 133, 244, 0.15);
  color: #8ab4f8;
}
.dark-mode .member-linkedin {
  background: rgba(255,255,255,0.08);
  color: var(--dark-accent-color);
}
/* ============================================================
   TEAM GALLERY — large scrolling photo strip
   ============================================================ */
.team-gallery-section {
  max-width: 100%;
  margin: 3.5rem 0 0;
  overflow: hidden;
}

.team-gallery-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.team-gallery-marquee:hover .team-gallery-track {
  animation-play-state: paused;
}

.team-gallery-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: teamGalleryScroll 40s linear infinite;
  padding: 1rem 0 1.5rem;
}

@keyframes teamGalleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.team-gallery-item {
  flex-shrink: 0;
  width: 560px;
  height: 380px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(27,47,107,0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.team-gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(27,47,107,0.18);
}

.team-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.team-gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .team-gallery-item {
    width: 340px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .team-gallery-item {
    width: 260px;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-gallery-track {
    animation: none;
    overflow-x: auto;
  }
}
/* ========================================
   CUSTOM CURSOR (additive, safe fallback)
   ======================================== */

:root {
  --cursor-color: #a020f0;
  --cursor-dot-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-ready {
    cursor: none !important;
  }
  body.custom-cursor-ready * {
    cursor: none !important;
  }

  #cursor-dot,
  #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  body.custom-cursor-ready #cursor-dot,
  body.custom-cursor-ready #cursor-ring {
    opacity: 1;
  }

  #cursor-dot {
    width: var(--cursor-dot-size);
    height: var(--cursor-dot-size);
    background: var(--cursor-color);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, width 0.2s ease, height 0.2s ease;
  }

  #cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--cursor-color);
    opacity: 0.55;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background 0.25s ease;
  }

  body.cursor-hover #cursor-ring {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--cursor-color) 15%, transparent);
    border-color: var(--cursor-color);
  }

  body.cursor-hover #cursor-dot {
    background: var(--cursor-color);
  }

  body.cursor-active #cursor-ring {
    width: 26px;
    height: 26px;
  }
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #cursor-dot, #cursor-ring { display: none; }
  body.custom-cursor-ready,
  body.custom-cursor-ready * { cursor: auto !important; }
}
/* ============================================================
   PhD grid — temporary 3-2 split until 6th member is added
   ============================================================ */
#about-container > .team-container:nth-of-type(3) {
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

#about-container > .team-container:nth-of-type(3) .team-member {
  width: 100%;
  max-width: 320px;
}

/* Last 2 cards sit in the center of the 3-column grid */
#about-container > .team-container:nth-of-type(3) .team-member:nth-child(4) {
  grid-column: 1 / 2;
  justify-self: end;
}

#about-container > .team-container:nth-of-type(3) .team-member:nth-child(5) {
  grid-column: 2 / 3;
  justify-self: start;
}

@media (max-width: 900px) {
  #about-container > .team-container:nth-of-type(3) {
    grid-template-columns: repeat(2, 1fr);
  }
  #about-container > .team-container:nth-of-type(3) .team-member:nth-child(4),
  #about-container > .team-container:nth-of-type(3) .team-member:nth-child(5) {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (max-width: 580px) {
  #about-container > .team-container:nth-of-type(3) {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PhD grid — temporary 3-2 split until 6th member is added
   ============================================================ */
#about-container > .team-container:nth-of-type(3) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

#about-container > .team-container:nth-of-type(3) .team-member {
  flex: 0 0 calc(33.333% - 1.75rem);
  max-width: 320px;
  min-width: 240px;
}

@media (max-width: 900px) {
  #about-container > .team-container:nth-of-type(3) .team-member {
    flex: 0 0 calc(50% - 1.75rem);
  }
}

@media (max-width: 580px) {
  #about-container > .team-container:nth-of-type(3) .team-member {
    flex: 0 0 100%;
  }
}