:root {
  --teal: #17c9bd;
  --teal-dark: #0f9189;
  --ink: #213f46;
  --muted: #6b7a80;
  --line: #dfe8ea;
  --paper: #ffffff;
  --soft: #f4fbfb;
  --max: 1120px;
  --shadow: 0 24px 60px rgba(33, 63, 70, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  line-height: 1.65;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { display: block; width: min(430px, 58vw); height: auto; }
.main-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { background: rgba(23, 201, 189, 0.12); text-decoration: none; color: #102f35; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 20px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: center;
  margin-top: 12px;
  padding: 82px 56px 70px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.66) 48%, rgba(255, 255, 255, 0.42) 100%),
    url("back.jpg") center / cover no-repeat;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(33, 63, 70, 0.16);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 34%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1, .page-title h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); line-height: 0.96; letter-spacing: -0.06em; margin: 0 0 24px; }
.hero h1 { max-width: 900px; text-shadow: 0 10px 28px rgba(255,255,255,0.55); }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #40555b; max-width: 760px; }
.hero .lead { color: #40555b; text-shadow: 0 8px 24px rgba(255,255,255,0.55); }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-dark); font-size: 0.78rem; font-weight: 800; }
.hero .eyebrow { color: var(--teal-dark); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .button { background: var(--ink); color: white; }
.hero .button.secondary { background: rgba(255,255,255,0.68); color: var(--ink); border-color: rgba(33,63,70,0.18); backdrop-filter: blur(6px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px rgba(33, 63, 70, 0.16);
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.hero-card, .notice-card, .card, .contact-card, .person-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card { background: rgba(255,255,255,0.72); border-color: rgba(33,63,70,0.14); color: var(--ink); backdrop-filter: blur(10px); }
.hero-card h2 { margin-top: 0; color: var(--ink); }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { background: rgba(23, 201, 189, 0.14); padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; }
.hero .tag-list li { background: rgba(23, 201, 189, 0.14); color: var(--ink); border: 1px solid rgba(33,63,70,0.10); }

.section, .page-title { padding: 58px 0; }
.grid-two { display: grid; grid-template-columns: 1fr 0.85fr; gap: 34px; align-items: start; }
.section h2, .page-title h1 { color: #173940; }
.section-heading { margin-bottom: 24px; }
.section-heading.compact { padding-top: 34px; }
.news-list { display: grid; gap: 16px; }
.news-list article { display: grid; grid-template-columns: 120px 1fr; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.news-list time { font-weight: 900; color: var(--teal-dark); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 0 58px; }
.research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { box-shadow: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-number { color: var(--teal); font-weight: 900; letter-spacing: -0.04em; font-size: 2rem; }
.card h2 { line-height: 1.15; }
.filter-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.filter-bar label { font-weight: 800; }
.filter-bar input { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font: inherit; }
.publication-list { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 20px 26px 20px 50px; }
.publication-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.publication-list li:last-child { border-bottom: 0; }
.people-list, .contact-layout { padding: 20px 0 58px; }
.principal-investigator { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: start; }
.avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 201, 189, 0.16); color: var(--teal-dark); font-weight: 900; font-size: 2rem; }
.initials { background: var(--ink); color: white; }
.placeholder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.placeholder { box-shadow: none; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card.muted { background: #f7fbfb; box-shadow: none; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 20px; text-align: center; color: var(--muted); }


.research-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  margin: 18px 0 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 840px) {
  .research-card-image {
    height: 190px;
  }
}

@media (max-width: 840px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .site-header { flex-wrap: wrap; }
  .hero, .grid-two, .contact-layout, .principal-investigator { grid-template-columns: 1fr; }
  .card-grid, .research-grid, .placeholder-grid { grid-template-columns: 1fr; }
  .news-list article { grid-template-columns: 1fr; }
  .hero { padding: 48px 24px; border-radius: 24px; }
}
