:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101317;
  --muted: #5f6873;
  --quiet: #8c949d;
  --line: #e7eaee;
  --soft: #f7f8fa;
  --soft-2: #eef7f5;
  --aqua: #00a6b8;
  --green: #2ea36b;
  --gold: #d89d23;
  --coral: #e05d4f;
  --violet: #6957d6;
  --shadow: 0 18px 50px rgba(18, 31, 45, 0.08);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 44px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 166, 184, 0.035), transparent 440px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(16, 19, 23, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #007d8d;
  text-decoration-color: currentColor;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 234, 238, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--aqua), var(--green) 58%, var(--gold));
  box-shadow: 0 0 0 6px rgba(0, 166, 184, 0.09);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  padding: 96px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #007d8d;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 4.5rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 2.2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.26;
  letter-spacing: 0;
}

.lede {
  max-width: 690px;
  color: #303842;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 34px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 166, 184, 0.45);
  box-shadow: 0 10px 24px rgba(0, 166, 184, 0.12);
}

.button.primary {
  border-color: #0f1720;
  background: #0f1720;
  color: #fff;
}

.facts {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.fact-label {
  color: var(--quiet);
  font-size: 0.83rem;
  font-weight: 740;
  text-transform: uppercase;
}

.facts p {
  margin: 0;
  color: #303842;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.portrait {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portrait figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.rain-lab {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(18, 31, 45, 0.06);
}

#rainCanvas {
  width: 100%;
  height: 100%;
}

.metric-band {
  border-block: 1px solid var(--line);
  background: #fbfcfd;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics div {
  padding: 28px 30px;
  border-left: 1px solid var(--line);
}

.metrics div:first-child {
  border-left: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.12rem;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.research-card,
.publication-card,
.honor-timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.research-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
}

.research-card p,
.publication-card p {
  color: var(--muted);
}

.accent-line {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
}

.aqua {
  background: var(--aqua);
}

.green {
  background: var(--green);
}

.gold {
  background: var(--gold);
}

.coral {
  background: var(--coral);
}

.publication-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(46, 163, 107, 0.05), transparent 360px),
    #fbfcfd;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 30px;
  padding: 28px;
}

.featured-pub {
  border-color: rgba(0, 166, 184, 0.34);
  box-shadow: 0 18px 44px rgba(0, 166, 184, 0.08);
}

.publication-card h3,
.publication-card p,
.publication-card .pub-links {
  grid-column: 2;
}

.pub-meta {
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}

.pub-meta span:first-child {
  color: var(--ink);
}

.publication-card h3 {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.publication-card .authors {
  margin-bottom: 8px;
  color: #3d4650;
}

.publication-card p:last-of-type {
  margin-bottom: 18px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.honor-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.honor-timeline article {
  min-height: 150px;
  padding: 24px;
}

.honor-timeline span {
  display: block;
  margin-bottom: 18px;
  color: #007d8d;
  font-weight: 780;
}

.honor-timeline h3 {
  font-size: 1rem;
}

.closing-section {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.closing-section .eyebrow {
  color: #007d8d;
}

.closing-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 60px;
  align-items: start;
}

.closing-grid p {
  color: var(--muted);
  font-size: 1.08rem;
}

.inline-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 2px solid rgba(0, 166, 184, 0.28);
  color: #007d8d;
  font-weight: 760;
  text-decoration: none;
}

.page-hero {
  padding: 86px 0 58px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}

.achievement-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.achievement-strip article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.achievement-strip span,
.note-card .note-tag {
  display: block;
  margin-bottom: 8px;
  color: #007d8d;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.note-card h2 {
  margin-bottom: 14px;
  font-size: 1.34rem;
}

.note-card p {
  color: var(--muted);
}

.note-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #303842;
}

.note-card li + li {
  margin-top: 10px;
}

.notation {
  display: block;
  margin-top: 16px;
  border-left: 3px solid rgba(0, 166, 184, 0.42);
  padding-left: 14px;
  color: #303842;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 34px;
}

.footer-grid strong,
.footer-grid span,
.footer-links a {
  display: block;
}

.footer-grid span,
.footer-links {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-links a {
  color: #007d8d;
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-template-columns: minmax(230px, 0.7fr) minmax(260px, 1fr);
    align-items: stretch;
  }

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

  .metrics,
  .honor-timeline,
  .achievement-strip,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metrics div:first-child {
    border-top: 0;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1120px, calc(100% - 28px));
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 44px;
    gap: 32px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  .facts div,
  .publication-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts div {
    gap: 4px;
  }

  .hero-visual,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .rain-lab {
    min-height: 190px;
  }

  .section {
    padding: 64px 0;
  }

  .research-card {
    min-height: 0;
  }

  .publication-card {
    display: block;
  }

  .pub-meta {
    margin-bottom: 16px;
  }

  .footer-grid {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
