:root{
  --navy:#173b4a;
  --ink:#17232b;
  --muted:#64727a;
  --paper:#ffffff;
  --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight:300;
  color:var(--ink);
  background:#fff;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
.site-header{
  position:absolute;
  z-index:20;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  padding:24px 3.4vw;
  color:#fff;
}
.brand{
  font-size:32px;
  line-height:1;
  font-weight:300;
  letter-spacing:-0.025em;
  white-space:nowrap;
}
.header-right{
  display:flex;
  align-items:center;
  gap:29px;
  margin-left:auto;
}
nav{
  display:flex;
  align-items:center;
  gap:29px;
  font-size:18px;
  line-height:1;
  font-weight:300;
}
nav a,.social-links a{opacity:.98}
nav a:hover,.social-links a:hover{opacity:.67}
.social-links{
  display:flex;
  align-items:center;
  gap:29px;
  margin-left:0;
}
.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.social-links img{
  display:block !important;
  width:18px !important;
  height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  object-fit:contain;
}
.hero{
  height:64vh;
  min-height:520px;
  max-height:650px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--navy);
}
.hero video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  filter:brightness(1.13) contrast(.94);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(18,48,60,.10) 0%,rgba(18,48,60,.03) 58%,rgba(18,48,60,0) 100%);
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  width:min(var(--max),83vw);
  margin:0 auto;
  color:#fff;
  transform:translateY(28px);
}
.kicker{
  margin:0 0 13px;
  font-size:21px;
  line-height:1.15;
  font-weight:300;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hero h1{
  margin:0 0 13px;
  font-size:41px;
  line-height:1.08;
  font-weight:600;
  letter-spacing:-.025em;
}
.hero p{
  margin:0;
  font-size:25px;
  line-height:1.3;
  font-weight:300;
}
main{width:min(var(--max),90vw);margin:auto}
.section{padding:88px 0}
.home-intro{padding:54px 0 44px}
.home-intro .lede{
  width:100%;
  max-width:none;
  margin:0;
  font-size:22px;
  line-height:1.58;
  font-weight:300;
}
.home-news{padding:42px 0 90px}
.home-news h2{
  margin:0 0 20px;
  font-size:27px;
  line-height:1.1;
  font-weight:300;
  letter-spacing:-.015em;
}
.news-row{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:31px;
  padding:16px 0;
  border-top:1px solid #d0d7da;
  font-size:18px;
  line-height:1.5;
  font-weight:300;
}
.news-row strong{font-weight:500}
.paper-link{font-weight:400;border-bottom:1px solid currentColor}
.paper-link:hover{opacity:.62}
.section h2{
  font-size:clamp(2.25rem,4vw,4rem);
  font-weight:300;
  line-height:1;
  letter-spacing:-.035em;
  margin:0 0 28px;
}
/* Keep Group News deliberately understated and aligned with the hero title. */
.home-page .home-news h2{
  font-size:40px;
  line-height:1.08;
  font-weight:300;
  letter-spacing:-.025em;
  margin:0 0 20px;
}
.lede{font-size:1.30rem;max-width:960px;line-height:1.6;font-weight:300}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:48px}
.card{border-top:1px solid #b9c4ca;padding-top:22px}
.card h3{font-size:1.7rem;font-weight:400;margin:.2rem 0 .7rem}
.card .question{font-style:italic;color:var(--muted)}
.page-hero{padding:105px 0 28px;background:var(--navy);color:#fff}
.page-hero .inner{width:min(var(--max),90vw);margin:auto}
.page-hero h1{font-size:41px;line-height:1.08;font-weight:300;letter-spacing:-.025em;margin:0}
.pub{padding:20px 0;border-top:1px solid #cad1d5}
.pub strong{font-size:1.08rem;font-weight:500}
.meta{color:var(--muted);margin-top:4px}
footer{width:min(var(--max),90vw);margin:auto;padding:44px 0 58px;border-top:1px solid #ccd4d8;color:var(--muted);font-size:.9rem}
@media(max-width:950px){
  .brand{font-size:27px}
  nav{gap:18px;font-size:15px}
}
@media(max-width:760px){
  .site-header{padding:17px 5vw;align-items:flex-start;background:linear-gradient(to bottom,rgba(8,29,38,.45),rgba(8,29,38,0))}
  .brand{font-size:22px;line-height:1.15}
  .header-right{gap:10px;align-items:flex-start}
  nav{gap:10px;font-size:13.5px;flex-wrap:wrap;justify-content:flex-end}
  .social-links{gap:10px}
  .social-links a,.social-links img{width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important}
  .hero{height:58vh;min-height:420px;max-height:550px}
  .hero-copy{width:90vw;transform:translateY(24px)}
  .kicker{font-size:16px}
  .hero h1{font-size:34px;font-weight:600}
  .home-page .home-news h2{font-size:33px}
  .hero p{font-size:20px}
  .home-intro .lede{font-size:19px}
  .news-row{grid-template-columns:1fr;gap:4px;font-size:16.5px}
  .grid-2{grid-template-columns:1fr;gap:34px}
}

@media(max-width:760px){
  .page-hero{padding:88px 0 22px}
  .page-hero h1{font-size:34px;font-weight:300}
}


/* Research page refinements */
.research-page .lede{
  font-size:1.38rem;
  line-height:1.68;
  max-width:1100px;
}
.research-page .grid-2{
  align-items:start;
  gap:52px;
  margin-top:48px !important;
}
.research-page .card{
  border-top:none;
  padding-top:0;
}
.research-page .project-image{
  display:block;
  width:100%;
  height:auto;
  margin:0 0 20px;
  border:1px solid #d7dde1;
  background:#fff;
}
.research-page .card h3{
  font-size:1.85rem;
  line-height:1.18;
  font-weight:400;
  margin:.2rem 0 .85rem;
  letter-spacing:-.015em;
}
.research-page .card .question{
  font-size:1.25rem;
  line-height:1.45;
  color:var(--ink);
  font-style:italic;
  margin:0 0 12px;
}
.research-page .card p{
  font-size:1.12rem;
  line-height:1.68;
  margin:0 0 14px;
}
.research-page .selected-work{
  margin-top:16px;
}
.research-page .selected-work strong{
  display:block;
  margin-bottom:10px;
  font-weight:500;
  font-size:1.12rem;
}
.research-page .selected-work ul{
  margin:0;
  padding-left:1.15rem;
}
.research-page .selected-work li{
  margin:0 0 10px;
  font-size:1.06rem;
  line-height:1.55;
}
.research-page .selected-work a{
  text-decoration:underline;
  text-underline-offset:2px;
}
.research-page .selected-work a:hover{
  opacity:.68;
}

@media(max-width:760px){
  .research-page .lede{font-size:1.18rem}
  .research-page .card h3{font-size:1.6rem}
  .research-page .card .question{font-size:1.12rem}
  .research-page .card p{font-size:1.02rem}
}

/* Research page v9 */
.research-page main{width:min(var(--max),90vw)}
.research-page .section{padding-top:68px}
.research-page .lede{
  width:100%;
  max-width:none;
  font-size:1.38rem;
  line-height:1.68;
  margin:0;
}
.research-page .grid-2{
  margin-top:48px !important;
  gap:52px;
}
.research-page .project-image-frame{
  width:100%;
  height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 22px;
  border:1px solid #d7dde1;
  background:#fff;
  overflow:hidden;
}
.research-page .project-image-frame img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}
.research-page .project-image-frame.neuron img{
  max-width:82%;
  max-height:94%;
}
.research-page .project-image-frame.gut img{
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:760px){
  .research-page .project-image-frame{height:280px}
  .research-page .project-image-frame.neuron img{max-width:88%}
}

/* Research introduction: full-width single justified paragraph */
.research-page .lede{
  width:100%;
  max-width:none !important;
  margin:0;
  text-align:justify;
  text-align-last:left;
  text-justify:inter-word;
  hyphens:auto;
  -webkit-hyphens:auto;
}
.research-page .lede strong{
  font-weight:600;
}

/* Publications links */
.publications-page{
  padding-top:56px;
}
.scholar-link{
  margin:0 0 30px;
  font-size:1.12rem;
}
.scholar-link a,
.pub strong a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.scholar-link a:hover,
.pub strong a:hover{
  opacity:.65;
}

/* Publications with figures */
.publications-page{
  padding-top:56px;
}
.publications-page .scholar-link{
  margin:0 0 32px;
  font-size:1.12rem;
}
.publications-page .scholar-link a,
.publications-page .pub strong a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.publications-page .scholar-link a:hover,
.publications-page .pub strong a:hover{
  opacity:.65;
}
.publications-page .pub{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:28px;
  align-items:center;
  padding:26px 0;
  border-top:1px solid #cad1d5;
}
.publications-page .pub-figure{
  width:100%;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7dde1;
  background:#fff;
  overflow:hidden;
}
.publications-page .pub-figure img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}
.publications-page .pub-content{
  min-width:0;
}
.publications-page .pub strong{
  display:block;
  font-size:1.08rem;
  font-weight:500;
  line-height:1.45;
}
.publications-page .meta{
  color:var(--muted);
  margin-top:7px;
  font-size:1rem;
  line-height:1.5;
}
@media(max-width:900px){
  .publications-page .pub{
    grid-template-columns: 1fr;
    gap:18px;
    align-items:start;
  }
  .publications-page .pub-figure{
    width:min(100%, 520px);
    height:220px;
    margin:0 auto;
  }
}




/* v17: shared translucent navigation tray (home + interior). */
.site-header{z-index:50;}
.header-right{
  background:rgba(13,39,53,.56);
  border:1px solid rgba(255,255,255,.10);
  border-radius:7px;
  padding:11px 16px;
  gap:25px;
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
@media(max-width:950px){
  .header-right{gap:14px;padding:10px 12px;}
  nav,.social-links{gap:16px;}
}
@media(max-width:760px){
  .site-header{gap:14px;}
  .header-right{gap:10px;padding:8px 10px;max-width:70vw;align-items:center;}
  nav,.social-links{gap:9px;}
  .hero{min-height:420px;}
}

/* Fixed-height interior title bands. The illustration is overlaid,
   so it never changes the blue strip height. */
.page-hero{
  position:relative;
  padding:0 !important;
  height:238px;
  min-height:238px;
  overflow:hidden;
  background:#75898B;
  color:white;
}
.page-hero .inner{
  position:relative;
  display:block;
  height:100%;
  min-height:0;
  width:min(var(--max),90vw);
  margin:0 auto;
}
.page-hero h1{
  position:absolute;
  left:0;
  top:135px;
  transform:translateY(-50%);
  z-index:4;
  font-size:41px;
  line-height:1.08;
  font-weight:300;
  letter-spacing:-.025em;
  margin:0;
  text-shadow:0 1px 2px rgba(26,43,46,.2);
}
.somersault-hero-art{
  position:absolute;
  top:30px;
  bottom:8px;
  left:30%;
  right:-2%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  overflow:visible;
  margin:0;
  transform:none;
  pointer-events:none;
}
.somersault-hero-art img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}
@media(max-width:950px){
  .page-hero{height:230px;min-height:230px;}
  .page-hero h1{font-size:37px;top:132px;}
  .somersault-hero-art{top:48px;bottom:7px;left:36%;right:-1%;}
}
@media(max-width:760px){
  .page-hero{height:250px;min-height:250px;}
  .page-hero h1{font-size:34px;top:122px;}
  .somersault-hero-art{top:130px;bottom:9px;left:10%;right:10%;}
}

/* Keep the label and navigation usable on narrow phones. */
@media(max-width:760px){
  .site-header{flex-direction:column;align-items:stretch;gap:9px;padding:14px 5vw;}
  .brand{font-size:21px;}
  .header-right{width:100%;max-width:100%;margin-left:0;padding:8px 10px;justify-content:space-between;}
  nav{flex:1;justify-content:flex-start;gap:8px 12px;font-size:12.5px;line-height:1.25;}
  .social-links{gap:10px;align-self:center;}
  .page-hero{height:300px;min-height:300px;}
  .page-hero h1{top:175px;}
  .somersault-hero-art{top:208px;bottom:8px;left:8%;right:8%;}
}


/* v18 refinements: more transparent nav tray, more centered header art, slightly darker art */
.header-right{
  background:rgba(13,39,53,.42);
  border:1px solid rgba(255,255,255,.08);
}

.page-hero .inner{
  overflow:hidden;
}
.somersault-hero-art{
  top:22px;
  bottom:8px;
  left:20%;
  right:2%;
}
.somersault-hero-art img{
  object-position:center center;
}
@media(max-width:950px){
  .somersault-hero-art{top:40px; bottom:7px; left:24%; right:2%;}
}
@media(max-width:760px){
  .header-right{background:rgba(13,39,53,.34);}
  .somersault-hero-art{top:206px; bottom:8px; left:4%; right:4%;}
}


/* v19: use the original uploaded Hydra sequence; move artwork left without changing height. */
.somersault-hero-art{
  left:16% !important;
  right:1% !important;
  top:22px !important;
  bottom:8px !important;
  justify-content:flex-start !important;
}
.somersault-hero-art img{
  object-position:left center !important;
}
@media(max-width:950px){
  .somersault-hero-art{left:22% !important;right:1% !important;top:39px !important;bottom:7px !important;}
}
@media(max-width:760px){
  .somersault-hero-art{left:4% !important;right:4% !important;top:206px !important;bottom:8px !important;}
  .somersault-hero-art img{object-position:center center !important;}
}


/* v20: Keep the interior page title band visible as body content scrolls.
   The home movie and home header behave as before. */
body:not(.home-page) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body:not(.home-page) .page-hero {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
}
/* Maintain the original header height, artwork position, and content spacing. */


/* v21: ONLY the compact semi-transparent navigation tray stays fixed.
   The lab name and full image/title band scroll with the page. */
.site-header,
body:not(.home-page) .site-header {
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:100;
}
.header-right {
  position:fixed;
  top:24px;
  right:3.4vw;
  left:auto;
  width:auto;
  margin:0;
  z-index:101;
}
body:not(.home-page) .page-hero {
  position:relative;
  top:auto;
  z-index:auto;
  isolation:auto;
}
@media(max-width:760px) {
  .header-right {
    position:fixed;
    top:50px;
    left:5vw;
    right:5vw;
    width:90vw;
    max-width:90vw;
    margin:0;
    z-index:101;
  }
}


/* v24: remove ornamental horizontal rules without removing card outlines */
.news-row,
.pub,
.publications-page .pub,
.card,
.research-page .card,
.join-page .join-block,
.join-page .join-gallery,
footer {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
main hr {display:none !important;}
.news-row {padding:17px 0;}
.publications-page .pub {padding:30px 0;}

/* Research: +2–3 points to paragraph text, keeping section titles untouched. */
body.research-page .lede {font-size:25px !important;line-height:1.66;}
body.research-page .card p {font-size:21px !important;line-height:1.66;}
body.research-page .card .question {font-size:22px !important;line-height:1.5;}
body.research-page .selected-work strong {font-size:20px !important;}
body.research-page .selected-work li {font-size:19px !important;line-height:1.62;}

/* Publications: readable paper title, authors/journal and scholar link. */
.publications-page .scholar-link {font-size:21px !important;}
.publications-page .pub strong {font-size:20px !important;line-height:1.45;}
.publications-page .pub .meta {font-size:19px !important;line-height:1.55;}

/* Fun: a short heading rather than explanatory placeholder copy. */
.fun-main {padding:72px 0 100px;}
.fun-main .fun-tagline {font-size:34px;font-weight:300;letter-spacing:-.025em;line-height:1.2;margin:0;}

/* Improved mobile readability; preserve two-column research when space permits. */
@media (max-width:760px) {
  body.research-page .lede {font-size:21px !important;}
  body.research-page .card p {font-size:19px !important;}
  body.research-page .card .question {font-size:20px !important;}
  body.research-page .selected-work li {font-size:18px !important;}
  .publications-page .pub strong {font-size:19px !important;}
  .publications-page .pub .meta {font-size:18px !important;}
  .fun-main .fun-tagline {font-size:29px;}
}
