:root {
  --ink: #182226;
  --muted: #667275;
  --paper: #f6f3ee;
  --surface: #ffffff;
  --line: #d9d3c8;
  --teal: #126a64;
  --teal-dark: #0a3d3a;
  --amber: #b67a2f;
  --clay: #8c4a3f;
  --shadow: 0 18px 50px rgba(24, 34, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  color: #fff;
  background: rgba(8, 22, 25, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  padding: 112px 40px 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 16, 18, 0.84), rgba(7, 16, 18, 0.44) 48%, rgba(7, 16, 18, 0.08)),
    linear-gradient(0deg, rgba(7, 16, 18, 0.62), rgba(7, 16, 18, 0.04) 42%),
    url("assets/biomod-presentation.jpeg") center right / cover no-repeat;
}

.hero-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c77d;
}

.hero h1 {
  margin: 0;
  font-size: 3.8rem;
  line-height: 0.96;
  font-weight: 900;
}

.hero h1 span {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-summary {
  width: min(720px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: var(--teal-dark);
  background: #fff;
  border-color: #fff;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(980px, 100%);
  margin: 0;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-metrics div {
  min-height: 86px;
  padding: 16px;
  background: rgba(12, 31, 35, 0.58);
  backdrop-filter: blur(14px);
}

.hero-metrics dt {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: 60px 40px;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 24px;
}

.section-heading h2,
.site-footer h2 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.12;
}

.profile-grid,
.timeline,
.skill-grid,
.publication-list,
.award-grid,
.gallery-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.profile-panel,
.contact-panel,
.skill-grid article,
.award-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.profile-panel h3,
.timeline-body h3,
.skill-grid h3,
.award-grid h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.32;
}

.profile-panel p {
  margin: 0 0 16px;
  color: #3e4a4d;
}

.profile-panel p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.contact-panel div {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel strong {
  display: block;
  font-size: 1.06rem;
}

.contact-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.split-section,
.publications-section,
.gallery-section {
  background: #fff;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--teal);
  font-weight: 900;
}

.timeline-body p,
.timeline-body ul {
  margin: 0;
  color: #3e4a4d;
}

.timeline-body ul {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.timeline-body .muted {
  margin-bottom: 8px;
  color: var(--muted);
}

.capabilities-section {
  background:
    linear-gradient(180deg, rgba(18, 106, 100, 0.08), rgba(140, 74, 63, 0.06)),
    var(--paper);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.skill-grid article {
  padding: 18px;
}

.skill-grid p,
.award-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.publication-list {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.publication-list li {
  padding: 0 0 12px 8px;
  border-bottom: 1px solid var(--line);
  color: #354144;
}

.publication-list a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.award-grid article {
  min-height: 124px;
  padding: 18px;
}

.award-grid time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item.feature {
  grid-column: span 2;
}

.gallery-item.portrait {
  grid-row: span 2;
}

.gallery-item button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item.feature img {
  aspect-ratio: 16 / 8.8;
}

.gallery-item.portrait img {
  aspect-ratio: 3 / 4.2;
}

.gallery-item button:hover img,
.gallery-item button:focus-visible img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  padding: 10px 14px 12px;
  color: #445154;
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  padding: 52px 40px;
  color: #fff;
  background: var(--teal-dark);
}

.site-footer > * {
  width: min(1120px, 100%);
}

.site-footer address {
  display: grid;
  gap: 8px;
  align-content: start;
  font-style: normal;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(5, 13, 15, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    max-width: 420px;
  }

  .hero {
    min-height: 68vh;
    padding: 100px 24px 24px;
    background-position: 62% center;
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h1 span {
    font-size: 2rem;
  }

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

  .section {
    padding: 48px 24px;
  }

  .section-heading h2,
  .site-footer h2 {
    font-size: 1.8rem;
  }

  .profile-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .skill-grid,
  .award-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    display: block;
  }

  .brand {
    display: inline-block;
    margin-bottom: 8px;
  }

  .nav-links {
    justify-content: flex-start;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 74vh;
    align-items: end;
    padding: 118px 18px 18px;
    background-position: 57% center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h1 span {
    font-size: 1.45rem;
  }

  .hero-summary {
    font-size: 0.94rem;
  }

  .skill-grid,
  .award-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-metrics div {
    min-height: 68px;
    padding: 12px;
  }

  .hero-metrics dt {
    font-size: 1.05rem;
  }

  .section {
    padding: 40px 18px;
  }

  .profile-panel,
  .skill-grid article,
  .award-grid article {
    padding: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .gallery-item.feature,
  .gallery-item.portrait {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item.feature img,
  .gallery-item.portrait img,
  .gallery-item img {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    padding: 42px 18px;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .hero-metrics {
    display: none;
  }

  .hero-copy {
    margin-bottom: 0;
  }
}
