:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #dc1e1e;
  --muted: #8a8a8a;
  --border: #333333;
  --max-width: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Montserrat', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
}
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.accent-line { color: var(--accent); }
.accent-link { color: var(--accent); }
.accent-link:hover { color: var(--fg); text-decoration: underline; }
.muted { color: var(--muted); }
.center-line { text-align: center; }

.qr-wrap { margin: 24px 0; }
.qr-code { width: 160px; max-width: 100%; height: auto; }
.qr-caption {
  margin-top: 9px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* arginls */
.arginls-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 20px 0 24px;
}
.arginls-photo-wrap { flex: 0 0 200px; width: 200px; text-align: center; }
.arginls-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: #111;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.arginls-photo-caption {
  margin-top: 9px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.arginls-text { flex: 1; min-width: 0; }
.addgene-badge {
  display: inline-block;
  background: #fff;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  line-height: 0;
  margin: 4px 0 24px;
}
.addgene-logo { width: 220px; max-width: 100%; height: auto; display: block; }

/* bmads */
.bmads-figure { max-width: 720px; margin: 28px auto; }
.bmads-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  background: #fff;
}
.bmads-figure-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.bmads-commercial-note { font-size: 0.8rem; margin-top: 10px; }
.bmads-commercial-note a { color: var(--muted); text-decoration: underline; }
.bmads-commercial-note a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .arginls-hero { flex-direction: column; align-items: center; }
  .arginls-photo-wrap { width: 200px; }
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-logo { height: 40px; width: auto; }
.brand-sub { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; margin-left: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
}

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

main { min-height: 60vh; padding: 48px 24px 64px; }

/* hero / headings */
.hero { text-align: center; padding-bottom: 8px; }
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 1.15;
  margin: 0 0 28px;
}
.hero-line { margin: 4px 0; font-size: 1.1rem; }
.notice { color: var(--fg); font-size: 0.95rem; line-height: 1.8; }

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 2.4rem;
  margin: 0 0 24px;
}
.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 32px 0 14px;
}
.group-heading { text-align: left; }

.research-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}
.research-image {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  background: #111;
}
.research-text { flex: 1 1 auto; min-width: 0; }
.research-text .eyebrow { margin-top: 0; line-height: 1; }

@media (max-width: 640px) {
  .research-item { flex-direction: column; gap: 14px; }
  .research-image { width: 100%; height: auto; max-height: 220px; flex: none; }
}

section p { margin: 0 0 18px; }

/* lab photo carousel */
.lab-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin: 0 0 40px;
  background: #111;
  user-select: none;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 1.3rem;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
  line-height: 1;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-prev { left: 0; border-radius: 0 3px 3px 0; }
.carousel-next { right: 0; border-radius: 3px 0 0 3px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-dot.active { background: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .carousel-slide img { height: 240px; }
  .carousel-btn { font-size: 1rem; padding: 7px 11px; }
}

/* people */
.person { margin-bottom: 40px; text-align: center; }
.person-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
  background: #111;
}
.person-name { font-weight: 600; font-size: 1.1rem; margin: 0 0 2px; }
.person-role { font-size: 0.9rem; color: var(--muted); margin: 0 0 2px; }
.person-bio { text-align: left; font-size: 0.95rem; margin-top: 12px; }
.link-row { font-family: 'Lato', sans-serif; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.alumni-list { list-style: none; padding: 0; margin: 0 0 8px; }
.alumni-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }

/* key collaborators */
.collaborators { margin: 4px 0 20px; }
.collaborators-intro {
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.collaborators-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.collaborator { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 68px; text-align: center; }
.collaborator-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}
.collaborator-name {
  margin-top: 7px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* publications */
.year-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  margin: 8px 0 20px;
}
.pub-entry { margin-bottom: 28px; scroll-margin-top: 90px; }
.pub-title { font-weight: 700; font-size: 0.95rem; margin: 0 0 6px; }
.pub-authors { margin: 0 0 4px; font-size: 0.9rem; }
.pub-citation { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.pub-abstract { font-size: 0.9rem; margin: 0; }

/* publications: cover wall */
.cover-wall { margin: 4px 0 8px; }
.cover-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.cover-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 118px;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.cover-tile:hover { transform: translateY(-6px); color: var(--fg); }
.cover-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #111;
}
.cover-tile:hover .cover-img-wrap {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(220, 30, 30, 0.35);
}
.cover-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-caption {
  margin-top: 9px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  transition: color 0.25s ease;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cover-tile:hover .cover-caption { color: var(--fg); }

@media (max-width: 640px) {
  .cover-grid { gap: 12px; }
  .cover-tile { width: 84px; }
  .cover-caption { font-size: 0.6rem; }
}

/* news */
.news-entry { margin-bottom: 8px; }
.news-date { font-weight: 700; font-size: 0.85rem; margin: 0 0 6px; }
.news-title { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 1.5rem; margin: 0 0 10px; }
.news-body { font-size: 0.95rem; }

address { font-style: normal; }

/* contact map */
.map-wrap {
  max-width: 640px;
  margin: 28px auto 8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  display: block;
}

/* footer */
.site-footer { text-align: center; padding: 56px 24px 40px; }
.footer-tagline {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin: 0 0 18px;
}
.footer-meta { color: var(--muted); font-size: 0.78rem; margin: 0 0 12px; }
.footer-email a { font-size: 1.2rem; }

@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin-top: 10px;
    gap: 10px;
  }
  .site-nav.open { display: flex; }
  .hero h1 { font-size: 2.4rem; }
}
