:root {
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #17324d;
  --muted: #486079;
  --line: rgba(23, 50, 77, 0.16);
  --accent: #0072b2;
  --accent-strong: #004f7c;
  --accent-soft: #dcecf7;
  --ink-soft: #e8eef4;
  --shadow: 0 22px 60px rgba(23, 50, 77, 0.12);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 114, 178, 0.14), transparent 30%),
    linear-gradient(180deg, #f9f6ef 0%, #eef4f7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: auto -8rem -6rem auto;
  width: min(44vw, 540px);
  height: min(44vw, 540px);
  background: url("new_cbbio/B2.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 243, 238, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .wrap {
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #56b4e9);
  color: #fff;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: url("new_cbbio/B2.png") no-repeat center / 82%;
  border: 1px solid rgba(0, 114, 178, 0.14);
  box-shadow: 0 8px 22px rgba(23, 50, 77, 0.08);
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-text span,
.site-nav a,
.lead,
.person-card span,
.card-note,
.timeline-item p,
.panel p,
.contact-card p {
  color: var(--muted);
}

.brand-text strong {
  font-size: 1.12rem;
  letter-spacing: 0.08em;
}

.brand-text span {
  font-size: 0.96rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1rem;
}

.hero,
.section {
  padding: 5rem 0;
}

.hero-grid,
.bio-grid,
.split-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.bio-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}

.hero-copy h1,
.section-heading h2,
.panel h2,
.bio-grid h2,
.section-contact h2 {
  font-family: "IBM Plex Serif", serif;
  line-height: 1.04;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5.1vw, 4.25rem);
  max-width: 11ch;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 0 1.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-actions,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.profile-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.profile-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.08);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.profile-icons svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card,
.panel,
.person-card,
.bio-panel,
.contact-card,
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.bio-panel,
.contact-card {
  padding: 1.6rem;
}

.hero-card-compact {
  min-height: 0;
}

.hero-card ul,
.detail-list {
  margin: 0;
  padding-left: 1.15rem;
}

.card-label {
  margin: 0 0 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-tags span {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-metrics,
.research-grid,
.people-grid,
.former-grid,
.publication-list {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics li,
.panel,
.person-card,
.timeline-item {
  padding: 1.35rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading-sub {
  margin-top: 2.5rem;
}

.section-heading h2,
.panel h2,
.bio-grid h2,
.section-contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.bio-copy p:not(.lead) {
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 1rem;
}

.research-grid,
.people-grid,
.former-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-grid-wide {
  grid-template-columns: 1.1fr 0.9fr;
}

.section-accent {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(15, 118, 110, 0.02));
}

.publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication-list-single {
  grid-template-columns: 1fr;
}

.publication-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.timeline-year {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.person-card h3,
.publication-item h3,
.panel h3,
.bio-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.panel p,
.publication-item p,
.hero-copy .card-copy {
  margin: 0 0 1rem;
}

.panel p:last-child,
.publication-item p:last-child,
.hero-copy .card-copy:last-child {
  margin-bottom: 0;
}

.person-card p {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.person-card-featured {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.92));
}

.avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.person-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid rgba(0, 114, 178, 0.2);
}

.profile-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 114, 178, 0.18);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 0.35rem;
}

.timeline-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
}

.timeline-divider {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.inline-links-stack {
  display: grid;
  gap: 0.5rem;
}

.hero-cv .hero-copy h1 {
  max-width: 11ch;
}

.split-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.stats-list-compact {
  margin-bottom: 0;
}

.stats-list div {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.stats-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stats-list strong {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.stats-list span {
  color: var(--text);
  line-height: 1.5;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.people-note {
  margin-top: 1rem;
}

.people-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.simple-list,
.plain-directory {
  margin: 0;
  padding-left: 1.2rem;
}

.simple-list {
  display: grid;
  gap: 0.8rem;
  color: var(--text);
}

.simple-list li,
.timeline-list li,
.publication-record {
  margin-bottom: 0.15rem;
}

.plain-directory {
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.plain-directory li {
  line-height: 1.65;
}

.plain-directory strong {
  color: var(--text);
}

.resource-link {
  margin: 1rem 0 0;
}

.resource-link a {
  color: var(--accent-strong);
  font-weight: 600;
}

.publication-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.publication-intro {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.7;
}

.publication-groups {
  display: grid;
  gap: 1rem;
}

.publication-group {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 1rem 1rem;
}

.publication-group summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 1rem 0;
}

.publication-group[open] summary {
  color: var(--accent-strong);
}

.publication-directory {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.publication-record {
  color: var(--muted);
  line-height: 1.65;
}

.publication-record a,
.publication-item a {
  color: var(--accent-strong);
  font-weight: 600;
}

.record-text {
  color: var(--text);
}

.contact-card a:not(.button),
.inline-links a {
  color: var(--accent-strong);
}

.bio-panel-links {
  margin-top: 1rem;
}

.site-footer {
  padding: 1.4rem 0 2.5rem;
}

.footer-row {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hero-grid,
  .bio-grid,
  .research-grid,
  .people-grid,
  .publication-list,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .wrap,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 4rem 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 0.8rem;
  }
}
