/* ==========================================================
   Omics Intelligence for Health Lab - site stylesheet
   Palette derived from the lab banner (deep teal, aqua, gold)
   ========================================================== */
:root {
  --navy-900: #081f27;
  --navy-800: #0b2a33;
  --navy-700: #134553;
  --teal-600: #1f6b78;
  --aqua-400: #5fc2b3;
  --aqua-300: #8fd8cc;
  --gold-400: #e5b96a;
  --gold-500: #d9a44a;
  --ink: #15262c;
  --ink-soft: #4a5f66;
  --muted: #7b8f95;
  --line: #e2eaec;
  --paper: #ffffff;
  --paper-2: #f4f8f9;
  --paper-3: #e9f2f3;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 31, 39, 0.08);
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17.5px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 0.5em; font-weight: 600; letter-spacing: 0; }
h3, h4 { font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--navy-800); color: #e6f1f3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--aqua-300); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); font-weight: 700; margin-bottom: 0.6rem;
}
.section.dark .eyebrow { color: var(--gold-400); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.section.dark .lead { color: #cfe3e6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all 0.18s ease;
  font-size: 0.98rem; line-height: 1; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold-400); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-500); }
.btn-outline { border-color: var(--teal-600); color: var(--teal-600); background: transparent; }
.btn-outline:hover { background: var(--teal-600); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy-800); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 42, 51, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .name { font-family: var(--font-head); font-weight: 600; line-height: 1.1; font-size: 1.08rem; }
.brand .name small { display: block; font-weight: 600; color: var(--aqua-300); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: #dbe9ec; padding: 0.55rem 0.85rem; border-radius: 8px; font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.nav-links .cta a { background: var(--gold-400); color: var(--navy-900); font-weight: 700; margin-left: 0.4rem; }
.nav-links .cta a:hover { background: var(--gold-500); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); padding: 0.6rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem 0.6rem; }
  .nav-links .cta a { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero-banner { position: relative; background: #0f3f4c; }
.hero-banner-media { position: relative; line-height: 0; }
.hero-banner-img { display: block; width: 100%; height: auto; }
.hero-banner-fade { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,63,76,0) 76%, rgba(15,63,76,0.6) 92%, #0f3f4c 100%); }
.hero-banner .hero-inner { padding-top: 0.5rem; }
.hero-banner .hero-art, .hero-banner .hero-title { display: none; }
@media (max-width: 700px) {
  .hero-banner-media { display: none; }
  .hero-banner .hero-art { display: block; }
  .hero-banner .hero-title { display: block; }
  .hero-banner .hero-inner { padding-top: 2.5rem; }
}
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #1a5563 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
}
.hero.hero-banner { background: #0f3f4c; }
.hero-banner-body { background: linear-gradient(180deg, #0f3f4c 0%, var(--navy-800) 60%, var(--navy-900) 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.6;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-art { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto 1.2rem; }
.hero h1 { color: #fff; margin-bottom: 0.4em; font-weight: 600; }
.hero h1 .accent { color: var(--aqua-300); }
.hero .lead { color: #d8e8eb; font-size: 1.22rem; max-width: 62ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-affil { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: #b9d3d8; font-size: 0.92rem; }
.hero-affil span::before { content: "\2022"; color: var(--gold-400); margin-right: 0.5rem; }
.hero-affil span:first-child::before { content: none; }

/* ---------- Institution logo band ---------- */
.logo-band { background: #fff; border-bottom: 1px solid var(--line); padding: 2rem 0 1.8rem; }
.logo-band .label { text-align: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.logo-band .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 4rem; }
.logo-band .logos a { display: inline-flex; align-items: center; }
.logo-band img { width: auto; height: auto; max-height: 64px; max-width: 300px; object-fit: contain; }
@media (max-width: 640px) { .logo-band .logos { gap: 1rem 1.6rem; } .logo-band img { max-height: 40px; max-width: 46vw; } }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.2rem; }
.loc-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.loc-card h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.loc-card p { margin-bottom: 0.4rem; }
.credit { font-size: 0.78rem; color: var(--muted); margin-top: 2rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat b { display: block; font-size: 1.9rem; color: var(--navy-700); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: 0 1px 2px rgba(8,31,39,0.04); transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0.3rem; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: 0.8rem; font-weight: 700; color: var(--gold-500); letter-spacing: 0.1em; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-3); color: var(--teal-600); margin-bottom: 0.9rem; }
.card .icon svg { width: 26px; height: 26px; }
.card .more { margin-top: auto; padding-top: 0.8rem; font-weight: 600; font-size: 0.95rem; }

/* ---------- Research area blocks (research page) ---------- */
.area { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: start; padding: 2.6rem 0; border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; }
.area .num { font-size: 3rem; font-weight: 800; color: var(--aqua-300); line-height: 1; letter-spacing: -0.03em; }
.area h2 { font-size: 1.6rem; }
.area ul { padding-left: 1.2rem; margin: 0.6rem 0 1rem; }
.area li { margin-bottom: 0.4rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.tag { font-size: 0.8rem; background: var(--paper-3); color: var(--navy-700); padding: 0.28rem 0.65rem; border-radius: 999px; font-weight: 600; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; }
.pub:last-child { border-bottom: 0; }
.pub .year { font-weight: 800; color: var(--teal-600); font-size: 1.05rem; padding-top: 0.15rem; }
.pub .title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.25rem; }
.pub .title a { color: inherit; }
.pub .authors { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.2rem; }
.pub .authors b { color: var(--navy-700); }
.pub .journal { font-style: italic; color: var(--muted); font-size: 0.93rem; }
.pub .journal em { font-style: normal; font-weight: 600; color: var(--teal-600); }
.pub .summary { font-size: 0.93rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
.pub .links { margin-top: 0.45rem; display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.88rem; font-weight: 600; align-items: center; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #fbf1dc; color: #8a5f12; padding: 0.15rem 0.5rem; border-radius: 6px; vertical-align: middle; }
.badge.area-badge { background: var(--paper-3); color: var(--navy-700); }
@media (max-width: 600px) { .pub { grid-template-columns: 1fr; gap: 0.2rem; } }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.view-toggle button { background: transparent; border: 0; padding: 0.5rem 1.1rem; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.view-toggle button.active { background: var(--navy-700); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.5rem; }
.filter-bar button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.filter-bar button.active, .filter-bar button:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.pub-group { margin-bottom: 3rem; scroll-margin-top: 90px; }
.pub-group-head { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding-bottom: 0.8rem; border-bottom: 2px solid var(--navy-700); margin-bottom: 0.4rem; }
.pub-group-head .num { font-size: 2.2rem; font-weight: 800; color: var(--aqua-400); line-height: 1; letter-spacing: -0.03em; }
.pub-group-head h2 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.pub-group-head p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.area-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.area-nav a { font-size: 0.88rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; }
.area-nav a:hover { background: var(--gold-400); color: var(--navy-900); text-decoration: none; }

/* ---------- People ---------- */
.pi { display: grid; grid-template-columns: 320px 1fr; gap: 2.8rem; align-items: start; }
.pi img { border-radius: 18px; box-shadow: var(--shadow); }
.pi .role { color: var(--teal-600); font-weight: 600; margin-bottom: 1rem; }
.pi .links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
@media (max-width: 820px) { .pi { grid-template-columns: 1fr; } .pi img { max-width: 320px; } }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.person { text-align: center; }
.person .photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.9rem; background: var(--paper-3); display: grid; place-items: center; color: var(--teal-600); font-size: 2rem; font-weight: 700; }
.person h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.person .role { color: var(--muted); font-size: 0.9rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.timeline li b { color: var(--teal-600); }
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; }
.logo-row a { font-weight: 700; color: var(--ink-soft); font-size: 0.98rem; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.logo-row a:hover { text-decoration: none; color: var(--navy-700); border-color: var(--teal-600); }

/* ---------- Show more ---------- */
.pub-list .pub.is-hidden { display: none; }
.show-more { text-align: center; margin-top: 1.6rem; }

/* ---------- News ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item time { color: var(--teal-600); font-weight: 700; font-size: 0.95rem; }
.news-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.news-item p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Join ---------- */
.position { border-left: 4px solid var(--gold-400); padding: 0.2rem 0 0.2rem 1.2rem; margin-bottom: 1.8rem; }
.position h3 { margin-bottom: 0.3rem; }
.checklist { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--aqua-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.address h3 { margin-bottom: 0.3rem; }
.address p { margin-bottom: 0.3rem; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Page header ---------- */
.page-head { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head h1 { color: #fff; margin-bottom: 0.3em; }
.page-head .lead { color: #cfe3e6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b7cdd2; padding: 3rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #d6e6e9; }
.site-footer .brand { margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; color: #8aa3a9; font-size: 0.85rem; }
.social { display: flex; gap: 0.6rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); margin: 2rem 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
