:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#4b5563;
  --line:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 12px 40px rgba(0,0,0,.08);
  --radius: 18px;
  --radius2: 14px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

.container{ width:min(1120px, 92vw); margin:0 auto; }

/* .bg{
  position:fixed; inset:0;
  pointer-events:none;
  color:#0b1220;
}
.bg__svg{
  width:100%; height:100%;
  filter: blur(.2px);
} */

/* Top bar */
.topbar{
  position:sticky; top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration:none;
  color:var(--text);
}
.nav{ display:flex; gap:14px; align-items:center; }
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-size: 14px;
  padding:8px 10px;
  border-radius: 10px;
}
.nav a:hover{ background: rgba(0,0,0,.04); color:var(--text); }
.nav__toggle{ display:none; }

/* Sections */
.section{ padding: 70px 0; }
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section__head h2{
  font-family:"Space Grotesk", Inter, sans-serif;
  font-size: 30px;
  margin:0;
}
.section__head p{ margin:0; color:var(--muted); max-width: 60ch; }

/* Hero */
.hero{
  padding: 70px 0 40px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}
.kicker{
  color:var(--muted);
  letter-spacing:.2px;
  margin: 0 0 10px;
}
h1{
  font-family:"Space Grotesk", Inter, sans-serif;
  margin:0 0 12px;
  font-size: 44px;
  line-height: 1.05;
}
.lead{
  color:var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 14px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--text);
  color: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  font-weight: 600;
  font-size: 14px;
}
.btn--ghost{
  background: rgba(255,255,255,.72);
  color: var(--text);
  box-shadow: none;
}
.btn--small{ padding: 9px 12px; font-size: 13px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--muted);
}
.chip--btn{ cursor:pointer; }
.chip--btn.is-active{ background: rgba(0,0,0,.06); color: var(--text); }

/* Cards */
.card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(229,231,235,.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.bullets{ margin: 10px 0 0; padding-left: 18px; }
.bullets li{ margin: 6px 0; color: var(--muted); }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
}

/* Photo card */
.photoCard{
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(229,231,235,.85);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}
.photoCard img{
  width:100%;
  display:block;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.photoCard__meta{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px;
  border-top: 1px solid rgba(229,231,235,.85);
}
.photoCard__name{ font-weight: 700; }
.photoCard__role{ font-size: 13px; color: var(--muted); margin-top: 2px; }
.status{ display:flex; align-items:center; gap:8px; font-size: 13px; color: var(--muted); }
.dot{ width:9px; height:9px; border-radius:50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.16); }

.miniStats{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(229,231,235,.85);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.stat__num{
  font-family:"Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 22px;
}
.stat__label{ color:var(--muted); font-size: 12px; margin-top: 3px; }

/* Timeline */
.timeline{
  list-style:none;
  margin:0; padding:0;
  display:flex; flex-direction:column; gap: 14px;
}
.timeline__item{
  width: 100%;

  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items:start;
}
.timeline__year{
  font-family:"Space Grotesk", Inter, sans-serif;
  font-weight: 600;
  color: var(--text);
}
.timeline__content{ 
  display: block;        /* optional but safe */
  width: 100%;           /* ⭐ makes all cards same width */

  padding: 16px; 
  border-radius: var(--radius2); 
  border: 1px solid rgba(229,231,235,.85); 
  background: rgba(255,255,255,.82); 
  box-shadow: var(--shadow); 
}
.timeline__title{ 
  display:flex; 
  gap: 12px; 
  align-items:center; 
}


.orgIcon{ 
  width: 108px; 
  height:54px; 
  padding: 6px; 
  object-fit:contain; 
  border-radius: 10px; 
  border: 1px solid rgba(0,0,0,.06); 
  background: white; 
}

/* Interests */
.cards4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.iconCard{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(229,231,235,.85);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}
.iconCard__icon{ font-size: 28px; }
.iconCard h3{ margin: 10px 0 6px; }
.iconCard p{ margin: 0; color: var(--muted); }

/* Experience */
.stack{ display:flex; flex-direction:column; gap: 14px; }
.case__top{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }
.pill{
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
}

/* Protein grid */
.proteinGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.proteinTile{
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 10px;
  cursor: pointer;
  transition: transform .12s ease;
}
.proteinTile:hover{ transform: translateY(-2px); }
.proteinTile img{
  width:100%;
  display:block;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  max-height: 160px;            /* ⭐ key: prevents tall tiles */
  margin: 0 auto;
}

/* Publications */
.pubFilters{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 12px; }
.pubList{ display:grid; gap: 12px; }
.pub__top{ display:flex; align-items:baseline; justify-content:space-between; gap: 12px; }
.journal{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  color: var(--muted);
}

/* Fun section */
/* .funLayout{ */
  /* display:grid; */
  /* grid-template-columns: 1fr 1fr; */
  /* gap: 14px; */
  /* align-items:start; */
/* } */



.video{
  margin-top: 10px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(229,231,235,.85);
}
.video iframe{
  width:100%;
  aspect-ratio: 16 / 9;
  border:0;
  display:block;
}
.funCards{
  display:grid;
  gap: 14px;
}
.mini__media{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(229,231,235,.85);
  background: white;
}
.mini__media img{ width:100%; display:block; aspect-ratio: 16/9; object-fit: cover; }
.mini__links{ display:flex; gap: 12px; margin-top: 10px; }
.mini__links a{ color: var(--text); text-decoration:none; font-weight: 600; }
.mini__links a:hover{ text-decoration: underline; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
.contact__links{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }
.link{ text-decoration:none; font-weight:700; color: var(--text); }
.link:hover{ text-decoration: underline; }

/* Modal */
.modal{
  position:fixed; inset:0;
  display:none;
  z-index: 100;
}
.modal.is-open{ display:block; }
.modal__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}
.modal__content{
  position:relative;
  width:min(920px, 92vw);
  margin: 6vh auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  padding: 14px;
}
.modal__close{
  position:absolute; top:10px; right:10px;
  border: 1px solid rgba(0,0,0,.12);
  background: white;
  border-radius: 10px;
  cursor:pointer;
  padding: 8px 10px;
}
.modal__content img{
  width:100%;
  display:block;
  border-radius: 14px;
  background:white;
  object-fit: contain;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(229,231,235,.85);
  padding: 18px 0;
  background: rgba(255,255,255,.78);
}
.footer__inner{
  display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .cards4{ grid-template-columns: repeat(2, 1fr); }
  .proteinGrid{ grid-template-columns: repeat(2, 1fr); }
  .grid2{ grid-template-columns: 1fr; }
  .funLayout{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .timeline__item{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .topbar__inner{
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  .brand{
    font-size: 16px;
    white-space: nowrap;
  }
  .nav{
    display:flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    order: 3;
  }
  .nav a{
    font-size: 13px;
    padding: 6px 8px;
  }
  .nav__toggle{
    display:inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border:1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.72);
    border-radius: 12px;
    cursor:pointer;
    line-height: 1;
    order: 2;
  }
  h1{ font-size: 38px; }
}






/* Animated agarose-gel background (fixed) */
.gelCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;              /* keep behind content */
  pointer-events: none;

  /* keep it subtle + clean */
  opacity: 0.25;           /* adjust 0.10–0.25 */
  filter: grayscale(1) blur(0.35px);
  mix-blend-mode: multiply; /* makes bands look like faint ink on paper */
}

/* Ensure your content stays above */
/* .topbar, main, footer { position: relative; z-index: 2; } */
main, footer { position: relative; z-index: 2; }
.bg { position: fixed; inset: 0; z-index: 1; pointer-events: none; } 








/* Slideshow code */

.carousel{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: white;
}

.carousel__track{
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.carousel__track img{
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Buttons */
.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.carousel__btn:hover{ background: rgba(255,255,255,.9); }
.carousel__btn.prev{ left: 10px; }
.carousel__btn.next{ right: 10px; }

/* Dots */
.carousel__dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.carousel__dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.carousel__dot.is-active{
  background: rgba(0,0,0,.35);
}






/* .artist-link{
  color: #2563eb;         
  text-decoration: none;
  font-weight: 600;
}

.artist-link:hover{
  text-decoration: underline;
} */



.mini__links a.artist-link{
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.mini__links a.artist-link:hover{
  text-decoration: underline;
}







.proteinTile.hasOverlay{
  position: relative;
  padding: 10px;
  /* font-size: 15px; */
  font: inherit; /* optional but nice */

}

.proteinTile.hasOverlay .proteinOverlay{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;

  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border-radius: 10px;

  padding: 6px 8px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  text-align: center;

  opacity: 1;
  pointer-events: none;
}



.nav a.btn{
  color: white;
}

.nav a.btn:hover{
  color: gray;
}


/* .funLayout{ */
  /* column-count: 2; */
  /* column-gap: 14px; */
/* } */

/* .funLayout > *{ */
  /* break-inside: avoid; */
  /* margin-bottom: 14px; */
/* } */


.funLayout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.funCol{
  display: grid;
  gap: 14px;
  align-content: start;
}



/* -------- Mobile typography & spacing -------- */

@media (max-width: 760px){
  body{
    font-size: 12px;
  }

  h1{
    font-size: 26px;
    line-height: 1.1;
  }

  h2{
    font-size: 22px;
  }

  h3{
    font-size: 14px;
  }

  .journal{
    font-size: 10px;
  }

  p,
  .muted{
    font-size: 12px;
  }

  .section{
    padding: 40px 0;
  }

  .card{
    padding: 14px;
  }
}

@media (max-width: 760px){
  .section__head h2{
    font-size: 20px;
  }
}

@media (max-width: 760px){
  .lead{
    font-size: 14px;
  }
}

/* -------- Layout tweaks -------- */

@media (max-width: 560px){
  .cards4{ grid-template-columns: 1fr; }
  .proteinGrid{ grid-template-columns: 1fr; }
}

img, video, iframe{
  max-width: 100%;
  height: auto;
}

/* -------- Timeline icons -------- */

@media (max-width: 760px){
  .orgIcon{
    width: 54px;
    height: 24px;
    padding: 4px;
  }

  .orgIcons{
    flex-direction: column;
    gap: 6px;
  }
}

/* -------- Fun projects -------- */

@media (max-width: 760px){
  .funLayout{
    grid-template-columns: 1fr;
  }

  .funCol{
    gap: 12px;
  }
}

/* -------- Profile photo -------- */

@media (max-width: 760px){
  .photoCard{
    /* max-width: 320px; */
    max-width: 320px;
    margin: 0 auto;
  }

  .photoCard img{
    aspect-ratio: 1 / 1.1;
  }
}




/* -------- Icon width -------- */

.orgIcons{
  width: 76px;              /* pick a width that fits your logos */
  flex: 0 0 76px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;      /* keeps logos centered */
}

.orgIcons .orgIcon{
  width: 100%;
  height: 36px;             /* or your preferred height */
  object-fit: contain;
}






/* -------- Mobile nav bar -------- */
/* @media (max-width: 760px){
  .topbar__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand{
    font-size: 16px;
    font-weight: 700;
  }
}

.mobileNav{
  display: flex;
  flex-direction: column;
  gap: 14px;
} */


/* Mobile nav dropdown */
.mobileNav{
  display: none;                 /* ✅ hidden by default */
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;

  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229,231,235,.85);
  box-shadow: var(--shadow);

  flex-direction: column;
  gap: 10px;
}

/* when open */
.mobileNav.is-open{
  display: flex;
}

@media (max-width: 760px){
  .topbar__inner{
    position: relative;          /* ✅ anchors the dropdown */
  }
}


.mobileNav a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.mobileNav a:hover{
  background: rgba(0,0,0,.04);
}
