:root{
    --bg:#ffffff;
    --ink:#0a0a0c;
    --blue:#1A427A;
    --blue-deep:#10294C;
    --orange:#ea4110;
    --mist:#e0e3e8;
    --slate:#68778f;
    --line:#dde3f1;
    --header-h:84px;

    /* ----------------------------------------------------------------
       FLUID TYPE SCALE
       ----------------------------------------------------------------
       Every font-size in this file references one of these tokens
       instead of a flat px value. Each is a clamp(min, preferred, max):
         - min/max are in rem, so they still respect a user's browser
           font-size setting (accessibility zoom) — a flat px value
           never grows or shrinks with that setting, rem always does.
         - the middle value mixes a rem base with a small vw amount,
           so size eases smoothly between the min and max as the
           viewport resizes, instead of jumping at breakpoints.
       Rule of thumb used here: small utility/meta text (labels, tags,
       footer) gets a narrow range since it should stay legible and
       stable; headline-ish text gets a wider range since it's meant
       to visually scale with the page. Tune the rem endpoints to
       taste — the vw math just fills the gap between them.
       ---------------------------------------------------------------- */
    --fs-2xs: clamp(0.6875rem, 0.66rem + 0.1vw,  0.75rem);   /* ~11–12px : tags, status pills, footer */
    --fs-xs:  clamp(0.75rem,   0.71rem + 0.18vw, 0.8125rem); /* ~12–13px : eyebrow, small meta */
    --fs-sm:  clamp(0.8125rem, 0.77rem + 0.2vw,  0.875rem);  /* ~13–14px : secondary body copy */
    --fs-base:clamp(0.875rem, 0.83rem + 0.2vw,   0.9375rem);/* ~14–15px : logo, nav labels, buttons */
    --fs-md:  clamp(0.9375rem,0.87rem + 0.3vw,   1.0625rem);/* ~15–17px : paragraph body, card titles */
    --fs-lg:  clamp(1.0625rem,0.97rem + 0.4vw,   1.25rem);  /* ~17–20px : sub-headings, tile titles */
    --fs-xl:  clamp(1.125rem, 0.98rem + 0.7vw,   1.5rem);   /* ~18–24px : emphasis text, email link */
    --fs-2xl: clamp(1.5rem,   1.2rem + 1.4vw,    1.875rem); /* ~24–30px : stat numbers, card h3 */
    --fs-2_5xl: clamp(1.75rem,  1.2rem + 1.8vw, 2.5rem);   /* ~28–40px : larger sub-headings, feature headings */
    --fs-3xl: clamp(2.125rem, 1.5rem + 2.8vw,    3.25rem);  /* ~34–52px : section headings */
    --fs-4xl: clamp(2.125rem, 1.4rem + 3.4vw,    3.625rem); /* ~34–58px : large section headings */
    --fs-5xl: clamp(2.5rem,   1.4rem + 5vw,      4.5rem);   /* ~40–72px : "We are" style headings */
    --fs-6xl: clamp(2.5rem,   1.1rem + 6.5vw,    5.25rem);  /* ~40–84px : contact headline */
    --fs-hero:clamp(3rem,     0.6rem + 10.5vw,   6.75rem);  /* ~48–108px: home hero */
    --fs-nav: clamp(1.875rem, 0.6rem + 5.8vw,    4rem);     /* ~30–64px : fullscreen nav links */

    --yellow:#f9d423; /* numbered badges on the Resources page */

    /* ----------------------------------------------------------------
       FLUID SPACING SCALE
       ----------------------------------------------------------------
       Same idea as the type scale above, for margins/gaps/padding that
       were flat px values. Each eases between the min and max as the
       viewport resizes instead of jumping at a breakpoint. Small,
       stable spacing (a few px around a badge, a tight list gap) is
       left as plain px on purpose — it doesn't need to scale and a
       fluid value there just adds noise for no visible benefit.
       ---------------------------------------------------------------- */
    --sp-xs: clamp(0.5rem,  0.42rem + 0.4vw,  0.75rem);  /* ~8–12px  */
    --sp-sm: clamp(0.875rem,0.7rem + 0.8vw,   1.25rem);  /* ~14–20px */
    --sp-md: clamp(1.25rem, 1rem + 1.25vw,    2rem);     /* ~20–32px */
    --sp-lg: clamp(2rem,    1.5rem + 2.5vw,   3.75rem);  /* ~32–60px */
    --sp-xl: clamp(2.75rem, 2rem + 3.75vw,    5.5rem);   /* ~44–88px : header-to-content gap */
  }
  iframe, img, video{
    max-width:100%;
  }
  *{
    margin:0;
    padding:0;
    box-sizing:border-box;
  }
  html,body{
    height:100%;
  }
  body{
    font-family:'Inter',sans-serif;
    color:var(--ink);
    background:var(--bg);
    -webkit-font-smoothing:antialiased;
    overflow:hidden;
  }
  .display{
    font-family:'Inter',sans-serif; 
    font-weight:800; 
    letter-spacing:-0.06em;
  }
  /* .mono{
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  } */
  a{
    color:inherit; 
    text-decoration:none;
  }
  button{
    font-family:inherit; 
    cursor:pointer;
  }
  .brand-icon{
    height:90px;
    width:auto;
    max-width:100%;
    object-fit:contain;
  }

  /* ---------- header ---------- */
  .topbar{
    position:fixed; 
    top:0; 
    left:0; 
    right:0; 
    height:var(--header-h);
    display:flex;
    align-items:center; 
    justify-content:space-between;
    padding:0 28px 0 32px; 
    z-index:500;
    background:linear-gradient(to bottom, rgba(255,255,255,.96), rgba(255,255,255,.75) 80%, transparent);
  }
  .logo{
    display:flex; align-items:center; gap:8px;
    font-family:'Space Mono',monospace; 
    font-weight:700; 
    font-size:var(--fs-base); letter-spacing:.02em;
  }
  .hamburger{
    width:52px; 
    height:52px; 
    border-radius:12px; 
    background:var(--blue-deep); 
    border:none;
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:4px; 
    flex-direction:column;
    transition:transform .25s ease, background .25s ease;
  }
  .hamburger:hover{ 
    transform:scale(1.05); 
  }
  .hamburger span{ 
    display:block; 
    width:20px; 
    height:2px; 
    background:#fff; 
    border-radius:2px; 
    transition:all .3s ease; 
  }
  .hamburger.open span:nth-child(1){ 
    transform:translateY(6px) rotate(45deg); 
  }
  .hamburger.open span:nth-child(2){ 
    opacity:0; 
  }
  .hamburger.open span:nth-child(3){ 
    transform:translateY(-6px) rotate(-45deg); 
  }

  /* ---------- side progress nav ---------- */
  .side-nav{
    position:fixed; 
    right:34px; 
    top:50%; 
    transform:translateY(-50%);
    z-index:400; 
    display:flex; 
    flex-direction:column; 
    align-items:center;
    /* background-color: rgb(255 255 255 / 50%);
    border: 10px solid rgba(0, 0, 0, 0.3); 
    background-clip: padding-box;   */
  }
  .side-nav .dot-btn{
    background:none; 
    border:none; 
    padding:10px 6px; 
    position:relative;
    display:flex; 
    align-items:center; 
    justify-content:center;
  }
  .side-nav .dot-btn .diamond{
    width:8px; 
    height:8px; 
    background:var(--line); 
    transform:rotate(45deg);
    transition:background .3s ease, transform .3s ease;
  }
  .side-nav .dot-btn::after{
    content:''; 
    position:absolute; 
    left:50%; 
    top:100%; 
    width:1px; 
    height:22px;
    background:var(--line); 
    transform:translateX(-50%);
  }
  .side-nav .dot-btn:last-child::after{ 
    display:none; 
  }
  .side-nav .dot-btn.active .diamond{ 
    background:var(--blue); 
    transform:rotate(45deg) scale(1.35); 
  }
  .side-nav .dot-btn:hover .diamond{ 
    background:var(--blue-deep); 
  }
  .hero-image{
    width:100%;
    height:auto;
    display:block;
  }
  .hero-wrap .hero-image{
    max-width:620px;
    margin:0 auto;
  }
  /* Brain image inside the "We are" grid: fill its own column only */
  .brain-graphic .hero-image{
    max-width:100%;
  }

  /* ---------- scroll container ---------- */
  main{
    height:100svh; 
    height:100vh;
    overflow-y:scroll; 
    overflow-x:hidden;
    scroll-snap-type:y mandatory;
    scroll-behavior:smooth;
  }
  section.panel{
    min-height:100svh; 
    min-height:100vh;
    scroll-snap-align:start; 
    scroll-snap-stop:always;
    display:flex; 
    flex-direction:column; 
    justify-content:center;
    position:relative; 
    padding:calc(var(--header-h) + var(--sp-md)) 8vw 60px;
    overflow:hidden;
  }
  /* .eyebrow{
    display:inline-flex; 
    align-items:center; 
    gap:8px;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    font-size:var(--fs-xs); 
    letter-spacing:.08em; 
    text-transform:uppercase;
    color:var(--blue); 
    margin-bottom:18px;
  } */

  /* ---------- fullscreen nav overlay ---------- */
  .nav-overlay{
    position:fixed; 
    inset:0; 
    background:var(--blue-deep); 
    z-index:600;
    display:flex; 
    flex-direction:column; 
    justify-content:center; 
    padding:0 8vw;
    transform:translateY(-100%); 
    transition:transform .5s cubic-bezier(.77,0,.18,1);
  }
  .nav-overlay.open{ 
    transform:translateY(0); 
  }
  .nav-overlay .nav-top{ 
    position:absolute; 
    top:0; 
    left:0; 
    right:0; 
    height:var(--header-h); 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    padding:0 28px 0 32px; 
  }
  .nav-overlay .logo{ 
    color:#fff; 
  }
  /* .nav-overlay .logo .mascot{ color:#f6a94a; } */
  .nav-links{ 
    display:flex; 
    flex-direction:column; 
    gap:6px; 
  }
  .nav-links a{
    font-family:'Inter',sans-serif; 
    font-weight: 300;
    font-size:var(--fs-nav); 
    font-weight: 700;
    color:#69788E;
    display:flex; 
    align-items:baseline;
    gap:18px; 
    padding:10px 0; 
    transition:color .25s ease;
    letter-spacing: -1px;
  }
  .nav-links a .idx{ 
    font-family:'Index',sans-serif; 
    font-size:var(--fs-lg); 
    color:#D0D5DC; 
    font-weight: 500;
    width:34px; 
    letter-spacing: -1px;
  }
  .nav-links a:hover, .nav-links a.current{ 
    color:#97A2B2 
  }
  .nav-links a:hover .idx, .nav-links a.current .idx{ 
    color:#F7C88C; 
  }
  .nav-links a:active{ 
    color:#E1EBF9; 
  }
  .nav-links a:active .idx{ 
    color:#F1A340; 
  }
  #home-page   .nav-links a[href="index.html"],
  #story-page  .nav-links a[href="/story/"],
  #team-page   .nav-links a[href="/team/"],
  #resources-page .nav-links a[href="/resources/"],
  #lablife-page   .nav-links a[href="/lablife/"] {
    color: #fff;
  }
  #home-page   .nav-links a[href="index.html"] .idx,
  #story-page  .nav-links a[href="/story/"] .idx,
  #team-page   .nav-links a[href="/team/"] .idx,
  #resources-page .nav-links a[href="/resources/"] .idx,
  #lablife-page   .nav-links a[href="/lablife/"] .idx {
    color: #F1A340; /* matches the existing hover accent on the index number */
  }

  /* .nav-foot{ margin-top:44px; display:flex; gap:26px; flex-wrap:wrap; }
  .nav-foot a{ font-family:'Space Mono'; font-size:var(--fs-xs); color:#9aa4c4; text-decoration:underline; text-underline-offset:3px; } */

  /* ================= HOME ================= */
  #home{ 
    align-items:center; 
    text-align:center; 
  }
  .hero-wrap{ 
    position:relative; 
    max-width:900px; 
    margin:0 auto; 
  }
  .hero-title{
    font-size:var(--fs-hero); 
    line-height:.92; 
    text-align:center; 
    position:relative; 
    z-index:2;
  }
  .hero-title .line-1{ 
    color:var(--ink); 
  }
  .hero-title .line-2{ 
    color:var(--ink); 
  }
  .hero-title .line-3{ 
    color:var(--blue); 
  }
  /* .hero-mascot{ 
    position:absolute; 
    width:clamp(34px,5vw,54px); 
    height:clamp(34px,5vw,54px); 
    z-index:3; 
    filter:drop-shadow(0 6px 10px rgba(0,0,0,.12)); 
  } */
  /* .hm1{ color:var(--blue); top:-6%; left:8%; transform:rotate(-12deg); }
  .hm2{ color:#f6a94a; top:2%; right:6%; transform:rotate(10deg); }
  .hm3{ color:var(--orange); top:40%; left:2%; transform:rotate(-6deg); }
  .hm4{ color:var(--blue); bottom:6%; right:0; transform:rotate(14deg); } */
  /* .hero-sub{
    max-width:520px; margin:34px auto 0; color:var(--slate); font-size:var(--fs-md); line-height:1.6;
  } */
  .hero-cta, .team-cta{
    display:inline-flex; 
    align-items:center; 
    gap:10px;
    font-weight:600; 
    font-size:var(--fs-base);
    color:var(--ink);
    justify-content: center;
  }
  .hero-cta .chev, .team-cta .chev{
    width:34px; 
    height:34px; 
    border-radius:50%; 
    border:1.5px solid var(--ink);
    display:flex; 
    align-items:center; 
    justify-content:center; 
    animation:bob 1.8s ease-in-out infinite;
  }
  #logo-intro {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  #logo-intro .hero-wrap {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  #logo-intro .hero-wrap .hero-image {
    width: 100%;
    max-width: 1020px;
  }

  #logo-intro .hero-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
  }


  /* ---------- We Are ---------- */
  #we-are .grid{
    display:grid; 
    grid-template-columns:.9fr 1.1fr; gap:6vw; 
    align-items:center; 
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
  }
  .brain-graphic{ 
    width:100%; 
    max-width:440px; 
  }
  /* .brain-graphic svg{ 
    width:100%; 
    height:100%; 
  } */
  .we-are-title{ 
    font-size:var(--fs-5xl); 
    line-height:1; 
    margin-bottom:20px; 
    letter-spacing:-0.06em;
  }
  .we-are-title .accent{ 
    color:var(--blue); 
  }
  .we-are-body{
    color:black;
    font-size:var(--fs-lg);
    line-height:1.4;
    /* max-width:550px; */
    padding-top:5px;
  }
  .stat-row{ 
    display:flex; 
    gap:36px; 
    margin-top:34px; 
    flex-wrap:wrap; 
  }
  .stat-row div b{ 
    display:block; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    font-size:var(--fs-2xl); 
    color:var(--ink); 
  }
  .stat-row div span{ 
    font-size:var(--fs-xs); 
    color:var(--slate); 
  }
  .we-are-body {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    }
  /* ---------- PsychoPy Work ---------- */
  #work .work-head, #research .work-head{
    font-size:var(--fs-4xl);
    margin-bottom:34px;
    /* display:flex; */
    align-items:flex-start;
    gap:14px;
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
    width:100%;
    justify-content: center;
  }
  /* #work .work-head .mascot{ width:.75em; height:.75em; margin-top:6px; } */
  .work-grid{
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
    display:grid; 
    grid-template-columns:1fr .62fr .62fr; 
    grid-template-rows:auto auto; 
    gap:18px;
  }
  .affiliate-card{
    grid-row:1/3;
    background:var(--mist);
    border-radius:20px;
    padding:32px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    min-height:340px;
  }
  .affiliate-badge{
    width:100px;
    margin-bottom:22px;
  }
  .psychopy-logo {
    width: 80px;
    max-width: 100%;
    height: auto;
  }
  .affiliate-card h4{
    font-size:var(--fs-lg);
    color:black;
    font-weight:800;
    margin-bottom:2px;
  }
  .affiliate-card h3{
    /* font-family:'Archivo Black'; */
    font-size:var(--fs-2xl);
    color:var(--blue);
    margin-bottom:10px;
  }
  .affiliate-card p{
    font-size:var(--fs-sm);
    color:black;
    line-height:1.4;
    max-width:350px;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .affiliate-arrow{ 
    margin-top:16px; 
    width:38px; 
    height:14px; }
  .work-tile{
    border-radius:20px; 
    background:var(--orange); 
    padding:22px; 
    color:#fff;
    display:flex; 
    flex-direction:column; 
    justify-content:flex-end; 
    min-height:150px;
    transition:transform .3s ease;
  }
  .work-tile:hover{ 
    transform:translateY(-4px); 
  }
  .work-tile .tag{
    font-family:'Inter', sans-serif;
    font-size:var(--fs-2xs);
    text-transform:uppercase;
    margin-bottom:6px;
  }
  .work-tile h5{ 
    font-size:var(--fs-lg); 
    font-weight:700; 
    line-height:1.25; 
  }
  .wt2{
    grid-column:2;
    grid-row:1;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('assets/psychopy-coral-task.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .wt3{
    grid-column:3;
    grid-row:1/3;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('assets/psychopy-calculator.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .wt4{
    grid-column:2;
    grid-row:2;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('assets/psychopy-risk-taking.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  /* ---------- Our Current Work ---------- */
  .research-heading{
    font-size:var(--fs-4xl);
    line-height:1.05;
    text-align:center;
    max-width:1180px;
    margin:0 auto var(--sp-lg);
    width:100%;
  }
  .research-carousel{
    width:100vw;
    margin-left:calc(50% - 50vw);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    cursor:grab;
    /* Scroll position here is driven by JS (plus optional manual swipe/
      drag), not meant to be read as a normal scrollbar — hide it. */
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .research-carousel::-webkit-scrollbar{ 
    display:none; 
  }
  .research-carousel:active{ 
    cursor:grabbing; 
  }
  .research-track{
    display:flex;
    gap:var(--sp-lg);
    width:max-content;
    padding:0 8vw;
  }

  .research-card{
    flex:0 0 auto;
    width:min(60vw, 260px);
  }
  .research-card img{
    display:block;
    width:100%;
    height:auto;
    /* border-radius:var(--radius-md, 16px);
    box-shadow:0 10px 30px rgba(10,10,12,.14); */
  }
  @keyframes bob{ 
    0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} 
  }
  /* ---------- Why We Do It ---------- */
  #why .grid{
    display:grid; 
    grid-template-columns:.9fr 1.1fr; 
    gap:6vw; 
    max-width:1180px; 
    margin:0 auto; 
    width:100%; 
    align-items:center;
  }
  .why-title{
    font-size:var(--fs-3xl);
    margin-bottom:18px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    justify-content: flex-start;
  }
  /* .why-title .mascot{ width:.7em; height:.7em; margin-top:4px; } */
  .why-title .accent{ 
    color:var(--blue); 
  }
  .why-body{
    color:black;
    font-size:var(--fs-md);
    line-height:1.4;
    max-width:440px;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;

  }
  .why-grid{
    width:100%;
    height:auto;
    display:block;
    border-radius:20px;
  }
  .reason{ 
    padding:22px 0; 
    border-top:1px solid var(--line); 
    display:grid; 
    grid-template-columns:74px 1fr; gap:8px; 
  }
  .reason:last-child{ 
    border-bottom:1px solid var(--line); 
  }
  .reason .num{ 
    font-family:'Inter', sans-serif; 
    font-size:var(--fs-2xl); 
    color:var(--ink); 
  }
  .reason h4{ 
    font-size:var(--fs-lg); 
    margin-bottom:6px; 
  }
  .reason p{
    color:black;
    font-size:var(--fs-lg);
    line-height:1.4;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }

  /* ================= OUR STORY PAGE ================= */

  /* ---------- How Did It Started ---------- */
  .story-hero-wrap{
    /* position:relative; */
    width:100%;
    max-width:1180px;
    margin:0 auto;
    min-height:min(74vh, 620px);
    /* border-radius:24px; */
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .story-hero-wrap img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
  }
  /* Dark gradient over the photo so the white text stays legible
    regardless of what's in the underlying image. */
  .story-hero-wrap::after{
    content:'';
    position:absolute; inset:0;
    background:linear-gradient(rgba(10,10,12,.6), rgba(10,10,12,.7));
    z-index:1;
  }
  .story-hero-content{
    position:relative; z-index:2;
    color:#fff;
    text-align:center;
    max-width:760px;
    /* padding:var(--sp-lg) 6vw; */
  }
  .story-hero-title{
    font-size:var(--fs-3xl);
    line-height:1.05;
    margin-bottom:var(--sp-lg);
    letter-spacing:-0.06em;
  }
  .story-hero-date{
    font-size:var(--fs-md);
    font-weight:600;
    margin-bottom:var(--sp-sm);
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; 
    font-weight:400; 
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .story-hero-body{
    font-size:var(--fs-md);
    line-height:1.6;
    margin-bottom:var(--sp-sm);
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; 
    font-weight:400; 
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .story-hero-body:last-child{ 
    margin-bottom:0; 
  }
  /* ---------- 1st Gen RAs ---------- */
  .story-banner{
    width:100%;
    max-width:1180px;
    margin:0 auto var(--sp-lg);
    aspect-ratio:3/0.7;
    object-fit:cover;
    display:block;
    background:var(--mist); /* visible fallback if the src hasn't been swapped in yet */
  }
  .story-heading{
    font-size:var(--fs-3xl);
    line-height:1.05;
    margin-bottom:var(--sp-sm);
    letter-spacing:-0.06em;
    max-width:1180px;
    margin-left:auto; margin-right:auto;
    width:100%;
  }
  .story-body{
    font-size:var(--fs-md);
    line-height:1.4;
    text-align:justify;
    max-width:1180px;
    margin:0 auto;
    color:var(--ink);
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; 
    font-weight:400;
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  /* ---------- Baby RAs / 3rd Gen RAs ---------- */
  .story-split{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6vw;
    align-items:center;
    max-width:1180px;
    margin:0 auto;
    width:100%;
  }
  .story-split-image{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    /* border-radius:var(--radius-md, 16px); */
    background:var(--mist);
    display:block;
  }
  .story-split-heading{
    font-size:var(--fs-3xl);
    line-height:1.05;
    margin-bottom:var(--sp-lg);
    letter-spacing:-0.06em;
  }
  .story-split-body{
    font-size:var(--fs-md);
    line-height:1.5;
    color:var(--ink);
    margin-bottom:var(--sp-sm);
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; 
    font-weight:400; 
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .story-split-body:last-child{ 
    margin-bottom:0; 
  }

  /* ================= THE PEOPLE PAGE  ================= */
  #team .team-head{ 
    max-width:1180px; 
    margin:0 auto 36px; 
    width:100%; 
    text-align: left;
  }
  #team .team-head .display{
    font-size:var(--fs-2_5xl); 
    font-family: 'Inter',sans-serif;
    letter-spacing:-0.06em;
    font-weight: 800;
    color: var(--blue);
  }
  #team .team-head p{ 
    color:var(--slate); 
    /* max-width:480px;  */
    margin-top:14px; 
    font-size:var(--fs-md); 
    line-height:1.4; 
    text-align: left;
  }
  /* ---------- Brains Behind the Lab ---------- */
  .person-body{
    color:black;
    font-size:var(--fs-base);
    line-height:1.4;
    /* max-width:550px; */
    padding: 5px 0;
  }
  .team-head{
    max-width:1180px; 
    margin:0 auto var(--sp-lg); 
    width:100%;
  }
  .team-title{
    font-size:var(--fs-xl); 
    line-height:1.05; 
    margin-bottom:var(--sp-sm);
  }
  .team-title .accent{ 
    color:black; 
    font-size:var(--fs-4xl);
    font-weight: 600;
    letter-spacing:-0.06em;
  }
  .team-body{
    color:black; font-size:var(--fs-md); line-height:1.5; max-width:60ch;
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; font-weight:400; font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .person-grid{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:var(--sp-md);
    max-width:1180px; margin:0 auto; width:100%;
  }
  .person-card{ 
    min-width:0; 
  }
  .person-card img{
    width:100%; 
    aspect-ratio:3/2; 
    object-fit:cover;
    border-radius:var(--radius-md); 
    background:var(--mist);
    margin-bottom:var(--sp-sm);
  }
  .person-card h4{
    font-size:var(--fs-lg); font-weight:700; margin-bottom:2px;
    text-align: left;
  }
  .person-card span{
    font-size:var(--fs-sm); color:var(--slate);
    font-family:"Google Sans Flex", sans-serif; font-weight:400;
    text-align: left;
  }
  .person-links-row{ 
    display:flex; 
    gap:var(--sp-xs); 
    margin-top:var(--sp-xs); 
    flex-wrap:wrap; 
  }
  .person-links-row a{ 
    color:var(--blue); 
    font-weight:600; 
    font-size:var(--fs-sm); 
    border-bottom:1px solid transparent; 
    transition:border-color .2s ease; 
    font-family: 'Inter', sans-serif;
  }
  .person-links-row a:hover{ 
    text-decoration: underline;
    transition: 0.2s;
  }
  
  /* .founding-cta{
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:var(--sp-sm); text-align:center;
    aspect-ratio:3/2; border-radius:var(--radius-md); background:var(--orange);
    color:#fff; padding:var(--sp-md); min-width:0;
    transition:transform .3s ease;
  }
  .founding-cta:hover{ transform:translateY(-4px); }
  .founding-cta-title{
    font-size:var(--fs-2_5xl); line-height:1.05; color:var(--blue-deep);
  }
  .founding-cta-arrow{
    font-size:var(--fs-2xl); line-height:1;
    animation:bob 1.8s ease-in-out infinite;
  } */
  /* ---------- People Who Started the Lab ---------- */
  .carousel-heading{
    font-size:var(--fs-2_5xl); 
    line-height:1.1; 
    text-align:center;
    max-width:1180px; 
    margin:0 auto var(--sp-lg); 
    width:100%;
    font-weight: 800;
  }
  .carousel-heading .accent{ 
    color:var(--blue); 
  }
  .carousel-track{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:var(--sp-md);
    justify-items:center;
    max-width:1180px;
    margin:0 auto;
    width:100%;
  }
  .carousel-card{
    width:100%;
    max-width:260px;
    min-width:0;
  }
  .carousel-card img{
    width:100%; 
    aspect-ratio:1/1; 
    object-fit:cover;
    border-radius:var(--radius-md); 
    background:var(--mist);
    margin-bottom:var(--sp-sm);
  }
  .carousel-card h4, .carousel-card-link { 
    font-size:var(--fs-lg); 
    font-weight:700; 
    margin-bottom:2px; 
  }
  .carousel-card-link:hover {
    text-decoration: underline;
    color:var(--blue);
    transition: 0.1s;
  }
  .carousel-card span{
    font-size:var(--fs-sm); color:var(--slate);
    font-family:"Google Sans Flex", sans-serif; font-weight:400;
  }

  /* Two columns */
  #vacancies .grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 60px;
      align-items: start;
  }

  /* Right-hand column */
  #vacancies .vacancy-list {
      position: relative;
  }

  /* Overlay only covers the job listings */
  #vacancies .vacancy-overlay {
      position: absolute;
      inset: 0;
      /* background: rgba(240, 241, 243, 0.75); */
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
  }

  /* Overlay text */
  #vacancies .vacancy-overlay span {
      font-size: var(--fs-3xl);
      font-weight: 600;
      text-align: center;
      letter-spacing: -0.06em;
  }

  #vacancies .reason, #vacancies .reason h4, #vacancies .reason p, .reason .num {
    color: #e0e3e8;
  }

  #vacancies .reason .num {
    color: #e0e3e8;
  }

  /* ---------- Let's Connect ---------- */
  .connect-grid{
    display:grid; 
    grid-template-columns:1fr 1fr; 
    gap:6vw; 
    align-items:start;
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
  }
  .connect-title{ 
    font-size:var(--fs-5xl); 
    line-height:.98; 
    margin-bottom:var(--sp-sm); 
  }
  .connect-body{
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.4;
    max-width:46ch;
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto; 
    font-weight:400; 
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .connect-info{ 
    display:flex; 
    flex-direction:column; 
    align-items:flex-start; 
    gap:var(--sp-md); 
  }
  .connect-row{ 
    display:flex; 
    flex-direction:column; 
    align-items:flex-start; 
    gap:4px; 
  }
  .connect-img-block{
    width:100%; 
    aspect-ratio:3/1.8; 
    /* border-radius:10px; */
    margin-top: 30px;
    background-image:
      url('assets/connect-img.png');
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
  }
  .connect-label{
  font-family: "Google Sans Flex", sans-serif;
      font-optical-sizing: auto;
      font-weight: 400;
      font-style: normal;
      font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "ROND" 0;
    font-size:var(--fs-xs);
    color:var(--slate); 
    /* text-transform:uppercase;  */
    letter-spacing:.04em;
  }
  .connect-value{
    font-size:var(--fs-md); 
    font-weight:700; 
    color:var(--ink); 
    line-height:1.4;
  }
  .connect-link{ 
    transition:color .2s ease; 
  }
  .connect-link:hover{ 
    color:var(--blue); 
  }
  .connect-socials{ 
    display:flex; 
    justify-content:center; 
    gap:10px; 
    margin-top:4px; 
  }
  .connect-socials a{
    width:44px; 
    height:44px; 
    /* background-image: url(/assets/linkedin-logo.png); */
    background-repeat: no-repeat;
    transition:transform .2s ease, opacity .2s ease;
    background-size: contain;
  }
  .connect-socials{
    display:flex;
    justify-content:flex-start;
    gap:14px;
    margin-top:20px;
  }
  .connect-socials a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    transition:transform .2s ease, opacity .2s ease;
  }
  .connect-socials a:hover{
    transform:translateY(-3px);
  }
  .socials-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }

  

  /* .team-grid{ 
    max-width:1180px; 
    margin:0 auto; 
    width:100%; 
    display:grid; 
    grid-template-columns:repeat(4,1fr); 
    gap:20px; 
  }
  .team-card{ 
    background:var(--mist); 
    border-radius:18px; 
    padding:24px 20px; 
    text-align:left; 
  } */
  /* .avatar{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
  .avatar .mascot{ width:34px; height:34px; } */
  /* .team-card h4{ font-size:var(--fs-md); margin-bottom:2px; }
  .team-card span{ font-size:var(--fs-xs); color:var(--blue); font-weight:600; font-family:'Space Mono'; } */

  /* ================= RESEARCH ================= */
  /* #research .research-head{ 
    max-width:1180px; 
    margin:0 auto 30px; 
    width:100%; 
  }
  #research .research-head .display{ font-size:var(--fs-4xl); } 
  .research-list{ max-width:1180px; margin:0 auto; width:100%; display:flex; flex-direction:column; }
  .research-row{
    display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:20px;
    padding:22px 4px; border-top:1px solid var(--line);
  }
  .research-list .research-row:last-child{ border-bottom:1px solid var(--line); }
  .research-row h4{ font-size:var(--fs-lg); }
  .research-row p{ color:var(--slate); font-size:var(--fs-sm); margin-top:4px; max-width:420px; } */
  /* .status{ font-family:'Space Mono'; font-size:var(--fs-2xs); padding:6px 12px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
  .status.recruiting{ background:#fdece6; color:var(--orange); }
  .status.analyzing{ background:#e7ecf9; color:var(--blue); }
  .status.published{ background:#e8f4ec; color:#1c8348; }
  .research-row .arrow{ width:30px; height:12px; opacity:.5; } */
  


  /* ================= PUBLICATIONS ================= */
  /* #publications .pub-head{ max-width:1180px; margin:0 auto 30px; width:100%; }
  #publications .pub-head .display{ font-size:var(--fs-4xl); }
  .pub-list{ max-width:1180px; margin:0 auto; width:100%; }
  .pub-row{ display:grid; grid-template-columns:70px 1fr auto; gap:22px; padding:20px 4px; border-top:1px solid var(--line); align-items:baseline; }
  .pub-list .pub-row:last-child{ border-bottom:1px solid var(--line); }
  .pub-row .yr{ font-family:'Space Mono'; color:var(--blue); font-weight:700; font-size:var(--fs-base); }
  .pub-row h4{ font-size:var(--fs-md); font-weight:600; }
  .pub-row span{ color:var(--slate); font-size:var(--fs-xs); }
  .pub-row .venue{ font-size:var(--fs-xs); color:var(--slate); font-family:'Space Mono'; white-space:nowrap; } */

  /* ================= CONTACT ================= */
  /* #contact{ text-align:left; }
  .contact-grid{ max-width:1180px; margin:0 auto; width:100%; display:grid; grid-template-columns:1.1fr .9fr; gap:6vw; align-items:center; }
  .contact-title{ 
    font-size:var(--fs-6xl); 
    line-height:.96; 
    margin-bottom:18px; 
    letter-spacing:-0.06em;
  }
  .contact-title .accent{ color:var(--blue); }
  .contact-body{ color:var(--slate); font-size:var(--fs-md); line-height:1.7; max-width:440px; margin-bottom:30px; }
  .contact-email{ display:inline-flex; align-items:center; gap:12px; font-family:'Archivo Black'; font-size:var(--fs-xl); color:var(--ink); border-bottom:2px solid var(--ink); padding-bottom:6px; }
  .socials{ display:flex; gap:14px; margin-top:34px; }
  .socials a{ width:42px; height:42px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:'Space Mono'; font-size:var(--fs-xs); transition:background .25s,color .25s; }
  .socials a:hover{ background:var(--ink); color:#fff; }
  .contact-card{ background:var(--ink); border-radius:24px; padding:40px 34px; color:#fff; }
  .contact-card .mascot{ width:46px; height:46px; color:#f6a94a; margin-bottom:22px; }
  .contact-card h4{ font-size:var(--fs-base); color:#9aa4c4; text-transform:uppercase; letter-spacing:-0.06em; margin-bottom:10px; font-family:'Space Mono'; }
  .contact-card p{ font-size:var(--fs-base); line-height:1.7; color:#dde3f1; } */
  
  

  /* ================= RESOURCES PAGE ================= */
  #resources-page .panel{ 
    justify-content:center; }

  /* ==========================================================================
   RESOURCES INDEX — card grid (first section of resources.html)
   Append this block to the end of styles.css. Reuses the existing tokens
   (--fs-*, --sp-*, --orange, --mist, .display) already defined earlier.
   ========================================================================== */

/* .resources-heading{
  font-size:var(--fs-3xl);
  line-height:1.05;
  letter-spacing:-0.06em;
  margin-bottom:var(--sp-lg);
  max-width:1180px;
  margin-left:auto; margin-right:auto;
  width:100%;
  text-align:left;
} */

.resources-heading{
  font-size: var(--fs-3xl);
  line-height: 1;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.06em;
}

.resource-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--sp-md);
  max-width:1180px;
  /* margin:0 auto; */
  width:100%;
}

.resource-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* Placeholder banner — swap background:var(--orange) for a real photo
   via background-image (same pattern as .res-img-block elsewhere on
   this page) once assets are ready. */
.resource-card-image-1, .resource-card-image-2, .resource-card-image-3{
  width:100%;
  aspect-ratio:16/6;
  background-size:cover;
  background-repeat: none;
}

.resource-card-image-1{
  background-image: url('assets/lit-review-slide-cover.png');
}

.resource-card-image-2{
  background-image: url('assets/mapsa-cover.png');
}

.resource-card-body{
  background:var(--mist);
  padding:var(--sp-md);
  flex:1;
  display:flex;
  flex-direction:column;
}
.resource-card-title{
  font-family:'Inter', sans-serif;
  font-size:var(--fs-xl);
  font-weight:600;
  line-height:1.25;
  letter-spacing: -0.06em;
  margin:var(--sp-sm) 0;
}
.resource-card-desc{
  font-size:var(--fs-sm);
  line-height:1.4;
  color:var(--ink);
  font-family:"Google Sans Flex", sans-serif;
  font-optical-sizing:auto; font-weight:400; font-style:normal;
  font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  /* margin-bottom:var(--sp-md); */
  flex:1;
}

.resource-card-links{
  display:flex;
  gap:var(--sp-xs);
  margin-top:auto;
}
.resource-icon-btn{
  width:56px;
  height:56px;
  /* background:var(--orange); */
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease, opacity .2s ease;
}

.res-links-row{ 
    display:flex; 
    gap:var(--sp-sm); 
    margin-top:var(--sp-sm); 
    flex-wrap:wrap; 
}

.resource-icon-btn img{
  width:60%;
  height:60%;
  object-fit:contain;
}
.resource-icon-btn:hover{ 
  transform:translateY(-3px); 
}

.pub-citation .apa-journal,
.pub-citation .apa-volume {
  font-style: italic !important;
}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .resource-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .resource-grid{ grid-template-columns:1fr; }
  .resources-heading{ font-size:var(--fs-2_5xl); }
}

  /* -- lit review hero -- */
  .res-hero-grid{
    display:grid; 
    grid-template-columns:1fr .95fr; 
    gap:6vw; 
    align-items:center;
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
  }
  .res-hero-grid h1{
    font-size:var(--fs-4xl); 
    line-height:1.05; 
    margin-bottom:22px;
  }
  .res-hero-grid h1 .accent{ 
    color:var(--blue); 
  }
  .res-hero-grid p{ 
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.4; 
    /* max-width:46ch;  */
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .pub-links-row{ 
    display:flex; 
    gap:var(--sp-xs); 
    margin-top:var(--sp-sm); 
    flex-wrap:wrap; 
  }
  
  .res-links-row a, .pub-links-row a{ 
    color:var(--blue); 
    font-weight:600; 
    font-size:var(--fs-sm); 
    border-bottom:1px solid transparent; 
    transition:border-color .2s ease; 
    font-family: 'Inter', sans-serif;
  }
  .res-links-row a:hover, .pub-links-row a:hover { 
    border-color:var(--blue); 
  }
  .res-img-block{
    width:100%; 
    aspect-ratio:16/11; 
    background:var(--mist); 
    border-radius:10px;
    background-image:
      url('assets/lit-review-slide-cover.png');
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
  }
  .res-brand-heading{
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:var(--sp-xs);
    margin:0 auto var(--sp-lg); 
    max-width:1180px; 
    width:100%; 
    text-align:center;
    font-size:var(--fs-4xl);
    letter-spacing: -0.1em;
  }
  .res-brand-heading img{ 
    height:1.5em; 
    width:auto; 
    flex:none; 
  }

  .res-brand-heading .cute-stickers {
    display: block;
    margin: 0;
}
  .res-brand-heading 
  .brand-word{ 
    color:var(--blue); 
    font-weight: 800;
  }
  .res-brand-heading h2 {
    margin: 0;
  }
  .publication-brand-heading{
    display:flex; 
    align-items:center; 
    justify-content:flex-start; 
    gap:var(--sp-xs);
    margin:0 auto var(--sp-lg); 
    max-width:1180px; 
    width:100%; 
    text-align:center;
    font-size:var(--fs-4xl);
    letter-spacing: -0.1em;
  }
  /* -- numbered tip cards -- */
  .res-tip-grid{
    display:grid; 
    grid-template-columns:1fr 1fr; 
    gap:var(--sp-lg);
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
  }
  .res-tip-grid.single{ 
    grid-template-columns:1fr; 
    max-width:720px; 
  }
  .res-badge{
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    width:40px; 
    height:40px; 
    background:var(--yellow); 
    border-radius:6px;
    font-family:'Inter', sans-serif; 
    font-size:var(--fs-xl); 
    color:var(--ink);
    margin-bottom:var(--sp-xs);
    font-weight: 800;
    padding: 2px;
  }
  .res-tip-card h3{ 
    font-size:var(--fs-2_5xl); 
    line-height:1.1; 
    margin-bottom:14px; 
    letter-spacing: -0.01em;
  }
  .res-tip-card p{ 
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.4; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    }
  .res-tip-card ul{ 
    margin:10px 0 0; 
    padding-left:20px; 
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.4; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .res-tip-card ul li{ 
    margin-bottom:2px; 
  }
  .res-tip-card b{ 
    color:#1a8039; 
  }
  .res-protip{ 
    margin-top:16px; 
    font-size:var(--fs-sm); 
    color:var(--ink); 
  }
  .connect-grid-protip{ 
    margin-top:16px; 
    font-size:var(--fs-md); 
    color:var(--ink); 
    line-height: 1.6;
  }
  .res-examples{ 
    margin-top:18px; 
  }
  .res-examples .label{ 
    font-size:var(--fs-sm); 
    color:black; 
    margin-bottom:8px; }
  .res-examples code{
    display:block; 
    font-family:'Space Mono',monospace; 
    font-size:var(--fs-xs);
    color:#1c8348; 
    background:var(--mist); 
    padding:10px 14px; 
    border-radius:8px;
    margin-bottom:8px; 
    overflow-x:auto; 
    white-space:pre;
  }
  .res-error-grid{
    display:grid; 
    grid-template-columns:1fr .95fr; 
    gap:4vw; 
    align-items:center;
    max-width:1180px; 
    margin:0 auto; 
    width:100%;
  }
  .res-error-grid h3{ 
    font-size:var(--fs-3xl); 
    margin-bottom:20px; 
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.0;
  }
  .res-error-grid ul{ 
    padding-left:20px; 
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.4; 
    margin-bottom:var(--sp-md); 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .res-error-grid p{ 
    color:var(--ink); 
    font-size:var(--fs-sm); 
    line-height:1.4; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .res-status-line{ 
    font-size:var(--fs-sm); 
    margin-top:4px; 
  }
  .res-error-img {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    gap: var(--sp-lg);       
  }
  .res-error-img img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    min-height: 110px;
    background: var(--mist);
    border-radius: 10px;
    object-fit: contain;
  }
  .res-single-col{ 
    max-width:820px; 
    margin:0 auto; 
    width:100%; 
  }
  .res-single-col h3{ 
    font-size:var(--fs-2xl); 
    margin-bottom:16px; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .res-single-col ul{ 
    padding-left:20px; 
    color:black; 
    font-size:var(--fs-md); 
    line-height:1.8; 
    margin-bottom:18px; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  
  .res-single-col p{ 
    color:var(--ink); 
    font-size:var(--fs-md); 
    line-height:1.8; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .res-single-col code{
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    background:var(--mist); 
    padding:1px 6px; 
    border-radius:4px; 
    font-size:.9em;
  }
  .res-demo-col{ 
    max-width:720px; 
    margin:0 auto; 
    width:100%; 
  }
  .res-demo-col h3{ 
    font-size:var(--fs-2_5xl); 
    line-height:1.15; 
    margin-bottom:20px; 
    letter-spacing: -0.03em;
  }
  .res-demo-col ol{ 
    padding-left:22px; 
    color:var(--ink); 
    font-size:var(--fs-sm); 
    line-height:1.6;
    margin-bottom:16px; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
    }
  .res-demo-col p{ 
    color:var(--slate); 
    font-size:var(--fs-sm); 
    line-height:1.7; 
    margin-bottom:22px; 
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "ROND" 0;
  }
  .tips-tricks{ 
      font-size:var(--fs-3xl); 
      line-height:1; 
      margin-bottom:20px; 
      font-weight: 800;
      text-align: left;
      letter-spacing:-0.06em;
    }

  .gform-title{ 
    font-size:var(--fs-3xl); 
    line-height:.98; 
    margin-bottom:var(--sp-sm); 
  }
  .publications-heading{ 
      font-size:var(--fs-3xl); 
      line-height:1; 
      margin-bottom:20px; 
      font-weight: 700;
      text-align: left;
      letter-spacing:-0.06em;
    }
  .tips-tricks .accent{ 
      color:var(--blue); 
  }
  .pub-sticky-title{ 
    text-align:center; 
  }
  .pub-heading{
    font-size:var(--fs-4xl);
    line-height:1.05;
  }
  .pub-timeline{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:var(--sp-lg) var(--sp-xl);
    max-width:1180px;
    margin:0 auto;
  }
  .pub-entry{ 
    min-width:0; 
  }
  .pub-year-row{
    display:flex;
    align-items:center;
    gap:var(--sp-sm);
    margin-bottom:var(--sp-sm);
  }
  .pub-year{
    font-size:var(--fs-2_5xl);
    line-height:1;
    color:var(--blue);
    flex:none;
  }
  .pub-connector{
    position:relative;
    flex:1 1 auto;
    min-width:16px;
    height:2px;
    background:var(--orange);
  }
  .pub-dot{
    position:absolute;
    right:-5px;
    top:50%;
    width:11px;
    height:11px;
    border-radius:50%;
    background:var(--orange);
    transform:translate(50%,-50%);
  }
  .pub-citation{
    font-size:var(--fs-sm);
    font-weight:700;
    line-height:1.6;
    color:var(--ink);
    font-family:'Inter', sans-serif;
  }
  .pub-citation a{
    text-decoration:underline;
    text-underline-offset:2px;
    transition:color .2s ease;
  }
  .pub-citation a:hover{ 
    color:var(--blue); 
  }
  .gform-embed{
    width:100%;
    max-width:640px;
    height:384px;
    border:0;
    display:block;
  }
  .footer-note{ 
    position:absolute; 
    bottom:26px; 
    left:8vw; 
    right:8vw; 
    display:flex; 
    justify-content:space-between; 
    font-family:'Inter', sans-serif; 
    font-size:var(--fs-2xs); 
    color:var(--slate); 
    flex-wrap:wrap; 
    gap:6px;
  }

  /* ================= LAB LIFE ================= */
  body#lablife-page{
    overflow:visible;   /* base body{} sets overflow:hidden; undo it here */
    height:auto;
  }
  body#lablife-page main{
    height:auto;
    min-height:auto;
    overflow:visible;
    scroll-snap-type:none;
  }
  .lablife-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:calc(var(--header-h) + var(--sp-xl)) 4vw var(--sp-xl);
  }
  .lablife-title{
    font-size:var(--fs-4xl);
    color:var(--blue);
    margin-top:var(--sp-lg);
    margin-bottom:var(--sp-xl);
    letter-spacing:-0.07em;
    font-weight: 700;
  } 
  .lablife-list{ 
    display:flex; 
    flex-direction:column; 
  }
  .lablife-divider{
    border:none;
    border-top:1px solid var(--line);
    margin:0;
  }
  .lablife-entry{
    display:grid;
    grid-template-columns:140px minmax(240px,360px) 1fr;
    align-items:start;
    gap:var(--sp-lg);
    padding:var(--sp-lg) 0;
  }
  .lablife-date{
    font-size:var(--fs-xl);
    color:var(--ink);
    padding-top:4px; /* optical alignment with the image's top edge */
    letter-spacing:-0.07em;
    font-weight: 700;
  }
  .lablife-image{
    width:100%;
    aspect-ratio:3/2;
    object-fit:cover;
    border-radius:10px;
    background:var(--mist); /* visible placeholder if the src hasn't been swapped in yet */
    display:block;
  }
  .lablife-heading{
    font-size:var(--fs-2_5xl);
    line-height:1.1;
    margin-bottom:var(--sp-sm);
    letter-spacing:-0.07em;
    font-weight:700;
  }
  .lablife-body{
    color:var(--slate);
    font-size:var(--fs-sm);
    line-height:1.7;
    font-family:"Google Sans Flex", sans-serif;
    font-optical-sizing:auto;
    font-weight:400;
    font-style:normal;
    font-variation-settings:"slnt" 0,"wdth" 100,"GRAD" 0,"ROND" 0;
  }
  .lablife-footer{
    position:static;
    margin:0 8vw var(--sp-lg);
    padding-top:var(--sp-lg);
    padding-bottom:var(--sp-md);
    /* border-top:1px solid var(--line); */
  }

  /* ----------------------------------------------------------------------
  RESPONSIVE
  ----------------------------------------------------------------------
  Three tiers, matching the breakpoints used everywhere else on the
  site (900px, 640px):
  
  Desktop  (>900px):  date | image | text, three columns side by side —
                          the layout as designed.
  Tablet   (641–900px): the fixed 140px + 360px-max columns don't leave
                          enough room for the text column once you're
                          under ~900px wide (140+240+two gaps already eats
                          most of a tablet's width), so it drops to a
                          single stacked column: date, then image, then
                          heading + body. The image keeps a wider aspect
                          ratio here since it now spans the full row width
                          instead of a fixed 360px.
  Mobile   (≤640px):  same stacked layout, just tighter side padding
                          and a shorter image so it doesn't dominate a
                          small screen.
  ------------------------------------------------------------------- */
  @media (max-width:900px){
    .person-grid{ 
      grid-template-columns:repeat(2, 1fr); 
    }
    .founding-grid .founding-cta{ 
      grid-column:1/3; 
      aspect-ratio:auto; 
      min-height:180px; 
    }
    .carousel-track{
      grid-template-columns:repeat(2, minmax(0,1fr)); 
      max-width:600px; 
    }
    .connect-grid{ 
      grid-template-columns:1fr; 
      gap:var(--sp-lg); 
    }
    .res-hero-grid, .res-error-grid{ 
      grid-template-columns:1fr; 
      gap:32px; 
    }
    .res-hero-grid > div:first-child{ 
      text-align:center; 
    }
    .res-hero-grid .res-links-row{ 
      justify-content:center; 
    }
    .res-tip-grid{ 
      grid-template-columns:1fr; 
      gap:36px; 
    }
    .res-brand-heading, .res-label-row{ 
      flex-wrap:wrap; 
    }
    #we-are .grid, #why .grid, .contact-grid{ 
      grid-template-columns:1fr; 
      gap:36px; 
    }
    #we-are .grid{ 
      text-align:center; 
    }
    .brain-graphic{ 
      margin:0 auto; 
    }
    .stat-row{ 
      justify-content:center; 
    }
    .team-grid{ 
      grid-template-columns:repeat(2,1fr); 
    }
    .work-grid{ 
      grid-template-columns:1fr 1fr; 
    }
    .affiliate-card{ 
      grid-column:1/3; 
      grid-row:auto;
      min-height:auto; 
    }
    .wt2{ 
      grid-column:1; 
      grid-row:auto; 
    }
    .wt3{ 
      grid-column:2; 
      grid-row:2/4; 
    }
    .wt4{ 
      grid-column:1; 
      grid-row:auto; 
    }
    .footer-note{ 
      display:none; 
    }
    .brand-icon{ 
      height:56px; 
    }
    .hero-wrap .hero-image{ 
      max-width:420px; 
    }
    .pub-timeline{ 
      grid-template-columns:1fr; 
      max-width:520px; 
      gap:var(--sp-lg); 
    }
    .pub-connector{ 
      display:none; 
    }
    .lablife-entry{
      grid-template-columns:1fr;
      gap:var(--sp-sm);
    }
    .lablife-date{ 
      padding-top:0; 
    }
    .lablife-image{ 
      aspect-ratio:16/9; 
    }
    .research-card{ 
      width:min(66vw, 230px); 
    }
    .story-split{ 
      grid-template-columns:1fr; 
      gap:32px; 
      text-align:left; 
    }
    .story-hero-wrap{ 
      border-radius:16px; 
      min-height:min(80vh, 560px); 
    }
    .story-banner{ 
      aspect-ratio:16/10; 
    }
    .story-hero-content {
      position: relative;
      z-index: 2;
      color: #fff;
      text-align: center;
      max-width: 760px;
      padding: var(--sp-lg) 6vw;
    }
  }

  @media (max-width:640px){
    #team-page .panel{ 
      padding-left:6vw; 
      padding-right:6vw; 
    }
    .person-grid{ 
      grid-template-columns:1fr; 
    }
    .founding-grid .founding-cta{ 
      grid-column:1; 
    }
    .carousel-heading{ 
      font-size:var(--fs-2_5xl); 
    }
    .carousel-track{ 
      grid-template-columns:1fr; 
      max-width:320px; 
    }
    .connect-title, .gform-title{ 
      font-size:var(--fs-4xl); 
    }
    .gform-embed{
      height:520px; /* Google Forms needs more vertical room once it's narrower */
    }
    .side-nav{ 
      display:none; 
    }
    section.panel{ 
      padding:calc(var(--header-h) + var(--sp-md)) 6vw 40px; 
    }
    .team-grid{ 
      grid-template-columns:1fr 1fr; 
      gap:14px; 
    }
    .work-grid{ 
      grid-template-columns:1fr; 
    }
    .affiliate-card{ 
      grid-column:1; 
    }
    .wt2,.wt3,.wt4{ 
      grid-column:1; 
      grid-row:auto; 
      min-height:130px; 
    }
    .research-row{ 
      grid-template-columns:1fr; 
      gap:10px; 
    }
    .research-row .arrow{ 
      display:none; 
    }
    .pub-row{ 
      grid-template-columns:1fr; 
      gap:6px; 
    }
    .pub-row .yr{ 
      order:-1; 
    }
    .nav-links a{ 
      gap:10px; 
    }
    .lablife-wrap{ 
      padding-left:6vw; 
      padding-right:6vw; 
    }
    .lablife-title{ 
      letter-spacing:-0.04em; 
    }
    .lablife-date, .lablife-heading{ 
      letter-spacing:-0.04em; 
    }
    .lablife-image{ 
      aspect-ratio:4/3; 
      border-radius:8px; 
    }
    .lablife-footer{
      margin-left:6vw; 
      margin-right:6vw; 
      flex-direction:column; 
      gap:4px; 
    }
    .research-heading{ 
      font-size:var(--fs-3xl); 
    }
    .research-track{ 
      gap:var(--sp-sm); 
    }
    .research-card{ 
      width:min(74vw, 200px); 
    }
    .story-hero-title{ 
      font-size:var(--fs-2_5xl); 
    }
    .story-heading, .story-split-heading{ 
      font-size:var(--fs-2_5xl); 
    }
    .story-body{ 
      text-align:left; 
    }
    .story-hero-content {
      position: relative;
      z-index: 2;
      color: #fff;
      text-align: center;
      max-width: 760px;
      padding: var(--sp-lg) 6vw;
    }
    main{
      scroll-snap-type:none;
    }
    section.panel{
      scroll-snap-align:none;
      scroll-snap-stop:normal;
    }
    .team-cta {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce){
    *{ 
      animation:none !important; 
      transition:none !important; 
    }
    .founding-cta-arrow{ animation:none; }
  }



  

