:root {
  --ink: #09213f;
  --muted: #5f6f84;
  --teal: #006d72;
  --teal-dark: #00525d;
  --line: #d8e2ee;
  --soft: #f6fafb;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(9, 33, 63, 0.09);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.scroll-anchor {
  position: relative;
  top: -90px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 70px;
  align-items: center;
  min-height: 680px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 7vw, 4.25rem);
}

.hero h1 span {
  color: var(--teal-dark);
}

.hero-role {
  margin: 18px 0 20px;
  color: var(--teal-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.contact-lines {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #223552;
  font-weight: 600;
}

.contact-lines svg {
  width: 19px;
  height: 19px;
  fill: #677691;
  flex: 0 0 auto;
}

.hero-summary {
  position: relative;
  max-width: 660px;
  margin: 0 0 28px;
  padding-top: 28px;
  color: #24364e;
  font-size: 1.05rem;
}

.hero-summary::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  content: "";
  background: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #008a86);
  box-shadow: 0 12px 24px rgba(0, 109, 114, 0.2);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid #8ba1b9;
  background: var(--white);
}

.profile-card {
  padding: 0 0 20px;
}

.profile-card img {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #08213f;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-grid div {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.metric-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

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

.focus-grid article {
  min-height: 230px;
  padding: 20px 28px 18px;
  border-left: 1px solid var(--line);
}

.focus-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

.focus-grid svg {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  fill: var(--teal-dark);
}

.focus-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.focus-grid p,
.publication-list p,
.featured-publication p,
.resource-grid span,
.contact-section p,
.edu-body p {
  color: var(--muted);
}

/* Education timeline */
.edu-timeline {
  position: relative;
  padding-left: 0;
}

.edu-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.edu-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.edu-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 24px;
}

.edu-degree {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--teal-dark);
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.edu-year {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.edu-body h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.edu-school {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.edu-body > p {
  margin: 0 0 16px;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.edu-visiting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.edu-visiting-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.edu-visiting-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.edu-visiting-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.edu-visiting-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.publication-heading {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.featured-publication {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.featured-publication img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(9, 33, 63, 0.12);
}

.featured-publication h3,
.publication-list h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.42;
}

.featured-publication h3 {
  font-size: 1.25rem;
}

.journal-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid #9db7d4;
  border-radius: 4px;
  color: #005a9c;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.pub-note {
  margin-top: 12px;
}

.publication-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: pubs;
}

.publication-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 18px 0 18px 44px;
  border-top: 1px solid var(--line);
  counter-increment: pubs;
  position: relative;
}

.publication-list li::before {
  position: absolute;
  top: 21px;
  left: 0;
  color: var(--ink);
  content: counter(pubs) ".";
  font-weight: 800;
}

.publication-list h3 a:hover {
  color: var(--teal-dark);
}

.publication-list p {
  margin: 0;
  font-size: 0.94rem;
}

/* Life section */
.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.life-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.life-card:hover {
  border-color: #99bcc6;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.life-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  fill: var(--teal-dark);
}

.life-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.life-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.life-card a {
  color: var(--teal-dark);
  font-weight: 700;
}

.life-card a:hover {
  text-decoration: underline;
}

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

.resource-grid a {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-grid a:hover {
  border-color: #99bcc6;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Blog pages */
.blog-article {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.blog-hero {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.12;
}

.blog-lead {
  margin: 22px 0 0;
  color: #24364e;
  font-size: 1.12rem;
  line-height: 1.82;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.blog-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.blog-section h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
}

.blog-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.blog-section p,
.blog-section li {
  color: #33445c;
  line-height: 1.84;
}

.blog-section p {
  margin: 0 0 16px;
}

.blog-section p:last-child {
  margin-bottom: 0;
}

.blog-section ol {
  padding-left: 1.25rem;
  margin: 0;
}

.blog-section li {
  margin-bottom: 10px;
}

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

.blog-grid div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blog-grid p {
  margin: 0;
  font-size: 0.95rem;
}

.blog-section pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #c8d6e5;
  border-radius: 8px;
  background: #0a213d;
  color: #f3fbff;
}

.blog-section code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.blog-table th,
.blog-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.blog-table th {
  color: var(--ink);
  background: var(--soft);
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.workflow-list span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 16px;
  border-left: 4px solid var(--teal);
  border-radius: 0 6px 6px 0;
  color: #24364e;
  background: var(--soft);
  font-weight: 800;
}

.blog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 34px;
}

.resource-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.resource-grid span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Resource section layout */
.resource-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Blog card grid */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--white) 0%, var(--soft) 100%);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(9, 33, 63, 0.10);
}

.blog-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, #4fc3b7 100%);
  border-radius: 10px;
  color: var(--white);
}

.blog-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 109, 114, 0.08);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.blog-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: gap 180ms ease;
}

.blog-card-link::after {
  content: '\2192';
  transition: transform 180ms ease;
}

.blog-card:hover .blog-card-link::after {
  transform: translateX(4px);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 0;
}

.contact-section p {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, #005e68, #007c78);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header,
  .section,
  .blog-article {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .profile-card {
    max-width: 440px;
  }

  .focus-grid,
  .resource-grid,
  .life-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-card-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .edu-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .edu-marker {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding-right: 0;
    padding-left: 48px;
  }

  .edu-visiting {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 16px 0;
  }

  .brand {
    max-width: 250px;
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 34px;
    gap: 24px;
  }

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

  .hero-role {
    font-size: 1.12rem;
  }

  .profile-card {
    max-width: 300px;
    margin: 0 auto;
  }

  .section-heading,
  .publication-list li,
  .contact-section,
  .site-footer {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .focus-grid,
  .resource-grid,
  .life-grid,
  .blog-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .blog-article {
    padding: 28px 0 52px;
  }

  .blog-hero {
    padding-top: 22px;
  }

  .blog-hero h1 {
    font-size: 2.18rem;
  }

  .blog-lead {
    font-size: 1rem;
  }

  .blog-section {
    padding: 28px 0;
  }

  .blog-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .focus-grid article,
  .life-card,
  .focus-grid article:first-child {
    min-height: 0;
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .focus-grid article:first-child,
  .life-card:first-child {
    border-top: 0;
  }

  .publication-list .journal-label {
    margin-top: 10px;
  }

  .contact-section .button {
    margin-top: 22px;
  }

  .edu-marker {
    padding-left: 0;
  }

  .edu-visiting {
    grid-template-columns: 1fr;
  }

  .site-footer span {
    display: block;
    text-align: center;
  }
}
