/* Lloyd Lab — shared styles
   Layout: deep forest-green bands carry the identity; cream paper for reading;
   accents taken from the lab's own immunostaining (ASY1 green, ZIP1 magenta). */
:root {
  --forest: #12291f;      /* bands, nav, footer */
  --forest-2: #1b3a2c;    /* raised surface on forest */
  --paper: #f3efe4;       /* page */
  --paper-2: #e8e2d2;     /* quiet surface on paper */
  --ink: #16201b;         /* text on paper */
  --ink-soft: #4d5a52;    /* secondary text */
  --rule: #d4ccb8;
  --on-forest: #f3efe4;
  --on-forest-soft: #b9c4b9;
  --asy1: #2fa866;        /* ASY1 green */
  --zip1: #c2287f;        /* ZIP1 magenta — links, hover */
  --amber: #e2a93b;       /* fellowship badge */

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Syne", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Inconsolata", "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --forest: #0c1c15; --forest-2: #15301f; --paper: #111915; --paper-2: #18231d;
    --ink: #e9e6dc; --ink-soft: #a8b3aa; --rule: #2b3a31;
    --on-forest: #f3efe4; --on-forest-soft: #a9b6ab;
    --asy1: #4cc785; --zip1: #ef6db3; --amber: #e8b553; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --forest: #0c1c15; --forest-2: #15301f; --paper: #111915; --paper-2: #18231d;
  --ink: #e9e6dc; --ink-soft: #a8b3aa; --rule: #2b3a31;
  --on-forest: #f3efe4; --on-forest-soft: #a9b6ab;
  --asy1: #4cc785; --zip1: #ef6db3; --amber: #e8b553; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--zip1); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--zip1); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.6em;
}
.label::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--asy1); box-shadow: 0.85em 0 0 var(--zip1); margin-right: 0.85em; }
.on-forest .label { color: var(--on-forest-soft); }

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--forest); }
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--forest); color: var(--on-forest); border-bottom: 1px solid rgba(255,255,255,0.07); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--on-forest); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-forest-soft); margin-top: 4px; }
.nav-links { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 0.45rem 0.8rem; color: var(--on-forest-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 999px; }
.nav-links a:hover { color: var(--on-forest); background: var(--forest-2); }
.nav-links a[aria-current="page"] { color: var(--on-forest); background: var(--forest-2); box-shadow: inset 0 -2px 0 var(--asy1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--on-forest); border-radius: 8px; padding: 0.45rem 0.7rem; font: 500 0.85rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); flex-direction: column; padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 8px; padding: 0.7rem 0.8rem; font-size: 1rem; }
}

/* ---------- Bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.on-forest { background: var(--forest); color: var(--on-forest); }
.on-forest a { color: #f6a9d3; }
.on-paper2 { background: var(--paper-2); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.4rem; max-width: 44rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.on-forest .lede { color: var(--on-forest-soft); }

/* ---------- Home hero ---------- */
.hero { background: var(--forest); color: var(--on-forest); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 em { font-style: italic; color: #f6a9d3; }
.hero-text { display: grid; gap: 1.5rem; min-width: 0; }
.hero-text .lede { font-size: 1.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; }
.btn-light { background: var(--on-forest); color: #12291f; }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(243,239,228,0.35); color: var(--on-forest) !important; }
.btn-ghost:hover { border-color: var(--on-forest); }
.btn-dark { background: var(--forest); color: var(--on-forest) !important; }
.hero-figure { margin: 0; position: relative; min-width: 0; }
.hero-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 80px 10px rgba(47,168,102,0.18); }
.hero-figure figcaption { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.82rem; color: var(--on-forest-soft); line-height: 1.5; max-width: 30rem; }
.chip { display: inline-block; padding: 0.05em 0.5em; border-radius: 4px; font-weight: 600; }
.chip-asy1 { background: rgba(47,168,102,0.22); color: #7fe0a9; }
.chip-zip1 { background: rgba(194,40,127,0.25); color: #f6a9d3; }
.chip-dna { background: rgba(80,120,230,0.25); color: #a9c0ff; }
.fellow { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; padding: 0.35rem 0.85rem; border-radius: 999px; background: rgba(226,169,59,0.14); color: var(--amber); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(226,169,59,0.35); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 420px; }
}

/* ---------- Themes (home + research) ---------- */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.theme { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; }
.theme:hover { border-color: var(--asy1); }
.theme img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: #fff; }
.theme img.contain { object-fit: contain; padding: 0.8rem; }
.theme-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.6rem; align-content: start; }
.theme-body p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 760px) { .themes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split (about strip) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text { display: grid; gap: 1.2rem; min-width: 0; }
.split-text p { color: var(--ink-soft); }
.on-forest .split-text p { color: var(--on-forest-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin-top: 0.4rem; }
.fact { display: grid; }
.fact b { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.fact span { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.06em; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- News ---------- */
.news { display: grid; border-top: 1px solid var(--rule); }
.news-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.news-item time { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.news-item h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.news-item p { color: var(--ink-soft); }
@media (max-width: 600px) { .news-item { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; } }

/* ---------- Page header ---------- */
.page-head { background: var(--forest); color: var(--on-forest); }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1.1rem; }
.page-head .lede { color: var(--on-forest-soft); }

/* ---------- Team ---------- */
.pi { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pi img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.pi-text { display: grid; gap: 1.1rem; min-width: 0; }
.pi-text p { color: var(--ink-soft); }
.path { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.3rem 0 0; }
.path li { font-family: var(--mono); font-size: 0.82rem; padding: 0.35rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); }
.path li b { color: var(--ink); font-weight: 600; }
.links-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 760px) { .pi { grid-template-columns: minmax(0, 1fr); } .pi img { max-width: 360px; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2rem 1.5rem; }
.person { display: grid; gap: 0.8rem; align-content: start; }
.person-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; object-fit: cover; background: var(--paper-2); }
.monogram { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--forest); display: grid; place-items: center; position: relative; overflow: hidden; }
.monogram span { font-family: var(--display); font-size: 3.4rem; color: var(--on-forest); position: relative; letter-spacing: 0.02em; }
.monogram::before, .monogram::after { content: ""; position: absolute; width: 70%; height: 6px; border-radius: 3px; opacity: 0.75; }
.monogram::before { background: var(--asy1); transform: rotate(-28deg) translateY(-2.2rem); }
.monogram::after { background: var(--zip1); transform: rotate(-28deg) translateY(2.2rem); }
.person h3 { font-size: 1.3rem; }
.role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asy1); }
.person p { color: var(--ink-soft); font-size: 0.96rem; }
.alumni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 2rem; border-top: 1px solid var(--rule); }
.alumni li { padding-block: 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.15rem; }
.alumni b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.alumni span { color: var(--ink-soft); font-size: 0.95rem; }
.team-photo { margin: 0; }
.team-photo img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 8; object-fit: cover; }

/* ---------- Research ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.project:last-child { border-bottom: 0; }
.project:nth-child(even) .project-fig { order: -1; }
.project-text { display: grid; gap: 1rem; min-width: 0; }
.project-text p { color: var(--ink-soft); }
.project-fig { margin: 0; min-width: 0; }
.project-fig img { width: 100%; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.project-fig figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }
.q { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--ink); border-left: 3px solid var(--zip1); padding-left: 1rem; }
@media (max-width: 800px) { .project { grid-template-columns: minmax(0, 1fr); } .project:nth-child(even) .project-fig { order: 0; } }

/* ---------- Publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin-bottom: 2rem; }
.pub-tools input { flex: 1 1 260px; min-width: 0; font: inherit; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.pub-count { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pub-year { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.5rem; border-top: 1px solid var(--rule); padding-block: 1.6rem; }
.pub-year > h2 { font-size: 2rem; font-style: italic; color: var(--asy1); font-variant-numeric: tabular-nums; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.pub { display: grid; gap: 0.25rem; }
.pub-title { font-family: var(--display); font-size: 1.18rem; line-height: 1.3; color: var(--ink); }
.pub-authors { font-size: 0.93rem; color: var(--ink-soft); }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-venue { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); }
.pub-venue a { margin-left: 0.6rem; }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--paper-2); color: var(--ink-soft); margin-left: 0.4rem; vertical-align: 1px; }
@media (max-width: 600px) { .pub-year { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; } }

/* ---------- Join / Contact ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { padding: 1.6rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); display: grid; gap: 0.6rem; align-content: start; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.4rem; }
.contact-list div { display: grid; gap: 0.2rem; }
.contact-list address { font-style: normal; }
.copy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.copy-btn { font: 500 0.8rem var(--mono); letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-soft); cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.big-link { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-foot { background: var(--forest); color: var(--on-forest-soft); font-size: 0.93rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 2.5rem; }
.site-foot h4 { margin: 0 0 0.8rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-forest); font-weight: 500; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-foot a { color: var(--on-forest-soft); text-decoration: none; }
.site-foot a:hover { color: var(--on-forest); text-decoration: underline; }
.site-foot .brand-name { color: var(--on-forest); font-size: 1.5rem; display: block; margin-bottom: 0.7rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.08); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.2rem; grid-template-columns: none; font-family: var(--mono); font-size: 0.78rem; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero .lede, .page-head .lede { color: var(--on-forest-soft); }
.hero .label, .page-head .label { color: var(--on-forest-soft); }
.people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 520px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .person h3 { font-size: 1.1rem; }
  .person p { font-size: 0.9rem; }
  .role { font-size: 0.7rem; }
  .monogram span { font-size: 2.4rem; }
}

/* ---------- v2 additions ---------- */
.brand-sub { font-size: 0.8rem; letter-spacing: 0.1em; }
.affil { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; justify-self: start; max-width: 100%;
  background: #fbf9f3; color: #12291f; border-radius: 14px; padding: 0.85rem 1.2rem; box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.au-logo { height: 44px; width: auto; }
.affil-text { display: grid; border-left: 1px solid #cfc8b6; padding-left: 1.2rem; line-height: 1.25; min-width: 0; }
.affil-text b { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.04em; color: #12291f; }
.affil-text span { font-size: 0.82rem; color: #4d5a52; max-width: 17rem; }
.hero-kicker { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-forest-soft); margin-top: 0.4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
@media (max-width: 480px) { .affil-text { border-left: 0; padding-left: 0; } .au-logo { height: 38px; } }

.more { margin-top: 0.7rem; }
.more summary { cursor: pointer; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zip1); list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-size: 1.1rem; line-height: 1; }
.more[open] summary::before { content: "–"; }
.more-body { margin-top: 0.8rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--asy1); background: var(--paper-2); border-radius: 0 10px 10px 0; display: grid; gap: 0.8rem; max-width: 46rem; font-size: 0.96rem; color: var(--ink-soft); }
.more-body ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.on-paper2 .more-body { background: var(--paper); }

.alumni-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.alumni-h { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--asy1); font-weight: 500; margin-bottom: 0.6rem; }
.alumni-groups .alumni { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .alumni-groups { grid-template-columns: minmax(0, 1fr); } }

.split + .split { margin-top: clamp(2.5rem, 6vw, 4rem); }
.split-rev > img { order: 2; }
.split h3 { font-size: 1.7rem; }
@media (max-width: 800px) { .split-rev > img { order: 0; } }

.map { margin-block: 0.9rem 0.5rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 4 / 3; max-width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.on-forest .btn-light { color: #12291f; }

/* ---------- v3: institution bar, PI chip ---------- */
.hero h1 em { color: inherit; }
.inst-bar { background: #ffffff; border-bottom: 1px solid #e6e1d4; }
.inst-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding-block: 0.5rem; }
.inst-logos { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.inst-au { height: 42px; width: auto; }
.inst-ibers { height: 54px; width: auto; }
.inst-rule { width: 1px; height: 40px; background: #d6d0c1; }
.inst-name { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #4d5a52; text-align: right; max-width: 19rem; line-height: 1.4; }
@media (max-width: 700px) { .inst-name { display: none; } .inst-au { height: 34px; } .inst-ibers { height: 44px; } .inst-bar .wrap { min-height: 60px; } }
.site-nav .brand-sub { display: none; }
.pi-chip { display: inline-flex; align-items: center; gap: 0.9rem; justify-self: start; text-decoration: none; color: var(--on-forest) !important; padding: 0.4rem 1.1rem 0.4rem 0.4rem; border-radius: 999px; background: var(--forest-2); border: 1px solid rgba(255,255,255,0.08); max-width: 100%; }
.pi-chip:hover { border-color: var(--asy1); }
.pi-chip img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.pi-chip > span { display: grid; line-height: 1.3; min-width: 0; }
.pi-chip b { font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.pi-chip > span > span { font-size: 0.85rem; color: var(--on-forest-soft); }
.inst-ibers { height: 68px; }
.inst-bar .wrap { min-height: 84px; }
@media (max-width: 700px) { .inst-ibers { height: 52px; } .inst-bar .wrap { min-height: 66px; } }

/* ---------- v4: logos inside the nav bar ---------- */
.site-nav .wrap { justify-content: flex-start; }
.nav-logos { display: flex; align-items: center; gap: 0.9rem; margin-left: 1.6rem; margin-right: auto; padding-left: 1.6rem; border-left: 1px solid rgba(255,255,255,0.15); text-decoration: none; opacity: 0.92; }
.nav-logos:hover { opacity: 1; }
.nl-au { height: 30px; width: auto; }
.nl-ibers { height: 40px; width: auto; }
.nl-rule { width: 1px; height: 26px; background: rgba(255,255,255,0.25); }
@media (max-width: 1060px) { .nav-links a { padding: 0.45rem 0.6rem; font-size: 0.88rem; } .nl-au { height: 26px; } .nl-ibers { height: 34px; } }
@media (max-width: 860px) { .nav-toggle { margin-left: 0; } }
@media (max-width: 520px) {
  .nav-logos { margin-left: 0.8rem; padding-left: 0.8rem; gap: 0.6rem; }
  .nl-au { height: 20px; } .nl-ibers { height: 28px; }
  .brand-name { font-size: 1.1rem; } .brand-mark { width: 28px; height: 28px; }
  .nav-toggle { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
}
@media (max-width: 380px) { .nl-rule, .nl-ibers { display: none; } }
.brand-name { white-space: nowrap; }
.nl-au { height: 34px; } .nl-ibers { height: 44px; }
@media (max-width: 1060px) { .nl-au { height: 28px; } .nl-ibers { height: 36px; } }
@media (max-width: 520px) {
  .site-nav .wrap { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .nav-logos { margin-left: 0.4rem; padding-left: 0.6rem; gap: 0.5rem; }
  .nl-au { height: 19px; } .nl-ibers { height: 27px; } .nl-rule { height: 18px; }
}
.hero-label { font-size: 0.95rem; letter-spacing: 0.16em; color: var(--on-forest); }
@media (max-width: 520px) { .hero-label { font-size: 0.8rem; } }

/* ---------- v5: larger PI headshot, caption below ---------- */
.pi-chip { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0; background: none; border: 0; border-radius: 0; }
.pi-chip img { width: 150px; height: 150px; border: 3px solid var(--forest-2); box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 40px rgba(47,168,102,0.15); transition: box-shadow .2s; }
.pi-chip:hover img { box-shadow: 0 0 0 2px var(--asy1), 0 0 40px rgba(47,168,102,0.25); }
.pi-chip b { font-size: 1.35rem; }
@media (max-width: 520px) { .pi-chip img { width: 120px; height: 120px; } }
.pi-chip img { object-position: center; }

/* ---------- v6: tighter gap between menu bar and first heading ---------- */
.hero .wrap { padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .wrap { padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 3rem); }

/* ---------- v7: home hero "zoom into the flower bud" ---------- */
.zoom-fig { margin: 0; min-width: 0; }
.zoom-stage { position: relative; }
.zoom-plants { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.zoom-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.zoom-lines line { stroke: #f3efe4; stroke-opacity: 0.85; stroke-width: 2; vector-effect: non-scaling-stroke; }
.zoom-ring { position: absolute; left: 57.5%; top: 40.6%; width: 9%; aspect-ratio: 1; border: 2px solid #f3efe4; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(18, 41, 31, 0.35); }
.zoom-cell { position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; left: -1%; top: 54.4%; border: 5px solid #f3efe4; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.zoom-fig figcaption { margin-top: 1rem; padding-left: 44%; min-height: 12%; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; color: var(--on-forest-soft); }
@media (max-width: 820px) {
  .zoom-fig { max-width: 560px; }
  .zoom-fig figcaption { padding-left: 0; margin-top: calc(13% + 1rem); }
}
